NC32 AIO 11.11: notify-push: Failed to connect to database

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

The Basics

  • Nextcloud Server version
    • Nextcloud AIO v11.11.0
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 25.10
  • Web server and version (e.g, Apache 2.4.25):
    • AIO
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Caddy v2.10.2
  • PHP version (e.g, 8.3):
    • 8.2.29
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • New Install
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Notify Push stuck in starting loop. All other containers start normally.
Notify Push presents: “Failed to connect to database: error communicating with database: failed to lookup address information”

Steps to replicate it (hint: details matter!):

  1. AIO installed using:

  2. docker run -d \
    –init \
    –sig-proxy=false \
    –name nextcloud-aio-mastercontainer \
    –restart always \
    -p 127.0.0.1:8080:8080 \
    -e APACHE_PORT=11000 \
    -e APACHE_IP_BINDING=0.0.0.0 \
    -e SKIP_DOMAIN_VALIDATION=true \
    -e NEXTCLOUD_DATADIR=“/tank/data/nextcloud” \
    -e NEXTCLOUD_ENABLE_NVIDIA_GPU=“true” \
    -v nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
    -v /var/run/docker.sock:/var/run/docker.sock:ro \
    ghcr.io/nextcloud-releases/all-in-one:latest

  3. AIO starts, login is fine, but when containers are started the “Notify Push” container sticks at “Starting” with the below-mentioned errors.

  4. Notes: This is a development server using dnsmasq to override its public IP before being moved over to production. This was previously not an issue. There is a hardware incompatibility with Ubuntu 24.04, which has forced the system to move over early to 25.10. However, previous install on 25.10 did not have this issue.

  5. Full deletion and reinstallation of AIO has been attempted, IPv6 has been turned off in docker to eliminate that possible issue, the netcloud-aio networks were removed and re-added as a debugging attempt (but since reinstalled). Server currently does not have a local firewall installed, no fail2ban, etc.

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

