HTTP 599 error after updating to Debian 12

Steps to reproduce

  1. Upgrade to debian 12 after which php was upgraded to 8.2
  2. Installed php7.4 from debian repo
  3. Upgraded owncloud from opensuse website:
  4. Restarted machine

Expected behaviour

Owncloud website should load properly

Actual behaviour

When the website attempts to load we receive a 599 error

Server configuration

Operating system:
Debian 12

Web server:
Apache 2

Database:
mariadb Ver 15.1 Distrib 10.11.3-MariaDB

PHP version:
php7.4.33

ownCloud version: (see ownCloud admin page)
owncloud-complete-files/unknown,now 10.13.0-1+11.1 all [installed]
ownCloud - Server Complete Edition

Updated from an older ownCloud or fresh install:
Updated

Where did you install ownCloud from:
[opensuse]software.opensuse / project=isv:ownCloud:server:10&package=owncloud-complete-files)

Signing status (ownCloud 9.0 and above):
Unsure how to collect this information.

Login as admin user into your ownCloud and access 
599 error on this page

**The content of config/config.php:**

Log in to the web-UI with an administrator account and click on
‘admin’ → ‘Generate Config Report’ → ‘Download ownCloud config report’
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.

or

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

List of activated apps:
/var/www/owncloud$ sudo -u www-data php occ app:list
ownCloud is not installed - only a limited number of commands are available

Command “app:list” is not defined.

Are you using external storage, if yes which one: local/smb/sftp/…
no

Are you using encryption: yes/no
no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…

LDAP configuration (delete this part if not used)

With access to your command line run e.g.:
/var/www/owncloud$ sudo -u www-data php occ ldap:show-config
ownCloud is not installed - only a limited number of commands are available

There are no commands defined in the “ldap” namespace.

Client configuration

Browser:
Chrome

Operating system:
Ubuntu 23.04

Logs

Web server error log

