nextcloud / docker

⛴ Docker image of Nextcloud
https://hub.docker.com/_/nextcloud/
GNU Affero General Public License v3.0
6.08k stars 1.83k forks source link

Nextcloud won't pick up changes on my external unionfs storage. #216

Closed Nottt closed 5 years ago

Nottt commented 6 years ago
### Steps to reproduce 1. Add a external unionfs folder as external storage 2. Delete or add files, move stuff around 3. NextCloud won't reflect this even after a long time of waiting, and even restarting the docker container ### Expected behaviour The web interface should reflect the changes made on the folder, in real time or in a reasonable time. ### Actual behaviour Web interface does not reflect changes in the folder. ### Server configuration **Operating system**: Ubuntu Server 16.04 **Web server:** Nginx **Database:** Mariadb latest docker **PHP version:** PHP 7.1.9 **Nextcloud version:** Nextcloud 12.0.4 **Updated from an older Nextcloud/ownCloud or fresh install:** No **Where did you install Nextcloud from:** Docker* **Signing status:**
Signing status ``` No errors have been found. ```
**List of activated apps:**
App list ``` Could not retrieve on my docker ```
**Nextcloud configuration:**
Config report ``` If you have access to your command line run e.g.: Could not find a way to retrieve it on my docker or Insert your config.php content here. Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …) ```
**Are you using external storage, if yes which one:** Yes, a unionfs folder joining a read-only folder with a read-write folder, path being /mnt/unionfs/ **Are you using encryption:** No **Are you using an external user-backend, if yes which one:** Not sure. ### Client configuration **Browser:** Version 63.0.3239.84 (Official Build) (64-bit) **Operating system:** Windows 7 ### Logs #### Web server error log
Web server error log [error.log](https://github.com/nextcloud/server/files/1580307/error.log)
#### Nextcloud log (data/nextcloud.log)
Nextcloud log [nextcloud.log](https://github.com/nextcloud/server/files/1580302/nextcloud.log)
I have many other docker applications that uses the same /unionfs folder, and none has issues dealing with changes in real time so I'm not sure why this is happening only with nextcloud. Any help is appreciated! Thanks,
DenSA-Inc commented 6 years ago

AFAIK nextcloud does not automatically reflect the changes in the file system, files have to be added to the database first (or something like that). Anyway, just as in this nextcloud forum question you have to use occ files:scan to update nextcloud's knowledge of the file system.

I don't know how fast you want the file-system-changes to appear in nextcloud, but running the discovery-command via crontab every 5 minutes should suffice.

schliflo commented 6 years ago

There is also a config option that tells nextcloud to automatically scan the filesystem for changes: 'filesystem_check_changes' => 1,

Nottt commented 6 years ago

Thanks dude! How can i change that configuration? Sorry I'm a noob. I just use the docker and it just "works" ( well except the keep it updated part)

schliflo commented 6 years ago

If you have mounted your config (like this), just add the line i posted to your config.php

J0WI commented 5 years ago

Assuming that the question has been answered.