nextcloud-aio-notify-push:
2025-11-15T00:56:25.255402664Z nc: getaddrinfo for host "nextcloud-aio-nextcloud" port 9001: Name has no usable address
2025-11-15T00:56:25.255614929Z Waiting for Nextcloud to start...
2025-11-15T00:56:30.258780886Z Waiting for Nextcloud to start...
2025-11-15T00:56:35.262729483Z Waiting for Nextcloud to start...
2025-11-15T00:56:40.266103365Z Waiting for Nextcloud to start...
2025-11-15T00:56:45.270686267Z Waiting for Nextcloud to start...
2025-11-15T00:56:50.274720111Z Connection to nextcloud-aio-nextcloud (172.20.0.8) 9001 port [tcp/*] succeeded!
2025-11-15T00:56:50.277159222Z notify-push was started
2025-11-15T00:56:52.302102819Z Error:   × Failed to connect to database: error communicating with database: failed
2025-11-15T00:56:52.302228466Z   │ to lookup address information: Try again
2025-11-15T00:56:52.302252835Z   ├─▶ error communicating with database: failed to lookup address information:
2025-11-15T00:56:52.302274395Z   │   Try again
2025-11-15T00:56:52.302295034Z   ╰─▶ failed to lookup address information: Try again
2025-11-15T00:56:52.302337513Z [Repeats]


nextcloud-aio-database:
2025-11-15T00:56:26.399739040Z Setting postgres values...
2025-11-15T00:56:26.411431845Z chmod: /var/run/postgresql: Operation not permitted
2025-11-15T00:56:26.413000697Z 
2025-11-15T00:56:26.413034596Z PostgreSQL Database directory appears to contain a database; Skipping initialization
2025-11-15T00:56:26.413044266Z 
2025-11-15T00:56:26.530098059Z 2025-11-14 16:56:26.529 PST [14] LOG:  starting PostgreSQL 17.6 on x86_64-pc-linux-musl, compiled by gcc (Alpine 14.2.0) 14.2.0, 64-bit
2025-11-15T00:56:26.530145648Z 2025-11-14 16:56:26.530 PST [14] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2025-11-15T00:56:26.530164987Z 2025-11-14 16:56:26.530 PST [14] LOG:  listening on IPv6 address "::", port 5432
2025-11-15T00:56:26.530625846Z 2025-11-14 16:56:26.530 PST [14] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2025-11-15T00:56:26.533914066Z 2025-11-14 16:56:26.533 PST [24] LOG:  database system was shut down at 2025-11-14 16:33:04 PST
2025-11-15T00:56:26.539157929Z 2025-11-14 16:56:26.539 PST [14] LOG:  database system is ready to accept connections


Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "one-click-instance": true,
        "one-click-instance.user-limit": 100,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "check_data_directory_permissions": false,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "overwritehost": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "32.0.1.2",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "updatechecker": true,
        "updatedirectory": "\/nc-updater",
        "loglevel": 2,
        "app_install_overwrite": [
            "nextcloud-aio"
        ],
        "log_type": "file",
        "logfile": "\/var\/www\/html\/data\/nextcloud.log",
        "log_rotate_size": 10485760,
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "preview_max_x": 2048,
        "preview_max_y": 2048,
        "jpeg_quality": 60,
        "enabledPreviewProviders": {
            "1": "OC\\Preview\\Image",
            "2": "OC\\Preview\\MarkDown",
            "3": "OC\\Preview\\MP3",
            "4": "OC\\Preview\\TXT",
            "5": "OC\\Preview\\OpenDocument",
            "6": "OC\\Preview\\Movie",
            "7": "OC\\Preview\\Krita"
        },
        "enable_previews": true,
        "upgrade.disable-web": true,
        "mail_smtpmode": "smtp",
        "trashbin_retention_obligation": "auto, 30",
        "versions_retention_obligation": "auto, 30",
        "activity_expire_days": 30,
        "simpleSignUpLink.shown": false,
        "share_folder": "\/Shared",
        "one-click-instance.link": "https:\/\/nextcloud.com\/all-in-one\/",
        "upgrade.cli-upgrade-link": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/2726",
        "maintenance_window_start": 100,
        "allow_local_remote_servers": true,
        "davstorage.request_timeout": 3600,
        "documentation_url.server_logs": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/5425",
        "htaccess.RewriteBase": "\/",
        "dbpersistent": false,
        "auth.bruteforce.protection.enabled": true,
        "ratelimit.protection.enabled": true,
        "files_external_allow_create_new_local": false,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "DOMAIN": "***REMOVED SENSITIVE VALUE***"
    }
}

Docker

Client:
 Version:    28.2.2
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.30.0
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.40.3
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 29
  Running: 27
  Paused: 0
  Stopped: 2
 Images: 44
 Server Version: 28.2.2
 Storage Driver: overlay2
  Backing Filesystem: zfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 CDI spec directories:
  /etc/cdi
  /var/run/cdi
 Discovered Devices:
  cdi: nvidia.com/gpu=0
  cdi: nvidia.com/gpu=GPU-0bc8cbed-2b6c-5abc-4fc3-b398f3061194
  cdi: nvidia.com/gpu=all
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 nvidia runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version:
 runc version:
 init version:
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.17.0-6-generic
 Operating System: Ubuntu 25.10
 OSType: linux
 Architecture: x86_64
 CPUs: 96
 Total Memory: 373.1GiB
 Name: rijr
 ID: a5222d00-c18e-4915-8e2b-eb529e2f6e81
 Docker Root Dir: /tank/docker-root
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false

Apps

Enabled:

  • activity: 5.0.0-dev.0
  • admin_audit: 1.22.0
  • bruteforcesettings: 5.0.0-dev.0
  • calendar: 6.0.4
  • circles: 32.0.0
  • cloud_federation_api: 1.16.0
  • comments: 1.22.0
  • contacts: 8.0.6
  • contactsinteraction: 1.13.1
  • dashboard: 7.12.0
  • dav: 1.34.2
  • deck: 1.16.1
  • federatedfilesharing: 1.22.0
  • federation: 1.22.0
  • files: 2.4.0
  • files_downloadlimit: 5.0.0-dev.0
  • files_pdfviewer: 5.0.0-dev.0
  • files_reminders: 1.5.0
  • files_sharing: 1.24.0
  • files_trashbin: 1.22.0
  • files_versions: 1.25.0
  • firstrunwizard: 5.0.0-dev.0
  • logreader: 5.0.0-dev.0
  • lookup_server_connector: 1.20.0
  • nextcloud-aio: 0.8.0
  • nextcloud_announcements: 4.0.0-dev.0
  • notes: 4.12.3
  • notifications: 5.0.0-dev.0
  • notify_push: 1.2.1
  • oauth2: 1.20.0
  • password_policy: 4.0.0-dev.0
  • photos: 5.0.0-dev.1
  • privacy: 4.0.0-dev.0
  • profile: 1.1.0
  • provisioning_api: 1.22.0
  • recommendations: 5.0.0-dev.0
  • related_resources: 3.0.0-dev.0
  • serverinfo: 4.0.0-dev.0
  • settings: 1.15.1
  • sharebymail: 1.22.0
  • support: 4.0.0-dev.0
  • survey_client: 4.0.0-dev.0
  • systemtags: 1.22.0
  • tasks: 0.17.1
  • text: 6.0.1
  • theming: 2.7.0
  • twofactor_backupcodes: 1.21.0
  • twofactor_totp: 14.0.0
  • updatenotification: 1.22.0
  • user_status: 1.12.0
  • viewer: 5.0.0-dev.0
  • weather_status: 1.12.0
  • webhook_listeners: 1.3.0
  • workflowengine: 2.14.0
    Disabled:
  • app_api: 32.0.0 (installed 32.0.0)
  • encryption: 2.20.0
  • files_external: 1.24.0
  • suspicious_login: 10.0.0-dev.0
  • twofactor_nextcloud_notification: 6.0.0-dev.0
  • user_ldap: 1.23.0

Can you reach nextcloud-aio-database from inside the nextcloud-aio-notify-push container while in this state?

Anything interesting in the nextcloud-aio-mastercontainer output?

Might also be informative to poke around the output of the following:

docker inspect nextcloud-aio-notify-push
docker inspect nextcloud-aio-database
docker network ls
docker inspect network nextcloud-aio

I cannot exec into nextcloud-aio-notify-push directly because it is constantly restarting, so I used a temporary Alpine container on the nextcloud-aio network.

Note: I have redacted the real NC_DOMAIN, Redis password, and Postgres password in the env.

Reaching nextcloud-aio-database from within nextcloud-aio-notify-push:

# temporary container to test DNS
$ docker run --rm -it --network nextcloud-aio alpine sh

# inside alpine:
$ getent hosts nextcloud-aio-database
172.20.0.13       nextcloud-aio-database  nextcloud-aio-database

$ nc -vz nextcloud-aio-database 5432
nextcloud-aio-database (172.20.0.13:5432) open

nextcloud-aio-mastercontainer:

Initial startup of Nextcloud All-in-One complete!
You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
E.g. https://internal.ip.of.this.server:8080
⚠️ Important: do always use an ip-address if you access this port and not a domain as HSTS might block access to it later!

If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443
/usr/lib/python3.12/site-packages/supervisor/options.py:13: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  import pkg_resources
[Fri Nov 14 22:56:43.996600 2025] [mpm_event:notice] [pid 190:tid 190] AH00489: Apache/2.4.65 (Unix) OpenSSL/3.5.4 configured -- resuming normal operations
[Fri Nov 14 22:56:43.996635 2025] [core:notice] [pid 190:tid 190] AH00094: Command line: 'httpd -D FOREGROUND'
{"level":"info","ts":1763161004.0018604,"msg":"maxprocs: Leaving GOMAXPROCS=96: CPU quota undefined"}
{"level":"info","ts":1763161004.0020473,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":360583125811,"previous":9223372036854775807}
{"level":"info","ts":1763161004.0020874,"msg":"using config from file","file":"/Caddyfile"}
{"level":"info","ts":1763161004.002934,"msg":"adapted config to JSON","adapter":"caddyfile"}
{"level":"info","ts":1763161004.0120764,"msg":"serving initial configuration"}
[14-Nov-2025 22:56:44] NOTICE: fpm is running, pid 196
[14-Nov-2025 22:56:44] NOTICE: ready to handle connections
[14-Nov-2025 23:06:32] NOTICE: Terminating ...
[14-Nov-2025 23:06:32] NOTICE: exiting, bye-bye!
[Fri Nov 14 23:06:35.921099 2025] [mpm_event:notice] [pid 190:tid 190] AH00491: caught SIGTERM, shutting down
Initial startup of Nextcloud All-in-One complete!
You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
E.g. https://internal.ip.of.this.server:8080
⚠️ Important: do always use an ip-address if you access this port and not a domain as HSTS might block access to it later!

If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443
/usr/lib/python3.12/site-packages/supervisor/options.py:13: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  import pkg_resources
[Fri Nov 14 23:06:38.426027 2025] [mpm_event:notice] [pid 197:tid 197] AH00489: Apache/2.4.65 (Unix) OpenSSL/3.5.4 configured -- resuming normal operations
[Fri Nov 14 23:06:38.426064 2025] [core:notice] [pid 197:tid 197] AH00094: Command line: 'httpd -D FOREGROUND'
{"level":"info","ts":1763161598.429809,"msg":"maxprocs: Leaving GOMAXPROCS=96: CPU quota undefined"}
{"level":"info","ts":1763161598.4299812,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":360583125811,"previous":9223372036854775807}
{"level":"info","ts":1763161598.430025,"msg":"using config from file","file":"/Caddyfile"}
{"level":"info","ts":1763161598.430842,"msg":"adapted config to JSON","adapter":"caddyfile"}
{"level":"info","ts":1763161598.437744,"msg":"serving initial configuration"}
[14-Nov-2025 23:06:38] NOTICE: fpm is running, pid 202
[14-Nov-2025 23:06:38] NOTICE: ready to handle connections
nextcloud-aio-domaincheck
Total reclaimed space: 0B

docker inspect nextcloud-aio-notify-push:

[
    {
        "Id": "83d631571361714f7636b4ac21dcf28a490245dd153a7ad2d397e459f9a6714b",
        "Created": "2025-11-15T07:38:42.58153751Z",
        "Path": "/start.sh",
        "Args": [],
        "State": {
            "Status": "restarting",
            "Running": true,
            "Paused": false,
            "Restarting": true,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2025-11-16T01:50:57.085466481Z",
            "FinishedAt": "2025-11-16T01:50:59.394599666Z",
            "Health": {
                "Status": "unhealthy",
                "FailingStreak": 0,
                "Log": [
                    {
                        "Start": "2025-11-15T07:39:12.730234834Z",
                        "End": "2025-11-15T07:39:12.778956119Z",
                        "ExitCode": 0,
                        "Output": ""
                    }
                ]
            }
        },
        "Image": "sha256:cc95a30456a5022ae209cac42517dea6337f06aec3406bd1e77caecfd0a1c10a",
        "ResolvConfPath": "/tank/docker-root/containers/83d631571361714f7636b4ac21dcf28a490245dd153a7ad2d397e459f9a6714b/resolv.conf",
        "HostnamePath": "/tank/docker-root/containers/83d631571361714f7636b4ac21dcf28a490245dd153a7ad2d397e459f9a6714b/hostname",
        "HostsPath": "/tank/docker-root/containers/83d631571361714f7636b4ac21dcf28a490245dd153a7ad2d397e459f9a6714b/hosts",
        "LogPath": "/tank/docker-root/containers/83d631571361714f7636b4ac21dcf28a490245dd153a7ad2d397e459f9a6714b/83d631571361714f7636b4ac21dcf28a490245dd153a7ad2d397e459f9a6714b-json.log",
        "Name": "/nextcloud-aio-notify-push",
        "RestartCount": 1062,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "nextcloud_aio_nextcloud:/nextcloud:ro"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "nextcloud-aio",
            "PortBindings": null,
            "RestartPolicy": {
                "Name": "unless-stopped",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                0,
                0
            ],
            "CapAdd": null,
            "CapDrop": [
                "NET_RAW"
            ],
            "CgroupnsMode": "private",
            "Dns": null,
            "DnsOptions": null,
            "DnsSearch": null,
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": true,
            "SecurityOpt": [
                "label:disable"
            ],
            "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": null,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/interrupts",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware",
                "/sys/devices/virtual/powercap"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ],
            "Init": true
        },
        "GraphDriver": {
            "Data": {
                "ID": "83d631571361714f7636b4ac21dcf28a490245dd153a7ad2d397e459f9a6714b",
                "LowerDir": "/tank/docker-root/overlay2/a9ed3963eb6d06700a016d6ff626cdb356552112bef84bd76744dafab1e7d454-init/diff:/tank/docker-root/overlay2/9c12e8cba36ddc18d3d7a5ebfb2411e4dc24ef41ff4e1759913e28748e199abf/diff:/tank/docker-root/overlay2/7d4a4241b5dfb8fd31a897f3ed75054f94007217e8d530e502800093ea8c0aaa/diff:/tank/docker-root/overlay2/6cd1e2d01cb07b699db15ac414c5fec8eefc23ef5c9548058c710834d8afee67/diff:/tank/docker-root/overlay2/71a3817c7448b412d95320d3cc721ba1a8a92f53f4047bc8aabb4505dea2c07d/diff",
                "MergedDir": "/tank/docker-root/overlay2/a9ed3963eb6d06700a016d6ff626cdb356552112bef84bd76744dafab1e7d454/merged",
                "UpperDir": "/tank/docker-root/overlay2/a9ed3963eb6d06700a016d6ff626cdb356552112bef84bd76744dafab1e7d454/diff",
                "WorkDir": "/tank/docker-root/overlay2/a9ed3963eb6d06700a016d6ff626cdb356552112bef84bd76744dafab1e7d454/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "volume",
                "Name": "nextcloud_aio_nextcloud",
                "Source": "/tank/docker-root/volumes/nextcloud_aio_nextcloud/_data",
                "Destination": "/nextcloud",
                "Driver": "local",
                "Mode": "ro",
                "RW": false,
                "Propagation": ""
            }
        ],
        "Config": {
            "Hostname": "nextcloud-aio-notify-push",
            "Domainname": "",
            "User": "33",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "NC_DOMAIN=***REDACTED***",
                "NEXTCLOUD_HOST=nextcloud-aio-nextcloud",
                "TZ=America/Los_Angeles",
                "REDIS_HOST=nextcloud-aio-redis",
                "REDIS_HOST_PASSWORD=***REDACTED***",
                "POSTGRES_HOST=nextcloud-aio-database",
                "POSTGRES_PORT=5432",
                "POSTGRES_PASSWORD=***REDACTED***",
                "POSTGRES_DB=nextcloud_database",
                "POSTGRES_USER=nextcloud",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
            ],
            "Cmd": null,
            "Healthcheck": {
                "Test": [
                    "CMD-SHELL",
                    "/healthcheck.sh"
                ]
            },
            "Image": "ghcr.io/nextcloud-releases/aio-notify-push:latest",
            "Volumes": null,
            "WorkingDir": "/",
            "Entrypoint": [
                "/start.sh"
            ],
            "OnBuild": null,
            "Labels": {
                "com.centurylinklabs.watchtower.enable": "false",
                "diun.enable": "false",
                "org.label-schema.vendor": "Nextcloud"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "",
            "SandboxKey": "",
            "Ports": {},
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "nextcloud-aio": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "MacAddress": "",
                    "DriverOpts": null,
                    "GwPriority": 0,
                    "NetworkID": "c1d888522bca1b3115bec049cfb50bafab355399c22a16bc8d12f43a38cd673f",
                    "EndpointID": "",
                    "Gateway": "",
                    "IPAddress": "",
                    "IPPrefixLen": 0,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DNSNames": [
                        "nextcloud-aio-notify-push",
                        "83d631571361"
                    ]
                }
            }
        }
    }
]

docker inspect nextcloud-aio-database:

[
    {
        "Id": "f17b3c7543981b8a9c779b42d1587d159c7d7b119445fc32659ea76ea08d4645",
        "Created": "2025-11-15T07:38:43.837902471Z",
        "Path": "/start.sh",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 3532507,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2025-11-15T07:38:43.863060829Z",
            "FinishedAt": "0001-01-01T00:00:00Z",
            "Health": {
                "Status": "healthy",
                "FailingStreak": 0,
                "Log": [
                    {
                        "Start": "2025-11-16T01:51:33.897913384Z",
                        "End": "2025-11-16T01:51:33.97905633Z",
                        "ExitCode": 0,
                        "Output": "psql: error: connection to server at \"127.0.0.1\", port 11000 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n              now              \n-------------------------------\n 2025-11-15 17:51:33.977425-08\n(1 row)\n\n"
                    },
                    {
                        "Start": "2025-11-16T01:52:03.980203681Z",
                        "End": "2025-11-16T01:52:04.044146015Z",
                        "ExitCode": 0,
                        "Output": "psql: error: connection to server at \"127.0.0.1\", port 11000 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n              now              \n-------------------------------\n 2025-11-15 17:52:04.042191-08\n(1 row)\n\n"
                    },
                    {
                        "Start": "2025-11-16T01:52:34.04570202Z",
                        "End": "2025-11-16T01:52:34.122475483Z",
                        "ExitCode": 0,
                        "Output": "psql: error: connection to server at \"127.0.0.1\", port 11000 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n              now              \n-------------------------------\n 2025-11-15 17:52:34.120445-08\n(1 row)\n\n"
                    },
                    {
                        "Start": "2025-11-16T01:53:04.123829927Z",
                        "End": "2025-11-16T01:53:04.196029881Z",
                        "ExitCode": 0,
                        "Output": "psql: error: connection to server at \"127.0.0.1\", port 11000 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n              now              \n-------------------------------\n 2025-11-15 17:53:04.194192-08\n(1 row)\n\n"
                    },
                    {
                        "Start": "2025-11-16T01:53:34.196956232Z",
                        "End": "2025-11-16T01:53:34.27801697Z",
                        "ExitCode": 0,
                        "Output": "psql: error: connection to server at \"127.0.0.1\", port 11000 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n              now              \n-------------------------------\n 2025-11-15 17:53:34.276285-08\n(1 row)\n\n"
                    }
                ]
            }
        },
        "Image": "sha256:4b2f79ec07ed18347aa9f2c7ff57a8cae2df25746a2fe770ffa773063adf8645",
        "ResolvConfPath": "/tank/docker-root/containers/f17b3c7543981b8a9c779b42d1587d159c7d7b119445fc32659ea76ea08d4645/resolv.conf",
        "HostnamePath": "/tank/docker-root/containers/f17b3c7543981b8a9c779b42d1587d159c7d7b119445fc32659ea76ea08d4645/hostname",
        "HostsPath": "/tank/docker-root/containers/f17b3c7543981b8a9c779b42d1587d159c7d7b119445fc32659ea76ea08d4645/hosts",
        "LogPath": "/tank/docker-root/containers/f17b3c7543981b8a9c779b42d1587d159c7d7b119445fc32659ea76ea08d4645/f17b3c7543981b8a9c779b42d1587d159c7d7b119445fc32659ea76ea08d4645-json.log",
        "Name": "/nextcloud-aio-database",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "nextcloud_aio_database:/var/lib/postgresql/data:rw",
                "nextcloud_aio_database_dump:/mnt/data:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "nextcloud-aio",
            "PortBindings": null,
            "RestartPolicy": {
                "Name": "unless-stopped",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                0,
                0
            ],
            "CapAdd": null,
            "CapDrop": [
                "NET_RAW"
            ],
            "CgroupnsMode": "private",
            "Dns": null,
            "DnsOptions": null,
            "DnsSearch": null,
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": true,
            "SecurityOpt": [
                "label:disable"
            ],
            "Tmpfs": {
                "/var/run/postgresql": ""
            },
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 268435456,
            "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": null,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/interrupts",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware",
                "/sys/devices/virtual/powercap"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ],
            "Init": true
        },
        "GraphDriver": {
            "Data": {
                "ID": "f17b3c7543981b8a9c779b42d1587d159c7d7b119445fc32659ea76ea08d4645",
                "LowerDir": "/tank/docker-root/overlay2/a4f734f49c784ed1557721198b7781708bd41a623af405c725b43d92ce0d9adf-init/diff:/tank/docker-root/overlay2/d7282aac39275ce76ed807760abb48ad8acf43b760e614a110fb05afbeabe01a/diff:/tank/docker-root/overlay2/c9791148ce885a092c81d47d8369ed77a5bcf83a138234b9975485adda461263/diff:/tank/docker-root/overlay2/8502d32327f5d2e0ed393ac84103a733767ae63124bfab6d45ffff403e403b5b/diff:/tank/docker-root/overlay2/d7d3723bdf5daf189b8b2c10a17b139c2f66b2b7fb4f5a4ed66706234651ac03/diff:/tank/docker-root/overlay2/4f92f201f052202a0493e0fe8163987ebe5a8068603c36a698fe6ff73d7ce303/diff:/tank/docker-root/overlay2/00037f58454da0ad3f4a08accba4b08274aa11471b27ce32aa2c93958373eb1c/diff:/tank/docker-root/overlay2/211fb37c31912d9864bb89d0f28b505c1e322109ab00df3c7568eed8c4ed6097/diff:/tank/docker-root/overlay2/422313e1d6365eafcd0580c2dbcb688b431e68278106b36bf6f2582bbb330808/diff:/tank/docker-root/overlay2/b3cf8d74b69bee89297e256c74282d5c5aeb3239a14a3187aac987d108871293/diff:/tank/docker-root/overlay2/d90e9b96874b82755c3146edd3413418ae2c51617fd3d8d44d21db719b5df8b0/diff:/tank/docker-root/overlay2/f6efc653bc2f748998d528ae8c8d79bb71ed8c6b19435b15db2ef536162ac48d/diff:/tank/docker-root/overlay2/0ae601b3f293252931927fc33ed1e3e6b74d3f8bd3559fe670be6288f45b718a/diff:/tank/docker-root/overlay2/37619011823aa07a8cc6017558445108be134069f5688958c7f08043ce11518a/diff:/tank/docker-root/overlay2/71a3817c7448b412d95320d3cc721ba1a8a92f53f4047bc8aabb4505dea2c07d/diff",
                "MergedDir": "/tank/docker-root/overlay2/a4f734f49c784ed1557721198b7781708bd41a623af405c725b43d92ce0d9adf/merged",
                "UpperDir": "/tank/docker-root/overlay2/a4f734f49c784ed1557721198b7781708bd41a623af405c725b43d92ce0d9adf/diff",
                "WorkDir": "/tank/docker-root/overlay2/a4f734f49c784ed1557721198b7781708bd41a623af405c725b43d92ce0d9adf/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "volume",
                "Name": "nextcloud_aio_database",
                "Source": "/tank/docker-root/volumes/nextcloud_aio_database/_data",
                "Destination": "/var/lib/postgresql/data",
                "Driver": "local",
                "Mode": "rw",
                "RW": true,
                "Propagation": ""
            },
            {
                "Type": "volume",
                "Name": "nextcloud_aio_database_dump",
                "Source": "/tank/docker-root/volumes/nextcloud_aio_database_dump/_data",
                "Destination": "/mnt/data",
                "Driver": "local",
                "Mode": "rw",
                "RW": true,
                "Propagation": ""
            }
        ],
        "Config": {
            "Hostname": "nextcloud-aio-database",
            "Domainname": "",
            "User": "999",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "5432/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "POSTGRES_PASSWORD=***REDACTED***",
                "POSTGRES_DB=nextcloud_database",
                "POSTGRES_USER=nextcloud",
                "TZ=America/Los_Angeles",
                "PGTZ=America/Los_Angeles",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "GOSU_VERSION=1.19",
                "LANG=en_US.utf8",
                "PG_MAJOR=17",
                "PG_VERSION=17.6",
                "PG_SHA256=e0630a3600aea27511715563259ec2111cd5f4353a4b040e0be827f94cd7a8b0",
                "DOCKER_PG_LLVM_DEPS=llvm19-dev \t\tclang19",
                "PGDATA=/var/lib/postgresql/data"
            ],
            "Cmd": null,
            "Healthcheck": {
                "Test": [
                    "CMD-SHELL",
                    "/healthcheck.sh"
                ]
            },
            "Image": "ghcr.io/nextcloud-releases/aio-postgresql:latest",
            "Volumes": {
                "/mnt/data": {},
                "/var/lib/postgresql/data": {}
            },
            "WorkingDir": "/",
            "Entrypoint": [
                "/start.sh"
            ],
            "OnBuild": null,
            "Labels": {
                "com.centurylinklabs.watchtower.enable": "false",
                "diun.enable": "false",
                "org.label-schema.vendor": "Nextcloud"
            },
            "StopSignal": "SIGINT"
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "855c61cb0fa4e105c4b01b12b956bed79df56506378e7ab437ca7b626a9ae0e5",
            "SandboxKey": "/var/run/docker/netns/855c61cb0fa4",
            "Ports": {
                "5432/tcp": null
            },
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "nextcloud-aio": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "MacAddress": "3e:c9:57:59:a3:ac",
                    "DriverOpts": null,
                    "GwPriority": 0,
                    "NetworkID": "c1d888522bca1b3115bec049cfb50bafab355399c22a16bc8d12f43a38cd673f",
                    "EndpointID": "e475930ea9a0b15f7d2173e35947e3069b6788bc731cefeacc0f29ef6d071ce8",
                    "Gateway": "172.20.0.1",
                    "IPAddress": "172.20.0.13",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DNSNames": [
                        "nextcloud-aio-database",
                        "f17b3c754398"
                    ]
                }
            }
        }
    }
]

docker network ls:

docker network ls
NETWORK ID     NAME                                DRIVER    SCOPE
1acf6257a499   ai_internal                         bridge    local
1dee9bd4816d   bridge                              bridge    local
192bd79dbb6f   exapps_net                          bridge    local
9773c6e7e709   host                                host      local
be4ee6e8c292   mailcowdockerized_mailcow-network   bridge    local
5fd8b285c9d8   mariadb_default                     bridge    local
c1d888522bca   nextcloud-aio                       bridge    local
050df5effc4d   none                                null      local
d3902d70bd97   stack_default                       bridge    local
6926ca313bde   web_default                         bridge    local

docker inspect nextcloud-aio:

[
    {
        "Name": "nextcloud-aio",
        "Id": "c1d888522bca1b3115bec049cfb50bafab355399c22a16bc8d12f43a38cd673f",
        "Created": "2025-11-14T23:05:07.795507808Z",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv4": true,
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": {},
            "Config": [
                {
                    "Subnet": "172.20.0.0/16",
                    "Gateway": "172.20.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "078636b2525fb83a389f01837a1f1e320e399384b8b3d99268b8172bd06eb93d": {
                "Name": "nextcloud-aio-facerecognition",
                "EndpointID": "ee2faab36a34533f430adb6a39cfc478e3794e157e45576dfbb24b90b65b8ff3",
                "MacAddress": "62:78:e7:73:96:e2",
                "IPv4Address": "172.20.0.5/16",
                "IPv6Address": ""
            },
            "097a0e1ec05ac3e326126ff8eefe6794f490a8e51e0b6a9b720d24d1611bf11d": {
                "Name": "nextcloud-aio-fulltextsearch",
                "EndpointID": "e730ef2a42f2f7dfed7b7fe95b9389285269523e7a007288f1fe84cdd61fc803",
                "MacAddress": "96:34:d8:1b:f1:cd",
                "IPv4Address": "172.20.0.16/16",
                "IPv6Address": ""
            },
            "0c739419e744725163786a3d3333ba64b59ea3c727ca662bbd857aa942084843": {
                "Name": "nextcloud-aio-languagetool",
                "EndpointID": "a2ff2528a3381d78799f923fd937d8e9efede8ae373dbf4dece1fa9c1255b4ba",
                "MacAddress": "0e:0f:44:75:a8:03",
                "IPv4Address": "172.20.0.6/16",
                "IPv6Address": ""
            },
            "1ad96597cffe15eadf5ec028e773f33a192dba693dc4dff8cfae06bf8321aca6": {
                "Name": "web-caddy-1",
                "EndpointID": "b09bfbf8fb54f5f1105e3ee082803c1e4e8d746a1e3cea6775e4b6dd9ca64e76",
                "MacAddress": "1e:7d:f1:e7:ec:ed",
                "IPv4Address": "172.20.0.3/16",
                "IPv6Address": ""
            },
            "1f49143019307c6ebc2d21bdc8403d5114570f89c93b2bbf667a848081bc6a16": {
                "Name": "nextcloud-aio-nextcloud",
                "EndpointID": "13a28d228ca024a3f4cd2afd1a8e9d9052d335a14a01dd1e1153caea3766b9bd",
                "MacAddress": "42:a1:e6:06:d0:11",
                "IPv4Address": "172.20.0.19/16",
                "IPv6Address": ""
            },
            "4ae3a95147e886b8aec95c74b526a4ff68af5a05a48a969d866464fa1e71893a": {
                "Name": "appapi-harp",
                "EndpointID": "9e052b33e1019773c67475ecd19a64f7ee61bdee3089e8402795fdea251111c4",
                "MacAddress": "da:59:57:39:81:ca",
                "IPv4Address": "172.20.0.4/16",
                "IPv6Address": ""
            },
            "5215fbc6fbd123d1c66a0e75964412d9710862bf0250138d7b90cd789197fe9d": {
                "Name": "nextcloud-aio-whiteboard",
                "EndpointID": "4f49f40b508335b893e6a4a955bb5be10e275703da92abc82c1efe89fa365b08",
                "MacAddress": "be:29:aa:ac:ea:cc",
                "IPv4Address": "172.20.0.12/16",
                "IPv6Address": ""
            },
            "57adf3194a389990cbb74663a8d29b355f102951a87e2fc3735375d1c70782c7": {
                "Name": "nextcloud-aio-mastercontainer",
                "EndpointID": "da684672d94acc1275d8e8421adf646f17a850792f8eb0c6cf7b8c398b8f37e1",
                "MacAddress": "be:53:8d:6a:ed:e3",
                "IPv4Address": "172.20.0.2/16",
                "IPv6Address": ""
            },
            "595f5c298138da1aa2661ca22784dcb1bdcdd3434acaab9ed1ade93b8a1cdd8d": {
                "Name": "nextcloud-aio-memories",
                "EndpointID": "72f830ddfd519796b5997f887268a18ed01f2c8ac8f0a9e93c336504f78e9e82",
                "MacAddress": "ce:40:13:96:68:d7",
                "IPv4Address": "172.20.0.8/16",
                "IPv6Address": ""
            },
            "82431eb1767add390a6a69e64b04f6fc9b7e018c9a01d217a10e75925b9365e7": {
                "Name": "nextcloud-aio-imaginary",
                "EndpointID": "4d5ca1ba066b5d68515910c96c7f56d0ecfa705e14ec9dc884721002e486d0aa",
                "MacAddress": "de:ff:90:5d:dd:25",
                "IPv4Address": "172.20.0.17/16",
                "IPv6Address": ""
            },
            "8544eb064c49c3ee0070b65d5cc93005b9ad1d64015cc6765c130d743cba8d59": {
                "Name": "nextcloud-aio-nextcloud-exporter",
                "EndpointID": "874e46e3f80c4eba06ae647ac337a0ed7a70f81481a8d52d94c107c078ee0d8b",
                "MacAddress": "a2:83:40:f2:01:3c",
                "IPv4Address": "172.20.0.9/16",
                "IPv6Address": ""
            },
            "996881a222590d11d978c33af916c7de86adeb80a09576208f4f1b77a2a7384b": {
                "Name": "nextcloud-aio-local-ai",
                "EndpointID": "9e2221c094d0fa3cede5d12815a06e3713a090a3a720fc7d30e8f20f2107c011",
                "MacAddress": "4e:7f:10:8a:e8:8a",
                "IPv4Address": "172.20.0.7/16",
                "IPv6Address": ""
            },
            "a8457243fb401b5673b80f4c1a0f6d0a51734706feaab5912342242463000f2f": {
                "Name": "nextcloud-aio-apache",
                "EndpointID": "6f0539f5ca0acced67d1eeabd58b1893a6c9327a5cdc185d872030b103e8b267",
                "MacAddress": "1e:12:f1:6e:f7:5b",
                "IPv4Address": "172.20.0.20/16",
                "IPv6Address": ""
            },
            "b66260cc0cf181bb2059bd9b5c1d211b62d3289767ff86e49be0d6b007644a52": {
                "Name": "nextcloud-aio-redis",
                "EndpointID": "35349115f932a7fbb73e0cc33887185537a91169ea05200872adf49fce692c18",
                "MacAddress": "e2:05:cb:c8:c0:9f",
                "IPv4Address": "172.20.0.14/16",
                "IPv6Address": ""
            },
            "d4c3dfa2ce381cb9e77252ec92743bc02f89854362a307feccf552e39e245e65": {
                "Name": "nextcloud-aio-collabora",
                "EndpointID": "967949586c079f990804dccb6675197c72dddbef75b5a21df6fc7058df85b472",
                "MacAddress": "ae:70:e3:fb:a7:51",
                "IPv4Address": "172.20.0.10/16",
                "IPv6Address": ""
            },
            "e4ba2d7dfd67509d6d6e945b53bc65e65bd766cfb0d4231ddcfc7abfd518aa76": {
                "Name": "nextcloud-aio-docker-socket-proxy",
                "EndpointID": "f7c1ab1b5bd6c900bd2ae962a19b7c4818fb08ea6dcfc4ce16eea44755656b15",
                "MacAddress": "0a:1b:23:e0:5f:62",
                "IPv4Address": "172.20.0.18/16",
                "IPv6Address": ""
            },
            "ed800cb39d369acaa15acaf4480d32a24e85721e28a0bf8b6ea441b0ea99fd21": {
                "Name": "nextcloud-aio-clamav",
                "EndpointID": "dcbfcc0e91c53772fd5c403db07b4a075d888ac4b353b0e7f0178855852deca3",
                "MacAddress": "ba:43:15:7e:6a:d6",
                "IPv4Address": "172.20.0.15/16",
                "IPv6Address": ""
            },
            "f17b3c7543981b8a9c779b42d1587d159c7d7b119445fc32659ea76ea08d4645": {
                "Name": "nextcloud-aio-database",
                "EndpointID": "e475930ea9a0b15f7d2173e35947e3069b6788bc731cefeacc0f29ef6d071ce8",
                "MacAddress": "3e:c9:57:59:a3:ac",
                "IPv4Address": "172.20.0.13/16",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {}
    }
]

Reminder:
nextcloud-aio-notify-push log:


Connection to nextcloud-aio-nextcloud (172.20.0.19) 9001 port [tcp/*] succeeded!
notify-push was started
Error:   × Failed to connect to database: error communicating with database: failed
  │ to lookup address information: Try again
  ├─▶ error communicating with database: failed to lookup address information:
  │   Try again
  ╰─▶ failed to lookup address information: Try again

It appears that notify-push can reach nextcloud-aio-nextcloud:9001, but fails when trying to connect to the database due to a “failed to lookup address information: Try again” error. From other containers on the nextcloud-aio network, nextcloud-aio-database resolves correctly and is reachable on port 5432.

Two items stand out to me:

  1. The EndpointID and the IPAddress fields are empty for the nextcloud-aio network.
  2. nextcloud-aio-notify-push is not listed under Containers in the nextcloud-aio network inspect even though its NetworkMode is set to nextcloud-aio, and its inspect shows empty IPAddress/EndpointID.

Thank you for the help!

Update

After leaving the NC instance up and running and moving forward without notify-push, I noticed that redis keeps going away as well:

[no app in context] Error: Redis server nextcloud-aio-redis:6379 went away
	from ? by -- at Nov 16, 2025 at 12:43:08 AM

[no app in context] Fatal: Could not boot webhook_listeners: read error on connection to nextcloud-aio-redis:6379
	from ? by -- at Nov 16, 2025 at 12:43:08 AM

This repeats with every user action.

However, the redis log itself is very mundane:

Redis has started

That is all of it, even after multiple restarts.

Additional tidbits:
nextcloud-aio-apache:

2025-11-16T19:04:14.631514567Z {"level":"error","ts":1763319854.6311095,"logger":"http.log.error","msg":"dial tcp: lookup nextcloud-aio-notify-push on 127.0.0.11:53: no such host","request":{"remote_ip":"172.20.0.19","remote_port":"34350","client_ip":"172.30.25.156","proto":"HTTP/1.1","method":"GET","host":"***REDACTED***","uri":"/push/ws","headers":{"Accept-Encoding":["gzip, deflate, br"],"Origin":["https://***REDACTED***"],"Sec-Fetch-Dest":["websocket"],"Accept":["*/*"],"Connection":["Upgrade"],"Pragma":["no-cache"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.1 Safari/605.1.15"],"Sec-Fetch-Mode":["websocket"],"X-Forwarded-Proto":["https"],"Sec-Websocket-Extensions":["permessage-deflate"],"Accept-Language":["en-US,en;q=0.9"],"Priority":["u=3, i"],"X-Forwarded-For":["172.30.25.156"],"Via":["1.1 Caddy"],"Cookie":["REDACTED"],"Sec-Websocket-Version":["13"],"Cache-Control":["no-cache"],"Sec-Fetch-Site":["same-origin"],"Sec-Websocket-Key":["JGLopFX8DTsw38aJfmyP6w=="],"Upgrade":["websocket"],"X-Forwarded-Host":["next.gairson.com"]}},"duration":0.000899918,"status":502,"err_id":"szx7dx7jc","err_trace":"reverseproxy.statusError (reverseproxy.go:1390)"}

