florom
October 2, 2024, 12:40pm
1
Hi Devs and Community,
I have two Errors in my LogFiles for quite a while now and i could not solve it myself.
Error PHP
unlink(...nextcloud/data/appdata_ocl90w6cmkrz/richdocuments/remoteData/capabilities): No such file or directory at ...nextcloud/lib/private/Files/Storage/Local.php#348
Error PHP
unlink(...nextcloud/data/appdata_ocl90w6cmkrz/richdocuments/remoteData/discovery): No such file or directory at ...nextcloud/lib/private/Files/Storage/Local.php#348
I can confirm that these files are here and have these attributes:
-rw-r--r-- 1 www-data www-data 35347 Oct 2 14:19 ...nextcloud/data/appdata_ocl90w6cmkrz/richdocuments/remoteData/discovery
-rw-r--r-- 1 www-data www-data 342 Oct 2 14:19 ...nextcloud/data/appdata_ocl90w6cmkrz/richdocuments/remoteData/capabilities
If I delete them they get newly created again but the problem persists.
In mobile app I usually have to open documents twice until it works. The first time it runs into a timeout. After some time has passed I have to open it twice again if i want to see it. Editing does not work unfortunately.
I run nextcloud 29.0.7 and all apps are up-to-date.
I use a firewall where only http and https is allowed,
and an Intrusion Prevention system is there online too. I could not see anything wrong on this side nor on the nextcloud side.
Please help what I could be missing.
Thank you.
@florom there’s not much you can do. you’ll need to wait for NC 30
you are not alone: Search results for 'Unlink richdocuments order:likes' - Nextcloud community
opened 01:11PM - 14 Aug 24 UTC
bug
0. Needs triage
### ⚠️ This issue respects the following points: ⚠️
- [X] This is a **bug**, … not a question or a configuration/webserver/proxy issue.
- [X] This issue is **not** already reported on [Github](https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3Abug) OR [Nextcloud Community Forum](https://help.nextcloud.com/) _(I've searched it)_.
- [X] Nextcloud Server **is** up to date. See [Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) for supported versions.
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).
### Bug description
As discussed here: https://help.nextcloud.com/t/php-error-unlink-var-www-nextcloud-data-appdata-ocgfs89mpg4c-richdocuments-remotedata-capabilities-no-such-file-or-directory-at-var-www-nextcloud-lib-private-files-storage-local-php-348/198537
the system logs PHP errors like these:
```
[PHP] Error: unlink(/var/www/nextcloud/data/appdata_ocgfs89mpg4c/richdocuments/remoteData/capabilities): No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#348
GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json
```
### Steps to reproduce
Not clear. But all affected users seem to use Collabora Online - Built-in CODE Server
### Expected behavior
No errors under the logging page.
### Installation method
Community Manual installation with Archive
### Nextcloud Server version
28
### Operating system
Debian/Ubuntu
### PHP engine version
PHP 8.1
### Web server
Nginx
### Database engine version
MariaDB
### Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 28 to 29)
### Are you using the Nextcloud Server Encryption module?
None
### What user-backends are you using?
- [x] Default user-backend _(database)_
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
### Nextcloud Logs
```shell
{"reqId":"O736PgfFCb34EnaHt59Q","level":3,"time":"2024-08-13T16:50:10+00:00","remoteAddr":"redact","user":"user","app":"PHP","method":"GET","url":"/index.phps/api/v1/stats","message":"unlink(/mnt/nextcloud/data/appdata_ocyao8xfftvv/richdocuments/remoteData/discovery): No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#348","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0","version":"29.0.4.1","data":{"app":"PHP"},"id":"66bcace1b6880"}
```
florom
October 2, 2024, 1:48pm
3
Thanks.
Seems really there is not much I can do.
@florom … we’ve come up with a solution for this and added it into the nextcloud-fixer
script for future updates and installs.
see https://github.com/nextcloud-snap/nextcloud-snap/issues/2901
you can follow these steps:
opened 01:11PM - 14 Aug 24 UTC
bug
0. Needs triage
### ⚠️ This issue respects the following points: ⚠️
- [X] This is a **bug**, … not a question or a configuration/webserver/proxy issue.
- [X] This issue is **not** already reported on [Github](https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3Abug) OR [Nextcloud Community Forum](https://help.nextcloud.com/) _(I've searched it)_.
- [X] Nextcloud Server **is** up to date. See [Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) for supported versions.
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).
### Bug description
As discussed here: https://help.nextcloud.com/t/php-error-unlink-var-www-nextcloud-data-appdata-ocgfs89mpg4c-richdocuments-remotedata-capabilities-no-such-file-or-directory-at-var-www-nextcloud-lib-private-files-storage-local-php-348/198537
the system logs PHP errors like these:
```
[PHP] Error: unlink(/var/www/nextcloud/data/appdata_ocgfs89mpg4c/richdocuments/remoteData/capabilities): No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#348
GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json
```
### Steps to reproduce
Not clear. But all affected users seem to use Collabora Online - Built-in CODE Server
### Expected behavior
No errors under the logging page.
### Installation method
Community Manual installation with Archive
### Nextcloud Server version
28
### Operating system
Debian/Ubuntu
### PHP engine version
PHP 8.1
### Web server
Nginx
### Database engine version
MariaDB
### Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 28 to 29)
### Are you using the Nextcloud Server Encryption module?
None
### What user-backends are you using?
- [x] Default user-backend _(database)_
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
### Nextcloud Logs
```shell
{"reqId":"O736PgfFCb34EnaHt59Q","level":3,"time":"2024-08-13T16:50:10+00:00","remoteAddr":"redact","user":"user","app":"PHP","method":"GET","url":"/index.phps/api/v1/stats","message":"unlink(/mnt/nextcloud/data/appdata_ocyao8xfftvv/richdocuments/remoteData/discovery): No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#348","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0","version":"29.0.4.1","data":{"app":"PHP"},"id":"66bcace1b6880"}
```
see also Issue Debugging Scripts · nextcloud-snap/nextcloud-snap Wiki · GitHub