Skip to content

fix: add default database name#447

Merged
juliusknorr merged 1 commit into
nextcloud:masterfrom
saw-jan:fix/auto-install-ext-db
Feb 4, 2026
Merged

fix: add default database name#447
juliusknorr merged 1 commit into
nextcloud:masterfrom
saw-jan:fix/auto-install-ext-db

Conversation

@saw-jan

@saw-jan saw-jan commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

env VIRTUAL_HOST is used to determine the database name, and if VIRTUAL_HOST is not set while running the container with SQL=mysql and NEXTCLOUD_AUTOINSTALL=YES, the nextcloud installation fails because the --database-name= option has empty value

command:

# start mysql server
# start nextcloud
docker run --rm \
-e SERVER_BRANCH=stable32 \
-e NEXTCLOUD_AUTOINSTALL=true \
-e SQL=mysql \
ghcr.io/juliusknorr/nextcloud-dev-php84:master
⌛ Waiting for other containers
 - MySQL
✅ Database server ready
⚠ No value for PHP_XDEBUG_MODE was found. Not updating the setting.
Nextcloud is not installed - only a limited number of commands are available
Add the host IP as host.docker.internal to /etc/hosts ...
database name will be 
🔧 Starting auto installation
occ maintenance:install --admin-user=admin --admin-pass=admin --database=mysql --database-name= --database-host=database-mysql --database-user=root --database-pass=nextcloud
   Enter the database name for MySQL/MariaDB
Nextcloud is not installed - only a limited number of commands are available
Last nextcloud.log entry:

=======================================================================================
🚨 Server installation failed.
=======================================================================================

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
@saw-jan

saw-jan commented Feb 2, 2026

Copy link
Copy Markdown
Contributor Author

CC @juliusknorr We need this fix so that we can use the master tag in the CI. See https://github.com/nextcloud/integration_openproject/actions/runs/21585684969/job/62193131621

@juliusknorr juliusknorr merged commit a569a8d into nextcloud:master Feb 4, 2026
24 checks passed
@saw-jan saw-jan deleted the fix/auto-install-ext-db branch February 5, 2026 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants