Giter Club home page Giter Club logo

Comments (11)

devalx avatar devalx commented on August 31, 2024

Did u use old files from another TS3-Install or was it a "fresh" install (/data/teamspeak was empty before running the container)?
And can u maybe post an "ls -all" from your /data/teamspeak/-directory?

from docker-teamspeak3.

raaaimund avatar raaaimund commented on August 31, 2024

First at all - thank you for your fast reply.
I used the files from another TS3-Install - I wanted to keep my old configurations and the old database.
The permissions are:
alt-text

from docker-teamspeak3.

raaaimund avatar raaaimund commented on August 31, 2024

Here is the command I used to create your docker image.
image

from docker-teamspeak3.

devalx avatar devalx commented on August 31, 2024

So, in general you dont need to keep the complete TS3-folder and put it into the /data/teamspeak-dir, because all runtime-files of the server are meant to stay inside the actual TS3-container. (Like the startscripts)
In the current version the files are created as root by the container, so you could try to "chown -R root /data/teamspeak". (I just started today so they will not be created as root, just need some more time updating the README)
You can also try to delete the logs/-folder so the container can create it with the correct permissions himself (hopefully)

from docker-teamspeak3.

raaaimund avatar raaaimund commented on August 31, 2024

Does the server in the docker image create the folder for the logfiles inside my /data/teamspeak or in a custom folder inside the docker image?
I changed the owner to root:root, but no success - I also removed all other files but now i get a critical error.
2016-02-18 21:47:01.429623|CRITICAL|VirtualSvrMgr | | unable to start filemanager, while creating directory : files failed

image

But if you also dont know any more things which I can try, I will do some more research and try to fix this and will get back to you ^^

from docker-teamspeak3.

devalx avatar devalx commented on August 31, 2024

Sorry, i never tried to import old data ^^
Seems like there is still a permission problem and he cant create the files-folder now.
The container should create the logs inside your /data/teamspeak-folder (Because /teamspeak3 inside the container is mapped to it).

from docker-teamspeak3.

raaaimund avatar raaaimund commented on August 31, 2024

Mh yes, there is a problem with the permissions ... didnt see this error message until now ...
mkdir: cannot create directory '/teamspeak3/files': Permission denied

from docker-teamspeak3.

devalx avatar devalx commented on August 31, 2024

In the new beta-branch i implemented an ENV-variable to set the UID of the internal user in the actual container, maybe it is of any help:
sudo docker run --name=ts3 -d -e TS3_UID=1000 -v /home/devalx/docker/ts3-test:/data/ts3 devalx/docker-teamspeak3:beta
(Make sure to keep a backup of your db ;-)
Keep in mind that the parent-folder (in my example ts3-test) is writable/owned by the specific UID on the host.
Also i am not sure what happens if u specify UID 1111 and there is no actual user with UID 1111 on the host machine.

from docker-teamspeak3.

raaaimund avatar raaaimund commented on August 31, 2024

I figured out why i got problems with my permissions.
I use fedora server as host system and fedora has SElinux enabled.

Here I found the solution.
https://linuxconfig.org/how-to-share-data-between-a-docker-container-and-host-system-using-volumes

I have to create the docker image with the --privileged=true flag.

Now everything works like a charm 👍

Thank you very much for your help @devalx

from docker-teamspeak3.

devalx avatar devalx commented on August 31, 2024

You are welcome, thank you for sharing the solution!
I never used them but maybe the :z|:Z options help you in this case too and you dont need to privilige the whole container, see https://docs.docker.com/engine/userguide/containers/dockervolumes/

from docker-teamspeak3.

raaaimund avatar raaaimund commented on August 31, 2024

Thanks, the solution with the labels is working and is even better. Didnt see, that there is this option.
docker run --name ts3 -d -p 9987:9987/udp -p 30033:30033 -p 10011:10011 -v /data/teamspeak:/teamspeak3:z devalx/docker-teamspeak3

Thank you very much

from docker-teamspeak3.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.