[Fri Aug 25 00:00:03.659812 2023] [mpm_prefork:notice] [pid 770] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.9 configured – resuming normal operations
[Fri Aug 25 00:00:03.659873 2023] [core:notice] [pid 770] AH00094: Command line: ‘/usr/sbin/apache2’
[Fri Aug 25 00:40:13.061956 2023] [php:error] [pid 89338] [client 192.168.1.100:49604] PHP Fatal error: During inheritance of ArrayAccess: Uncaught Error: Class “OC\Session\Memory” not found in /var/www/html/ownclo
ud/lib/private/Server.php:323\nStack trace:\n#0 /var/www/html/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(122): OC\Server->OC\{closure}()\n#1 /var/www/html/owncloud/lib/private/AppFramework/Utility/
SimpleContainer.php(108): Pimple\Container->offsetGet()\n#2 /var/www/html/owncloud/lib/private/ServerContainer.php(86): OC\AppFramework\Utility\SimpleContainer->query()\n#3 /var/www/html/owncloud/lib/private/Serve
r.php(1123): OC\ServerContainer->query()\n#4 /var/www/html/owncloud/lib/private/Server.php(1130): OC\Server->getUserSession()\n#5 /var/www/html/owncloud/lib/private/Server.php(820): OC\Server->getSession()\n#6 /var
/www/html/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(122): OC\Server->OC\{closure}()\n#7 /var/www/html/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(108): Pimple\Container->offsetG
et()\n#8 /var/www/html/owncloud/lib/private/ServerContainer.php(86): OC\AppFramework\Utility\SimpleContainer->query()\n#9 /var/www/html/owncloud/lib/private/Server.php(1614): OC\ServerContainer->query()\n#10 /var/
www/html/owncloud/lib/private/Server.php(728): OC\Server->getCsrfTokenManager()\n#11 /var/www/html/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(122): OC\Server->OC\{closure}()\n#12 /var/www/html/own
cloud/lib/private/AppFramework/Utility/SimpleContainer.php(108): Pimple\Container->offsetGet()\n#13 /var/www/html/owncloud/lib/private/ServerContainer.php(86): OC\AppFramework\Utility\SimpleContainer->query()\n#14
/var/www/html/owncloud/lib/private/Server.php(988): OC\ServerContainer->query()\n#15 /var/www/html/owncloud/lib/private/Log/Owncloud.php(88): OC\Server->getRequest()\n#16 /var/www/html/owncloud/lib/private/Log/Ownc
loud.php(67): OC\Log\Owncloud::writeExtra()\n#17 /var/www/html/owncloud/lib/private/Log.php(401): OC\Log\Owncloud::write()\n#18 /var/www/html/owncloud/lib/private/Log.php(210): OC\Log->log()\n#19 /var/www/html/ow
ncloud/lib/private/Log/ErrorHandler.php(78): OC\Log->error()\n#20 /var/www/html/owncloud/lib/private/Session/Session.php(28): OC\Log\ErrorHandler::onError()\n#21 /var/www/html/owncloud/lib/composer/composer/ClassLo
ader.php(571): include(‘…’)\n#22 /var/www/html/owncloud/lib/composer/composer/ClassLoader.php(428): Composer\Autoload\includeFile()\n#23 /var/www/html/owncloud/lib/private/Session/Memory.php(39): Composer\Autoloa
d\ClassLoader->loadClass()\n#24 /var/www/html/owncloud/lib/composer/composer/ClassLoader.php(571): include(‘…’)\n#25 /var/www/html/owncloud/lib/composer/composer/ClassLoader.php(428): Composer\Autoload\includeFil
e()\n#26 /var/www/html/owncloud/lib/private/Server.php(323): Composer\Autoload\ClassLoader->loadClass()\n#27 /var/www/html/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(122): OC\Server->OC\{closure}
()\n#28 /var/www/html/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(108): Pimple\Container->offsetGet()\n#29 /var/www/html/owncloud/lib/private/ServerContainer.php(86): OC\AppFramework\Utility\Simp
leContainer->query()\n#30 /var/www/html/owncloud/lib/private/Server.php(1123): OC\ServerContainer->query()\n#31 /var/www/html/owncloud/lib/private/Server.php(614): OC\Server->getUserSession()\n#32 /var/www/html/ownc
loud/lib/composer/pimple/pimple/src/Pimple/Container.php(122): OC\Server->OC\{closure}()\n#33 /var/www/html/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(108): Pimple\Container->offsetGet()\n#34 /va
r/www/html/owncloud/lib/private/ServerContainer.php(86): OC\AppFramework\Utility\SimpleContainer->query()\n#35 /var/www/html/owncloud/lib/private/Server.php(1458): OC\ServerContainer->query()\n#36 /var/www/html/ow
ncloud/lib/private/legacy/app.php(344): OC\Server->getAppManager()\n#37 /var/www/html/owncloud/lib/private/legacy/app.php(108): OC_App::getEnabledApps()\n#38 /var/www/html/owncloud/lib/base.php(591): OC_App::loadApps
()\n#39 /var/www/html/owncloud/lib/base.php(1060): OC::init()\n#40 /var/www/html/owncloud/core/templates/404.php(7): require_once(‘…’)\n#41 {main} in /var/www/html/owncloud/lib/private/Session/Session.php on line 28
, referer: owncloud.
[Fri Aug 25 00:42:34.780941 2023] [mpm_prefork:notice] [pid 770] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Aug 25 00:42:34.941871 2023] [mpm_prefork:notice] [pid 92001] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.9 configured – resuming normal operations
[Fri Aug 25 00:42:34.964296 2023] [core:notice] [pid 92001] AH00094: Command line: ‘/usr/sbin/apache2’
[Fri Aug 25 08:15:22.092123 2023] [mpm_prefork:notice] [pid 92001] AH00170: caught SIGWINCH, shutting down gracefully
PHP Warning: Module ‘smbclient’ already loaded in Unknown on line 0
[Fri Aug 25 08:15:23.049711 2023] [mpm_prefork:notice] [pid 107912] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.9 configured – resuming normal operations
[Fri Aug 25 08:15:23.049790 2023] [core:notice] [pid 107912] AH00094: Command line: ‘/usr/sbin/apache2’
[Fri Aug 25 08:27:41.668188 2023] [mpm_prefork:notice] [pid 107912] AH00170: caught SIGWINCH, shutting down gracefully
PHP Warning: Module ‘smbclient’ already loaded in Unknown on line 0
[Fri Aug 25 08:27:41.940877 2023] [mpm_prefork:notice] [pid 113725] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.9 configured – resuming normal operations
[Fri Aug 25 08:27:41.941069 2023] [core:notice] [pid 113725] AH00094: Command line: ‘/usr/sbin/apache2’
[Fri Aug 25 08:28:36.404852 2023] [mpm_prefork:notice] [pid 113725] AH00170: caught SIGWINCH, shutting down gracefully
PHP Warning: Module ‘smbclient’ already loaded in Unknown on line 0
[Fri Aug 25 08:29:24.630361 2023] [mpm_prefork:notice] [pid 745] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.9 configured – resuming normal operations
[Fri Aug 25 08:29:24.630606 2023] [core:notice] [pid 745] AH00094: Command line: ‘/usr/sbin/apache2’
[Fri Aug 25 08:32:14.898146 2023] [mpm_prefork:notice] [pid 745] AH00170: caught SIGWINCH, shutting down gracefully
PHP Warning: Module ‘smbclient’ already loaded in Unknown on line 0
[Fri Aug 25 08:32:16.152914 2023] [mpm_prefork:notice] [pid 1795] AH00163: Apache/2.4.57 (Debian) OpenSSL/3.0.9 configured – resuming normal operations
[Fri Aug 25 08:32:16.153017 2023] [core:notice] [pid 1795] AH00094: Command line: ‘/usr/sbin/apache2’

