Child pid XX exit signal Segmentation fault

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: 27.0.2
Operating system and version: Ubuntu 22.04
Apache or nginx version: 2.4.57
PHP version: 8.2.10

The issue you are facing:

After Watchtower updated my nextcloud docker it doesn’t start any more

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

Steps to replicate it:

  1. docker compose up

The output of your Nextcloud log in Admin > Logging:
Webinterface is not reachable

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

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => 'xxxxx',
  'passwordsalt' => 'xxxxx',
  'secret' => 'xxxxx',
  'trusted_domains' => 
  array (
    0 => '192.168.11.3:8080',
    1 => 'cloud.example.com',
    2 => 'app',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '27.0.2.1',
  'overwrite.cli.url' => 'https://cloud.example.com',
  'dbname' => 'nextcloud',
  'dbhost' => 'db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'xxxxx',
  'installed' => true,
  'overwriteprotocol' => 'https',
  'maintenance' => false,
  'app_install_overwrite' => 
  array (
    0 => 'files_external_gdrive',
    1 => 'documentserver_community',
  ),
  'loglevel' => 0,
  'app.mail.verify-tls-peer' => false,
  'theme' => '',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'redis',
    'password' => false,
    'port' => 6379,
  ),
  'default_phone_region' => 'DE',
  'allow_local_remote_servers' => true,
  'mail_from_address' => 'no-reply',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'example.com',
  'mail_smtphost' => 'smtp',
);

The output of your Apache/nginx/system log in /var/log/____:
/var/log/apache2/error.log is a device file No idea what that means

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.

# cat nextcloud.log | grep "\"level\":3"
{"reqId":"BwSahmaXhcBuieS01Xat","level":3,"time":"2023-09-13T07:50:02+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"27.0.2.1","data":{"app":"core"}}
{"reqId":"BwSahmaXhcBuieS01Xat","level":3,"time":"2023-09-13T07:50:02+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"27.0.2.1","data":{"app":"core"}}
{"reqId":"BwSahmaXhcBuieS01Xat","level":3,"time":"2023-09-13T08:09:50+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) at /var/www/html/3rdparty/phpseclib/phpseclib/phpseclib/Net/SFTP.php#3306","userAgent":"--","version":"27.0.2.1","data":{"app":"PHP"}}
{"reqId":"ysYgRPPXhh3TaJE3R9F7","level":3,"time":"2023-09-13T19:50:02+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"27.0.2.1","data":{"app":"core"}}
{"reqId":"ysYgRPPXhh3TaJE3R9F7","level":3,"time":"2023-09-13T19:50:02+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"27.0.2.1","data":{"app":"core"}}
{"reqId":"ysYgRPPXhh3TaJE3R9F7","level":3,"time":"2023-09-13T20:13:05+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Allowed memory size of 536870912 bytes exhausted (tried to allocate 16384 bytes) at /var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php#101","userAgent":"--","version":"27.0.2.1","data":{"app":"PHP"}}
{"reqId":"FDvpZwMYzBXnxpgQpJJm","level":3,"time":"2023-09-14T07:50:02+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"27.0.2.1","data":{"app":"core"}}
{"reqId":"FDvpZwMYzBXnxpgQpJJm","level":3,"time":"2023-09-14T07:50:02+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"27.0.2.1","data":{"app":"core"}}
{"reqId":"KLEEe4HijbXJwNtwibh2","level":3,"time":"2023-09-14T19:50:02+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"27.0.2.1","data":{"app":"core"}}
{"reqId":"KLEEe4HijbXJwNtwibh2","level":3,"time":"2023-09-14T19:50:02+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"27.0.2.1","data":{"app":"core"}}
{"reqId":"KLEEe4HijbXJwNtwibh2","level":3,"time":"2023-09-14T20:12:59+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Allowed memory size of 536870912 bytes exhausted (tried to allocate 16384 bytes) at /var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php#101","userAgent":"--","version":"27.0.2.1","data":{"app":"PHP"}}

Command line output:

nextcloud-app-1    | [Fri Sep 15 19:19:17.425827 2023] [core:notice] [pid 1] AH00051: child pid 141 exit signal Segmentation fault (11), possible coredump in /etc/apache2
nextcloud-db-1     | 2023-09-15 19:19:56 184 [Warning] Aborted connection 184 to db: 'nextcloud' user: 'nextcloud' host: '192.168.16.5' (Got an error reading communication packets)
nextcloud-app-1    | [Fri Sep 15 19:19:56.464573 2023] [core:notice] [pid 1] AH00051: child pid 153 exit signal Segmentation fault (11), possible coredump in /etc/apache2
nextcloud-db-1     | 2023-09-15 19:20:18 186 [Warning] Aborted connection 186 to db: 'nextcloud' user: 'nextcloud' host: '192.168.16.5' (Got an error reading communication packets)
nextcloud-db-1     | 2023-09-15 19:20:18 187 [Warning] Aborted connection 187 to db: 'nextcloud' user: 'nextcloud' host: '192.168.16.5' (Got an error reading communication packets)
nextcloud-app-1    | 162.158.111.34 - User [15/Sep/2023:19:20:19 +0000] "GET /status.php HTTP/1.1" 200 1028 "-" "Mozilla/5.0 (Linux) mirall/3.9.3git (Nextcloud, manjaro-6.1.51-1-MANJARO ClientArchitecture: x86_64 OsArchitecture: x86_64)"
nextcloud-app-1    | 162.158.111.34 - User [15/Sep/2023:19:20:19 +0000] "PROPFIND /remote.php/dav/files/User/ HTTP/1.1" 503 842 "-" "Mozilla/5.0 (Linux) mirall/3.9.3git (Nextcloud, manjaro-6.1.51-1-MANJARO ClientArchitecture: x86_64 OsArchitecture: x86_64)"
nextcloud-app-1    | [Fri Sep 15 19:20:19.488441 2023] [core:notice] [pid 1] AH00051: child pid 147 exit signal Segmentation fault (11), possible coredump in /etc/apache2
nextcloud-app-1    | [Fri Sep 15 19:20:19.488488 2023] [core:notice] [pid 1] AH00051: child pid 156 exit signal Segmentation fault (11), possible coredump in /etc/apache2

1 Like

I have exactly the same problem after updating to the docker:latest container.

I restored a backup, but I still get the same error. so I guess nextcloud is broken and not my docker volumes

Does someone have an idea what the root of the problem is? Did I break my database or is the image on docker hub buggy?

Or in other word, would it help to reinstall nextcloud or should I wait for an update?

Next update: I restored a really old database dumb from 2021 and still get the segmentation fault

Final update: Updating to 27.1 didn’t help.

I fixed it by downgrading. I know it’s not supported and not recommended, but it worked. To do that

  1. Pin your nextcloud image version to i.e. 27.0.1
  2. in your version.php set $OC_Version = array(27,0,1,2); and $OC_VersionString = '27.0.1';
  3. in config/config.php set 'version' => '27.0.1.2'