Unable to get a clean re-install using Docker

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).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • lastest AIO from Docker
  • Operating system and version (e.g., Ubuntu 24.04):
    • Mac OSX 14.8.4
  • Web server and version (e.g, Apache 2.4.25):
    • Whatever the AIO container is using
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • I think it's none. Not sure
  • PHP version (e.g, 8.3):
    • Whatever the AIO container is using
  • Is this the first time you’ve seen this error? (Yes / No):
    • No, too many tries
  • When did this problem seem to first start?
    • When I tried to do a clean install after messing around with the initial install
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO running Docker
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

I am unable to do a clean re-install and get the install wizard. I have deleted all the external directories. Did a docker compose down -v. Deleted any images from Docker Desktop.

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

  1. Install the first time and it went fine but data was not persistent. Then I setup a docker compose and that went fine. Decided to do a clean install.

  2. docker compose down -v

delete all the external directories from the bind links in docker-compose.yml

docker system prune -a --volumes

delete images from Docker Desktop
  1. docker compose up -d

  2. connect to Nextcloud and I do not get the Wizard but a login like it has already been setup but I don’t have any credentials to login. Even tried old passwords. Looking at the external files it looks like the user admin has been created but no idea the password.

  3. Is there anyplace I’m missing that need to be deleted for a clean install?

Log entries

No log as I have deleted the containers, images and volumes

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.

PASTE HERE

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

This is the docker-compose.yml

services:

  db:

    image: mariadb:10.11

    container_name: nextcloud_db

    restart: unless-stopped

    environment:

      MYSQL_ROOT_PASSWORD: rootpassword

      MYSQL_DATABASE: nextcloud

      MYSQL_USER: nextcloud

      MYSQL_PASSWORD: nextcloudpassword

    volumes:

      - ./nextcloud/db:/var/lib/mysql

    networks:

      - nextcloud_net

  nextcloud:

    image: nextcloud:latest

    container_name: nextcloud_app

    restart: unless-stopped

    depends_on:

      - db

    ports:

      - "8081:80"

    environment:

      MYSQL_HOST: db

      MYSQL_DATABASE: nextcloud

      MYSQL_USER: nextcloud

      MYSQL_PASSWORD: nextcloudpassword

      NEXTCLOUD_ADMIN_USER: admin

      NEXTCLOUD_ADMIN_PASSWORD: adminpassword

      NEXTCLOUD_TRUSTED_DOMAINS: localhost

    volumes:

      - ./nextcloud/data:/var/www/html

      - ./nextcloud/config:/var/www/html/config

      - ./nextcloud/apps:/var/www/html/custom_apps

    networks:

      - nextcloud_net

networks:

  nextcloud_net:

    driver: bridge

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!):

PASTE HERE

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Just use my simple Nextcloud setup using Docker Compose. All you need to do is edit the .env file with custom values and do a “docker compose up -d” and you should have a fully functional Nextcloud running on Docker.

Visit my GitHub and look under the branch “dockerhub” or you can see the main page, where you can also find Docker installations of Nextcloud Office and Nextcloud Talk signaling server.
Note* it says nextcloudpi but it works for all systems since it uses the latest Nextcloud image.

Your initial login username and password are set in the .env file before you spin up the nextcloud app. this will solve your login issue on your current setup.

https://hub.docker.com/repository/docker/iamjavadali/nextcloudpi/general

This is not AIO. This is the micro-services image.

In any case, did you try the credentials in your Compose file? Your won’t get the setup wizard since you’re specifying the values for an auto install:

Follow the hyperlinks above for the appropriate docs.