Hi, can you follow How to recreate the `nextcloud-aio` network? · nextcloud/all-in-one · Discussion #4989 · GitHub and check if that helps?

Thank you for responding szaimen.

I have ran the recommended commands, as shown below, as well as done further analysis. I have broken down everything I did below, and am happy to do anything else needed to figure this out.

At various points, docker inspect shows nextcloud-aio-notify-push with an empty EndpointID/IPAddress and it is missing from docker inspect network nextcloud-aio → Containers, even though the Docker daemon logs show it being repeatedly assigned 172.18.0.10 on nextcloud-aio and then torn down again as the process exits.

1. Following your recommendation: recreate nextcloud-aio and restart AIO

I first shut down the non-AIO stacks that were attached to nextcloud-aio and then recreated the network as suggested:

maz@maz:~$ cd /tank/services/harp
maz@maz:/tank/services/harp$ docker compose down
[+] Running 1/1
 ✔ Container appapi-harp  Removed                                                                                                                                       10.4s
maz@maz:/tank/services/harp$ cd /tank/services/web
maz@maz:/tank/services/web$ docker compose down
[+] Running 3/3
 ✔ Container php-fpm      Removed                                                                                                                                        0.4s
 ✔ Container web-caddy-1  Removed                                                                                                                                        1.0s
 ✔ Network web_default    Removed                                                                                                                      0.2s

