Update to 27.1.2.1 from 27.0.2.1 (Docker)

Ubuntu 18.04.6 LTS as a docker host
Nextcloud 27.1.2.1 in a docker image (upgrading from 27.0.2.1)
Postgres 12 in a docker image
(all with docker-compose)

The upgrade is abording with a Segmentation fault:

www-data@db343a3fb1e6:~/html$ ./occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Updating database schema
Updated database
Segmentation fault

The output of your Nextcloud log in Admin > Logging:

{"reqId":"VeLdUq35nImmOAe2y06b","level":0,"time":"2023-10-12T18:37:06+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"starting upgrade from 27.0.2.1 to 27.1.2.1","userAgent":"--","version":"27.0.2.1","data":{"app":"core"}}
{"reqId":"VeLdUq35nImmOAe2y06b","level":1,"time":"2023-10-12T18:37:06+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Repair MySQL collation","userAgent":"--","version":"27.0.2.1","data":{"app":"updater"}}
{"reqId":"VeLdUq35nImmOAe2y06b","level":1,"time":"2023-10-12T18:37:06+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairInfoEvent: Repair info: Not a mysql database -> nothing to do","userAgent":"--","version":"27.0.2.1","data":{"app":"updater"}}
{"reqId":"VeLdUq35nImmOAe2y06b","level":1,"time":"2023-10-12T18:37:06+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Repair SQLite autoincrement","userAgent":"--","version":"27.0.2.1","data":{"app":"updater"}}
{"reqId":"VeLdUq35nImmOAe2y06b","level":1,"time":"2023-10-12T18:37:06+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Copy data from accounts table when migrating from ownCloud","userAgent":"--","version":"27.0.2.1","data":{"app":"updater"}}
{"reqId":"VeLdUq35nImmOAe2y06b","level":1,"time":"2023-10-12T18:37:07+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Drop account terms table when migrating from ownCloud","userAgent":"--","version":"27.0.2.1","data":{"app":"updater"}}
{"reqId":"VeLdUq35nImmOAe2y06b","level":1,"time":"2023-10-12T18:37:07+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::dbUpgradeBefore: Updating database schema","userAgent":"--","version":"27.0.2.1","data":{"app":"updater"}}
{"reqId":"VeLdUq35nImmOAe2y06b","level":1,"time":"2023-10-12T18:37:07+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::dbUpgrade: Updated database","userAgent":"--","version":"27.0.2.1","data":{"app":"updater"}}
{"reqId":"1aaVgsJpEsOfUIZ9SF14","level":1,"time":"2023-10-12T18:38:03+00:00","remoteAddr":"178.27.145.54","user":"--","app":"no app in context","method":"GET","url":"/index.php/204","message":"Unable to generate a URL for the named route \"cloud_federation_api.RequestHandler.addShare\" as such route does not exist.","userAgent":"Mozilla/5.0 (Windows) mirall/3.10.0stable-Win64 (build 20230915) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"27.0.2.1","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"cloud_federation_api.RequestHandler.addShare\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Route/Router.php","line":380,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->","args":["cloud_federation_api.RequestHandler.addShare",[],1]},{"file":"/var/www/html/lib/private/Route/CachingRouter.php","line":65,"function":"generate","class":"OC\\Route\\Router","type":"->","args":["cloud_federation_api.RequestHandler.addShare",[],false]},{"file":"/var/www/html/lib/private/URLGenerator.php","line":103,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->","args":["cloud_federation_api.requesthandlercontroller.addShare",[]]},{"file":"/var/www/html/lib/private/URLGenerator.php","line":115,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->","args":["cloud_federation_api.requesthandlercontroller.addShare",[]]},{"file":"/var/www/html/apps/cloud_federation_api/lib/Capabilities.php","line":62,"function":"linkToRouteAbsolute","class":"OC\\URLGenerator","type":"->","args":["cloud_federation_api.requesthandlercontroller.addShare"]},{"file":"/var/www/html/lib/private/CapabilitiesManager.php","line":74,"function":"getCapabilities","class":"OCA\\CloudFederationAPI\\Capabilities","type":"->","args":[]},{"file":"/var/www/html/lib/private/Template/JSConfigHelper.php","line":166,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->","args":[false,true]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":240,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["guest",""]},{"file":"/var/www/html/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":304,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1011,"function":"checkMaintenanceMode","class":"OC","type":"::","args":[["OC\\SystemConfig"]]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"message":"Unable to generate a URL for the named route \"cloud_federation_api.RequestHandler.addShare\" as such route does not exist.","exception":{},"CustomMessage":"Unable to generate a URL for the named route \"cloud_federation_api.RequestHandler.addShare\" as such route does not exist."}}
{"reqId":"1aaVgsJpEsOfUIZ9SF14","level":1,"time":"2023-10-12T18:38:03+00:00","remoteAddr":"178.27.145.54","user":"--","app":"no app in context","method":"GET","url":"/index.php/204","message":"Unable to generate a URL for the named route \"ocs.password_policy.API.generate\" as such route does not exist.","userAgent":"Mozilla/5.0 (Windows) mirall/3.10.0stable-Win64 (build 20230915) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"27.0.2.1","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"ocs.password_policy.API.generate\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Route/Router.php","line":380,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->","args":["ocs.password_policy.API.generate",[],1]},{"file":"/var/www/html/lib/private/Route/CachingRouter.php","line":65,"function":"generate","class":"OC\\Route\\Router","type":"->","args":["ocs.password_policy.API.generate",[],false]},{"file":"/var/www/html/lib/private/URLGenerator.php","line":119,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->","args":["ocs.password_policy.API.generate",[],false]},{"file":"/var/www/html/apps/password_policy/lib/Capabilities.php","line":58,"function":"linkToOCSRouteAbsolute","class":"OC\\URLGenerator","type":"->","args":["password_policy.API.generate"]},{"file":"/var/www/html/lib/private/CapabilitiesManager.php","line":74,"function":"getCapabilities","class":"OCA\\Password_Policy\\Capabilities","type":"->","args":[]},{"file":"/var/www/html/lib/private/Template/JSConfigHelper.php","line":166,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->","args":[false,true]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":240,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["guest",""]},{"file":"/var/www/html/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":304,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1011,"function":"checkMaintenanceMode","class":"OC","type":"::","args":[["OC\\SystemConfig"]]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"message":"Unable to generate a URL for the named route \"ocs.password_policy.API.generate\" as such route does not exist.","exception":{},"CustomMessage":"Unable to generate a URL for the named route \"ocs.password_policy.API.generate\" as such route does not exist."}}
{"reqId":"1aaVgsJpEsOfUIZ9SF14","level":1,"time":"2023-10-12T18:38:03+00:00","remoteAddr":"178.27.145.54","user":"--","app":"no app in context","method":"GET","url":"/index.php/204","message":"Unable to generate a URL for the named route \"ocs.password_policy.API.validate\" as such route does not exist.","userAgent":"Mozilla/5.0 (Windows) mirall/3.10.0stable-Win64 (build 20230915) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"27.0.2.1","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"ocs.password_policy.API.validate\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Route/Router.php","line":380,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->","args":["ocs.password_policy.API.validate",[],1]},{"file":"/var/www/html/lib/private/Route/CachingRouter.php","line":65,"function":"generate","class":"OC\\Route\\Router","type":"->","args":["ocs.password_policy.API.validate",[],false]},{"file":"/var/www/html/lib/private/URLGenerator.php","line":119,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->","args":["ocs.password_policy.API.validate",[],false]},{"file":"/var/www/html/apps/password_policy/lib/Capabilities.php","line":59,"function":"linkToOCSRouteAbsolute","class":"OC\\URLGenerator","type":"->","args":["password_policy.API.validate"]},{"file":"/var/www/html/lib/private/CapabilitiesManager.php","line":74,"function":"getCapabilities","class":"OCA\\Password_Policy\\Capabilities","type":"->","args":[]},{"file":"/var/www/html/lib/private/Template/JSConfigHelper.php","line":166,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->","args":[false,true]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":240,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["guest",""]},{"file":"/var/www/html/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":304,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1011,"function":"checkMaintenanceMode","class":"OC","type":"::","args":[["OC\\SystemConfig"]]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"message":"Unable to generate a URL for the named route \"ocs.password_policy.API.validate\" as such route does not exist.","exception":{},"CustomMessage":"Unable to generate a URL for the named route \"ocs.password_policy.API.validate\" as such route does not exist."}}

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,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'redis',
    'port' => 6379,
    'password' => false,
  ),
  'passwordsalt' => '<REMOVED>',
  'secret' => '<REMOVED>',
  'trusted_domains' =>
  array (
    0 => 'mydomain.tld',
  ),
  'trusted_proxies' =>
  array (
    0 => '192.168.0.0/16',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'pgsql',
  'version' => '27.0.2.1',
  'overwrite.cli.url' => 'https://mydomain.tld',
  'dbname' => 'nextcloud',
  'dbhost' => 'postgres',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_admin',
  'dbpassword' => '<REMOVED>',
  'installed' => true,
  'instanceid' => '<REMOVED>',
  'maintenance' => true,
  'theme' => '',
  'loglevel' => 0,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauth' => true,
  'mail_smtphost' => '<REMOVED>',
  'mail_smtpport' => '465',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'noreply',
  'mail_domain' => 'mydomain.tld',
  'mail_smtpname' => 'noreply@mydomain.tld',
  'mail_smtppassword' => '<REMOVED>',
  'app_install_overwrite' =>
  array (
    0 => 'twofactor_yubikey',
    1 => 'drawio',
    2 => 'bruteforcesettings',
    3 => 'twofactor_gateway',
    4 => 'files_downloadactivity',
    5 => 'files_mindmap',
    6 => 'event_update_notification',
    7 => 'quota_warning',
    8 => 'ransomware_protection',
    9 => 'richdocumentscode',
    10 => 'files_trackdownloads',
    11 => 'files_bpm',
    12 => 'impersonate',
  ),
  'default_language' => 'de_DE',
  'overwriteprotocol' => 'https',
  'overwritehost' => 'mydomain.tld',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' =>
  array (
    0 => 'admin',
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
  'encryption.legacy_format_support' => false,
  'encryption.key_storage_migrated' => false,
  'simpleSignUpLink.shown' => false,
  'default_phone_region' => 'DE',
  'force_language' => 'de',
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
);

Apache-Log (from docker console)

nextcloud-compose-removed-nextcloud-1  | 178.27.145.54 - juergen [12/Oct/2023:19:01:49 +0000] "GET /status.php HTTP/1.1" 200 1027 "-" "Mozilla/5.0 (Windows) mirall/3.10.0stable-Win64 (build 20230915) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
nextcloud-compose-removed-nextcloud-1  | [Thu Oct 12 19:01:50.110630 2023] [core:notice] [pid 1] AH00052: child pid 205 exit signal Segmentation fault (11)
nextcloud-compose-removed-nextcloud-1  | [Thu Oct 12 19:01:50.110707 2023] [core:notice] [pid 1] AH00052: child pid 206 exit signal Segmentation fault (11)
nextcloud-compose-removed-nextcloud-1  | [Thu Oct 12 19:01:50.110721 2023] [core:notice] [pid 1] AH00052: child pid 234 exit signal Segmentation fault (11)
nextcloud-compose-removed-nextcloud-1  | [Thu Oct 12 19:01:50.110734 2023] [core:notice] [pid 1] AH00052: child pid 244 exit signal Segmentation fault (11)
nextcloud-compose-removed-nextcloud-1  | [Thu Oct 12 19:01:52.114241 2023] [core:notice] [pid 1] AH00052: child pid 245 exit signal Segmentation fault (11)

Output from docker inspect:

[
    {
        "Id": "db343a3fb1e6d08ef080800e9aa9945fec2c3801077055d9a00a0be5cf643ee9",
        "Created": "2023-10-12T18:13:51.760178986Z",
        "Path": "/entrypoint.sh",
        "Args": [
            "apache2-foreground"
        ],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 17062,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2023-10-12T18:13:53.60296143Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:9f71661a8f02bd4584561c1d4ef4cf52f04fb4393d040c7ebcbdc585309d899e",
        "ResolvConfPath": "/var/lib/docker/containers/db343a3fb1e6d08ef080800e9aa9945fec2c3801077055d9a00a0be5cf643ee9/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/db343a3fb1e6d08ef080800e9aa9945fec2c3801077055d9a00a0be5cf643ee9/hostname",
        "HostsPath": "/var/lib/docker/containers/db343a3fb1e6d08ef080800e9aa9945fec2c3801077055d9a00a0be5cf643ee9/hosts",
        "LogPath": "/var/lib/docker/containers/db343a3fb1e6d08ef080800e9aa9945fec2c3801077055d9a00a0be5cf643ee9/db343a3fb1e6d08ef080800e9aa9945fec2c3801077055d9a00a0be5cf643ee9-json.log",
        "Name": "/nextcloud-compose-removed-nextcloud-1",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/home/docker.run/nextcloud-compose-removed/volumes/nextcloud:/var/www/html:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "traefik_proxy",
            "PortBindings": {
                "80/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": ""
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "always",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                0,
                0
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "host",
            "Dns": null,
            "DnsOptions": null,
            "DnsSearch": null,
            "ExtraHosts": [],
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": null,
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": false,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "Mounts": [
                {
                    "Type": "bind",
                    "Source": "/home/docker.run/nextcloud-compose-removed/secrets/db_password.txt",
                    "Target": "/run/secrets/db_password",
                    "ReadOnly": true
                },
                {
                    "Type": "bind",
                    "Source": "/home/docker.run/nextcloud-compose-removed/secrets/smtp_password.txt",
                    "Target": "/run/secrets/smtp_password",
                    "ReadOnly": true
                }
            ],
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/1537b1ac81e023b1f1a42364f39fb55e61b0691fa66cbcdd0b6b1a920b5bc86e-init/diff:/var/lib/docker/overlay2/a010d7f0bfa904f638672c5032dfee310707e2093c2f5d87201a7bf0f1a5122d/diff:/var/lib/docker/overlay2/7cc5dc7789a94a89913cd8659b95d344d6cf6167a43d36a9124c8b8e7ad62b54/diff:/var/lib/docker/overlay2/e1fb10de62d63757c0f77b4089c576d96bf54537c97a7c139ac5d547078cd62a/diff:/var/lib/docker/overlay2/63652275709daf94b8ff12630ae89bf43cbd445b6118072e0da9aa5a032263c4/diff:/var/lib/docker/overlay2/7c5ea6accf8ac57006019edaef2f96418136fe87bc9becee8fa519d64be51205/diff:/var/lib/docker/overlay2/50a1989728590713713dfe4f2170960720e0e8f719f0f9d6aae710a33bad7d5d/diff:/var/lib/docker/overlay2/3c32ad37cc90d9d20a8a436408c6de67e7d452e8e93a2bc1f72c69c8bc64a656/diff:/var/lib/docker/overlay2/68d4bf0f8218777d7891d121ca6e0f25e0c753016d4e96c1e2f5497a24aa3427/diff:/var/lib/docker/overlay2/3ed1be5577ec507f5c65f1bf63e90212f3bfe2be7e4d09741c145a97aa7ce19e/diff:/var/lib/docker/overlay2/cd428a6f7007835bffc387117b62f30f40179cc28397d7980f5effc00d01069f/diff:/var/lib/docker/overlay2/c85c20383cc95f5e68854a2c2f4567b7e7195582fdee802698274b96fff53a87/diff:/var/lib/docker/overlay2/85fc16c04db3a41e9e4b23d92522733d6d9da335c200350e2855e02659d1675d/diff:/var/lib/docker/overlay2/158a7a7dec024e63e3d8e392d752b6f68824773d31e8126fe2db9364a682b9cf/diff:/var/lib/docker/overlay2/08860a0cf3ea94717732831b36d141ea2aa345604f5f37b14ce36bc6fc1403d1/diff:/var/lib/docker/overlay2/6e79a1cfe77afcbd053c4bc3d47622a4d90c31f1bbd759a81e2051ce4971862c/diff:/var/lib/docker/overlay2/8a4f2bd89bae6760eabf858bb3e6d3f0e5cd0d3d2fff874e7b4c635a9135ad30/diff:/var/lib/docker/overlay2/9a5a35b5703c4fd7df59b01beeabba460cf0ded4c92a6ddd72f4634f87da0a61/diff:/var/lib/docker/overlay2/a2b3ab39acdae49b3bdeef575f80cd525fb954806ebec1e1b07ee9fdde67c5c2/diff:/var/lib/docker/overlay2/77935cf8432004ca16a816a4682808606648c9c2d873914c7fe9c1e829aaff2c/diff:/var/lib/docker/overlay2/9f2f4cc1e212d38a41ffda77cc3bcb31a8619cbe6afccb03646351f635266ae4/diff:/var/lib/docker/overlay2/982be325d9dcc672d3f7af603bd9d4525b7c8029204e26650546621fa1e95203/diff",
                "MergedDir": "/var/lib/docker/overlay2/1537b1ac81e023b1f1a42364f39fb55e61b0691fa66cbcdd0b6b1a920b5bc86e/merged",
                "UpperDir": "/var/lib/docker/overlay2/1537b1ac81e023b1f1a42364f39fb55e61b0691fa66cbcdd0b6b1a920b5bc86e/diff",
                "WorkDir": "/var/lib/docker/overlay2/1537b1ac81e023b1f1a42364f39fb55e61b0691fa66cbcdd0b6b1a920b5bc86e/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/home/docker.run/nextcloud-compose-removed/volumes/nextcloud",
                "Destination": "/var/www/html",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/home/docker.run/nextcloud-compose-removed/secrets/db_password.txt",
                "Destination": "/run/secrets/db_password",
                "Mode": "",
                "RW": false,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/home/docker.run/nextcloud-compose-removed/secrets/smtp_password.txt",
                "Destination": "/run/secrets/smtp_password",
                "Mode": "",
                "RW": false,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "db343a3fb1e6",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "80/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "SMTP_PASSWORD=S*b#bdskoVKg0s6B58rqa%&acFmc0JPvY^COG@",
                "NEXTCLOUD_ADMIN_USER=admin",
                "SMTP_NAME=noreply@mydomain.tld",
                "MAIL_DOMAIN=mydomain.tld",
                "POSTGRES_DB=nextcloud",
                "MAIL_FROM_ADDRESS=noreply",
                "NEXTCLOUD_ADMIN_PASSWORD=REMOVED",
                "POSTGRES_HOST=postgres",
                "NEXTCLOUD_UPDATE=1",
                "SMTP_HOST=smtp.xxx.tld",
                "SMTP_PORT=465",
                "SMTP_SECURE=ssl",
                "REDIS_HOST=redis",
                "POSTGRES_USER=postgres",
                "POSTGRES_PASSWORD_FILE=/run/secrets/db_password",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "PHPIZE_DEPS=autoconf \t\tdpkg-dev \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkg-config \t\tre2c",
                "PHP_INI_DIR=/usr/local/etc/php",
                "APACHE_CONFDIR=/etc/apache2",
                "APACHE_ENVVARS=/etc/apache2/envvars",
                "PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64",
                "PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64",
                "PHP_LDFLAGS=-Wl,-O1 -pie",
                "GPG_KEYS=REMOVED",
                "PHP_VERSION=8.2.11",
                "PHP_URL=https://www.php.net/distributions/php-8.2.11.tar.xz",
                "PHP_ASC_URL=https://www.php.net/distributions/php-8.2.11.tar.xz.asc",
                "PHP_SHA256=29af82e4f7509831490552918aad502697453f0869a579ee1b80b08f9112c5b8",
                "PHP_MEMORY_LIMIT=512M",
                "PHP_UPLOAD_LIMIT=512M",
                "APACHE_BODY_LIMIT=1073741824",
                "NEXTCLOUD_VERSION=27.1.2"
            ],
            "Cmd": [
                "apache2-foreground"
            ],
            "Image": "nextcloud:27",
            "Volumes": {
                "/var/www/html": {}
            },
            "WorkingDir": "/var/www/html",
            "Entrypoint": [
                "/entrypoint.sh"
            ],
            "OnBuild": null,
            "Labels": {
                "com.docker.compose.config-hash": "938ce24d902025ab3ea4cd142cf960af169066f09626b49f63e5969e981eb9cc",
                "com.docker.compose.container-number": "1",
                "com.docker.compose.depends_on": "postgres:service_started:false,redis:service_started:false",
                "com.docker.compose.image": "sha256:9f71661a8f02bd4584561c1d4ef4cf52f04fb4393d040c7ebcbdc585309d899e",
                "com.docker.compose.oneoff": "False",
                "com.docker.compose.project": "nextcloud-compose-removed",
                "com.docker.compose.project.config_files": "/home/docker.run/nextcloud-compose-removed/docker-compose.yml",
                "com.docker.compose.project.working_dir": "/home/docker.run/nextcloud-compose-removed",
                "com.docker.compose.replace": "c7528da9751f305ced208e5200b5273f249dac5d48a179618ae0f07ced04bf35",
                "com.docker.compose.service": "nextcloud",
                "com.docker.compose.version": "2.18.1",
                "traefik.docker.network": "traefik_proxy",
                "traefik.enable": "true",
                "traefik.http.middlewares.nextcloud-removed.headers.STSPreload": "true",
                "traefik.http.middlewares.nextcloud-removed.headers.STSSeconds": "31536000",
                "traefik.http.routers.nextcloud-removed-secure.entrypoints": "websecure",
                "traefik.http.routers.nextcloud-removed-secure.middlewares": "nextcloud-removed",
                "traefik.http.routers.nextcloud-removed-secure.rule": "Host(`cloud.mydomain.tld`)",
                "traefik.http.routers.nextcloud-removed-secure.service": "nextcloud-removed",
                "traefik.http.routers.nextcloud-removed-secure.tls": "true",
                "traefik.http.routers.nextcloud-removed-secure.tls.certresolver": "leresolver",
                "traefik.http.services.nextcloud-removed.loadbalancer.server.port": "80",
                "traefik.http.services.nextcloud-removed.loadbalancer.server.scheme": "http"
            },
            "StopSignal": "SIGWINCH"
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "d6e4c2c7e5db6cdd331587438235a5e9a4924abc8ace5f4bd536151b29f67e1e",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "80/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "32834"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/d6e4c2c7e5db",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "nextcloud-compose-removed_default": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "nextcloud-compose-removed-nextcloud-1",
                        "nextcloud",
                        "db343a3fb1e6"
                    ],
                    "NetworkID": "7702c25f37a0c483faa2e9e8a9e90e9081ef04020b7467bab8072557b749adc4",
                    "EndpointID": "ca7632e5a2874fec3cf2316cdebe8e6000ec8aa8e9fcfd87936c136d61292f5b",
                    "Gateway": "172.22.0.1",
                    "IPAddress": "172.22.0.4",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:16:00:04",
                    "DriverOpts": null
                },
                "traefik_proxy": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "nextcloud-compose-removed-nextcloud-1",
                        "nextcloud",
                        "db343a3fb1e6"
                    ],
                    "NetworkID": "65263354ef2a4608ad14118050a4d94ae83c122425be4211be58bd72b624fc0d",
                    "EndpointID": "decaad8b65fcf25d8322a6b84cb10ea25c8a4a53a0a320cb71196fa614f66335",
                    "Gateway": "192.168.160.1",
                    "IPAddress": "192.168.160.14",
                    "IPPrefixLen": 20,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:c0:a8:a0:0e",
                    "DriverOpts": null
                }
            }
        }
    }
]

