Uncommented last 3 lines of /etc/php/8.0/fpm/pool.d/www.conf to enable logging
Log file in /var/log/roundcubemail/errors.log
[12-Apr-2025 08:50:16 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/lib/roundcubemail/plugins/carddav/carddav.php on line 589
[12-Apr-2025 08:50:16 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/lib/roundcubemail/plugins/carddav/carddav.php on line 596
[12-Apr-2025 08:50:16 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/lib/roundcubemail/plugins/carddav/carddav.php on line 601
[12-Apr-2025 08:50:16 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/lib/roundcubemail/plugins/carddav/carddav.php on line 981
[12-Apr-2025 08:50:16 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/lib/roundcubemail/plugins/carddav/carddav.php on line 990
[12-Apr-2025 08:50:16 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/lib/roundcubemail/plugins/carddav/carddav.php on line 1124
[12-Apr-2025 08:50:16 UTC] PHP Fatal error: Declaration of MStilkerich\CardDavAddressbook4Roundcube\RoundcubeLogger::log($level, $message, array $context = []) must be compatible with Psr\Log\AbstractLogger::log($level, Stringable|string $message, array $context = []): void in /usr/local/lib/roundcubemail/plugins/carddav/src/RoundcubeLogger.php on line 99
Not really sure and this is 6 months old. Could be anything.
Why don’t you rsync the userdata to a safe location and do a clean install?
Take a note of any custom dns entries that you might have before you terminate the old instance. I assume the admin page works? Take a note of all users you will need to recreate in the new instance.
Reserve your public IP from the old instance. Allocate enough disk space on new instance (plan ahead) Do a clean install on a new instance. Ubuntu 22.04 x64 Assign the IP from the old instance. Recerate any custom dns entries and all the users.
Then restore with rsync.
rsync /home/user-data/
And do Copy this just in case: /home/user-data/backup
Restoring as per setup guide. Just in case. This is the duplicity backup (encrypted).There are 2 keys which you need to do a duplicity restore. You need root access to copy them or just cat them from terminal, If you wish to restore the backup as per the setup guide.
I think this would be easier than diagnosing the problem.
Could you be more specific.
So, you are running a new instance. Not the one from 6 months ago and with a clean install, before you restore the backup you get the 500 error on roundcube?
Are you saying that the 500 error is reproduced with a fresh install?
Are you running a vanilla Ubuntu 22? Is this an instance created with a VPS provider or you are running it from home? If you are running your own server from home change the ubuntu image or Ubuntu iso. This might cause the trouble. I see that you posted questions about docker containers? Are you running it from a docker?
I find it hard to believe that Roundcube would fail with a new vanilla Ubuntu. Are you suggesting that after restoring the users and the backup, Roundcube is failing?
Is nextcloud failing as well? box.yourdomain.com/cloud
Updating system packages...
Installing system packages...
Initializing system random number generator...
Firewall is active and enabled on system startup
Synchronizing state of fail2ban.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable fail2ban
Installing nsd (DNS server)...
Installing Postfix (SMTP server)...
Installing Dovecot (IMAP server)...
Installing OpenDKIM/OpenDMARC...
Installing SpamAssassin...
Installing Nginx (web server)...
Installing Roundcube (webmail)...
Installing Nextcloud (contacts/calendar)...
Nextcloud is already latest version
Installing Z-Push (Exchange/ActiveSync server)...
Installing Mail-in-a-Box system management daemon...
Installing Munin (system monitoring)...
updated DNS: OpenDKIM configuration
-----------------------------------------------
Your Mail-in-a-Box is running.
Please log in to the control panel for further instructions at:
https://.............
If you have a DNS problem put the box's IP address in the URL
(https://.............../admin) but then check the TLS fingerprint:
Anyway HTTP 500 is quite telling, the issue is there are no logs anywhere on the server where I can find when using PHP 8.0, and nothing I change seems to log anything
Nginx logs are stored under /var/log/nginx and php logs under /var/log Are those not present?
Also, trying /mail and /cloud might help if it’s application specific or php specific. (assuming nginx works because /admin is ok)