Nextcloud version (eg, 18.0.2): 20.0.4
Operating system and version (eg, Ubuntu 20.04): Ubuntu Server 20.04
Apache or nginx version (eg, Apache 2.4.25): Not sure?
PHP version (eg, 7.1): 7.4.13
The issue you are facing:
No access to files (Error loading img files, Internal Server Error for other files), after moving data directory from local internal storage to local external storage device.
In the mobile android app, the app says that the server is in “maintenance mode” but I can access and view things via the online GUI.
I had some issues with “.ocdata” missing and permissions/ownership, so I think it may be related to that but I can not figure out where to start.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Access nextcloud via online GUI or via mobile app
The output of your Nextcloud log in Admin > Logging:
Error PHP Error: fopen(/var/snap/nextcloud/common/nextcloud/data/user/files/Finance overview.ods): failed to open stream: No such file or directory at /snap/nextcloud/25276/htdocs/lib/private/Files/Storage/Local.php#355
2021-01-04T11:08:30+0100
Error PHP Error: fopen(/var/snap/nextcloud/common/nextcloud/data/user/files/file.ods): failed to open stream: No such file or directory at /snap/nextcloud/25276/htdocs/lib/private/Files/Storage/Local.php#355
2021-01-04T11:08:30+0100
Error no app in context Exception: Argument 2 passed to OC\Files\Storage\Local::calculateEtag() must be of the type array, bool given, called in /snap/nextcloud/25276/htdocs/lib/private/Files/Storage/Local.php on line 480
2021-01-04T11:08:27+0100
Error PHP Error: fopen(/var/snap/nextcloud/common/nextcloud/data/user/files/Finance overview.ods): failed to open stream: No such file or directory at /snap/nextcloud/25276/htdocs/lib/private/Files/Storage/Local.php#355
2021-01-04T11:01:10+0100
Error PHP Error: fopen(/var/snap/nextcloud/common/nextcloud/data/user/files/file.ods): failed to open stream: No such file or directory at /snap/nextcloud/25276/htdocs/lib/private/Files/Storage/Local.php#355
2021-01-04T11:01:10+0100
Thanks for your help!