ownCloud log (data/owncloud.log)

Insert your ownCloud log here
{"reqId":"j07JbkIwBiQwR9BmeGGM","level":3,"time":"2023-08-25T12:30:01+00:00","remoteAddr":"","user":"--","app":"index","method":"--","url":"--","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"Environment not properly prepared.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/console.php(115): OC\\\\Console\\\\Application->loadCommands()\\n#1 \\\/var\\\/www\\\/owncloud\\\/occ(11): require_once('\\\/var\\\/www\\\/ownclo...')\\n#2 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Console\\\/Application.php\",\"Line\":139}"}
{"reqId":"spgoPqzf3KhNwsgcZVRd","level":3,"time":"2023-08-25T12:45:01+00:00","remoteAddr":"","user":"--","app":"index","method":"--","url":"--","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"Environment not properly prepared.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/console.php(115): OC\\\\Console\\\\Application->loadCommands()\\n#1 \\\/var\\\/www\\\/owncloud\\\/occ(11): require_once('\\\/var\\\/www\\\/ownclo...')\\n#2 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Console\\\/Application.php\",\"Line\":139}"}
{"reqId":"liO2nUbfBdvpIclMPOgk","level":3,"time":"2023-08-25T12:54:44+00:00","remoteAddr":"","user":"--","app":"index","method":"--","url":"--","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"Environment not properly prepared.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/console.php(115): OC\\\\Console\\\\Application->loadCommands()\\n#1 \\\/var\\\/www\\\/owncloud\\\/occ(11): require_once('\\\/var\\\/www\\\/ownclo...')\\n#2 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Console\\\/Application.php\",\"Line\":139}"}
{"reqId":"YIaqDZ9UW2eWFjer7W4o","level":3,"time":"2023-08-25T12:56:28+00:00","remoteAddr":"","user":"--","app":"index","method":"--","url":"--","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"Environment not properly prepared.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/console.php(115): OC\\\\Console\\\\Application->loadCommands()\\n#1 \\\/var\\\/www\\\/owncloud\\\/occ(11): require_once('\\\/var\\\/www\\\/ownclo...')\\n#2 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Console\\\/Application.php\",\"Line\":139}"}


#### Browser log
cat Downloads/chromewebdata-1692968641964.log 
chrome-error://chromewebdata/:1     Failed to load resource: the server responded with a status of 599 ()
VM96:5 crbug/1173575, non-JS module files deprecated.
(anonymous) @ VM96:5

#### PHP Modules installed:
php -m
[PHP Modules]
apcu
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
libsmbclient
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
smbclient
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

Just an update, I found that 2 php8.2 packages were still installed. I removed those and restarted apache2. Now I receive this message from my owncloud website:

Memcache \OC\Memcache\APCu not available for local cache Is the matching PHP module installed and enabled?

I have so far not been able to find the php module which is missing but will update if I find it.

Update: I tried to add this to my /etc/php/7.4/mods-available/apcu.ini but no luck after restarting the server:
apc.enable_cli=1

Additionally I found the apcu module missing from php, I have installed this module, and updated my modules list from the OP

After a restart of apache2 this seems to have resolved the problem.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.