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

nc15

#1

Hello, in my logfiles I always see similar error messages and can not explain them to me.
NC: 15.0.5.3
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 10.1.1.3 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 10.1.1.3 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.


#2

Does nobody have an idea?


#3

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 ?


#4

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


#5

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 …


#6

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

All:
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


#7

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.


#8

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


#9

That’s good to know. Thank you.