[PHP] Error: unlink(/var/www/html/ ... : No such file or directory at /var/www/html/lib/private/Files/Storage/Local.php#227

Hello, in my logfiles I always see similar error messages and can not explain them to me.
PHP: 7.2.15
OS: Ubuntu 18.04 LTS
All updates installed.

[PHP] Error: unlink(/var/www/html/data/appdata_ocra3uc9qczf/css/core/8aae-8b7a-server.css.gzip): No such file or directory at /var/www/html/lib/private/Files/Storage/Local.php#227

GET /css/core/8aae-8b7a-ie.css?v=1d916a640b4e399006848111f9969bad-314b40b7-23
from by xxx at 2019-03-14T10:18:09+01:00

[PHP] Error: unlink(/var/www/html/data/appdata_ocra3uc9qczf/css/icons/icons-vars.css): No such file or directory at /var/www/html/lib/private/Files/Storage/Local.php#227

GET /css/notifications/70e2-8b7a-styles.css?v=1d916a640b4e399006848111f9969bad-70e2b24f-23
from by xxx at 2019-03-14T10:18:03+01:00

All messages always refer to CSS files.
Is this a server error?
What can I do?
Thank you.

Does nobody have an idea?

unlink == delete
so do you have a file /var/www/html/data/appdata_ocra3uc9qczf/css/core/8aae-8b7a-server.css.gzip
or a file var/www/html/data/appdata_ocra3uc9qczf/css/icons/icons-vars.css ?

The error message always appears when I change something as admin in the menu “Theming”. A letter in the name of the cloud is enough.

The folder exists. The file is not.
unlink (/var/www/html/data/appdata_ocra3uc9qczf/css/updatenotification/35c3-8b7a-admin.css.gzip)
I think that the css.gzip is only generated at runtime and then deleted again.
But what can go wrong? Otherwise everything works.
Also the rights are correct: drwxr-xr-x www-data www-data

The file does exist in my setup. I don’t know it but I suppose that if you change ‘Theming’ the file is first deleted (because it is old now) and then created new with your changes. So if this file does not appear in your directory you can try to create it and see what happens. I suppose you have a file /var/www/html/data/appdata_ocra3uc9qczf/css/core/8aae-8b7a-server.css in your directory. Just gzip it …

The file is available:
-rw-r - r-- 1 www-data www-data 18883 Mar 16 14:33 8aae-8b7a-server.css.gzip

4 -rw-r–r-- 1 www-data www-data 947 Mär 16 14:32 8aae-8b7a-css-variables.css
4 -rw-r–r-- 1 www-data www-data 176 Mär 16 14:32 8aae-8b7a-css-variables.css.deps
4 -rw-r–r-- 1 www-data www-data 431 Mär 16 14:32 8aae-8b7a-css-variables.css.gzip
4 -rw-r–r-- 1 www-data www-data 1489 Mär 16 14:33 8aae-8b7a-jquery.ocdialog.css
4 -rw-r–r-- 1 www-data www-data 178 Mär 16 14:33 8aae-8b7a-jquery.ocdialog.css.deps
4 -rw-r–r-- 1 www-data www-data 609 Mär 16 14:33 8aae-8b7a-jquery.ocdialog.css.gzip
8 -rw-r–r-- 1 www-data www-data 4908 Mär 16 14:33 8aae-8b7a-jquery-ui-fixes.css
4 -rw-r–r-- 1 www-data www-data 178 Mär 16 14:33 8aae-8b7a-jquery-ui-fixes.css.deps
4 -rw-r–r-- 1 www-data www-data 927 Mär 16 14:33 8aae-8b7a-jquery-ui-fixes.css.gzip
4 -rw-r–r-- 1 www-data www-data 1189 Mär 16 14:33 8aae-8b7a-results.css
4 -rw-r–r-- 1 www-data www-data 178 Mär 16 14:33 8aae-8b7a-results.css.deps
4 -rw-r–r-- 1 www-data www-data 504 Mär 16 14:33 8aae-8b7a-results.css.gzip
132 -rw-r–r-- 1 www-data www-data 131381 Mär 16 14:33 8aae-8b7a-server.css
4 -rw-r–r-- 1 www-data www-data 759 Mär 16 14:33 8aae-8b7a-server.css.deps
20 -rw-r–r-- 1 www-data www-data 18883 Mär 16 14:33 8aae-8b7a-server.css.gzip
4 -rw-r–r-- 1 www-data www-data 1403 Mär 16 14:33 8aae-8b7a-systemtags.css
4 -rw-r–r-- 1 www-data www-data 173 Mär 16 14:33 8aae-8b7a-systemtags.css.deps
4 -rw-r–r-- 1 www-data www-data 385 Mär 16 14:33 8aae-8b7a-systemtags.css.gzip

When I use another brand new cloud, the same error appears in the logs. I also use a completely different server here.

unlink(/cloud/data/appdata_oc7onkhh3ebd/css/files_texteditor/b1d7-bf13-merged.css.gzip): No such file or directory at /cloud/lib/private/Files/Storage/Local.php#227

Two independent servers. The same mistake.

If I change something in ‘Theming’ I get the same errors, so it seems nothing special just for you :slight_smile:

1 Like

That’s good to know. Thank you.

Any solution until now? Same problem for me.

yes, I am also interested to know if any solution.
I am on NC 17.x.x. and have same set of errors.
Yes, I change my theming for personal image at login.
In administration overview I have a warning :
This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them.

“* imagick*
When researching, it seems related to theming and not to worry about it.”

However, I dont know if the issue in this post and mine are all to be disregarded due to theming.
Any feedback would be welcome.

I just installed a Nextcloud 21.0.2 on ubuntu 20.04, Php7.4, Nginx. Get a similar error.

Error: unlink(/var/www/nextcloud/data/appdata_ocb5zao3mx36/css/activity/ce96-99fc-style.css.deps): No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#285

(File is there)

Any solutions yet?