[Nextcloud on YunoHost] Internal Server Error After Rollback & PHP 8.3 Issues

The Basics

  • Nextcloud Server version: 30.0.6~ynh1 (current) → 30.0.6~ynh3 (available)`
  • Operating system and version: YunoHost 12.0.12 (stable) (Debian-based)
  • Web server and version: Nginx (default for YunoHost)
  • Reverse proxy and version: YunoHost's built-in Nginx proxy
  • PHP version: PHP 8.3 (confirmed via occ status)
    • Note: PHP 8.2 is also installed and running on YunoHost, but Nextcloud uses PHP 8.3.
  • Is this the first time you’ve seen this error?: No
  • When did this problem seem to first start?:
    • After attempting to generate thumbnails in the Photos app, which caused memory issues.
    • I rolled back to a backup (30.0.6) but the issue persists.
  • Installation method: Installed via YunoHost app system
  • Are you using Cloudflare, mod_security, or similar?: No

Summary of the Issue

I have Nextcloud 30.0.6~ynh1 installed via YunoHost 12.0.12.

  • The issue started after attempting to generate thumbnails in the Photos app, which caused memory problems.
  • Due to this, I rolled back to the latest backup (30.0.6).
  • I can still browse files from my iPhone, and it is successfully uploading photos I take.
  • The Nextcloud app installed on my Windows 10 PC is still functioning correctly.
  • However, when I attempt to open Nextcloud in a browser, I get the following error and no connectivity:

Error Message:

Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.


Steps to Replicate the Issue

  1. Generated thumbnails in the Photos app.
  2. Experienced memory issues.
  3. Rolled back to a backup of Nextcloud 30.0.6.
  4. Now, Nextcloud in a browser displays an Internal Server Error, but:
  • iPhone file browsing still works.
  • The Windows 10 Nextcloud app still syncs files.

Log Files

I have attached sanitized logs for reference:

  • Nginx Error Log (error.log)
  • PHP 8.2-FPM Log (php8.2-fpm.log)
  • PHP 8.3-FPM Log (php8.3-fpm.log)

Current Status

  • After rolling back to the backup and restarting services, Nextcloud is still not reachable in a browser.
  • Nextcloud sync works on iPhone & Windows, but the web interface is inaccessible.
  • No new critical errors in logs after changes.
  • Still seeing “Internal Server Error” on web access.

Next Steps & Request for Help

  1. What else can I check or reconfigure to restore web access?
  2. Are there any known issues with PHP 8.3-FPM in YunoHost affecting Nextcloud?
  3. Should I downgrade to PHP 8.2, and if so, how can I safely do it?
  4. Are my Nginx settings correct, or should I reconfigure it differently?

:bulb: Any guidance from the community would be greatly appreciated!

I’ll continue monitoring logs and can provide additional information if needed. :rocket:

nextcloud_cleaned.pdf (289.0 KB)
sanitized_php8.3-fpm.pdf (6.8 KB)
sanitized_php8.2-fpm.pdf (2.7 KB)
sanitized_error.pdf (1.3 KB)

In the first log nextcloud_cleaned.pdf i found var/www/nextcloud/apps/files_antivirus. Can you uninstall or deactivate the app Antivirus for files and test again? Even if it may not cause the problem. Perhaps it will then be easier to recognise.

Thank you for the response here is the output from your suggested action

I removed and rebooted using `root@42:~# sudo -u nextcloud php /var/www/nextcloud/occ app:remove files_antivirus
files_antivirus disabled
files_antivirus 5.6.1 removed
root@42:~# sudo reboot

Broadcast message from root@ on pts/1 (Tue 2025-03-18 19:13:57 AEDT):

The system will reboot now!

root@42:~#
`
as you suggested it hasn’t solved the problem but removed one interfearing error

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

root@42
[sanitized_nextcloud_log.pdf|attachment](upload://wLdJQMpACIDU420IcLaPFk8DNys.pdf) (314.3 KB)
:~# sudo -u nextcloud php /var/www/nextcloud/occ status
  - installed: true
  - version: 30.0.6.2
  - versionstring: 30.0.6
  - edition:
  - maintenance: false
  - needsDbUpgrade: false
  - productname: Nextcloud
  - extendedSupport: false
root@42:~#

A new version appeared and after installation everything is working properly.

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