Migration CMS docker based server

Greetings,

I need to migrate a CMS server from a AWS instance to a local virtual machine and proceed to upgrade the xibo version.

INFO

ubuntu 18.04.5 LTS
xibo version 2.3.16
mysql version 5.6
docker installation

What should I do to move the installation to another machine and keep the database and media files?

Doing a clean install and replace the “shared” folder should be enough?

Stop the containers on the source server.

Creates a tar archive of the install folder as the root user. You need at least config.env, shared and your docker-compose files.

Copy the archive to the new server and extract it.

Up the containers on the new server.

Update DNS to point players to the new server’s IP.

Upgrade the new server to the next major version. (so in your case 3.3.x) and then again to 4.0.x.

Be sure to read the release notes to properly handle upgrading from MySQL 5.6 to 8.0.

Keep your tar archive as its a full backup

1 Like

Thanks for the response.

I did the procedure and started the containers with no errors but I can’t access the web interface.

I noticed that the source server has an apache server running and the target server doesn’t.

Could it be the cause?

You may be using a reverse proxy for TLS termination. If so yes you’ll need to configure that on the new server as well

1 Like

Correct, it have a reverse proxy configured on the source.

I’ve tried to replicate the configurations but with no success.

Can I run the xibo containers without the proxy configuration to test if the backup is working?

Yes. Xibo will be running on the port configured in the docker-compose file. Likely cms-custom_ports.yml if you followed the guide.

1 Like

I’ve tried everything and nothing worked until I found out that “Force HTTPS” option was checked on the server.

Since I couldn’t stop the server to do a new backup I just set the value for this option to 0 directly in the database throung mysql and it worked.

Now I just have one thing I couldn’t understand. Why do I need to open the 9505 port? I was able to connect, authorize and change layouts to new displays without that exposing that port.

1 Like

9505 is used for xmr. If you want features like collect now to work, you need the xmr port open. Look at the link below for more details.

2 Likes

Thank you for the response!