Right now I have no clue how to continue/fix this installation and would appreciate any help.

1 Like

hi @juefried welcome to the forum :handshake:

you are missing the required support template. Please fill this form out and edit into your post. This will give us the technical info and logs needed to help you in case the machine in question in spitting out errors! Since you’ve provided zero technical details it is impossible to help you as-is. Thanks.

I’m confused if you tried to run occ upgradefrom the CLI. occ upgrade is not the way to upgrade docker container. If yes please follow the right upgrade procedure

Hello @wwe ,
I have of course let the docker container itself do the update. But this also seems to have failed with a segmentation fault, so now the database is already migrated, but Nextcloud seems to be on the old state.
Hence my attempt to start the update again with occ.
I still have a postgres dump from just before the update, so I can reset the database. I’m just afraid that the segmentation fault will still occur.
Regards, Juergen

I’ll have another look at the template in a moment.

I made a restore to 26.0.5.1, then an update to 26.0.7.0 - and this time the upgrade to 27.1.2.1 was just smooth as expected.

I have no idea what went wrong before.

This ticket can be closed now (or can I do this myself?)

Regards, Jürgen

glad to hear you resolved the issue.

usually ticking “solution” checkbox is good enough. it doesn’t prevent new posts but there is warning if one posts to a solved thread… but I will completely close the thread now :wink: