TeamSpeak-Systems / teamspeak-linux-docker-images

docker build files for TeamSpeak servers
Other
116 stars 56 forks source link

docker-compose won't load license.dat #34

Open eboaen opened 5 years ago

eboaen commented 5 years ago

When I attempt to use docker-compose and load a license.dat file, I always get a failure:

teamspeak_1 | 2019-08-06 15:34:46.965570|WARNING |Accounting | |Unable to open /var/ts3server/licensekey.dat, falling back to limited functionality

Verified the file is in the location specified. This works fine when I load the file via a regular docker run statement

root@vps235839:/opt/teamspeak# docker run --name test-teamspeak -v /var/ts3server/licensekey.dat:/var/ts3server/licensekey.dat -e TS3SERVER_LICENSE=accept teamspeak

2019-08-06 15:16:56.987481|INFO |Accounting | |Licensing Information 2019-08-06 15:16:56.987892|INFO |Accounting | |type : Non-Profit License 2019-08-06 15:16:56.988154|INFO |Accounting | |starting date : Wed Jul 31 00:00:00 2019 2019-08-06 15:16:56.988419|INFO |Accounting | |ending date : Thu Mar 5 00:00:00 2020

Here is my stack.yml:

version: '3.1'
services: teamspeak: image: teamspeak restart: always ports:

Any ideas?

muenchow commented 5 years ago

the reason is most likely that the file permissions for /var/ts3server/ and the containing licensekey.dat aren't correct. Either make sure that they can be accessed by others or by uid 9987.

eboaen commented 5 years ago

I changed the owner to 9987:9987, failed. Tried setting to permissions to 777, failed.