TS3Tools / TS3UpdateScript

Automate all update processes for your TeamSpeak 3 server instances
GNU General Public License v3.0
189 stars 22 forks source link

Following instance needs an update, but is stopped and not touched by the script #26

Closed Cannonb4ll closed 8 years ago

Cannonb4ll commented 8 years ago

Script is not asking me to update, I just get the message in the title constantly.

My TS3 server version: 3.0.11.4

Sebbo94BY commented 8 years ago

You need to make sure, that the server files are owned by a non-root user and the server must be started as this user.

Sebbo94BY commented 8 years ago

Did it solve your problem?

mightyBroccoli commented 8 years ago

I have the same problem with this error message. I ran the script as the user owning teamspeak, and all files are owned by this user.

Installed Version: 3.0.12.2

Sebbo94BY commented 8 years ago

@mightyBroccoli please send me a debug file via email address.

mightyBroccoli commented 8 years ago

@Sebi94nbg email sent.

Sebbo94BY commented 8 years ago

@mightyBroccoli in your case, the server seems to be not started.

Following command returns No server running (ts3server.pid is missing): su -s /bin/bash -c 'cd /usr/local/bin/teamspeak3-server_linux_amd64 && ./ts3server_startscript.sh status && cd - > /dev/null' - teamspeak

Can you see a ts3server.pid in your TeamSpeak 3 server directory? If yes, which permissions does the file has and who owns it?

mightyBroccoli commented 8 years ago

Thats the strange thing. The server is running. Thats the point.

su -s /bin/bash -c 'cd /usr/local/bin/teamspeak3-server_linux_amd64 && ./ts3server_startscript.sh status'
Server is running

and I can see the ts3server.pid the permission is set like -rw-r--r-- 1 teamspeak teamspeak 5 Mar 12 13:41 ts3server.pid

I really didn't change anything with the file permission or the user permissions. I even updated the server from 3.12.1 to 3.12.2 and after that the script stoped working with this message.

Sebbo94BY commented 8 years ago

As which user did you run the status command? I believe as root, because you haven't specified an user.

Please copy and paste my above command from https://github.com/TS3Tools/TS3UpdateScript/issues/26#issuecomment-195744901 and test it again.

mightyBroccoli commented 8 years ago

I ran this line and the server message is nevertheless the same.

su teamspeak -s /bin/bash -c 'cd /usr/local/bin/teamspeak3-server_linux_amd64 && ./ts3server_startscript.sh status'
Server is running

But today I tried just for the fun of it your script again with the same line as usual (I aliased this command to make it even easier) su teamspeak -s /bin/bash -c 'cd /usr/local/bin/TS3UpdateScript/TS3UpdateScript --check and today the script ran perfectly without any problems. I did not change anything on the system and I am really surprised that it is working now.

Sebbo94BY commented 8 years ago

You've a very strange problem. Please let me know, if it's working for you tomorrow or if it's failing again.

Sebbo94BY commented 8 years ago

@mightyBroccoli are there any news about this issue?

Is it solved or do you still need any help.

Sebbo94BY commented 8 years ago

I'll close this issue, due no feedback.