Internal Server Error after upgrade version 15.02 ( CLOSED)

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, 12.0.2): 15.02
Operating system and version (eg, Ubuntu 17.04): Debian 9
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.25
PHP version (eg, 7.1): 7.0.33

The issue you are facing:

After upgrade to version 15.02, i see Internal Server Error
Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Automatic Update from version 14.04 to 15.02

The output of your Nextcloud log in Admin > Logging:

Can't login

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

<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' =>
  array (
    0 => ',
    1 => '',
  ),
  'trusted_proxies' =>
  array (
    0 =>
    array (
      0 => '127.0.0.1',
    ),
  ),
  'forwarded_for_headers' =>
  array (
    0 => 'HTTP_X_FORWARDED',
    1 => 'HTTP_FORWARDED_FOR',
  ),
  'forcessl' => true,
  'overwriteprotocol' => 'https',
  'datadirectory' => '/data/nextcloud',
  'overwrite.cli.url' => ',
  'dbtype' => 'mysql',
  'version' => '14.0.4.2',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '',
  'mail_from_address' => '',
  'mail_domain' => '',
  'mail_smtpport' => '587',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.secret' => '',
);

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

PHP Fatal error: Uncaught TypeError: preg_match() expects parameter 2 to be string, array given in /var/www/html/nextcloud/lib/private/AppFramework/Http/Request.php:612\nStack trace:\n#0 /var/www/html/nextcloud/lib/private/AppFramework/Http/Request.php(612): preg_match(’/^([0-9]{1,3}\\…’, Array, NULL)\n#1 /var/www/html/nextcloud/lib/private/AppFramework/Http/Request.php(631): OC\AppFramework\Http\Request->matchesTrustedProxy(Array, ‘10.0.2.2’)\n#2 /var/www/html/nextcloud/lib/private/AppFramework/Http/Request.php(650): OC\AppFramework\Http\Request->isTrustedProxy(Array, ‘10.0.2.2’)\n#3 /var/www/html/nextcloud/lib/private/Log/File.php(99): OC\AppFramework\Http\Request->getRemoteAddress()\n#4 /var/www/html/nextcloud/lib/private/Log.php(329): OC\Log\File->write(‘PHP’, ‘TypeError: preg…’, 3)\n#5 /var/www/html/nextcloud/lib/private/Log.php(218): OC\Log->writeLog(‘PHP’, ‘TypeError: preg…’, 3)\n#6 /var/www/html/nextcloud/lib/private/Log.php(130): OC\Log->log(3, ‘TypeError: preg…’, Array)\n#7 /var/www/html/nextcloud/lib/private/Log/Er in /var/www/html/nextcloud/lib/private/AppFramework/Http/Request.php on line 612



thanks a lot

Solved, the problem was in config .php

‘trusted_proxies’ =>
array (
0 =>
array (
0 => ‘127.0.0.1’,
),
),

Change to

‘trusted_proxies’ =>
array (
0 => ‘127.0.0.1’,
),

an the updater finish.

Considered closed issues