maz@maz:/tank/services/web$ sudo docker network disconnect nextcloud-aio nextcloud-aio-mastercontainer
maz@maz:/tank/services/web$ sudo docker network rm nextcloud-aio
nextcloud-aio
maz@maz:/tank/services/web$ sudo docker network create --driver bridge nextcloud-aio
050e288c903846f390bfcdcafb811fb3094fb764daccc67a3b12f2d12af5e643
maz@maz:/tank/services/web$ sudo docker network connect nextcloud-aio nextcloud-aio-mastercontainer
maz@maz:/tank/services/web$ sudo docker restart nextcloud-aio-mastercontainer
nextcloud-aio-mastercontainer

After this, I let the AIO mastercontainer (via the web interface: “Update containers” / “Start”) recreate the AIO stack, including nextcloud-aio-notify-push.

Unfortunately, nextcloud-aio-notify-push still ends up in a restart loop.

2. nextcloud-aio-notify-push logs

The logs for the notify-push container show that it can reach Nextcloud on port 9001, but then fails when trying to connect to the database with a name-resolution error:

2025-11-17T08:45:32.096082787Z nc: getaddrinfo for host "nextcloud-aio-nextcloud" port 9001: Name has no usable address
2025-11-17T08:45:32.096139256Z Waiting for Nextcloud to start...
2025-11-17T08:45:37.098960712Z nc: getaddrinfo for host "nextcloud-aio-nextcloud" port 9001: Name has no usable address
2025-11-17T08:45:37.099194536Z Waiting for Nextcloud to start...
2025-11-17T08:45:42.103369138Z Waiting for Nextcloud to start...
2025-11-17T08:45:47.106045647Z Waiting for Nextcloud to start...
2025-11-17T08:45:52.108934210Z Waiting for Nextcloud to start...
2025-11-17T08:45:57.111759435Z Waiting for Nextcloud to start...
2025-11-17T08:46:02.114652588Z Waiting for Nextcloud to start...
2025-11-17T08:46:07.118413460Z Waiting for Nextcloud to start...
2025-11-17T08:46:12.122228280Z Waiting for Nextcloud to start...
2025-11-17T08:46:17.125294269Z Connection to nextcloud-aio-nextcloud (172.18.0.18) 9001 port [tcp/*] succeeded!
2025-11-17T08:46:17.127524385Z notify-push was started
2025-11-17T08:46:19.153300031Z Error:   × Failed to connect to database: error communicating with database: failed
2025-11-17T08:46:19.153398208Z   │ to lookup address information: Try again
2025-11-17T08:46:19.153417738Z   ├─▶ error communicating with database: failed to lookup address information:
2025-11-17T08:46:19.153435667Z   │   Try again
2025-11-17T08:46:19.153452997Z   ╰─▶ failed to lookup address information: Try again
[repeats]

The nc loop initially can’t resolve nextcloud-aio-nextcloud, then eventually resolves it and connects to 172.18.0.18:9001. Once that succeeds, /start.sh runs the notify_push binary, which immediately fails with failed to lookup address information when trying to talk to the database.

3. Network inspect: notify-push vs other AIO containers

Right after (re)creation by AIO, docker inspect nextcloud-aio-notify-push often shows an empty network entry:

docker inspect nextcloud-aio-notify-push (snippet):

"Networks": {
  "nextcloud-aio": {
    "IPAMConfig": null,
    "Links": null,
    "Aliases": null,
    "MacAddress": "",
    "DriverOpts": null,
    "GwPriority": 0,
    "NetworkID": "050e288c903846f390bfcdcafb811fb3094fb764daccc67a3b12f2d12af5e643",
    "EndpointID": "",
    "Gateway": "",
    "IPAddress": "",
    "IPPrefixLen": 0,
    "IPv6Gateway": "",
    "GlobalIPv6Address": "",
    "GlobalIPv6PrefixLen": 0,
    "DNSNames": [
      "nextcloud-aio-notify-push",
      "2647c029ee98"
    ]
  }
}

And docker inspect nextcloud-aio has no nextcloud-aio-notify-push entry under .Containers at those moments:

docker inspect nextcloud-aio (snippet):

"Name": "nextcloud-aio",
"Id": "050e288c903846f390bfcdcafb811fb3094fb764daccc67a3b12f2d12af5e643",
...
"IPAM": {
  "Config": [
    {
      "Subnet": "172.18.0.0/16",
      "Gateway": "172.18.0.1"
    }
  ]
},
"Containers": {
  "8071a1ead95ebe19285861f53de9290d8320409fecb57f743db3d6ba417fbf86": {
    "Name": "nextcloud-aio-nextcloud",
    "EndpointID": "6ec4d2d37a24de914838b78e50d64b119246479daa30b685c2e7e526da0932fe",
    "MacAddress": "16:c3:0d:38:5c:63",
    "IPv4Address": "172.18.0.18/16",
    "IPv6Address": ""
  },
  "eec86d6adf782b1ead8e7b2537e9550e9514eddc948654b5052a81f1e770bfb6": {
    "Name": "nextcloud-aio-apache",
    "EndpointID": "feb4d49199c751e00770e903bce150741582408d0f49c24da9f2a5f2bdc83deb",
    "MacAddress": "5e:e7:9a:66:0a:68",
    "IPv4Address": "172.18.0.19/16",
    "IPv6Address": ""
  },
  "ef96ec2ef1044e8c9184e335d2fc490e3e070b106915d9ec8a35649e2b2fbb70": {
    "Name": "nextcloud-aio-database",
    "EndpointID": "cbd66466b35fbb1b791ce418c832aa2d09aaf23e33db3532e190004042a549ca",
    "MacAddress": "26:39:42:76:6b:df",
    "IPv4Address": "172.18.0.12/16",
    "IPv6Address": ""
  },
  "e5ca7960d2712160b1ca22a2c4f3b388cf6dfc99f2b691c6a05b03e5ac47a485": {
    "Name": "nextcloud-aio-redis",
    "EndpointID": "28e3d8b159e1385f008e1428600224c1c107b0e831bd41daa3931c60eeb1e867",
    "MacAddress": "d6:6d:5b:1e:44:28",
    "IPv4Address": "172.18.0.13/16",
    "IPv6Address": ""
  },
  ...
}

All the other AIO containers (Nextcloud, Apache, PostgreSQL, Redis, etc.) have normal Gateway and IPAddress values on 172.18.0.0/16. Only nextcloud-aio-notify-push is seen with an empty IP/EndpointID when I inspect it during the restart loop.

For completeness, the logs and docker events at debug level show Docker repeatedly creating a normal endpoint for nextcloud-aio-notify-push (assigning 172.18.0.10, setting the veth up, sending ARP) and then tearing it down each time the process exits, so the empty IP in docker inspect may be a snapshot between restarts, not a permanent failure to attach.

4. Manual docker network connect experiment

I also tried a manual connect/disconnect cycle:

maz@maz:/tank/services/web$ docker stop nextcloud-aio-notify-push || true
nextcloud-aio-notify-push
maz@maz:/tank/services/web$ docker network disconnect nextcloud-aio nextcloud-aio-notify-push || true
maz@maz:/tank/services/web$ docker start nextcloud-aio-notify-push
nextcloud-aio-notify-push
maz@maz:/tank/services/web$ docker network connect nextcloud-aio nextcloud-aio-notify-push || true

Immediately after this, docker inspect shows a fully populated network entry:

"Networks": {
  "nextcloud-aio": {
    "IPAMConfig": {},
    "Links": null,
    "Aliases": [],
    "MacAddress": "76:8b:49:59:bd:5e",
    "DriverOpts": {},
    "GwPriority": 0,
    "NetworkID": "050e288c903846f390bfcdcafb811fb3094fb764daccc67a3b12f2d12af5e643",
    "EndpointID": "26074da6a19c19cf8f124e66973e369ccba8ac9cb5a5774dec94200aacc1d602",
    "Gateway": "172.18.0.1",
    "IPAddress": "172.18.0.20",
    "IPPrefixLen": 16,
    "IPv6Gateway": "",
    "GlobalIPv6Address": "",
    "GlobalIPv6PrefixLen": 0,
    "DNSNames": [
      "nextcloud-aio-notify-push",
      "58f2feb690b5"
    ]
  }
}

However, as soon as the notify_push process exits and Docker restarts the container, that endpoint is revoked and we’re back in the same restart loop; the entry disappears from docker inspect network nextcloud-aio → .Containers until the next short-lived start.

So this looks more like a consequence of the crash-loop than the root cause.

5. Sanity check: DNS & TCP from another container on nextcloud-aio

To be sure it wasn’t a general network issue, I used a separate Alpine container on the nextcloud-aio network:

docker run --rm -it --network nextcloud-aio alpine sh

Inside:

/ # getent hosts nextcloud-aio-database
172.18.0.12       nextcloud-aio-database  nextcloud-aio-database

/ # getent hosts nextcloud-aio-nextcloud
172.18.0.18       nextcloud-aio-nextcloud  nextcloud-aio-nextcloud

/ # nc -vz nextcloud-aio-database 5432
nextcloud-aio-database (172.18.0.12:5432) open

/ # nc -vz nextcloud-aio-nextcloud 9001
nextcloud-aio-nextcloud (172.18.0.18:9001) open

/ # getent hosts nextcloud-aio-notify-push
# (no output, which is expected since the container is short-lived and often between restarts)

Thus, from another container on nextcloud-aio DNS for nextcloud-aio-database and nextcloud-aio-nextcloud works, and both ports (5432 and 9001) are reachable.

6. Sanity check: DNS from inside the aio-notify-push image itself

To rule out any image-specific resolver quirks, I ran a shell in the same image on the nextcloud-aio network:

docker run --rm -it \
  --network nextcloud-aio \
  --entrypoint sh \
  ghcr.io/nextcloud-releases/aio-notify-push:latest

Inside:

~ $ cat /etc/resolv.conf
# Generated by Docker Engine.
# This file can be edited; Docker Engine will not make further changes once it
# has been modified.

nameserver 127.0.0.11
search .
options timeout:2 attempts:2 ndots:1

# Based on host file: '/etc/resolv.conf' (internal resolver)
# ExtServers: [172.30.25.187]
# Overrides: [nameservers options]
# Option ndots from: override

~ $ getent hosts nextcloud-aio-database
172.18.0.12       nextcloud-aio-database  nextcloud-aio-database

~ $ getent hosts nextcloud-aio-nextcloud
172.18.0.18       nextcloud-aio-nextcloud  nextcloud-aio-nextcloud

~ $ nslookup nextcloud-aio-database
Server:		127.0.0.11
Address:	127.0.0.11:53

Non-authoritative answer:
Name:	nextcloud-aio-database
Address: 172.18.0.12

~ $ nslookup nextcloud-aio-nextcloud
Server:		127.0.0.11
Address:	127.0.0.11:53

Non-authoritative answer:
Name:	nextcloud-aio-nextcloud
Address: 172.18.0.18

So DNS resolution inside the actual aio-notify-push image is also working correctly for both the Nextcloud and PostgreSQL container hostnames.

7. Verification of /start.sh in aio-notify-push**

I then checked how /start.sh builds the database URL:

docker run --rm \
  --entrypoint cat \
  ghcr.io/nextcloud-releases/aio-notify-push:latest \
  /start.sh

Output (excerpt):

#!/bin/bash

if [ -z "$NEXTCLOUD_HOST" ]; then
    echo "NEXTCLOUD_HOST needs to be provided. Exiting!"
    exit 1
elif [ -z "$POSTGRES_HOST" ]; then
    echo "POSTGRES_HOST needs to be provided. Exiting!"
    exit 1
elif [ -z "$REDIS_HOST" ]; then
    echo "REDIS_HOST needs to be provided. Exiting!"
    exit 1
fi

# Only start container if nextcloud is accessible
while ! nc -z "$NEXTCLOUD_HOST" 9001; do
    echo "Waiting for Nextcloud to start..."
    sleep 5
done

...

# Set a default value for POSTGRES_PORT
if [ -z "$POSTGRES_PORT" ]; then
    POSTGRES_PORT=5432
fi
# Set a default for redis db index
if [ -z "$REDIS_DB_INDEX" ]; then
    REDIS_DB_INDEX=0
fi
# Set a default for db type
if [ -z "$DATABASE_TYPE" ]; then
    DATABASE_TYPE=postgres
elif [ "$DATABASE_TYPE" != postgres ] && [ "$DATABASE_TYPE" != mysql ]; then
    echo "DB type must be either postgres or mysql"
    exit 1
fi

# Use the correct Postgres username
if [ "$POSTGRES_USER" = nextcloud ]; then
    POSTGRES_USER="oc_$POSTGRES_USER"
    export POSTGRES_USER
fi

# Postgres root cert
if [ -f "/nextcloud/data/certificates/POSTGRES" ]; then
    POSTGRES_CERT="?sslmode=verify-ca&sslrootcert=/nextcloud/data/certificates/POSTGRES"
fi

# Set sensitive values as env
export DATABASE_URL="$DATABASE_TYPE://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST:$POSTGRES_PORT/$POSTGRES_DB$POSTGRES_CERT"
export REDIS_URL="redis://$REDIS_USER:$REDIS_HOST_PASSWORD@$REDIS_HOST/$REDIS_DB_INDEX"

# Run it
/nextcloud/custom_apps/notify_push/bin/"$CPU_ARCH"/notify_push \
    --database-prefix="oc_" \
    --nextcloud-url "https://$NC_DOMAIN" \
    --port 7867

exec "$@"

Given the env passed by AIO (from the Docker API logs), the DATABASE_URL ends up looking like:

postgres://oc_nextcloud:***@nextcloud-aio-database:5432/nextcloud_database[?sslmode=...]

which seems syntactically valid and uses POSTGRES_HOST=nextcloud-aio-database, which we know resolves and is reachable from inside the image.

8. Docker daemon / events summary

  • Assigning addresses for endpoint nextcloud-aio-notify-push’s interface on network nextcloud-aio
  • Sending unsolicited ARP/NA … ip4=172.18.0.10/16 …
  • [resolver] lookup for nextcloud-aio-nextcloud.: IP [172.18.0.18]
  • No errors about endpoint creation, IPAM, or bridge configuration.

From docker events:

  • Repeated container start … nextcloud-aio-notify-push and container die … exitCode=0 with short execDuration (~2 seconds).

Thus, Docker appears to be:

  • Successfully creating and attaching the container to nextcloud-aio with an IP.
  • Tearing the endpoint down when the process exits, then recreating it on restart.

9. Provisional conclusion

Given that
a) DNS and TCP connectivity to nextcloud-aio-database:5432 and nextcloud-aio-nextcloud:9001 work from both:

b) /start.sh constructs a syntactically valid DATABASE_URL using POSTGRES_HOST=nextcloud-aio-database,

c) Docker’s own logs show successful endpoint creation and DNS service records for nextcloud-aio-notify-push with no IPAM/bridge errors,

d) and yet the notify_push process immediately exits with:

Failed to connect to database: error communicating with database: failed
  │ to lookup address information: Try again
  ├─▶ error communicating with database: failed to lookup address information:
  │   Try again
  ╰─▶ failed to lookup address information: Try again

My current guess is that this may be an issue in the notify-push binary’s database client / name resolution on this AIO + PostgreSQL 17.6 setup, rather than a Docker network or general DNS configuration problem.

I’m happy to run any additional commands if that would help narrow this down.

Thank you!

I finally gave up and just started using the server. After it had backed up nearly 400GB of data, notify-push came up without any explanation. I changed nothing else on the server. It just works now. I have reset it, rebooted it, done everything, it still works.

The ghost in the machine is passed. All I can figure is that something upstream from me was affecting a sanity check the system does by blocking traffic and that must have been removed at some point.

As it stands, this is resolved and I do not understand why.

1 Like

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