tableau-server-docker: TableauServer doesn't start when container restart
Hi, I followed HOWTO: Tableau Server Linux in Docker Container to start a docker container. It works fine when first started. But if stop the container and restart again, tableauServer can’t start. I tried to docker exec into it and used tsm to start it, but it says Could not connect to TSM Controller at 'bb334aeab113:8850'.. I searched a lot from google and tableau community and find nothing helpful. If tableauserver can’t restart when container start, commit to a new image will be useless.
Is there anything I missed ?
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 15
@aaronsteers. My first time 2019.1.1. And then 2019.1.2 was published and I built an image with it. It’s still running.
I managed to get this working satisfactorily for me using 2020.4.0 and the original centos/systemd image. Here’s what I learned:
STOPSIGNAL RTMIN+3to the Dockerfile. Apparently the default stop signal that Docker uses causes issues with systemd.chmod 0775 /run/FNPthe first time after restarting the container. It appears the permissions get messed up when the systemd service gets setup.hostname: tableauin my Docker Compose file. I found that if you recreate the container, the container ID changes, and by default the container ID is the hostname. Tableau Server seems to require a static hostname or the TSM just errors out.You’ll probably need to restart Tableau Server using using
tsm restartwhenever you restart the container, but that wasn’t a big deal for me. I hope this helps anyone who is running into similar issues.@vaibhavvasa236 - Thanks for sharing the docker image. I’m excited to try this out.
@wzrzt I am using Ubuntu docker image with Systemd (jrei/systemd-ubuntu) Check this one: https://hub.docker.com/r/jrei/systemd-ubuntu/dockerfile
I found that
docker runcommand with/usr/sbin/initin the end will solve the problem. But still TSM controller does’t start at container restart. I have tosystemctl restart user@999.serviceseveral minutes after container restart in order to start TSM controller. In fact it’s a service calledtabadmincontroller_0.serviceunder the user “tableau”.su -l tableauand thensystemctl --userwill show it’s status and other services about tableau server.By the way, 2019.1.1 version doesn’t work for me. Got
Failed to start Tableau Silent Install in Dockermessage and when exec in to the container, “tableau_server_install.service” status failed. When I log into “https://localhost:8850” to use TSM controller to install it, also fails, and try again, fails again.