Making Installation Work BS 5.1 with Docker

I am trying to install BlueSpice Free inside a Google Compute VM. I have acquired and assigned a static IP. I have created a DNS A record which points to that static IP; the DNS record has populated and the A record is pointing at the desired IP.

I access the VM via shell, and then follow the directions in the BlueSpice installation guide Step 1 Get the Stack.

I have created a .env file in the bluespice-deploy-main/compose directory

The .env file I have created looks exactly like the default file provided in the documentation except I have changed the edition to Free, configured the password sender and emergency contact to valid email addresses, changed the WIKI_HOST to my desired machine name, and configured the SMPT variables to use my mail server.

I left the DB_PASS value at “…”

I added LETSENCRYPT=true

running sudo ./bluespice-deploy up -d results in what appears to be a correctly installed BlueSpice installation. All the containers eventually show green checkmarks. There are several warnings about not having set the DB_ROOT_USER and DB_ROOT_PASS variables.

If I attempt to access the wiki by going to https://wiki.mydomain.com/BlueSpice first I get a 500 Internal Server error, followed by a page that says:

Sorry! This site is experiencing technical difficulties.

Try waiting a few minutes and reloading.

(Cannot access the database)

No amount of waiting resolves this issue.

Things I have tried:

Added DB_ROOT_USER and DB_ROOT_PASS entries
Provided a DB_PREFIX entry
set the various DB variables to entries of my choosing including DB_PASS (changed it from “…”)

No changes or different behavior of any kind; always fails in the same way

If access the container with docker exec -it bluespice-wiki-web sh and ping database I get valid ping data although the IP address is a range that is neither the internal IP provided by Google nor the static IP assigned to the virtual machine. (It’s a 172.18.0.X address)

The machine bluespice-database.bluespice_default is also pingable at the same ip address as database

Following up with solutions:

As currently published it does not appear that the installation routines are feature complete. In my setup, the bluespice tables were not added to the database and users did not have the right permissions.

Here’s what I did to get to a working BlueSpice 5.1 install with Docker

I logged into the database container, accessed mariadb, created two users and gave rights to the two users:

CREATE USER 'username'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;

GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' WITH GRANT OPTION;

CREATE USER 'username'@'%' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;

GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' WITH GRANT OPTION;

FLUSH PRIVILEGES;

I modified .env to make DB_USER equal to ‘username’ and DB_PASS equal to ‘password’
I set DB_ROOT_USER = $DB_USER and DB_ROOT_PASS=$DB_PASS

then I took the containers down, and then brought them back up, then ran this command:

docker exec bluespice-wiki-web php /app/bluespice/w/maintenance/update.php --quick

SUCCESS! My wiki has begun working!

2 Likes