Could you please post your config file? Please clear the sensitive information in it to not compromise your instance. What changes in it have been done?
21T11:45:36+00:00",“remoteAddr”:“46.114.38.20”,“user”:“yvelia”,“app”:“PHP”,“method”:“GET”,“url”:"/apps/files/",“message”:“file_get_contents(/opt/nextcloud/appdata_oce3nnfrkrfe/css/icons/icons-list.template): failed to open stream: No such file or directory at /srv/nextcloud/lib/private/Files/Storage/Local.php#217”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0”,“version”:“16.0.3.0”}
{“reqId”:“w2BTXCQom38TaB9dJlWe”,“level”:3,“time”:“2019-07-21T11:45:36+00:00”,“remoteAddr”:“46.114.38.20”,“user”:“yvelia”,“app”:“PHP”,“method”:“GET”,“url”:"/apps/files/",“message”:“stat(): stat failed for /opt/nextcloud/appdata_oce3nnfrkrfe/css/icons/icons-list.template at /srv/nextcloud/lib/private/Files/Storage/Local.php#143”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0”,“version”:“16.0.3.0”}
Looks like these 2 files cannot be accessed. Are they existing? If yes, can they be accessed by www-data?
Yes, the timeout only occured once. I had to upgrade to php7.3 from 7.0 for NC16 to work, so I forgot to re-tune my fpm config for 7.3, which may have caused the time-out.
# service php7.3-fpm status
● php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; enabled; vendor prese
Active: active (running) since Sat 2019-07-20 11:56:53 CEST; 2 days ago
...
Very much so, NC displayed a page warning for outdated / non-working, also on the command line.
This is what my nginx per-site config looks like for NC:
# head /etc/nginx/sites-available/nextcloud
upstream php-handler {
#server 127.0.0.1:9000;
server unix:/run/php/php7.3-fpm.sock;
}
I had trouble as well when I upgraded to PHP 7.2 from 7.0. In my case not all modules were upgraded properly. Can you confirm that all modules are up to date?
I am sorry, I cannot help further. Maybe you can report the issue to the developer on Github.
I have a working setup that looks similar to yours but it differs. You could give it a try, but no clue if this will work for you. Note: I am using PHP7.2.
Anyhow, here we go:
Webserver config:
upstream php-handler {
server 127.0.0.1:9000;
#server unix:/var/run/php/php7.2-fpm.sock;
}
Then sudo nano /etc/php/7.2/fpm/php.ini and adapt the following variables. The first 3 values needs to reflect your needs. The memory_limit is the minimum Nextcloud accepts:
Now another file needs to be adapted by using sudo nano /etc/php/7.2/fpm/pool.d/www.conf. Variable listen = /var/run/php7.2-fpm.sock needs to be replaced by listen = 127.0.0.1:9000. And I replace the original env[PATH] by the output of command printenv PATH. Example: env[PATH] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games.
# sha256sum -c nextcloud-16.0.3.tar.bz2.sha256
nextcloud-16.0.3.tar.bz2: OK
Stopped nginx, unpacked the tar archive, copied my config.php, manually copied my missing /apps/ and ran the ownership/permission fix over NC and the data dir.
After restarting nginx, I performed the occ upgrade step. https://pastebin.com/i7FPEk2n
I then updated my apps via occ.
# sudo -u www-data php occ app:update --all
EDIT:
With occ log:watch in the background I kept testing, so far the issue seemed to stay the same.
Until I tried the following:
The NC error-level log stays empty now and the page loads without problems.
The missing files in appdata_X/css/icons/ seemed to have been added again as well.