Unable to access after update

After an automatic update, getting 500 errors on UI.

Below is the error log

2024/02/16 00:21:09 [error] 1041#1041: 366 FastCGI sent in stderr: “PHP message: PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /var/www/nextcloud/index.php on line 2” while reading response header from upstream, client: ...*, server: testers.com, request: “GET /index.php/204 HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php/php8.1-fpm.sock:”, host: “testers.com

As I don’t have that of knowledge, I couldn’t find any other information.

Thank you

After an automatic update, getting 500 errors on UI

From what to what? Version info is needed. And what do you mean by “automated” precisely?

I would check your nextcloud.log since it may have hints.

Because of this i think your PHP version is to old for your Nextcloud version. Please post more details.

  • operating system and version
  • PHP version
  • Nextcloud version
  • logs

Speaks against an outdated PHP version. maybe only the Nextcloud version is too old.

requirements Nextcloud 28

requirements Nextcloud 27

requirements Nextcloud 26

End of Life:
requirements Nextcloud 25

Hi,
Thanks for your response.

Operating System:

PRETTY_NAME=“Ubuntu 22.04.3 LTS”
NAME=“Ubuntu”
VERSION_ID=“22.04”
VERSION=“22.04.3 LTS (Jammy Jellyfish)”

PHP:

PHP 8.1.2-1ubuntu2.14 (cli) (built: Aug 18 2023 11:41:11) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
with Zend OPcache v8.1.2-1ubuntu2.14, Copyright (c), by Zend Technologies

Nextcloud Version:

sudo -u www-data php occ status

  • installed: true
  • version: 27.1.4.1
  • versionstring: 27.1.4
  • edition:
  • maintenance: false
  • needsDbUpgrade: false
  • productname: Nextcloud
  • extendedSupport: false

Nextcloud Logs:

{“reqId”:“cvuSyCFnyCe53gOZOw4I”,“level”:3,“time”:“2023-11-21T22:01:41+00:00”,“remoteAddr”:“2409:40f0:d9:f454:f423:1f6f:368b:35d8”,“user”:“–”,“app”:“PHP”,“method”:“POST”,“url”:“/index.php”,“message”:“mkdir(): Permission denied at /var/www/nextcloud/lib/private/Setup.php#308”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0”,“version”:“”,“data”:{“app”:“PHP”}}
{“reqId”:“PCm1menQKxtTngyhhHZd”,“level”:2,“time”:“2023-11-21T22:07:35+00:00”,“remoteAddr”:“2409:40f0:d9:f454:f423:1f6f:368b:35d8”,“user”:“–”,“app”:“core”,“method”:“POST”,“url”:“/index.php”,“message”:“Session token is invalid because it does not exist”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0”,“version”:“27.1.3.2”,“exception”:{“Exception”:“OC\Authentication\Exceptions\InvalidTokenException”,“Message”:“Token is too short for a generated token, should be the password during basic auth”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/lib/private/User/Session.php”,“line”:782,“function”:“getToken”,“class”:“OC\Authentication\Token\PublicKeyTokenProvider”,“type”:“->”,“args”:[“*** sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/lib/private/User/Session.php",“line”:352,“function”:“validateToken”,“class”:“OC\User\Session”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/lib/private/Setup.php",“line”:437,“function”:“login”,“class”:“OC\User\Session”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/core/Controller/SetupController.php",“line”:69,“function”:“install”,“class”:“OC\Setup”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/lib/base.php",“line”:1001,“function”:“run”,“class”:“OC\Core\Controller\SetupController”,“type”:“->”,“args”:[" sensitive parameters replaced ***”]},{“file”:“/var/www/nextcloud/index.php”,“line”:36,“function”:“handleRequest”,“class”:“OC”,“type”:“::”}],“File”:“/var/www/nextcloud/lib/private/Authentication/Token/PublicKeyTokenProvider.php”,“Line”:155,“message”:“Session token is invalid because it does not exist”,“user”:“admin”,“exception”:{},“CustomMessage”:“Session token is invalid because it does not exist”}}

Hi,

Seems no new events logged in nextcloud.log after 21-11-2023

{“reqId”:“cvuSyCFnyCe53gOZOw4I”,“level”:3,“time”:“2023-11-21T22:01:41+00:00”,“remoteAddr”:“2409:40f0:d9:f454:f423:1f6f:368b:35d8”,“user”:“–”,“app”:“PHP”,“method”:“POST”,“url”:“/index.php”,“message”:“mkdir(): Permission denied at /var/www/nextcloud/lib/private/Setup.php#308”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0”,“version”:“”,“data”:{“app”:“PHP”}}
{“reqId”:“PCm1menQKxtTngyhhHZd”,“level”:2,“time”:“2023-11-21T22:07:35+00:00”,“remoteAddr”:“2409:40f0:d9:f454:f423:1f6f:368b:35d8”,“user”:“–”,“app”:“core”,“method”:“POST”,“url”:“/index.php”,“message”:“Session token is invalid because it does not exist”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0”,“version”:“27.1.3.2”,“exception”:{“Exception”:“OC\Authentication\Exceptions\InvalidTokenException”,“Message”:“Token is too short for a generated token, should be the password during basic auth”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/lib/private/User/Session.php”,“line”:782,“function”:“getToken”,“class”:“OC\Authentication\Token\PublicKeyTokenProvider”,“type”:“->”,“args”:[“*** sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/lib/private/User/Session.php",“line”:352,“function”:“validateToken”,“class”:“OC\User\Session”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/lib/private/Setup.php",“line”:437,“function”:“login”,“class”:“OC\User\Session”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/core/Controller/SetupController.php",“line”:69,“function”:“install”,“class”:“OC\Setup”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/lib/base.php",“line”:1001,“function”:“run”,“class”:“OC\Core\Controller\SetupController”,“type”:“->”,“args”:[" sensitive parameters replaced ***”]},{“file”:“/var/www/nextcloud/index.php”,“line”:36,“function”:“handleRequest”,“class”:“OC”,“type”:“::”}],“File”:“/var/www/nextcloud/lib/private/Authentication/Token/PublicKeyTokenProvider.php”,“Line”:155,“message”:“Session token is invalid because it does not exist”,“user”:“admin”,“exception”:{},“CustomMessage”:“Session token is invalid because it does not exist”}}