Hello !
I’m trying to install Nextcloud AIO on a small server to have an home instance. I followed the different tutorials / recommandations on GitHub but I’m stuck on an error for some hours now so it’s time to get help ^^
My only specific installation detail is to use a custom data dir. I already viewed the NEXTCLOUD_DATADIR
variable and use it but the Nextcloud installation can’t finish… I chose to use a proxy in front of the installation, this part works like a charm…
Here is my docker-compose.yml
:
version: "3.8"
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
services:
nextcloud:
image: nextcloud/all-in-one:latest
restart: always
container_name: nextcloud-aio-mastercontainer
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 127.0.0.1:8080:8080
environment:
- APACHE_PORT=11000
- APACHE_IP_BINDING=127.0.0.1
- NEXTCLOUD_DATADIR=/mnt/nextcloud-data/cloud.imagine-moi.com
caddy:
image: caddy:alpine
restart: always
container_name: caddy
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./certs:/certs
- ./config:/config
- ./data:/data
- ./sites:/srv
network_mode: "host"
When running docker compose up
, the master container is starting, I get the password and can access the AIO interface. I click on the “start containers”, all the containers are starting correctly but the aio-nextcloud
can’t finish the installation step.
You can view the container log and details below:
aio-nextcloud starting log
Waiting for database to start... Installing imagemagick via apk... Installing PHP build dependencies... Installing Imagick via PECL... Configuring Redis as session handler... Setting php max children... Initializing nextcloud 24.0.7.1 ... Initializing finished New nextcloud instance Installing with PostgreSQL database starting nextcloud installation Nextcloud was successfully installed Applying default settings... System config value loglevel set to string 2 System config value log_type set to string file System config value logfile set to string /var/www/html/data/nextcloud.log System config value log_rotate_size set to string 10485760 admin_audit 1.14.0 enabled Config value logfile for app admin_audit set to /var/www/html/data/audit.log System config value log.condition => apps => 0 set to string admin_audit Applying preview settings... System config value preview_max_x set to string 2048 System config value preview_max_y set to string 2048 System config value jpeg_quality set to string 60 Config value jpeg_quality for app preview set to 60 System config value enabledPreviewProviders deleted System config value enabledPreviewProviders => 1 set to string OC\Preview\Image System config value enabledPreviewProviders => 2 set to string OC\Preview\MarkDown System config value enabledPreviewProviders => 3 set to string OC\Preview\MP3 System config value enabledPreviewProviders => 4 set to string OC\Preview\TXT System config value enabledPreviewProviders => 5 set to string OC\Preview\OpenDocument System config value enabledPreviewProviders => 6 set to string OC\Preview\Movie System config value enable_previews set to boolean true Applying other settings... System config value upgrade.disable-web set to boolean true System config value mail_smtpmode set to string smtp System config value trashbin_retention_obligation set to string auto, 30 System config value versions_retention_obligation set to string auto, 30 System config value activity_expire_days set to string 30 System config value simpleSignUpLink.shown set to boolean false System config value share_folder set to string /Shared Error: Could not get appdata folder Error: Could not get appdata folder Error: Could not get appdata folder Error: Could not get appdata folder Error: Could not get appdata folder Error: Could not get appdata folder Appdata is not present. Did you maybe change the datadir after aio was first started?
docker inspect aio-nextcloud
[ { "Id": "3bb04e7bfc183ee93e2d315fbdf43d1986faa60530edf2cc6157d0b24b23a637", "Created": "2022-12-01T16:33:52.709342559Z", "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": "2022-12-01T16:43:43.412142577Z", "FinishedAt": "2022-12-01T16:43:45.65644267Z", "Health": { "Status": "unhealthy", "FailingStreak": 0, "Log": [ { "Start": "2022-12-01T16:34:23.226048416Z", "End": "2022-12-01T16:34:23.319702701Z", "ExitCode": 1, "Output": "" }, { "Start": "2022-12-01T16:34:53.333784755Z", "End": "2022-12-01T16:34:53.413481263Z", "ExitCode": 1, "Output": "" } ] } }, "Image": "sha256:17a94fc8ec6956a21bd9729de8975a2f418991678807bf0a0c7aae6eac7f1159", "ResolvConfPath": "/var/lib/docker/containers/3bb04e7bfc183ee93e2d315fbdf43d1986faa60530edf2cc6157d0b24b23a637/resolv.conf", "HostnamePath": "/var/lib/docker/containers/3bb04e7bfc183ee93e2d315fbdf43d1986faa60530edf2cc6157d0b24b23a637/hostname", "HostsPath": "/var/lib/docker/containers/3bb04e7bfc183ee93e2d315fbdf43d1986faa60530edf2cc6157d0b24b23a637/hosts", "LogPath": "/var/lib/docker/containers/3bb04e7bfc183ee93e2d315fbdf43d1986faa60530edf2cc6157d0b24b23a637/3bb04e7bfc183ee93e2d315fbdf43d1986faa60530edf2cc6157d0b24b23a637-json.log", "Name": "/nextcloud-aio-nextcloud", "RestartCount": 17, "Driver": "overlay2", "Platform": "linux", "MountLabel": "", "ProcessLabel": "", "AppArmorProfile": "docker-default", "ExecIDs": null, "HostConfig": { "Binds": [ "nextcloud_aio_nextcloud:/var/www/html:rw", "/mnt/nextcloud-data/cloud.imagine-moi.com:/mnt/ncdata:rw" ], "ContainerIDFile": "", "LogConfig": { "Type": "json-file", "Config": {} }, "NetworkMode": "default", "PortBindings": null, "RestartPolicy": { "Name": "unless-stopped", "MaximumRetryCount": 0 }, "AutoRemove": false, "VolumeDriver": "", "VolumesFrom": null, "CapAdd": null, "CapDrop": null, "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": null, "UTSMode": "", "UsernsMode": "", "ShmSize": 67108864, "Runtime": "runc", "ConsoleSize": [ 0, 0 ], "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, "KernelMemory": 0, "KernelMemoryTCP": 0, "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" ], "ReadonlyPaths": [ "/proc/bus", "/proc/fs", "/proc/irq", "/proc/sys", "/proc/sysrq-trigger" ] }, "GraphDriver": { "Data": { "LowerDir": "/var/lib/docker/overlay2/86edfab48605cd8c0434da88cc8aa798327c51436d9ef0089bfaa2843f794502-init/diff:/var/lib/docker/overlay2/d05292df471bc3f0a831d157aad2ad808e81b045679c12539f76805a98c7b495/diff:/var/lib/docker/overlay2/c1eebe81bb20cd500d0f5cffa66387478143f9a3f09c257f41beccee0867e8f9/diff:/var/lib/docker/overlay2/702bd63cb6d99d6c0a6f2742b14bcb4f42db6c213c94ec9cf4bc3d9f12db2773/diff:/var/lib/docker/overlay2/0094e2ad6c7198ff0179590714550f62e7f5c66213b9b04cb4d0d77246388588/diff:/var/lib/docker/overlay2/47cad7ac71204d5a7e8ef7626dc3ca873f21bb1d005ca2ca1cea75d856528bb7/diff:/var/lib/docker/overlay2/5ba4fa2126a7248f05d5aa8630acaa86bd1400e0aa6ad436ecc1d637a23a9a88/diff:/var/lib/docker/overlay2/f34e6981c4c4f7becff7ba9ab3a76a7ad040e1e16b0ed1c560a666bdacba3a70/diff:/var/lib/docker/overlay2/cf0f70988c8d374dc79437e62bc5ad96587cbf7cb3948d99eaa9f2e4b49bc399/diff:/var/lib/docker/overlay2/3bce06291382f96d86ad98350649342e30ce545fa8e1b37588814b9264abcfa1/diff:/var/lib/docker/overlay2/088d39c3ce20e029045d166a2b5a6f980c6b4f3d961ab635373cde0e4bab8ef6/diff:/var/lib/docker/overlay2/f26dfea66432b0bc0b088ec9d6a0bc06417b54b1d93c75a42db5f9df36a2cee2/diff:/var/lib/docker/overlay2/70e5ce4e29f1752f88b6b28f6408deb4862bb6046c30525f82a82a9fcdf1d602/diff:/var/lib/docker/overlay2/0ec9c040ddd67c4774aeffda93e5f2b5c63dc8ce5c922deb3999487a01b4e9b8/diff:/var/lib/docker/overlay2/27363f4c131825f7225b96220937317a04950839ad29cef6249939779213bde8/diff:/var/lib/docker/overlay2/0ac766a06460cc312ee5872542aa97e597c49fd415b411a6188aea2fff12a174/diff:/var/lib/docker/overlay2/b18a0d42d1d733abe14ae34b518ca98afdc26947495b6eb9d7baaf4b0493a36b/diff:/var/lib/docker/overlay2/92f6b686107206c379ed0ad6e30708f0c900ace3c451952498c9e87b8fbb4e12/diff:/var/lib/docker/overlay2/7e157b4493644dda622968c5efb56062bfaf32cba750cd512d290e8f5e3c694e/diff:/var/lib/docker/overlay2/838570a5ecb026223c558d5c5a254e362f43eb7c0529dd801646f8e62aca40b8/diff:/var/lib/docker/overlay2/9c5cab2ecbff3d2bb418effbde6956585b7c6eba0eef79a2b7dbd709cd80c583/diff:/var/lib/docker/overlay2/7f808a9c3e690925bc6001deefb0e962b468ce72f3214695585686297b447bdf/diff:/var/lib/docker/overlay2/60588fc199b4222c34feefb7e1b901c91545a3c7133ccb4f5e15af4ce358d2e0/diff:/var/lib/docker/overlay2/3d216f597b86a0ff0e132749820dfdedf7ebf40083ed091b55ee76509b5e8f7d/diff:/var/lib/docker/overlay2/f8a8fd0f5079cfff9fff186a2d218038baf4b1ada1ea726fa34ee3d58b7f2ad9/diff:/var/lib/docker/overlay2/52bd6622ba1d6ec12692200a46c2787d7d8bfc41544334cf60d5e2907c6df8cc/diff:/var/lib/docker/overlay2/7fef1623acf40515f25906ee3ee3ab81d0402a99306ecffa3fbe5a2c799849e3/diff:/var/lib/docker/overlay2/9443263863ea5f3a03f1d567b3082ec1306ba3c40c68593c5b655bfad3cd5ba0/diff:/var/lib/docker/overlay2/d05f5a7a9baa24e1aca94c0e4b78cd9159ec9a44630c267bad0d617313c31d8c/diff:/var/lib/docker/overlay2/267ddf912a809d28109d4c34369534981593b8b75c5dd86b50eea770a9841ce3/diff:/var/lib/docker/overlay2/6cc8383598e6273a33a55d3c435d3f228e2a59ab9089ad310f44e68c0ced6907/diff:/var/lib/docker/overlay2/7588e408850b07cf62115df031c5fc13d09c9d229ec6081585a1d07576af0918/diff", "MergedDir": "/var/lib/docker/overlay2/86edfab48605cd8c0434da88cc8aa798327c51436d9ef0089bfaa2843f794502/merged", "UpperDir": "/var/lib/docker/overlay2/86edfab48605cd8c0434da88cc8aa798327c51436d9ef0089bfaa2843f794502/diff", "WorkDir": "/var/lib/docker/overlay2/86edfab48605cd8c0434da88cc8aa798327c51436d9ef0089bfaa2843f794502/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/nextcloud-data/cloud.imagine-moi.com", "Destination": "/mnt/ncdata", "Mode": "rw", "RW": true, "Propagation": "rprivate" } ], "Config": { "Hostname": "3bb04e7bfc18", "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=38dfdff5d1215024bfb676a8eb2c48c9d4486b74bc8eeb3f", "POSTGRES_DB=nextcloud_database", "POSTGRES_USER=nextcloud", "REDIS_HOST=nextcloud-aio-redis", "REDIS_HOST_PASSWORD=097aedb1ac10e6b9179d09058c7368221d196fd21f451210", "AIO_TOKEN=465c9d524211e9820d241e1fc6fa9da226ab829c9fb970ed", "NC_DOMAIN=cloud.imagine-moi.com", "ADMIN_USER=admin", "ADMIN_PASSWORD=caf30b0f60fd8349f01dc5a9b7848df68341fe7d0d38fe11", "NEXTCLOUD_DATA_DIR=/mnt/ncdata", "OVERWRITEHOST=cloud.imagine-moi.com", "OVERWRITEPROTOCOL=https", "TURN_SECRET=dd8edce1094735f948c6304986230398defde3a9143e95fb", "SIGNALING_SECRET=5cba3072bcfbf5828f8bcf62830c0c13ef263bb2a58b9d45", "ONLYOFFICE_SECRET=b518ff33751513fadfc30672f9a0bd93313bd5cce091a997", "AIO_URL=cloud.imagine-moi.com:8443", "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=Europe/Paris", "TALK_PORT=3478", "IMAGINARY_ENABLED=", "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=twofactor_totp deck tasks calendar contacts apporder", "ADDITIONAL_APKS=imagemagick", "ADDITIONAL_PHP_EXTENSIONS=imagick", "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=1729F83938DA44E27BA0F4D3DBDB397470D12172 BFDDD28642824F8118EF77909B67A5C12229118F 2C16C765DBE54A088130F1BC4B9B5F600B55F3B4", "PHP_VERSION=8.0.25", "PHP_URL=https://www.php.net/distributions/php-8.0.25.tar.xz", "PHP_ASC_URL=https://www.php.net/distributions/php-8.0.25.tar.xz.asc", "PHP_SHA256=a291b71d0498707fc5514eb5b9513e88f0f1d4890bcdefd67282ded8a2bfb941", "NEXTCLOUD_VERSION=24.0.7", "NEXTCLOUD_UPDATE=1" ], "Cmd": [ "/usr/bin/supervisord", "-c", "/supervisord.conf" ], "Healthcheck": { "Test": [ "CMD-SHELL", "(sudo -u www-data nc -z localhost 9000 && sudo -u www-data nc -z localhost 7867) || exit 1" ] }, "Image": "nextcloud/aio-nextcloud:latest", "Volumes": { "/mnt/ncdata": {}, "/var/www/html": {} }, "WorkingDir": "/var/www/html", "Entrypoint": [ "/start.sh" ], "OnBuild": null, "Labels": {}, "StopSignal": "SIGQUIT" }, "NetworkSettings": { "Bridge": "", "SandboxID": "53975fe8d0665e7ff5212ba1ce355c2d1bd6ec00a32d0542af0eb96186bc3c5a", "HairpinMode": false, "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "Ports": {}, "SandboxKey": "/var/run/docker/netns/53975fe8d066", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null, "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "MacAddress": "", "Networks": { "bridge": { "IPAMConfig": null, "Links": null, "Aliases": null, "NetworkID": "12b1a27dc1883c7fbca65febc4a4128e28f1a9c68e2776b5457944a6195f1cbf", "EndpointID": "", "Gateway": "", "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "MacAddress": "", "DriverOpts": null }, "nextcloud-aio": { "IPAMConfig": null, "Links": null, "Aliases": [ "3bb04e7bfc18" ], "NetworkID": "d15d9c742f7dbe7f9137312b6be5725ba45149e04c08ce3db8cb254fb60fd12c", "EndpointID": "", "Gateway": "", "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "MacAddress": "", "DriverOpts": null } } } } ]
My main concern is that the nextcloud container alreayd wrote some files in the configured NEXTCLOUD_DATADIR
when I get the error which is:
System config value share_folder set to string /Shared
Error: Could not get appdata folder
Error: Could not get appdata folder
Error: Could not get appdata folder
Error: Could not get appdata folder
Error: Could not get appdata folder
Error: Could not get appdata folder
Appdata is not present. Did you maybe change the datadir after aio was first started?
Maybe I miss something in the configuration but everything looks logic on my side…
If anyone have a clue on how to debug this ? I’ll be glad to here it