-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files from external storage (Dropbox) never get updated. #3210
Comments
@icewind1991 what was the name of the config for discovering changes? |
Interesting. Just noticed the same thing myself. I'll follow this thread |
The same happens to me. It seems if run occ files:scan --all it updates, but the process takes like 3 hours... |
Also following. I tried to move some files to a subfolder in Dropbox, then came back to nextcloud to find that nextcloud did not detect the changes. When I tried to move the files from nextcloud, I get an error saying that the files already exist in the directory, but no files are visible. |
Doing some further research yielded this Dropbox developer blog post: https://blogs.dropbox.com/developers/2013/11/low-latency-notification-of-dropbox-file-changes/ Seems like long polling with some implementation of the delta API calls would solve this. Not sure where in nextcloud code this should be added though. |
Workaround/Script for shell-users. No warranty, tested on NC12.
Currently |
Hi, i would like to ask, if this script is working to refresh the content of the integrated dropbox account. Thank you very much. |
I have this problem with an admin-added external folder. I've tried switching to a user-added external storage, hoping that until this is resolved, at least @ManOki's script will help (it doesn't appear to work for admin-added folders). |
Hi Paour, |
My solution, inspired by @ManOki is as follows, not that I'm on Manjaro and Nextcloud is running on Docker. ~ >>> cat /etc/systemd/system/dropbox.service
[Unit]
Description=Scan for new files on Dropbox
[Service]
Type=simple
ExecStart=/usr/bin/docker exec -i nextcloud_server_1 occ files:scan --path="/conor/files/Dropbox"
~ >>> cat /etc/systemd/system/dropbox.timer
[Unit]
Description=Scrape Dropbox Hourly
[Timer]
OnCalendar=hourly
Persistent=true
[Install]
WantedBy=timers.target |
@paour what are admin-added external folders? are those directly shared to all users? are they added through a plugin another app? maybe just a hint, how this script works: so if the admin-added mountpoints are not listed by the nextcloud commands mentioned above, the script will fail. but maybe we can add some lines to complete it. EDIT: @ConorIA you hardcoded your path |
@ManOki yes, the admin can allow users to add their own mappings, or can set mappings for one or several users from the admin console. These do not appear in |
@paour can you show me such a command line for the admin console to set a mapping, please. |
Thanks for the hint, i wasn't aware of that. Admin mountpoints are listed without any user_id, just |
Aha, then my issue may have been that NC forgot my mountpoint: it wasn't in the list when I ran that command. It still appeared in the web UI though. |
Ok, i updated the script to support also admin mountpoints. I didn't test, if it is valid to just trigger a single update on any user. current state is, that all applicable users and groups with their users get updated, which might cause a lot of traffic (to dropbox). @paour Maybe your mountpoint was defined a long time ago with an old owncloud/nextcloud instance, so those information are not stored properly. Now the script should work, if |
Dropbox support was moved to a separate app, please report issues with this over there: https://github.com/icewind1991/files_external_dropbox Please try this new app, because it uses updated libraries that support newer Dropbox APIs. The app works with Nextcloud 12+. |
Steps to reproduce
Expected behaviour
Files should update.
Actual behaviour
Files are not updated.
Server configuration
Operating system: Linux (Ubuntu 16.10)
Web server: Apache
Database: MySQL (5.7.16)
PHP version: 7.0.13
Nextcloud version: 11.0.1
Updated from an older Nextcloud/ownCloud or fresh install: upgraded from NC 10
Where did you install Nextcloud from: from NC homepage
Signing status:
Signing status
Are you using encryption: no
The text was updated successfully, but these errors were encountered: