Docker Install says "Initializing NextCloudPi for the first time" forever

I just installed armhf version of NextCloudPi and spun it up in a docker container. Logged in, was able to access but made no changes to the NextCloudPI Panel. But when I go to the main page and it reads “Initializing NextCloudPi for the first time Please wait…” as it refreshes the page every few seconds, but it never gets past this stage, it just sits there forever.

I’m relatively new to docker, so I won’t e able to do anything complicated, but I have tried removing just the container and leaving the image, then running the container. As well as deleting both the container and the volume, and creating a new container from scratch.

Does anyone know the cause of this? Could the most recent docker image be broken?

Hello, i am having the exact same issue from raspberry pi 4 with the same architecture.

I have tried the exact same as you and got the same error.

i checked the files inside the container and turns out the index.html that is being served calls an index.php script that apparantly does nothing but:

-set a timer to refresh the page every 2 seconds with javascript and
-start a php session.

But it doesn´t call any other script or anything, and is the only file being served from: http(s)://yourIPaddressOrNOIPddns:(80/443)

is this an intended behaviour? :slight_smile:

Hi there,

Both of you need to be more specific, commands used, provide log and/or terminal output, screenshots, if want/need further assistance.

Check this article https://docs.nextcloudpi.com/en/how-to-get-started-with-ncp-docker/
and search this forum. I found several threads on NCP activation.

Activation can be (extremely) slow on RPI, wait for init done by monitoring ncp.log.

I have the same problem.

System-Info:

NextCloudPi version v1.26.2
NextCloudPi image NextCloudPi_docker_04-06-20
distribution Debian GNU/Linux 10 \n \l
automount no
USB devices sda
datadir /data/nextcloud/data
data in SD no
data filesystem ext2/ext3
data disk usage 35G/1.8T
rootfs usage 5.9G/29G
swapfile /var/swap
dbdir /data/database
Nextcloud check ok
Nextcloud version 18.0.3.0
HTTPD service up
PHP service up
MariaDB service up
Redis service up
Postfix service up
internet check ok
port check 80 open
port check 443 open
IP 172.17.0.3
gateway 172.17.0.1
interface eth0
NAT loopback no

Docker-Info:
Server:
Containers: 2
Running: 2
Paused: 0
Stopped: 0
Images: 5
Server Version: 19.03.12
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 7ad184331fa3e55e52b890ea95e65ba581ae3429
runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.19.118-v7l+
Operating System: Raspbian GNU/Linux 10 (buster)
OSType: linux
Architecture: armv7l
CPUs: 4
Total Memory: 1.894GiB
Name: openmediavault
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

To monitor ncp’s log, in terminal run:

docker exec -it nextcloudpi tail -f /var/log/ncp.log

If init does not finish, it should tell us at what stage, and why, it is not completing.

image

image

mine stops in here

same issue for me:
Kernel Version: 5.10.17-v7l+ Operating System: Raspbian GNU/Linux 10 (buster) OSType: linux
Architecture: armv7l
CPUs: 4
Total Memory: 1.823GiB

the command >>>docker exec -it nextcloudpi tail -f /var/log/ncp.log says the following:
[ nc-limits ] (Mon Apr 19 19:11:44 UTC 2021) Using 1467893760B for PHP
Using 6 PHP threads
Using 438966272 memory for the database Stopping MariaDB database server: mysqld. Starting MariaDB database server: mysqld … Stopping redis-server: redis-server. Starting redis-server: redis-server.

So it is the same problem as the users above have, anyone ideas how to fix that?

