Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with query account login #150

Closed
Safraann opened this issue Dec 25, 2016 · 11 comments
Closed

Error with query account login #150

Safraann opened this issue Dec 25, 2016 · 11 comments
Labels

Comments

@Safraann
Copy link

Safraann commented Dec 25, 2016

Hello, i'm trying to launch simple programm which tells me who is connected on which channel. But actually the problem happened after i run it, here are the logs :

[2016-12-25 21:24:15.654] < TS3
[2016-12-25 21:24:15.654] < 
[2016-12-25 21:24:15.724] < Welcome to the TeamSpeak 3 ServerQuery interface, type "help" for a list of commands and "help <command>" for information on a specific command.
[2016-12-25 21:24:15.725] < 
[2016-12-25 21:24:15.794] > login pandorez HE4gxh1t
[2016-12-25 21:24:15.816] [login] < error id=0 msg=ok
[2016-12-25 21:24:16.145] > use sid=1
[2016-12-25 21:24:16.166] [use] < error id=0 msg=ok
[2016-12-25 21:24:16.495] > clientupdate client_nickname=PutPutBot
[2016-12-25 21:24:16.516] [clientupdate] < error id=0 msg=ok
[2016-12-25 21:24:16.847] > sendtextmessage targetmode=2 target=0 msg=PutPutBot\sis\sonline!
[2016-12-25 21:24:16.868] [sendtextmessage] < error id=0 msg=ok
[2016-12-25 21:24:17.200] > channellist -topic -flags -voice -limits -icon -secondsempty
[2016-12-25 21:24:17.221] [channellist] < error id=2568 msg=insufficient\sclient\spermissions failed_permid=25
[2016-12-25 21:24:17.224] [SEVERE] TS3 command error: {id=2568, failed_permid=25, msg=insufficient client permissions}
null
[2016-12-25 21:24:17.551] > channellist -topic -flags -voice -limits -icon -secondsempty
[2016-12-25 21:24:17.572] [channellist] < error id=2568 msg=insufficient\sclient\spermissions failed_permid=25
[2016-12-25 21:24:17.574] [SEVERE] TS3 command error: {id=2568, failed_permid=25, msg=insufficient client permissions}
Exception in thread "main" java.lang.NullPointerException
	at fr.plaigon.ts3link.common.packets.test.main(test.java:34)
[2016-12-25 21:25:17.555] > clientupdate
[2016-12-25 21:25:17.576] [clientupdate] < error id=0 msg=ok
[2016-12-25 21:26:17.555] > clientupdate
[2016-12-25 21:26:17.576] [clientupdate] < error id=0 msg=ok
[2016-12-25 21:27:17.555] > clientupdate
[2016-12-25 21:27:17.576] [clientupdate] < error id=0 msg=ok
[2016-12-25 21:28:17.555] > clientupdate
[2016-12-25 21:28:17.576] [clientupdate] < error id=0 msg=ok
[2016-12-25 21:29:17.557] > clientupdate
[2016-12-25 21:29:17.577] [clientupdate] < error id=0 msg=ok
[2016-12-25 21:30:17.558] > clientupdate
[2016-12-25 21:30:17.579] [clientupdate] < error id=0 msg=ok
[2016-12-25 21:31:17.560] > clientupdate
[2016-12-25 21:31:17.581] [clientupdate] < error id=0 msg=ok
[2016-12-25 21:32:17.560] > clientupdate
[2016-12-25 21:32:17.581] [clientupdate] < error id=0 msg=ok
[2016-12-25 21:33:17.561] > clientupdate
[2016-12-25 21:33:17.583] [clientupdate] < error id=0 msg=ok

If you want i uploaded you my code : http://pastebin.com/kJB5niuQ

Please if you have any idea about the problem, answer me

Edited by @rogermb: Fixed code block to make it readable

@Jannek312
Copy link

The bot dose not have channellist permission

@Safraann
Copy link
Author

How to give them to it ?

@rogermb
Copy link
Collaborator

rogermb commented Dec 25, 2016

Grant yourself the permission on the TS3 server. If you use login with your own account, the query will have the same permissions as your client has (mostly).

You could also just use the serveradmin account if you don't want to care about permissions 😛

@Jannek312
Copy link

The permission you need is b_virtualserver_channel_list

@Safraann
Copy link
Author

We are not sure to have all permissions on our query account. So we would like to use the serveradmin, like said rogermb, but if you generate it in tools, an error window appeared saying that this account is already existing. But our server is hosted on revoltahosting and with this service, no ftp is free. So how are we supposed to find the password of the account with username "serveradmin" ?
Thanks in advance =)

@Jannek312
Copy link

With most providers, you will not get access to the serveradmin account.

@Safraann
Copy link
Author

We plan to change provider next month to have ftp access and execute this command : http://forum.teamspeak.com/threads/48255-Don-t-have-your-Server-Admin-Query-password-Look-here

@rogermb
Copy link
Collaborator

rogermb commented Dec 25, 2016

Just to make this clear: Granting yourself a permission in your TS3 client is not rocket science. It also doesn't require you changing providers.

Just use the search feature to find the b_virtualserver_channel_list permission (thanks @MCelements) and grant it to either just your client or the server group of your client.

@Safraann
Copy link
Author

I know this is very simple to make it, but i'm pretty sure i did it. To prove my work, i have a screenshot for you : http://img11.hostingpics.net/pics/624971ScreenShot20161225at104759PM.png

@rogermb
Copy link
Collaborator

rogermb commented Dec 25, 2016

Oh, I think I know what's going on. I think it's possible you're joining the wrong virtual server with your query 😄

If you're hosting your own private TS3 server, there will only ever be one virtual server per physical TS3 server instance. But most commercial providers will host several virtual servers on each server instance. So sid=1 most likely isn't correct 😛

Since you're likely to know the voice port of your virtual server already, you could use TS3Api#selectVirtualServerByPort to join the correct virtual server. This should hopefully solve your 'permissions' issue 😄

@Safraann
Copy link
Author

Oh god it worked ! Thanks you bro, you helped me a lot !

@rogermb rogermb closed this as completed Dec 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants