Internal error - does my php installation is correct?

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): ‘27.1’
Operating system and version (eg, Ubuntu 20.04): Fedora 38
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.57
PHP version (eg, 7.4): 8.2

The issue you are facing:
After aupgrading Fedora from 37 to 38, I can’t anymore open the cloud, and get

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.

As far as had read in this forum, it is usually a problem with php. Since I did an upgrade of the whole system, it could be the reason of that issue.

The problem is that there are no logs from nextcloud.

If you read the logs from apache you can see a problem with headers, but I do not change anything in the nextcloud files which could have an impact on the headers ( how could I do it ? …), this a reason why, may be, php can be suspected.
I put the list of php packages installed in my server.
Thanks for your help.

Is this the first time you’ve seen this error? Y:

Steps to replicate it:

  1. go to http://nuage.dennet.eu

The output of your Nextcloud log in Admin > Logging:

I don't know

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' =>
  array (
    0 => 'www.nuage.dennet.eu',
    1 => 'nuage.dennet.eu',
    2 => 'vps',
    3 => 'localhost',
  ),
  'datadirectory' => '/srv/nuage_data/',
  'dbtype' => 'pgsql',
  'version' => '27.1.1.0',
  'overwrite.cli.url' => 'http://wwww.nuage.dennet.eu',
  'dbname' => 'mynuage',
  'dbhost' => 'localhost:5434',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'xxx',
  'dbpassword' => 'xxx',
  'installed' => true,
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\ArrayCache',
  'mail_domain' => 'dennet.eu',
  'mail_from_address' => 'wwwadmin',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_smtpport' => '465',
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',
  'mail_smtphost' => 'ssl0.ovh.net',
  'loglevel' => 0,
  'log_type' => 'file',
  'logfile' => '/srv/logs/nuage-erreurs.log',
  'activity_expire_days' => 100,
  'theme' => '',
  'data-fingerprint' => '7cb28ccf81bcccfd4a41cee424fdf12c',
  'default_language' => 'fr',
  'default_locale' => 'fr_FR',
  'default_phone_region' => 'FR',
  'knowledgebaseenabled' => true,
  'allow_user_to_change_display_name' => true,
);

The output of your Apache/nginx/system log in /var/log/____:

[Sun Oct 01 07:12:03.072357 2023] [headers:debug] [pid 53740:tid 53740] mod_headers.c(890): AH01503: headers: ap_headers_error_filter()
[Sun Oct 01 07:12:20.309725 2023] [authz_core:debug] [pid 53802:tid 53802] mod_authz_core.c(815): [client 88.142.37.77:43100] AH01626: authorization result of Require all granted: granted
[Sun Oct 01 07:12:20.309756 2023] [authz_core:debug] [pid 53802:tid 53802] mod_authz_core.c(815): [client 88.142.37.77:43100] AH01626: authorization result of <RequireAny>: granted
[Sun Oct 01 07:12:20.309818 2023] [authz_core:debug] [pid 53802:tid 53802] mod_authz_core.c(815): [client 88.142.37.77:43100] AH01626: authorization result of Require all granted: granted
[Sun Oct 01 07:12:20.309828 2023] [authz_core:debug] [pid 53802:tid 53802] mod_authz_core.c(815): [client 88.142.37.77:43100] AH01626: authorization result of <RequireAny>: granted
[Sun Oct 01 07:12:20.309856 2023] [proxy:debug] [pid 53802:tid 53802] mod_proxy.c(1511): [client 88.142.37.77:43100] AH01143: Running scheme unix handler (attempt 0)
[Sun Oct 01 07:12:20.309876 2023] [proxy_ajp:debug] [pid 53802:tid 53802] mod_proxy_ajp.c(795): [client 88.142.37.77:43100] AH00894: declining URL fcgi://localhost/var/www/nuage/index.php
[Sun Oct 01 07:12:20.309898 2023] [proxy_fcgi:debug] [pid 53802:tid 53802] mod_proxy_fcgi.c(1069): [client 88.142.37.77:43100] AH01076: url: fcgi://localhost/var/www/nuage/index.php proxyname: (null) proxyport: 0
[Sun Oct 01 07:12:20.309904 2023] [proxy_fcgi:debug] [pid 53802:tid 53802] mod_proxy_fcgi.c(1078): [client 88.142.37.77:43100] AH01078: serving URL fcgi://localhost/var/www/nuage/index.php
[Sun Oct 01 07:12:20.309910 2023] [proxy:debug] [pid 53802:tid 53802] proxy_util.c(2568): AH00942: FCGI: has acquired connection for (*:80)
[Sun Oct 01 07:12:20.309920 2023] [proxy:debug] [pid 53802:tid 53802] proxy_util.c(2626): [client 88.142.37.77:43100] AH00944: connecting fcgi://localhost/var/www/nuage/index.php to localhost:8000
[Sun Oct 01 07:12:20.309926 2023] [proxy:debug] [pid 53802:tid 53802] proxy_util.c(2662): [client 88.142.37.77:43100] AH02545: fcgi: has determined UDS as /run/php-fpm/www.sock
[Sun Oct 01 07:12:20.310058 2023] [proxy:debug] [pid 53802:tid 53802] proxy_util.c(2849): [client 88.142.37.77:43100] AH00947: connected /var/www/nuage/index.php to httpd-UDS:0
[Sun Oct 01 07:12:20.310249 2023] [proxy:debug] [pid 53802:tid 53802] proxy_util.c(3218): AH02823: FCGI: connection established with Unix domain socket /run/php-fpm/www.sock (*:80)
[Sun Oct 01 07:12:20.344999 2023] [proxy:debug] [pid 53802:tid 53802] proxy_util.c(2584): AH00943: FCGI: has released connection for (*:80)
[Sun Oct 01 07:12:20.426255 2023] [core:debug] [pid 53742:tid 53742] protocol.c(511): NULL bytes in header (36 bytes)
[Sun Oct 01 07:12:20.426293 2023] [core:debug] [pid 53742:tid 53742] protocol.c(511): .............;.. 1603010200010001fc0303ffbb3ba0d2
[Sun Oct 01 07:12:20.426301 2023] [core:debug] [pid 53742:tid 53742] protocol.c(511): ..U....Vo...~CQ. b1fc55b1d193ff566fbc87157e4351ea
[Sun Oct 01 07:12:20.426309 2023] [core:debug] [pid 53742:tid 53742] protocol.c(511): ....             b1ca2e0a                        
[Sun Oct 01 07:12:20.426319 2023] [core:debug] [pid 53742:tid 53742] protocol.c(1449): [client 88.142.37.77:52138] AH00566: request failed: malformed request line
[Sun Oct 01 07:12:20.426339 2023] [headers:debug] [pid 53742:tid 53742] mod_headers.c(890): AH01503: headers: ap_headers_error_filter()
[Sun Oct 01 07:12:20.473142 2023] [core:debug] [pid 53738:tid 53738] protocol.c(511): NULL bytes in header (112 bytes)
[Sun Oct 01 07:12:20.473176 2023] [core:debug] [pid 53738:tid 53738] protocol.c(511): .............k.J 1603010200010001fc0303af156bf74a
[Sun Oct 01 07:12:20.473181 2023] [core:debug] [pid 53738:tid 53738] protocol.c(511): .@.3Q9)c........ 0c40a9335139296391dbf9ea8cbfbf89
[Sun Oct 01 07:12:20.473186 2023] [core:debug] [pid 53738:tid 53738] protocol.c(511): ....J.B3.Q. .WL. 9db098da4ae242330f519820bf574c03
[Sun Oct 01 07:12:20.473190 2023] [core:debug] [pid 53738:tid 53738] protocol.c(511): n..W.9.!+.!.).%. 6ecde057c03907212bc4218e29bc259a
[Sun Oct 01 07:12:20.473195 2023] [core:debug] [pid 53738:tid 53738] protocol.c(511): ...G../...}..".. 83f4ee471c132f931c0d7d1600229a9a
[Sun Oct 01 07:12:20.473199 2023] [core:debug] [pid 53738:tid 53738] protocol.c(511): .......+./.,.0.. 130113021303c02bc02fc02cc030cca9
[Sun Oct 01 07:12:20.473204 2023] [core:debug] [pid 53738:tid 53738] protocol.c(511): .........../.5.. cca8c013c014009c009d002f0035000a
[Sun Oct 01 07:12:20.473212 2023] [core:debug] [pid 53738:tid 53738] protocol.c(1449): [client 88.142.37.77:52140] AH00566: request failed: malformed request line
[Sun Oct 01 07:12:20.473226 2023] [headers:debug] [pid 53738:tid 53738] mod_headers.c(890): AH01503: headers: ap_headers_error_filter()

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

empty

The php packages installed :

 dnf list installed php\*
Paquets installés
php.x86_64                                                       8.2.10-1.fc38                                               @updates
php-IDNA_Convert.noarch                                          0.8.0-19.fc38                                               @fedora 
php-bcmath.x86_64                                                8.2.10-1.fc38                                               @updates
php-cli.x86_64                                                   8.2.10-1.fc38                                               @updates
php-common.x86_64                                                8.2.10-1.fc38                                               @updates
php-dba.x86_64                                                   8.2.10-1.fc38                                               @updates
php-email-address-validation.noarch                              2.0.1-7.fc38                                                @fedora 
php-fedora-autoloader.noarch                                     1.0.1-10.fc38                                               @fedora 
php-fpm.x86_64                                                   8.2.10-1.fc38                                               @updates
php-gd.x86_64                                                    8.2.10-1.fc38                                               @updates
php-geos.x86_64                                                  1.0.0-26.fc38                                               @fedora 
php-geshi.noarch                                                 1.0.9.1-12.20230219git7884d22.fc38                          @updates
php-gmp.x86_64                                                   8.2.10-1.fc38                                               @updates
php-intl.x86_64                                                  8.2.10-1.fc38                                               @updates
php-kissifrot-php-ixr.noarch                                     1.8.3-3.20220717git4a17452.fc38                             @fedora 
php-ldap.x86_64                                                  8.2.10-1.fc38                                               @updates
php-marcusschwarz-lesserphp.noarch                               0.6.0-5.fc38                                                @fedora 
php-mbstring.x86_64                                              8.2.10-1.fc38                                               @updates
php-mysqlnd.x86_64                                               8.2.10-1.fc38                                               @updates
php-odbc.x86_64                                                  8.2.10-1.fc38                                               @updates
php-opcache.x86_64                                               8.2.10-1.fc38                                               @updates
php-openpsa-universalfeedcreator.noarch                          1.8.5-1.fc38                                                @updates
php-paragonie-random-compat.noarch                               2.0.18-9.fc38                                               @fedora 
php-pdo.x86_64                                                   8.2.10-1.fc38                                               @updates
php-pecl-imagick.x86_64                                          3.7.0-6.fc38                                                @fedora 
php-pecl-ssh2.x86_64                                             1.4-1.fc38                                                  @updates
php-pecl-xdebug3.x86_64                                          3.2.2-1.fc38                                                @updates
php-pecl-zip.x86_64                                              1.21.1-2.fc38                                               @fedora 
php-pgsql.x86_64                                                 8.2.10-1.fc38                                               @updates
php-phpmailer6.noarch                                            6.8.1-1.fc38                                                @updates
php-phpseclib.noarch                                             2.0.44-1.fc38                                               @updates
php-process.x86_64                                               8.2.10-1.fc38                                               @updates
php-simplepie.noarch                                             1.8.0-1.fc38                                                @fedora 
php-sodium.x86_64                                                8.2.10-1.fc38                                               @updates
php-splitbrain-php-archive.noarch                                1.3.1-3.fc38                                                @fedora 
php-splitbrain-php-cli.noarch                                    1.2.1-1.fc38                                                @updates
php-splitbrain-php-jsstrip.noarch                                1.0.1-2.fc38                                                @updates
php-splitbrain-slika.noarch                                      1.0.5-4.fc38                                                @fedora 
php-xml.x86_64                                                   8.2.10-1.fc38                                               @updates
[fedora@vps-395cf409 ~]$ php -v
PHP 8.2.10 (cli) (built: Aug 29 2023 15:31:38) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.2.10, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.10, Copyright (c), by Zend Technologies
    with Xdebug v3.2.2, Copyright (c) 2002-2023, by Derick Rethans

Solved !!!

Stupidly, after upgrading the système from Fedora 37 to 38, I focused too much on services… and… and what ?.. I just forgot to lunch and reconfigure the new postgresql server ! :rofl:

Well, so, after that and performing occ databse maintenance just to make sure everything is al right, it works !