{“log”:“Initializing empty volume…\n”,“stream”:“stdout”,“time”:“2021-04-18T11:04:11.834868324Z”}
{“log”:“Making /usr/local/etc/ncp-config.d persistent …\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:25.822700124Z”}
{“log”:“Making /etc/services-enabled.d persistent …\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:25.952676587Z”}
{“log”:“Making /etc/letsencrypt persistent …\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:25.973056877Z”}
{“log”:“Making /etc/shadow persistent …\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:25.99377294Z”}
{“log”:“Making /etc/cron.d persistent …\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:26.01145763Z”}
{“log”:“Making /etc/cron.daily persistent …\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:26.0319134Z”} {“log”:“Making /etc/cron.hourly persistent …\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:26.055299044Z”}
{“log”:“Making /etc/cron.weekly persistent …\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:26.073547375Z”}
{“log”:“Making /usr/local/bin persistent …\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:26.089144459Z”}
{“log”:“Making /etc/apache2 persistent …\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:26.169354001Z”}
{“log”:“Starting PHP-fpm\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:30.679284221Z”} {“log”:“Starting Apache\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:40.57193282Z”}
{“log”:“Starting mariaDB\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:40.731071775Z”}
{“log”:“2021-04-18 11:07:40 0 [Note] mysqld (mysqld 10.3.22-MariaDB-0+deb10u1) starting as process 151 …\n”,“stream”:“stderr”,“time”:“2021-04-18T11:07:40.760705127Z”}
{“log”:“Starting Redis\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:42.830225306Z”}
{“log”:“Starting Cron\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:42.980123198Z”}
{“log”:“Starting Postfix\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:43.012710832Z”}
{“log”:“System config value trusted_domains =\u003e 1 set to string 172.17.0.2\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:46.268942245Z”}
{“log”:“Provisioning\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:46.311332918Z”}
{“log”:“Provisioning Redis password\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:46.338795054Z”}
{“log”:“Updating NextCloud config with Redis password\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:46.3495676Z”}
{“log”:“Provisioning MariaDB password\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:46.373802921Z”}
{“log”:“Updating NextCloud config with MariaDB password\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:46.430953354Z”}
{“log”:“Running nc-limits\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:46.750784396Z”}
{“log”:“Using 1467896832B for PHP\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:48.079658827Z”}
{“log”:“Using 6 PHP threads\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:48.301304675Z”}
{“log”:“Using 438967296 memory for the database\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:48.322650584Z”}
{“log”:“Stopping MariaDB database server: mysqld.\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:52.558165737Z”}
{“log”:“Starting MariaDB database server: mysqld.\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:53.77071554Z”}
{“log”:“Using 1467896832B for PHP\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:48.079658827Z”}
{“log”:“Using 6 PHP threads\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:48.301304675Z”}
{“log”:“Using 438967296 memory for the database\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:48.322650584Z”}
{“log”:“Stopping MariaDB database server: mysqld.\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:52.558165737Z”}
{“log”:“Starting MariaDB database server: mysqld.\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:53.77071554Z”}
{“log”:“Stopping redis-server: redis-server.\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:53.840622164Z”}
{“log”:“Starting redis-server: redis-server.\n”,“stream”:“stdout”,“time”:“2021-04-18T11:07:54.911596055Z”}
{“log”:“Init done\n”,“stream”:“stdout”,“time”:“2021-04-18T11:08:07.872482419Z”}
{“log”:“Starting PHP-fpm\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:36.154989207Z”}
{“log”:“Starting Apache\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:37.759959034Z”}
{“log”:“Starting mariaDB\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:38.102856864Z”}
{“log”:“2021-04-19 19:11:38 0 [Note] mysqld (mysqld 10.3.22-MariaDB-0+deb10u1) starting as process 227 …\n”,“stream”:“stderr”,“time”:“2021-04-19T19:11:38.366174995Z”}
{“log”:“Starting Redis\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:39.410659472Z”}
{“log”:“Starting Cron\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:39.734201736Z”}
{“log”:“Starting Postfix\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:39.7548001Z”}
{“log”:“System config value trusted_domains =\u003e 1 set to string 172.17.0.2\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:44.725851544Z”}
{“log”:“Provisioning\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:44.76312292Z”}
{“log”:“Provisioning Redis password\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:44.802126882Z”}
{“log”:“Updating NextCloud config with Redis password\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:44.813191581Z”}
{“log”:“Provisioning MariaDB password\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:44.837817168Z”}
{“log”:“Updating NextCloud config with MariaDB password\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:44.868550708Z”}
{“log”:“Running nc-limits\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:44.939621358Z”}
{“log”:“Using 1467893760B for PHP\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:45.125750812Z”}
{“log”:“Using 6 PHP threads\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:45.158246105Z”}
{“log”:“Using 438966272 memory for the database\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:45.180360874Z”}
{“log”:“Stopping MariaDB database server: mysqld.\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:48.602203131Z”}
{“log”:“Starting MariaDB database server: mysqld …\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:50.934759843Z”}
{“log”:“Stopping redis-server: redis-server.\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:51.008346496Z”}
{“log”:“Starting redis-server: redis-server.\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:52.045578648Z”}
{“log”:“Init done\n”,“stream”:“stdout”,“time”:“2021-04-19T19:11:54.520828284Z”}