Hello everyone,
I’ve encountered a problem and don’t know what to do anymore. I’ve updated because of a miss configured automation to nextcloud 31 and needed to revert back to 30.0.6. I have the nextcloud docker container running on podman with persistent volumes. Every night I export the persistent volumes so I have a backup of all the data.
Now I’ve redeployed the container with the correct version and restored the persistent volumes to the date before the update to nextcloud 31. The container starts but on the web interface I receive the error: “Internal server error”.
The Basics
- Nextcloud Server version (e.g., 29.x.x):
30.0.6.2
- Operating system and version (e.g., Ubuntu 24.04):
Linux 5.14.0-503.23.1.el9_5.x86_64
- Web server and version (e.g, Apache 2.4.25):
Apache 2.4.62
- Reverse proxy and version _(e.g. nginx 1.27.2)
HAProxy
- PHP version (e.g, 8.3):
PHP 8.2.27
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
After importing old persistent volume data
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Nextcloud docker on podman
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
Summary of the issue you are facing:
Web server does not work after restoring persistent volume data.
Steps to replicate it (hint: details matter!):
- Stop the database container and the nextcloud application container.
- Import the old exported persistent volume data with podman volume import.
- Redeploy the container with the same version as the data on the persistent volume.
Log entries
Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log
located in your data directory). Feel free to use a pastebin/gist service if necessary.
Warning: /var/www/html/config/redis.config.php differs from the latest version of this image at /usr/src/nextcloud/config/redis.config.php
Warning: /var/www/html/config/reverse-proxy.config.php differs from the latest version of this image at /usr/src/nextcloud/config/reverse-proxy.config.php
Warning: /var/www/html/config/s3.config.php differs from the latest version of this image at /usr/src/nextcloud/config/s3.config.php
Warning: /var/www/html/config/upgrade-disable-web.config.php differs from the latest version of this image at /usr/src/nextcloud/config/upgrade-disable-web.config.php
=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.89.0.52. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.89.0.52. Set the 'ServerName' directive globally to suppress this message
[Sat Mar 01 00:30:43.847858 2025] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.62 (Debian) PHP/8.2.27 configured -- resuming normal operations
[Sat Mar 01 00:30:43.847883 2025] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
Web Browser
If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.
Internal Server Error
Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/____
:
PASTE HERE
Configuration
Nextcloud
The output of occ config:list system
or similar is best, but, if not possible, the contents of your config.php
file from /path/to/nextcloud
is fine (make sure to remove any identifiable information!):
{
"system": {
"htaccess.RewriteBase": "\/",
"memcache.local": "\\OC\\Memcache\\APCu",
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"upgrade.disable-web": false,
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"MY_DOMAIN"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "30.0.6.2",
"overwriteprotocol": "https",
"overwrite.cli.url": "https:\/\/MY_DOMAIN",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"defaultapp": "files",
"default_phone_region": "DE",
"loglevel": 2,
"maintenance": false,
"theme": "",
"maintenance_window_start": 1,
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"app_install_overwrite": [
"dokuwiki"
]
}
}
Apps
Enabled:
- activity: 3.0.0
- app_api: 4.0.6
- bookmarks: 15.0.5
- bruteforcesettings: 3.0.0
- calendar: 5.0.10
- circles: 30.0.0
- cloud_federation_api: 1.13.0
- comments: 1.20.1
- contacts: 6.1.3
- contactsinteraction: 1.11.0
- cookbook: 0.11.2
- dashboard: 7.10.0
- dav: 1.31.1
- drawio: 3.0.3
- federatedfilesharing: 1.20.0
- federation: 1.20.0
- files: 2.2.0
- files_downloadlimit: 3.0.0
- files_pdfviewer: 3.0.0
- files_reminders: 1.3.0
- files_sharing: 1.22.0
- files_trashbin: 1.20.1
- files_versions: 1.23.0
- firstrunwizard: 3.0.0
- logreader: 3.0.0
- lookup_server_connector: 1.18.0
- nextcloud_announcements: 2.0.0
- notes: 4.11.0
- notifications: 3.0.0
- oauth2: 1.18.1
- password_policy: 2.0.0
- photos: 3.0.2
- privacy: 2.0.0
- provisioning_api: 1.20.0
- qownnotesapi: 25.2.0
- recommendations: 3.0.0
- related_resources: 1.5.0
- richdocuments: 8.5.3
- serverinfo: 2.0.0
- settings: 1.13.0
- sharebymail: 1.20.0
- support: 2.0.0
- survey_client: 2.0.0
- systemtags: 1.20.0
- tasks: 0.16.1
- text: 4.1.0
- theming: 2.6.0
- twofactor_backupcodes: 1.19.0
- twofactor_totp: 12.0.0-dev
- updatenotification: 1.20.0
- user_status: 1.10.0
- viewer: 3.0.0
- weather_status: 1.10.0
- webhook_listeners: 1.1.0-dev
- workflowengine: 2.12.0
Disabled:
- admin_audit: 1.20.0
- encryption: 2.18.0
- files_external: 1.22.0
- profile: 1.0.0
- suspicious_login: 8.0.0
- twofactor_nextcloud_notification: 4.0.0
- user_ldap: 1.21.0
Output of occ setupcheck:
dav:
✓ DAV system address book: No outstanding DAV system address book sync.
network:
✓ WebDAV endpoint: Your web server is properly set up to allow file synchronization over WebDAV.
✓ Data directory protected
✓ Internet connectivity
✓ JavaScript source map support
✓ JavaScript modules support
⚠ OCS provider resolving: Your web server is not properly set up to resolve "/ocm-provider/".
This is most likely related to a web server configuration that was not updated to deliver this folder directly.
Please compare your configuration against the shipped rewrite rules in ".htaccess" for Apache or the provided one in the documentation for Nginx.
On Nginx those are typically the lines starting with "location ~" that need an update.
⚠ .well-known URLs: Your web server is not properly set up to resolve `.well-known` URLs, failed on:
`/.well-known/webfinger`
✓ Font file loading
system:
⚠ Errors in the log: 40 errors in the logs since February 22, 2025, 1:08:50 AM
✓ Allowed admin IP ranges: Admin IP filtering isn’t applied.
ℹ Brute-force Throttle: Your remote address could not be determined.
✓ Cron errors: The last cron job ran without errors.
✓ Cron last run: Last background job execution ran 13 minutes ago.
✓ Debug mode: Debug mode is disabled.
ℹ File locking: The database is used for transactional file locking. To enhance performance, please configure memcache, if available.
✓ Maintenance window start: Maintenance window to execute heavy background jobs is between 1:00 UTC and 7:00 UTC
✓ Memcache: Configured
✓ Mimetype migrations available: None
✓ Architecture: 64-bit
✓ Temporary space available: Temporary directory is correctly configured:
- 437.8 GiB available in /tmp (PHP temporary directory)
✓ Push service: Free push service
notifications:
✓ Push notifications - Fair use policy
security:
✓ App directories owner: App directories have the correct owner "www-data"
✓ Old administration imported certificates
✓ Code integrity: No altered files
ℹ Forwarded for headers: Your remote address could not be determined.
✓ HTTPS access and URLs: You are accessing your instance over a secure connection, and your instance is generating secure URLs.
✓ Old server-side-encryption: Disabled
✓ PHP version: You are currently running PHP 8.2.27.
✓ Random generator: Secure
✗ HTTP headers: An exception occured while running the setup check:
ReflectionException: Class "OCA\Files\Controller\ConversionApiController" does not exist in /var/www/html/lib/private/Route/Router.php:450
Stack trace:
#0 /var/www/html/lib/private/Route/Router.php(450): ReflectionClass->__construct('OCA\\Files\\Contr...')
#1 /var/www/html/lib/private/Route/Router.php(410): OC\Route\Router->getAttributeRoutes('files')
#2 /var/www/html/lib/private/Route/Router.php(120): OC\Route\Router->loadAttributeRoutes('files')
#3 /var/www/html/lib/private/Route/Router.php(372): OC\Route\Router->loadRoutes()
#4 /var/www/html/lib/private/Route/CachingRouter.php(50): OC\Route\Router->generate('heartbeat', Array, false)
#5 /var/www/html/lib/private/URLGenerator.php(71): OC\Route\CachingRouter->generate('heartbeat', Array)
#6 /var/www/html/apps/settings/lib/SetupChecks/SecurityHeaders.php(43): OC\URLGenerator->linkToRoute('heartbeat')
#7 /var/www/html/lib/private/SetupCheck/SetupCheckManager.php(34): OCA\Settings\SetupChecks\SecurityHeaders->run()
#8 /var/www/html/core/Command/SetupChecks.php(56): OC\SetupCheck\SetupCheckManager->runAll()
#9 /var/www/html/3rdparty/symfony/console/Command/Command.php(326): OC\Core\Command\SetupChecks->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/html/core/Command/Base.php(161): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/html/3rdparty/symfony/console/Application.php(1078): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/html/3rdparty/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\SetupChecks), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/html/3rdparty/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/html/lib/private/Console/Application.php(183): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/html/console.php(87): OC\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput))
#16 /var/www/html/occ(11): require_once('/var/www/html/c...')
#17 {main}
database:
✓ Database missing columns: None
✓ Database missing indices: None
✓ Database missing primary keys: None
✓ Database pending bigint migrations: None
✓ MySQL Unicode support: MySQL is used as database and does support 4-byte characters
✓ Scheduling objects table size: Scheduling objects table size is within acceptable range.
✓ Database version: 10.11.9-MariaDB-ubu2204
✓ Database transaction isolation level: Read committed
config:
✓ Default phone region: DE
ℹ Email test: You have not set or verified your email server configuration, yet. Please head over to the "Basic settings" in order to set them. Afterwards, use the "Send email" button below the form to verify your settings.
✓ Overwrite CLI URL: The "overwrite.cli.url" option in your config.php is set to "https://cloud.luxfs.net" which is a correct URL. Suggested URL is "https://localhost".
✓ Configuration file access rights: Nextcloud configuration file is writable
php:
✓ PHP default charset: UTF-8
✓ PHP set_time_limit: The function is available.
✓ Freetype: Supported
✓ PHP getenv
✓ PHP memory limit: 512 MB
✓ PHP modules
✓ PHP opcache: Checking from CLI, OPcache checks have been skipped.
✓ PHP "output_buffering" option: Disabled
✓ PHP Imagick module
Every info or idea is appreciated!
I’m completely clueless in regards to php or webservers in general.
Thank you in advance.