Windows Server 2012 R2 and Docker Toolset

Hello,

I have been trying to get an install working using Windows Server 2012 R2 and Docker Toolbox.

I can now get Docker Toolbox running and I can get the Xibo CMS going but it won’t save any data and everything is reset on reboot of the server.

I know it’s been asked before and appeared to be a Docker issue.

As the Docker Community suggested I run docker-compose up with out -d.

I tried that as well but without any success.

Has anyone got it working with Server 2012 R2 and Docker Toolbox?

Regards,
Shahid

Where have you located your Xibo installation on the server?

With Docker Toolbox, as noted in the CMS Install section of the Manual (http://xibo.org.uk/manual-tempel/en/install_docker.html - Docker Toolbox section), the Xibo install must be inside “C:\Users” to work out of the box with no modifications to the way Docker Toolbox is setup.

I’d guess you’ve put the CMS files somewhere else?

Administrator@WIN-xxxxxx xxxxW64 /c/users/Administrator/xibo-docker/xibo-docker
docker-compose up
eating network “xibodocker_default” with the default driver
eating xibodocker_cms-xmr_1
eating xibodocker_cms-db_1
eating xibodocker_cms-web_1
taching to xibodocker_cms-xmr_1, xibodocker_cms-db_1, xibodocker_cms-web_1
s-db_1 | Initializing database
s-db_1 | 2017-05-10 09:52:27 0 [Warning] TIMESTAMP with implicit DEFAULT val
is deprecated. Please use --explicit_defaults_for_timestamp server option (se
documentation for more details).
s-db_1 | 2017-05-10 09:52:27 0 [Note] Ignoring --secure-file-priv value as s
ver is running with --bootstrap.
s-db_1 | 2017-05-10 09:52:27 0 [Note] /usr/sbin/mysqld (mysqld 5.6.36) start
g as process 33 …
s-db_1 |
s-db_1 |
s-db_1 | 2017-05-10 09:52:30 0 [Warning] TIMESTAMP with implicit DEFAULT val
is deprecated. Please use --explicit_defaults_for_timestamp server option (se
documentation for more details).
s-db_1 | 2017-05-10 09:52:30 0 [Note] Ignoring --secure-file-priv value as s
ver is running with --bootstrap.
s-db_1 | 2017-05-10 09:52:30 0 [Note] /usr/sbin/mysqld (mysqld 5.6.36) start
g as process 56 …
s-db_1 |
s-db_1 |
s-db_1 |
s-db_1 |
s-db_1 | PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
s-db_1 | To do so, start the server, then issue the following commands:
s-db_1 |
s-db_1 | /usr/bin/mysqladmin -u root password 'new-password’
s-db_1 | /usr/bin/mysqladmin -u root -h a8549bbfc021 password 'new-passwor

s-db_1 |
s-db_1 | Alternatively you can run:
s-db_1 |
s-db_1 | /usr/bin/mysql_secure_installation
s-db_1 |
s-db_1 | which will also give you the option of removing the test
s-db_1 | databases and anonymous user created by default. This is
s-db_1 | strongly recommended for production servers.
s-db_1 |
s-db_1 | See the manual for more instructions.
s-db_1 |
s-db_1 | Please report any problems at http://bugs.mysql.com/
s-db_1 |
s-db_1 | The latest information about MySQL is available on the web at
s-db_1 |
s-db_1 | http://www.mysql.com
s-db_1 |
s-db_1 | Support MySQL by buying support/licenses at http://shop.mysql.com
s-db_1 |
s-db_1 | Note: new default config file not created.
s-db_1 | Please make sure your config file is current
s-db_1 |
s-db_1 | WARNING: Default config file /etc/mysql/my.cnf exists on the system

s-db_1 | This file will be read by default by the MySQL server
s-db_1 | If you do not want to use this, either remove it, or use the
s-db_1 | --defaults-file argument to mysqld_safe when starting the server
s-db_1 |
s-db_1 | Database initialized
s-db_1 | MySQL init process in progress…
s-db_1 | MySQL init process in progress…
s-db_1 | MySQL init process in progress…
s-db_1 | 2017-05-10 09:52:34 0 [Warning] TIMESTAMP with implicit DEFAULT val
is deprecated. Please use --explicit_defaults_for_timestamp server option (se
documentation for more details).
s-db_1 | 2017-05-10 09:52:34 0 [Note] mysqld (mysqld 5.6.36) starting as pro
ss 84 …
s-db_1 | MySQL init process in progress…
s-db_1 | Warning: Unable to load ‘/usr/share/zoneinfo/iso3166.tab’ as time z
e. Skipping it.
s-db_1 | Warning: Unable to load ‘/usr/share/zoneinfo/leap-seconds.list’ as
me zone. Skipping it.
s-db_1 | Warning: Unable to load ‘/usr/share/zoneinfo/zone.tab’ as time zone
Skipping it.
s-db_1 | GENERATED ROOT PASSWORD: auShohxie8quooqueemeX0Eitahp7voo
s-db_1 | Warning: Using a password on the command line interface can be inse
re.
s-db_1 | Warning: Using a password on the command line interface can be inse
re.
s-db_1 | Warning: Using a password on the command line interface can be inse
re.
s-db_1 | Warning: Using a password on the command line interface can be inse
re.
s-db_1 |
s-db_1 |
s-db_1 | MySQL init process done. Ready for start up.
s-db_1 |
s-web_1 | Waiting for MySQL to start - max 300 seconds
s-web_1 | MySQL started
s-web_1 | ERROR 1146 (42S02) at line 1: Table ‘cms.version’ doesn’t exist
s-web_1 | New install
s-web_1 | Provisioning Database
s-web_1 | Configuring Database Settings
s-web_1 | Setting up Maintenance
s-web_1 | Updating settings.php
s-web_1 | Configuring Backups
s-web_1 | Configuring Maintenance
s-web_1 | Running maintenance
s-web_1 | Starting cron
s-web_1 | Starting webserver

Hi Alex,

I am installing as Administrator and the Docker CMS files are in:

c:/users/Administrator/xibo-docker/xibo-docker

Wonder of the - is causing issues.

Also if I start without -d then it seems to hang at:

s-web_1 | Starting webserver

Although the Web Interface is accessible.

Regards,
Shahid

I think that says “Recreating” implying that the containers already exist, and that the configuration has changed. If you run without -d it will sit there indefinitely. You’re saying run the containers, and then show me the log from them forever, which isn’t what you want.

Please do the following:

docker-compose down

Delete the “shared” directory (or rename if it contains things you want)

docker-compose up -d

Is the shared directory created? If so, what is in it?

Hi Alex,

I think it was the xibo-docker in the directory path that may have been causing the issues for Docker Toolbox.

I did a fresh install on a VM, and extracted xibo-docker to c:\Users\Administrator\xibo\xibo

It work correctly, created the shared folder.I can log in make changes, add media, log off. Shut-down Docker-Toolbox and restart the Windows 2012 Server and it retains the changes.

Thank you again.

1 Like