Can't install because Nextcloud is not installed

Hey! I’m trying to install nextcloudpi with

docker run -d -p 4443:4443 -p 443:443 -p 80:80 -v ncdata:/data --name nextcloudpi ownyourbits/nextcloudpi-armhf 192.168.1.XX

So the container is created. Let’s try to activate it. Oops, something went wrong. Okay, let’s check the logs

$ docker logs -f nextcloudpi
Starting PHP-fpm
Starting Apache
Starting mariaDB
2019-04-15 19:13:04 1995967280 [Note] mysqld (mysqld 10.1.37-MariaDB-0+deb9u1) starting as process 81 ...
Starting Redis
Starting Cron
Starting Postfix
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "config:system" namespace.


Init done

Ok … This looks weird but I don’t know if it’s important. Let’s check the error logs

$ cat /var/log/ncp.log
[ nc-maintenance ]
Nextcloud is not installed - only a limited number of commands are available


  Command "maintenance:mode" is not defined.

  Did you mean this?
      maintenance:install



[ nc-admin ]
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "user" namespace.



[ nc-admin ]
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "user" namespace.



[ nc-admin ]
Nextcloud is not installed - only a limited number of commands are available


  There are no commands defined in the "user" namespace.

And the [nc-admin] part is repated many times …
I don’t know why it says Nextcloud isn’t installed … That’s weird.
I don’t know what I can do

EDIT: I tried to docker container rm nextcloudpi then run again the frist command many times before I’ve seen what the problem is

EDIT 2: I’m using Raspbian 9.8 Stretch

I’m having the same problem…
I did pull and install the nextcloudpi-armhf image from ownyourbits in the last days without a problem. Now all of a sudden I’m having this problem…
Is the image updated ?

Initializing empty volume…
Making /usr/local/etc/ncp-config.d persistent …
Making /etc/services-enabled.d persistent …
Making /etc/letsencrypt persistent …
Making /etc/shadow persistent …
Making /etc/cron.d persistent …
Making /etc/cron.daily persistent …
Making /etc/cron.hourly persistent …
Making /etc/cron.weekly persistent …
Making /usr/local/bin persistent …
Making /etc/apache2 persistent …
Starting PHP-fpm
Starting Apache
Starting mariaDB
2020-03-18 16:06:57 0 [Note] mysqld (mysqld 10.3.22-MariaDB-0+deb10u1) starting as process 101 …
Starting Redis
Starting Cron
Starting Postfix
Nextcloud is not installed - only a limited number of commands are available

There are no commands defined in the “config:system” namespace.

Init done

1 Like

Had this problem this morning. After a bit of faffing around (and finding this thread but no help here) I discovered that my config.php file had been overwritten by the update of my container. Thankfully I have it backed up so a quick restore of the config.php and then I was able to execute “occ upgrade”. Now everything seems back to normal.

Not 100% sure why, but this was my resolution.

I also had the same issue

Raspberry pi 3B Raspbian lite 2020-05
Clean docker install and this is the log:

Initializing empty volume..
Making /usr/local/etc/ncp-config.d persistent ...
Making /etc/services-enabled.d persistent ...
Making /etc/letsencrypt persistent ...
Making /etc/shadow persistent ...
Making /etc/cron.d persistent ...
Making /etc/cron.daily persistent ...
Making /etc/cron.hourly persistent ...
Making /etc/cron.weekly persistent ...
Making /usr/local/bin persistent ...
Making /etc/apache2 persistent ...
Starting PHP-fpm
Starting Apache
Starting mariaDB
2020-10-02  2:49:08 0 [Note] mysqld (mysqld 10.3.23-MariaDB-0+deb10u1) starting as process 210 ...
Starting Redis
Starting Cron
Starting Postfix
Nextcloud is not installed - only a limited number of commands are available

                                                                   
  There are no commands defined in the "config:system" namespace.  
                                                                   

Init done

I tried latest image and 1.29.8. The same issue
Then I tried 1.24 image and it works ok but it is 6 months old. I had to update everything manually.

Then I tried 1.24 image and it works ok but it is 6 months old. I had to update everything manually.

I can verify this. Have to pull version 1.24 image and then update NCP and NC from there.

1 Like

Have you filed a bug report? https://github.com/nextcloud/nextcloudpi/issues

Hi! Could you tell me how to choose the version when installing? I’m using the docker run command and it automatically pulls the latest image. Is there an option to add for the version? Thanks!

Available versions at https://hub.docker.com/r/ownyourbits/debian-ncp-x86/tags

example: docker pull ownyourbits/debian-ncp-x86:v1.24