containers
containers copied to clipboard
Install script crash with MOODLE_USERNAME and MOODLE_PASSWORD set
Name and Version
docker.io/bitnami/moodle:4.4
What architecture are you using?
amd64
What steps will reproduce the bug?
with the following compose file :
name: "moodle"
services:
mariadb:
image: docker.io/bitnami/mariadb:11.4
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_moodle
- MARIADB_DATABASE=bitnami_moodle
- MARIADB_CHARACTER_SET=utf8mb4
- MARIADB_COLLATE=utf8mb4_unicode_ci
volumes:
- "mariadb_data:/bitnami/mariadb"
moodle:
image: docker.io/bitnami/moodle:4.4
ports:
- "8080:8080"
environment:
- MOODLE_DATABASE_HOST=mariadb
- MOODLE_DATABASE_PORT_NUMBER=3306
- MOODLE_DATABASE_USER=bn_moodle
- MOODLE_DATABASE_NAME=bitnami_moodle
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- MOODLE_USERNAME=admin
- MOODLE_PASSWORD=admin
volumes:
- "moodle_data:/bitnami/moodle"
- "moodledata_data:/bitnami/moodledata"
depends_on:
- mariadb
volumes:
mariadb_data:
driver: local
moodle_data:
driver: local
moodledata_data:
driver: local
The moodle container exit on the "Running Moodle install script" step, but removing the two lines
- MOODLE_USERNAME=admin
- MOODLE_PASSWORD=admin
make it work as expected.
What is the expected behavior?
The container should run the installation script and then go to the next step (Persisting Moodle installation)
moodle-1 | moodle 10:11:22.65 INFO ==> Running Moodle install script
moodle-1 | moodle 10:12:37.38 INFO ==> Persisting Moodle installation
moodle-1 | moodle 10:12:47.86 INFO ==> ** Moodle setup finished! **
moodle-1 |
moodle-1 | moodle 10:12:47.86 INFO ==> ** Starting cron **
moodle-1 | moodle 10:12:47.88 INFO ==> ** Starting Apache **
What do you see instead?
moodle-1 | moodle INFO ==> Running Moodle install script
moodle-1 exited with code 1