Player client not downloading files... upgrade from 1.7.9 > Docker 2.0.1

Hi,

I have tried to find where it went wrong, searched here on forum and google, but still can’t reach an solution, so here I am asking for review, so if possible point me in the right direction :slight_smile:

I have an old .1.7.9 installation, which I wanted to upgrade from to the new 2.0.1.

I have installed an new docker install and imported the old layouts into the install, but now the layout files are not downloading to the Test client player, which is also newest player.

System Info:
Ubuntu 18.04 LTS, Plesk Onyx, Xibo installed with Docker compose manually with custom ports template.

Player Client Info:

Tech Info:
dsxmp.superkids.dk
ProxyPass / 0.0.0.0:9505/
ProxyPassReverse / 0.0.0.0:9505/

ds2.superkids.dk
ProxyPass / hXXp://127.0.0.1:8080/
ProxyPassReverse / hXXp://127.0.0.1:8080/

FIles are in Shared Library, ports are open, XMR connects, no files are retrieved.

Version 2.0.1

root@lvps91-250-96-219:/var/www/vhosts/superkids.dk/ds2.superkids.dk/xibo-docker-2.0.1# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2b97bcef1396 xibosignage/xibo-cms:release-2.0.1 “/entrypoint.sh” 8 minutes ago Up 8 minutes 127.0.0.1:8080->80/tcp xibo-docker-201_cms-web_1_dcb87ba34830
f42eec7228d0 mysql:5.6 “docker-entrypoint.s…” 8 minutes ago Up 8 minutes 3306/tcp xibo-docker-201_cms-db_1_5747d5b7f532
e2285cd258fd xibosignage/xibo-xmr:release-0.7 “/entrypoint.sh” 8 minutes ago Up 8 minutes 0.0.0.0:9505->9505/tcp, 50001/tcp xibo-docker-201_cms-xmr_1_7d8b6393c957
root@lvps91-250-96-219:/var/www/vhosts/superkids.dk/ds2.superkids.dk/xibo-docker-2.0.1# tcpdump port 9505
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on venet0, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes
17:05:06.976670 IP lvps91-250-96-219.dedicated.hosteurope.de.9505 > 3e6b006a.rev.stofanet.dk.51154: Flags [P.], seq 2692943084:2692943091, ack 4205307709, win 229, length 7
17:05:07.056162 IP 3e6b006a.rev.stofanet.dk.51154 > lvps91-250-96-219.dedicated.hosteurope.de.9505: Flags [.], ack 7, win 1026, length 0
17:05:17.328689 IP lvps91-250-96-219.dedicated.hosteurope.de.9505 > 3e6b006a.rev.stofanet.dk.51154: Flags [P.], seq 7:317, ack 1, win 229, length 310
17:05:17.406185 IP 3e6b006a.rev.stofanet.dk.51154 > lvps91-250-96-219.dedicated.hosteurope.de.9505: Flags [.], ack 317, win 1025, length 0
17:05:36.980672 IP lvps91-250-96-219.dedicated.hosteurope.de.9505 > 3e6b006a.rev.stofanet.dk.51154: Flags [P.], seq 317:324, ack 1, win 229, length 7
17:05:37.063093 IP 3e6b006a.rev.stofanet.dk.51154 > lvps91-250-96-219.dedicated.hosteurope.de.9505: Flags [.], ack 324, win 1024, length 0

cms_custom-ports.yml:

version: “2.1”

services:
cms-db:
image: mysql:5.6
volumes:
- “./shared/db:/var/lib/mysql”
restart: always
environment:
- MYSQL_DATABASE=cms
- MYSQL_USER=cms
- MYSQL_RANDOM_ROOT_PASSWORD=yes
mem_limit: 1g
env_file: config.env
cms-xmr:
image: xibosignage/xibo-xmr:release-0.7
ports:
- “9505:9505”
restart: always
mem_limit: 256m
env_file: config.env
cms-web:
image: xibosignage/xibo-cms:release-2.0.1
volumes:
- “./shared/cms/custom:/var/www/cms/custom”
- “./shared/backup:/var/www/backup”
- “./shared/cms/web/theme/custom:/var/www/cms/web/theme/custom”
- “./shared/cms/library:/var/www/cms/library”
- “./shared/cms/web/userscripts:/var/www/cms/web/userscripts”
restart: always
links:
- cms-db:mysql
- cms-xmr:50001
environment:
- XMR_HOST=cms-xmr
env_file: config.env
ports:
- “127.0.0.1:8080:80”
mem_limit: 1g

I have followed guide in part from “xibo-with-docker-ubuntu-16-04”

I can’t see what I have done wrong… traffic comes to the port 9505, Docker is running, I can access Xibo, but my files are not downloaded on the client.

I tried to reset cache and have now set Xibo to http (have also tried https) and while I can connect to Xibo web, I can’t get the Player Client to download…

Any hints or advice glady accepted… I really would like to have the running.

Kind regards,

Steven Rasmussen.

You can’t proxy XMR, so your proxy pass lines for port 9505 need to be removed and you need to allow XMR direct access to that port.

Your download issue is almost certainly that you aren’t passing the Host header through to the CMS container, and so the links that the Players get to download content from the CMS have the wrong address in them.

You must have your reverse proxy pass through the Host header, and also add the standard X-Forwarded suite of headers.

Hi Alex,

Thanks for the reply :slight_smile:

I have removed the Proxy rule from dsxmp.superkids.dk.

For ds2.superkids.dk (CMS):
In docker, the setting for -
CMS_SERVER_NAME : ds2.superkids.dk

In my Vhost file, Proxy rules are now:
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/

Can i track somewhere in the CMS log, what links is given out by the CMS ? To debug it… I use Vhost headers in Plesk / Apache to connect, so headers should be there…

I am not quite sure if I am understanding you correctly, but i am most likely still doing something wrong…

/Steven

Once you’ve made those changes you’ll need to clear the Player side cache.

To do so, edit the Display in the CMS and save it making no changes. The Player will then generate a new RequiredFiles and should download content.

If not, you can see the links that are generated by editing the display, and turning on auditing. You’ll then get audit logging for that display, and in there you should be able to see the generated RequiredFIles XML that the Player receives, complete with the download links.

Hi Alex,

You are simply a wizard :slight_smile:

It is now working!

After being explained, I went wrong with the XMR proxy and also missed the ProxyPreserveHost setting, simple now looking back, but frustrating that I could not see that :slight_smile:

I will ascribe it to being noob in docker and read up on that part.

bow

/Steven

1 Like