The Error:
Installation for Nextcloud AIO won’t finialise, nextcloud-aio-nextcloud keeps restarting.
Log for the container nextcloud-aio-nextcloud:
Connection to nextcloud-aio-database (172.18.0.5) 5432 port [tcp/postgresql] succeeded!
+ '[' -f /dev-dri-group-was-added ']'
++ find /dev -maxdepth 1 -mindepth 1 -name dri
+ '[' -n '' ']'
+ set +x
Enabling Imagick...
WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.19/main: No such file or directory
WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.19/community: No such file or directory
The initial Nextcloud installation failed.
Please reset AIO properly and try again. For further clues what went wrong, check the logs above.
See https://github.com/nextcloud/all-in-one#how-to-properly-reset-the-instance
Connection to nextcloud-aio-database (172.18.0.5) 5432 port [tcp/postgresql] succeeded!
+ '[' -f /dev-dri-group-was-added ']'
++ find /dev -maxdepth 1 -mindepth 1 -name dri
+ '[' -n '' ']'
+ set +x
The initial Nextcloud installation failed.
Please reset AIO properly and try again. For further clues what went wrong, check the logs above.
See https://github.com/nextcloud/all-in-one#how-to-properly-reset-the-instance
Connection to nextcloud-aio-database (172.18.0.5) 5432 port [tcp/postgresql] succeeded!
+ '[' -f /dev-dri-group-was-added ']'
++ find /dev -maxdepth 1 -mindepth 1 -name dri
+ '[' -n '' ']'
+ set +x
and
The message at the setup page:
Nextcloud AIO v8.1.0
You are running the latest channel. (Logs)
It seems like at least one container is currently restarting which means it is not able to start correctly.
To break out this endless loop, you can stop the containers below and investigate the issue by having a look at the container logs before starting them again.
There are no errors in the 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
{"level":"info","ts":1712321724.8323603,"msg":"using provided configuration","config_file":"/Caddyfile","config_adapter":""}
[Fri Apr 05 12:55:24.852711 2024] [mpm_event:notice] [pid 131:tid 130809280334600] AH00489: Apache/2.4.58 (Unix) OpenSSL/3.1.4 configured -- resuming normal operations
[Fri Apr 05 12:55:24.853100 2024] [core:notice] [pid 131:tid 130809280334600] AH00094: Command line: 'httpd -D FOREGROUND'
[05-Apr-2024 12:55:24] NOTICE: fpm is running, pid 137
[05-Apr-2024 12:55:24] NOTICE: ready to handle connections**strong text**
Screenshot:
Nextcloud AIO version
- Nextcloud AIO v8.1.0
Docker Version
- Docker version 26.0.0, build 2ae903e
Host OS
- Distributor ID: Ubuntu
- Description: Ubuntu 22.04.4 LTS
- Release: 22.04
- Codename: jammy
Custom used to install Nextcloud AIO:
sudo docker run \
--init \
--sig-proxy=false \
--name nextcloud-aio-mastercontainer \
--restart always \
--publish 8080:8080 \
--env APACHE_PORT=11000 \
--env APACHE_IP_BINDING=0.0.0.0 \
--env NEXTCLOUD_DATADIR="/mnt/sda1/nextcloud/data" \
--env SKIP_DOMAIN_VALIDATION=true \
--env NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS="imagick" \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
nextcloud/all-in-one:latest
Additional logs:
- Logs for nextcloud-aio-database:
+ rm -rf '/var/lib/postgresql/data/*'
+ touch /mnt/data/initial-cleanup-done
x
chmod: /var/run/postgresql: Operation not permitted
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Australia/Melbourne
creating configuration files ... ok
running bootstrap script ... ok
sh: locale: not found
2024-04-06 01:59:47.047 AEDT [30] WARNING: no usable system locales were found
performing post-bootstrap initialization ... ok
syncing data to disk ... ok
initdb: warning: enabling "trust" authentication for local connections
initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
Success. You can now start the database server using:
pg_ctl -D /var/lib/postgresql/data -l logfile start
waiting for server to start....2024-04-06 01:59:48.926 AEDT [36] LOG: starting PostgreSQL 15.6 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit
2024-04-06 01:59:48.926 AEDT [36] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-04-06 01:59:49.001 AEDT [39] LOG: database system was shut down at 2024-04-06 01:59:47 AEDT
2024-04-06 01:59:49.027 AEDT [36] LOG: database system is ready to accept connections
done
server started
CREATE DATABASE
/usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/init-user-db.sh
+ touch /mnt/data/initialization.failed
+ psql -v ON_ERROR_STOP=1 --username nextcloud --dbname nextcloud_database
CREATE ROLE
ALTER DATABASE
GRANT
GRANT
+ rm /mnt/data/initialization.failed
x
waiting for server to shut down....2024-04-06 01:59:49.419 AEDT [36] LOG: received fast shutdown request
2024-04-06 01:59:49.483 AEDT [36] LOG: aborting any active transactions
2024-04-06 01:59:49.487 AEDT [36] LOG: background worker "logical replication launcher" (PID 42) exited with exit code 1
2024-04-06 01:59:49.488 AEDT [37] LOG: shutting down
2024-04-06 01:59:49.516 AEDT [37] LOG: checkpoint starting: shutdown immediate
2024-04-06 01:59:50.075 AEDT [37] LOG: checkpoint complete: wrote 929 buffers (5.7%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.189 s, sync=0.281 s, total=0.587 s; sync files=308, longest=0.152 s, average=0.001 s; distance=4239 kB, estimate=4239 kB
2024-04-06 01:59:50.086 AEDT [36] LOG: database system is shut down
done
server stopped
PostgreSQL init process complete; ready for start up.
2024-04-06 01:59:50.192 AEDT [14] LOG: starting PostgreSQL 15.6 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit
2024-04-06 01:59:50.192 AEDT [14] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-04-06 01:59:50.192 AEDT [14] LOG: listening on IPv6 address "::", port 5432
2024-04-06 01:59:50.216 AEDT [14] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-04-06 01:59:50.266 AEDT [57] LOG: database system was shut down at 2024-04-06 01:59:50 AEDT
2024-04-06 01:59:50.293 AEDT [14] LOG: database system is ready to accept connections
- Logs for nextcloud-aio-apache:
nc: getaddrinfo for host "nextcloud-aio-nextcloud" port 9000: Try again
Waiting for Nextcloud to start...
- No logs for redis
- Logs for nextcloud-aio-notify-push
nc: getaddrinfo for host "nextcloud-aio-nextcloud" port 9001: Try again
Waiting for Nextcloud to start...
- Logs for nextcloud-aio-docker-socket-proxy
nc: bad address 'nextcloud-aio-nextcloud'
Waiting for Nextcloud to start...
Docker inspect:
- Inspection of nextcloud/aio-nextcloud:latest:
[
{
"Id": "9f761800b1c6cd7e502bfe4581657dd6bde9b0652ff1c548ec0d275e07839453",
"Created": "2024-04-06T08:09:10.896278131Z",
"Path": "/start.sh",
"Args": [
"/usr/bin/supervisord",
"-c",
"/supervisord.conf"
],
"State": {
"Status": "restarting",
"Running": true,
"Paused": false,
"Restarting": true,
"OOMKilled": false,
"Dead": false,
"Pid": 0,
"ExitCode": 1,
"Error": "",
"StartedAt": "2024-04-06T08:22:24.499522713Z",
"FinishedAt": "2024-04-06T08:22:25.085214043Z",
"Health": {
"Status": "unhealthy",
"FailingStreak": 0,
"Log": []
}
},
"Image": "sha256:3d7bc773934ea7ba4e1045b51180ad6ae4ba2fac7673c6bec96d224be47d813f",
"ResolvConfPath": "/var/lib/docker/containers/9f761800b1c6cd7e502bfe4581657dd6bde9b0652ff1c548ec0d275e07839453/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/9f761800b1c6cd7e502bfe4581657dd6bde9b0652ff1c548ec0d275e07839453/hostname",
"HostsPath": "/var/lib/docker/containers/9f761800b1c6cd7e502bfe4581657dd6bde9b0652ff1c548ec0d275e07839453/hosts",
"LogPath": "/var/lib/docker/containers/9f761800b1c6cd7e502bfe4581657dd6bde9b0652ff1c548ec0d275e07839453/9f761800b1c6cd7e502bfe4581657dd6bde9b0652ff1c548ec0d275e07839453-json.log",
"Name": "/nextcloud-aio-nextcloud",
"RestartCount": 22,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "docker-default",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"nextcloud_aio_nextcloud:/var/www/html:rw",
"/mnt/sda1/nextcloud/data:/mnt/ncdata: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": false,
"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/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": {
"LowerDir": "/var/lib/docker/overlay2/99a199419aca27ef46ea27a59defde3f04027c394d56a042b3409ebf915d6837-init/diff:/var/lib/docker/overlay2/bf5e551268a8207933b4442e16c3782e26dd9535b1ab767afcb68eb14924a22e/diff:/var/lib/docker/overlay2/2b2b37fecdaf1f9d7172a232099fcc861f22ebf6cf254d6b3f44e568e7eea7df/diff:/var/lib/docker/overlay2/5da673da7765230faf307b21f040e8f6b4a0bd00bfc13a4e8d51bfe2fc60087a/diff:/var/lib/docker/overlay2/f7927391864f3f6f6188533d9d539e12d8f3867428bd84cca933ca11ba5b1b17/diff:/var/lib/docker/overlay2/c2be8915fdd01bc93dc77f5f1934240c2a9d5c64826c884a7b63a8591eb7b6d6/diff:/var/lib/docker/overlay2/d986a55cbf61737c20502aa895bdd25e0ca37bb84c59a1dbbfc23ad560eb9eae/diff:/var/lib/docker/overlay2/88c5549684768a5bef20c2bf52f7385732e516f7352389eeb99770adb8c0db3a/diff:/var/lib/docker/overlay2/da5076101e54dceee9cd87645968a746f93a3320578a3ef12010b319709f02b9/diff:/var/lib/docker/overlay2/d0714c64b7e5d1a0eb2f602c46728ddfb3950bcbb25f650601508d1f05d35110/diff:/var/lib/docker/overlay2/8885d02ec93fa3fb693a983809e738e92f3e9f5a42dc80efdb778c3b15454e55/diff:/var/lib/docker/overlay2/b341c4136f77270d119b5d1ecffd19c19270592681762dbd19141553da915d01/diff:/var/lib/docker/overlay2/1dc47f08728a545a746d100a0181e95f5b6ab452859290100cc518cf5dc6b2c0/diff:/var/lib/docker/overlay2/b06683fc369811dfb6f4297b6e095942fd2d715f300653161874dd7230f9da89/diff:/var/lib/docker/overlay2/ae790014d311b7127d0d278c353700e4ea8db2909cb1a5cd3c5657232575c62e/diff:/var/lib/docker/overlay2/36234d5583828312079e7871960c502e99b5e091c19331eb01f5f11292cc6fe5/diff",
"MergedDir": "/var/lib/docker/overlay2/99a199419aca27ef46ea27a59defde3f04027c394d56a042b3409ebf915d6837/merged",
"UpperDir": "/var/lib/docker/overlay2/99a199419aca27ef46ea27a59defde3f04027c394d56a042b3409ebf915d6837/diff",
"WorkDir": "/var/lib/docker/overlay2/99a199419aca27ef46ea27a59defde3f04027c394d56a042b3409ebf915d6837/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "volume",
"Name": "nextcloud_aio_nextcloud",
"Source": "/var/lib/docker/volumes/nextcloud_aio_nextcloud/_data",
"Destination": "/var/www/html",
"Driver": "local",
"Mode": "rw",
"RW": true,
"Propagation": ""
},
{
"Type": "bind",
"Source": "/mnt/sda1/nextcloud/data",
"Destination": "/mnt/ncdata",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "9f761800b1c6",
"Domainname": "",
"User": "root",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"9000/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"POSTGRES_HOST=nextcloud-aio-database",
"POSTGRES_PASSWORD=cd5e898f2ff7433f3024a10ba4119e4140d691e8954f9674",
"POSTGRES_DB=nextcloud_database",
"POSTGRES_USER=nextcloud",
"REDIS_HOST=nextcloud-aio-redis",
"REDIS_HOST_PASSWORD=53d9d48f5eee32efe1f23afa3eac6c0f066cb1d9a9d450f3",
"AIO_TOKEN=cc3759cae2732234e9b56172f86ea49eb604fc78a171a9f4",
"NC_DOMAIN=nextcloud.neomechanical.com",
"ADMIN_USER=admin",
"ADMIN_PASSWORD=41b2d794e63874bc28a2ec2fc15b45c76757ac29e8db0c01",
"NEXTCLOUD_DATA_DIR=/mnt/ncdata",
"OVERWRITEHOST=nextcloud.neomechanical.com",
"OVERWRITEPROTOCOL=https",
"TURN_SECRET=4cfac7276ee5bf8fedbe06ff2d58a9019ea7c2e2790bdbf2",
"SIGNALING_SECRET=9478974d7491e30e90019d46180c98014d3d8627f3003da1",
"ONLYOFFICE_SECRET=b43415fc603b4d65ec4584954f0be2aa19add3d66ad1f1a9",
"AIO_URL=123.456.789:8080", #changed for privacy
"NEXTCLOUD_MOUNT=",
"CLAMAV_ENABLED=",
"CLAMAV_HOST=nextcloud-aio-clamav",
"ONLYOFFICE_ENABLED=",
"COLLABORA_ENABLED=yes",
"COLLABORA_HOST=nextcloud-aio-collabora",
"TALK_ENABLED=yes",
"ONLYOFFICE_HOST=nextcloud-aio-onlyoffice",
"UPDATE_NEXTCLOUD_APPS=",
"TZ=Australia/Melbourne",
"TALK_PORT=3478",
"IMAGINARY_ENABLED=yes",
"IMAGINARY_HOST=nextcloud-aio-imaginary",
"PHP_UPLOAD_LIMIT=10G",
"PHP_MEMORY_LIMIT=512M",
"FULLTEXTSEARCH_ENABLED=",
"FULLTEXTSEARCH_HOST=nextcloud-aio-fulltextsearch",
"PHP_MAX_TIME=3600",
"TRUSTED_CACERTS_DIR=",
"STARTUP_APPS=deck twofactor_totp tasks calendar contacts notes",
"ADDITIONAL_APKS=imagemagick",
"ADDITIONAL_PHP_EXTENSIONS=imagick",
"INSTALL_LATEST_MAJOR=",
"TALK_RECORDING_ENABLED=",
"RECORDING_SECRET=1db87174ca86693fccdd3d673279ae9f3243250800dbbfa3",
"TALK_RECORDING_HOST=nextcloud-aio-talk-recording",
"FULLTEXTSEARCH_PASSWORD=246ea1a7c2bf2135b4bd24eeca68f9d8d847486b18ec7336",
"DOCKER_SOCKET_PROXY_ENABLED=",
"REMOVE_DISABLED_APPS=yes",
"APACHE_PORT=11000",
"APACHE_IP_BINDING=0.0.0.0",
"ADDITIONAL_TRUSTED_PROXY=",
"THIS_IS_AIO=true",
"IMAGINARY_SECRET=ca02e25ebd42ce1f896061facc44618ab1e9202639eb23e2",
"NEXTCLOUD_EXEC_COMMANDS=echo 'Activating Collabora config...'\nphp /var/www/html/occ richdocuments:activate-config\n",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"PHPIZE_DEPS=autoconf \t\tdpkg-dev dpkg \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkgconf \t\tre2c",
"PHP_INI_DIR=/usr/local/etc/php",
"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=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC",
"PHP_VERSION=8.2.17",
"PHP_URL=https://www.php.net/distributions/php-8.2.17.tar.xz",
"PHP_ASC_URL=https://www.php.net/distributions/php-8.2.17.tar.xz.asc",
"PHP_SHA256=1cc4ef733ba58f6557db648012471f1916e5bac316303aa165535bedab08ee35",
"SOURCE_LOCATION=/usr/src/nextcloud",
"NEXTCLOUD_VERSION=28.0.4"
],
"Cmd": [
"/usr/bin/supervisord",
"-c",
"/supervisord.conf"
],
"Healthcheck": {
"Test": [
"CMD-SHELL",
"sudo -E -u www-data bash /healthcheck.sh"
],
"StartPeriod": 60000000000
},
"Image": "nextcloud/aio-nextcloud:latest",
"Volumes": {
"/mnt/ncdata": {},
"/var/www/html": {}
},
"WorkingDir": "/var/www/html",
"Entrypoint": [
"/start.sh"
],
"OnBuild": null,
"Labels": {
"com.centurylinklabs.watchtower.enable": "false"
},
"StopSignal": "SIGQUIT"
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "59b9044f48a5b2e71438904d78599a941d20251c6565eb65b55b2b5b53e04c3e",
"SandboxKey": "/var/run/docker/netns/59b9044f48a5",
"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": "",
"NetworkID": "006fa285cfd8eda055add801546d707e0407996e7ec8a279b626bf65119ced2e",
"EndpointID": "",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"DriverOpts": null,
"DNSNames": [
"nextcloud-aio-nextcloud",
"9f761800b1c6"
]
}
}
}
}
]
- Inspection of nextcloud/all-in-one:latest
[
{
"Id": "1a64b8aa6b74c27aa1dcedf0ef869435058de4f978aeb00c055a2a5f26da1a39",
"Created": "2024-04-06T07:50:03.629918974Z",
"Path": "/start.sh",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 3949,
"ExitCode": 0,
"Error": "",
"StartedAt": "2024-04-06T08:03:32.496341077Z",
"FinishedAt": "2024-04-06T08:02:38.602863414Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2024-04-06T19:22:35.337094952+11:00",
"End": "2024-04-06T19:22:35.418684387+11:00",
"ExitCode": 0,
"Output": "Connection to localhost (::1) 80 port [tcp/http] succeeded!\nConnection to localhost (::1) 8000 port [tcp/*] succeeded!\nConnection to localhost (::1) 8080 port [tcp/http-alt] succeeded!\nConnection to localhost (::1) 8443 port [tcp/*] succeeded!\nConnection to localhost (::1) 9000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9876 port [tcp/*] succeeded!\n"
},
{
"Start": "2024-04-06T19:23:05.419230997+11:00",
"End": "2024-04-06T19:23:05.467756154+11:00",
"ExitCode": 0,
"Output": "Connection to localhost (::1) 80 port [tcp/http] succeeded!\nConnection to localhost (::1) 8000 port [tcp/*] succeeded!\nConnection to localhost (::1) 8080 port [tcp/http-alt] succeeded!\nConnection to localhost (::1) 8443 port [tcp/*] succeeded!\nConnection to localhost (::1) 9000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9876 port [tcp/*] succeeded!\n"
},
{
"Start": "2024-04-06T19:23:35.468878217+11:00",
"End": "2024-04-06T19:23:35.553008486+11:00",
"ExitCode": 0,
"Output": "Connection to localhost (::1) 80 port [tcp/http] succeeded!\nConnection to localhost (::1) 8000 port [tcp/*] succeeded!\nConnection to localhost (::1) 8080 port [tcp/http-alt] succeeded!\nConnection to localhost (::1) 8443 port [tcp/*] succeeded!\nConnection to localhost (::1) 9000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9876 port [tcp/*] succeeded!\n"
},
{
"Start": "2024-04-06T19:24:05.554451903+11:00",
"End": "2024-04-06T19:24:05.664459159+11:00",
"ExitCode": 0,
"Output": "Connection to localhost (::1) 80 port [tcp/http] succeeded!\nConnection to localhost (::1) 8000 port [tcp/*] succeeded!\nConnection to localhost (::1) 8080 port [tcp/http-alt] succeeded!\nConnection to localhost (::1) 8443 port [tcp/*] succeeded!\nConnection to localhost (::1) 9000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9876 port [tcp/*] succeeded!\n"
},
{
"Start": "2024-04-06T19:24:35.665910243+11:00",
"End": "2024-04-06T19:24:35.729354338+11:00",
"ExitCode": 0,
"Output": "Connection to localhost (::1) 80 port [tcp/http] succeeded!\nConnection to localhost (::1) 8000 port [tcp/*] succeeded!\nConnection to localhost (::1) 8080 port [tcp/http-alt] succeeded!\nConnection to localhost (::1) 8443 port [tcp/*] succeeded!\nConnection to localhost (::1) 9000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9876 port [tcp/*] succeeded!\n"
}
]
}
},
"Image": "sha256:cf32daf3edd8420253f0fa7252b8896b59b30db82f66dd52591cdb4c8bbf2f68",
"ResolvConfPath": "/var/lib/docker/containers/1a64b8aa6b74c27aa1dcedf0ef869435058de4f978aeb00c055a2a5f26da1a39/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/1a64b8aa6b74c27aa1dcedf0ef869435058de4f978aeb00c055a2a5f26da1a39/hostname",
"HostsPath": "/var/lib/docker/containers/1a64b8aa6b74c27aa1dcedf0ef869435058de4f978aeb00c055a2a5f26da1a39/hosts",
"LogPath": "/var/lib/docker/containers/1a64b8aa6b74c27aa1dcedf0ef869435058de4f978aeb00c055a2a5f26da1a39/1a64b8aa6b74c27aa1dcedf0ef869435058de4f978aeb00c055a2a5f26da1a39-json.log",
"Name": "/nextcloud-aio-mastercontainer",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "docker-default",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"nextcloud_aio_mastercontainer:/mnt/docker-aio-config",
"/var/run/docker.sock:/var/run/docker.sock:ro"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "default",
"PortBindings": {
"8080/tcp": [
{
"HostIp": "",
"HostPort": "8080"
}
]
},
"RestartPolicy": {
"Name": "always",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"ConsoleSize": [
24,
80
],
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "private",
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"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": [],
"BlkioDeviceReadBps": [],
"BlkioDeviceWriteBps": [],
"BlkioDeviceReadIOps": [],
"BlkioDeviceWriteIOps": [],
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DeviceCgroupRules": null,
"DeviceRequests": null,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": null,
"PidsLimit": null,
"Ulimits": [],
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"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",
"/sys/devices/virtual/powercap"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
],
"Init": true
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/5b110abae17d4e92f7e7682f400a9ceb53cd78ec15bb694d8a02f41e1840c231-init/diff:/var/lib/docker/overlay2/875b03a147c6a23baa026bceae67a71a1cc6bf386adc87e9364f5027ee1b4c08/diff:/var/lib/docker/overlay2/2e50106255b6f91ab4671d80c40aa3d003f22b1aba7e109319bf29af7a1d0bd6/diff:/var/lib/docker/overlay2/fa760e34d547f0c2af4084b9bc734e086d543b5041ed663ad0de27f8d220b2ad/diff:/var/lib/docker/overlay2/1f400812ba09e78e0a7d74739302013788e721a1ba41d133b2a16e24b26c1bd0/diff:/var/lib/docker/overlay2/914cdbd486746bc0b0e0aa7a0907f1c34750e3485cb8a2010343d0c10699651e/diff:/var/lib/docker/overlay2/978fd17dbe0633d3764c8a5188e1680b9d5321747c302bd7ae29b67ab6b22a28/diff:/var/lib/docker/overlay2/f318dbb2c5ca56bd14074fdbbea6a7ec30ccb5874c7b0a5293af731f31d86c1a/diff:/var/lib/docker/overlay2/f73d78163782ee9c3b11a0b5b54a04efebc3189ff377211b000435c0ec54a209/diff:/var/lib/docker/overlay2/021d2bb637d320b650b93b7ffa56a5adbb2775f2d94fe7c4faa5aa1f49c2de8e/diff:/var/lib/docker/overlay2/73eb7d6aa3fb9385cd95550e6adee3ac40492f9c2b9d970682faacdb37b9e80c/diff:/var/lib/docker/overlay2/9a4356a88b1e75902737df18886a8889436a5e680e06e10b1e489d160c4ff52b/diff:/var/lib/docker/overlay2/0fa37b9b61357fed0c4426d2f503a67c545099c597b17fc1c452781429268ab8/diff:/var/lib/docker/overlay2/adcc3e7b8b5e17337b5b55cb75833e82b6f7c25046f424cdb88bf851af89fd90/diff:/var/lib/docker/overlay2/c886e13a6d94e61a5d6f97987b535bbf1481cf0a14039229ae67744560670492/diff:/var/lib/docker/overlay2/1dc47f08728a545a746d100a0181e95f5b6ab452859290100cc518cf5dc6b2c0/diff:/var/lib/docker/overlay2/b06683fc369811dfb6f4297b6e095942fd2d715f300653161874dd7230f9da89/diff:/var/lib/docker/overlay2/ae790014d311b7127d0d278c353700e4ea8db2909cb1a5cd3c5657232575c62e/diff:/var/lib/docker/overlay2/36234d5583828312079e7871960c502e99b5e091c19331eb01f5f11292cc6fe5/diff",
"MergedDir": "/var/lib/docker/overlay2/5b110abae17d4e92f7e7682f400a9ceb53cd78ec15bb694d8a02f41e1840c231/merged",
"UpperDir": "/var/lib/docker/overlay2/5b110abae17d4e92f7e7682f400a9ceb53cd78ec15bb694d8a02f41e1840c231/diff",
"WorkDir": "/var/lib/docker/overlay2/5b110abae17d4e92f7e7682f400a9ceb53cd78ec15bb694d8a02f41e1840c231/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "volume",
"Name": "nextcloud_aio_mastercontainer",
"Source": "/var/lib/docker/volumes/nextcloud_aio_mastercontainer/_data",
"Destination": "/mnt/docker-aio-config",
"Driver": "local",
"Mode": "z",
"RW": true,
"Propagation": ""
},
{
"Type": "bind",
"Source": "/var/run/docker.sock",
"Destination": "/var/run/docker.sock",
"Mode": "ro",
"RW": false,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "1a64b8aa6b74",
"Domainname": "",
"User": "root",
"AttachStdin": false,
"AttachStdout": true,
"AttachStderr": true,
"ExposedPorts": {
"80/tcp": {},
"8080/tcp": {},
"8443/tcp": {},
"9000/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"SKIP_DOMAIN_VALIDATION=true",
"APACHE_PORT=11000",
"APACHE_IP_BINDING=0.0.0.0",
"NEXTCLOUD_DATADIR=/mnt/sda1/nextcloud/data",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"PHPIZE_DEPS=autoconf \t\tdpkg-dev dpkg \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkgconf \t\tre2c",
"PHP_INI_DIR=/usr/local/etc/php",
"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=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA",
"PHP_VERSION=8.3.4",
"PHP_URL=https://www.php.net/distributions/php-8.3.4.tar.xz",
"PHP_ASC_URL=https://www.php.net/distributions/php-8.3.4.tar.xz.asc",
"PHP_SHA256=39a337036a546e5c28aea76cf424ac172db5156bd8a8fd85252e389409a5ba63"
],
"Cmd": null,
"Healthcheck": {
"Test": [
"CMD-SHELL",
"/healthcheck.sh"
]
},
"Image": "nextcloud/all-in-one:latest",
"Volumes": null,
"WorkingDir": "/var/www/docker-aio",
"Entrypoint": [
"/start.sh"
],
"OnBuild": null,
"Labels": {},
"StopSignal": "SIGQUIT"
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "6facbdffc3fb4cb2b149fef40a15195d756d54191659d898725935138ddee91e",
"SandboxKey": "/var/run/docker/netns/6facbdffc3fb",
"Ports": {
"80/tcp": null,
"8080/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "8080"
},
{
"HostIp": "::",
"HostPort": "8080"
}
],
"8443/tcp": null,
"9000/tcp": null
},
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "6f59b8eb2df6a566de1430a539885f82c0cc56d22ae828181a5c8e14b5918821",
"Gateway": "172.17.0.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"MacAddress": "02:42:ac:11:00:02",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"MacAddress": "02:42:ac:11:00:02",
"NetworkID": "680f081fce87e85cb6d9ee198febf50ba2cd66dcfcc88c0e7a52502a61466e1b",
"EndpointID": "6f59b8eb2df6a566de1430a539885f82c0cc56d22ae828181a5c8e14b5918821",
"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"DriverOpts": null,
"DNSNames": null
},
"nextcloud-aio": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"MacAddress": "02:42:ac:13:00:02",
"NetworkID": "006fa285cfd8eda055add801546d707e0407996e7ec8a279b626bf65119ced2e",
"EndpointID": "a48abefb33e3c902d799ab897efdc308777d5b985554d118e299a5cbca3ec482",
"Gateway": "172.19.0.1",
"IPAddress": "172.19.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"DriverOpts": null,
"DNSNames": [
"nextcloud-aio-mastercontainer",
"1a64b8aa6b74"
]
}
}
}
}
]
Docker ps -a output
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8e20b2696e46 nextcloud/aio-apache:latest "/start.sh /usr/bin/…" 19 minutes ago Up 19 minutes (healthy) 80/tcp, 0.0.0.0:11000->11000/tcp nextcloud-aio-apache
839a730de20a nextcloud/aio-notify-push:latest "/start.sh" 19 minutes ago Up 19 minutes (healthy) nextcloud-aio-notify-push
9f761800b1c6 nextcloud/aio-nextcloud:latest "/start.sh /usr/bin/…" 20 minutes ago Restarting (1) 41 seconds ago nextcloud-aio-nextcloud
1d249f1f929f nextcloud/aio-imaginary:latest "/start.sh" 21 minutes ago Up 20 minutes (healthy) nextcloud-aio-imaginary
6d4927bc24c8 nextcloud/aio-redis:latest "/start.sh" 21 minutes ago Up 21 minutes (healthy) 6379/tcp nextcloud-aio-redis
d9834d8e4713 nextcloud/aio-postgresql:latest "/start.sh" 21 minutes ago Up 21 minutes (healthy) 5432/tcp nextcloud-aio-database
a1fc770bdc30 nextcloud/aio-talk:latest "/start.sh superviso…" 21 minutes ago Up 21 minutes (healthy) 0.0.0.0:3478->3478/tcp, 0.0.0.0:3478->3478/udp, :::3478->3478/tcp, :::3478->3478/udp nextcloud-aio-talk
eefc69287904 nextcloud/aio-collabora:latest "/start-collabora-on…" 21 minutes ago Up 21 minutes (healthy) 9980/tcp nextcloud-aio-collabora
65453ae0aa3e nextcloud/aio-domaincheck:latest "/start.sh" 38 minutes ago Exited (143) 37 minutes ago nextcloud-aio-domaincheck
1a64b8aa6b74 nextcloud/all-in-one:latest "/start.sh" 39 minutes ago Up 25 minutes (healthy) 80/tcp, 8443/tcp, 9000/tcp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp nextcloud-aio-mastercontainer
As you can see, the nextcloud container keeps restarting
Reproduce:
- Follow directions on all-in-one/reverse-proxy.md at main · nextcloud/all-in-one · GitHub with fresh installation of Ubuntu.
- Connect via https://internal.ip.of.this.server:8080
With Collabora, Imaginary, Nextcloud Talk and Docker Socket Proxy selected (I have tried without these as well). - Timezone: Australia/Melbourne
Have I have tried:
- Reinstalling Ubuntu several times.
- Following the following guide to reset the instance: GitHub - nextcloud/all-in-one: The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.
Note:
- I also verified with my ISP that I am not in CGNAT and all my ports are unblocked
- I have logged into docker with a personal account as well, in hopes that would help.
- I have tried installing Nextcloud AIO with the beta channel (and yes, I reset the installation instance following the guide).
- If an admin/developer wants to sh to my server, I am more than willing to accommodate. As it is a fresh installation which I can physically access, I have no problems with it.