Forum

Results 1 to 8 of 8
  1. #1
    Join Date
    February 2015
    Posts
    11

    FreeSBD TS3 server issue

    Background:

    OS version: FreeBSD 11.2-RELEASE
    install point: /home/teamspeak
    Running as "teamspeak"

    I've been running this server for a while now without issue. I recently had to replace my gaming rig (mobo meltdown) and when I connected to TS, I had no server admin rights. I tried using the key I stored when I built the server to no avail. Ultimately, I had to create a new key which I did. I deployed the new key and logged in and was server admin again. All seemed fine until I rebooted the FreeBSD server. Now when I try to run the TS3 server it errors out.

    $ ./ts3server_startscript.sh start
    ts3server.pid found, but no server running. Possibly your previously started server crashed
    Please view the logfile for details.
    Starting the TeamSpeak 3 server
    TeamSpeak 3 server started, for details please view the log file
    $ 2019-02-02 16:09:46.842188|CRITICAL|Query | |unable to create QUERY_SSH_RSA_HOST_KEY ('ssh_host_rsa_key')



    Here's the logfiles:

    $ cat logs/ts3server_2019-02-02__16_09_37.712657_0.log
    2019-02-02 16:09:37.715178|INFO |ServerLibPriv | |TeamSpeak 3 Server 3.6.0 (2019-01-16 07:50:10)
    2019-02-02 16:09:37.715643|INFO |ServerLibPriv | |SystemInformation: FreeBSD 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510: Fri Jun 22 04:32:14 UTC 2018 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64 Binary: 64bit
    2019-02-02 16:09:37.715734|WARNING |ServerLibPriv | |The system locale is set to "C" this can cause unexpected behavior. We advice you to repair your locale!
    2019-02-02 16:09:37.716214|INFO |DatabaseQuery | |dbPlugin name: SQLite3 plugin, Version 3, (c)TeamSpeak Systems GmbH
    2019-02-02 16:09:37.716335|INFO |DatabaseQuery | |dbPlugin version: 3.11.1
    2019-02-02 16:09:37.727125|INFO |DatabaseQuery | |checking database integrity (may take a while)
    2019-02-02 16:09:37.814940|WARNING |Accounting | |Unable to open licensekey.dat, falling back to limited functionality
    2019-02-02 16:09:37.815287|INFO |Accounting | |Licensing Information
    2019-02-02 16:09:37.815353|INFO |Accounting | |licensed to : Anonymous
    2019-02-02 16:09:37.815874|INFO |Accounting | |type : No License
    2019-02-02 16:09:37.816184|INFO |Accounting | |starting date : Sun Jul 1 00:00:00 2018
    2019-02-02 16:09:37.816252|INFO |Accounting | |ending date : Wed Jul 31 00:00:00 2019
    2019-02-02 16:09:37.816311|INFO |Accounting | |max virtualservers: 1
    2019-02-02 16:09:37.816368|INFO |Accounting | |max slots : 32
    2019-02-02 16:09:38.126595|INFO | | |myTeamSpeak identifier revocation list was downloaded successfully - all related features are activated
    2019-02-02 16:09:40.691323|INFO | | |Puzzle precompute time: 2766
    2019-02-02 16:09:40.692090|INFO |FileManager | |listening on 0.0.0.0:30033, [::]:30033
    2019-02-02 16:09:40.742144|ERROR |FileHelp | |CustomFileHelpers::createDirectory _wmkdir files/internal/icons -1 13
    2019-02-02 16:09:40.742558|ERROR |VirtualSvrMgr | |loading VirtualServer(1) failed to start, error: invalid file path
    2019-02-02 16:09:40.743026|INFO |Query | |listening for query on 0.0.0.0:10011, [::]:10011
    2019-02-02 16:09:40.743480|INFO |Query | |listening for query ssh on 0.0.0.0:10022, [::]:10022
    2019-02-02 16:09:40.743556|INFO |Query | |creating QUERY_SSH_RSA_HOST_KEY file: ssh_host_rsa_key
    2019-02-02 16:09:46.842188|CRITICAL|Query | |unable to create QUERY_SSH_RSA_HOST_KEY ('ssh_host_rsa_key')

    and

    $ cat logs/ts3server_2019-02-02__16_09_37.712657_1.log
    2019-02-02 16:09:40.742251|ERROR |VirtualServer |1 |Unable to create virtualserver filetransfer internal/icons directory. Error: 2052 dir: files
    2019-02-02 16:09:40.742678|INFO |VirtualServerBase|1 |stopped


    I've been trying for a week or more to get this back up and running but I can't seem to find any pertinent info on the web that helps me resolve this issue. Hoping you guys can as I'd really rather not reinstall.

    Thanks

  2. #2
    Join Date
    December 2018
    Posts
    30
    Quote Originally Posted by CptnBlues63 View Post
    $ ./ts3server_startscript.sh start
    ts3server.pid found, but no server running. Possibly your previously started server crashed
    Please view the logfile for details.
    Starting the TeamSpeak 3 server
    TeamSpeak 3 server started, for details please view the log file
    $ 2019-02-02 16:09:46.842188|CRITICAL|Query | |unable to create QUERY_SSH_RSA_HOST_KEY ('ssh_host_rsa_key')
    Check the permissions on the folder where you have TeamSpeak and make sure that whichever user is configured to start the script has the appropriate permissions so that it can write the SSH key to file. Within the same directory, check if there is a "ts3sever.pid" file as that records the process ID that the TeamSpeak server is currently running under, so if the server didn't cleanly close-down previously you may need to delete that file.

  3. #3
    Join Date
    February 2015
    Posts
    11
    Quote Originally Posted by Whittle View Post
    Check the permissions on the folder where you have TeamSpeak and make sure that whichever user is configured to start the script has the appropriate permissions so that it can write the SSH key to file. Within the same directory, check if there is a "ts3sever.pid" file as that records the process ID that the TeamSpeak server is currently running under, so if the server didn't cleanly close-down previously you may need to delete that file.
    Dude!

    I feel totally stupid now! I should have thought of that myself but I didn't.

    I did a quick ls and root owned that file. I changed ownership to teamspeak and the server started right up.

    Thanks a lot!

  4. #4
    Join Date
    February 2015
    Posts
    11
    Hmmm.........it started alright, but I can't connect *sigh*

    Here's the logs:

    2019-02-03 15:17:49.235567|ERROR |VirtualServer |1 |Unable to create virtualserver filetransfer internal/icons directory. Error: 2052 dir: files
    2019-02-03 15:17:49.235912|INFO |VirtualServerBase|1 |stopped
    [email protected]:/home/teamspeak/teamspeak3-server_freebsd_amd64>cat logs/ts3server_2019-02-03__15_17_46.661755_0.log
    2019-02-03 15:17:46.662084|INFO |ServerLibPriv | |TeamSpeak 3 Server 3.6.0 (2019-01-16 07:50:10)
    2019-02-03 15:17:46.662407|INFO |ServerLibPriv | |SystemInformation: FreeBSD 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510: Fri Jun 22 04:32:14 UTC 2018 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64 Binary: 64bit
    2019-02-03 15:17:46.662495|WARNING |ServerLibPriv | |The system locale is set to "C" this can cause unexpected behavior. We advice you to repair your locale!
    2019-02-03 15:17:46.662978|INFO |DatabaseQuery | |dbPlugin name: SQLite3 plugin, Version 3, (c)TeamSpeak Systems GmbH
    2019-02-03 15:17:46.663058|INFO |DatabaseQuery | |dbPlugin version: 3.11.1
    2019-02-03 15:17:46.663396|INFO |DatabaseQuery | |checking database integrity (may take a while)
    2019-02-03 15:17:46.720955|WARNING |Accounting | |Unable to open licensekey.dat, falling back to limited functionality
    2019-02-03 15:17:46.721303|INFO |Accounting | |Licensing Information
    2019-02-03 15:17:46.721370|INFO |Accounting | |licensed to : Anonymous
    2019-02-03 15:17:46.721452|INFO |Accounting | |type : No License
    2019-02-03 15:17:46.721783|INFO |Accounting | |starting date : Sun Jul 1 00:00:00 2018
    2019-02-03 15:17:46.721860|INFO |Accounting | |ending date : Wed Jul 31 00:00:00 2019
    2019-02-03 15:17:46.721919|INFO |Accounting | |max virtualservers: 1
    2019-02-03 15:17:46.721975|INFO |Accounting | |max slots : 32
    2019-02-03 15:17:47.004777|INFO | | |myTeamSpeak identifier revocation list was downloaded successfully - all related features are activated
    2019-02-03 15:17:49.192134|INFO | | |Puzzle precompute time: 2371
    2019-02-03 15:17:49.192890|INFO |FileManager | |listening on 0.0.0.0:30033, [::]:30033
    2019-02-03 15:17:49.235462|ERROR |FileHelp | |CustomFileHelpers::createDirectory _wmkdir files/internal/icons -1 13
    2019-02-03 15:17:49.235823|ERROR |VirtualSvrMgr | |loading VirtualServer(1) failed to start, error: invalid file path
    2019-02-03 15:17:49.236212|INFO |Query | |listening for query on 0.0.0.0:10011, [::]:10011
    2019-02-03 15:17:49.236617|INFO |Query | |listening for query ssh on 0.0.0.0:10022, [::]:10022
    2019-02-03 15:17:49.236835|INFO |CIDRManager | |updated query_ip_whitelist ips: 127.0.0.1/32, ::1/128,


    When I try to connect from my client I get the following error message: failed to connect to server


    One other quick question. I noticed the timestamp says: 15:17:49 and the actual time is: 08:17 How can I fix that so the logfiles show the correct time? The system time is correct, but the logs aren't!?!?

  5. #5
    Join Date
    December 2018
    Posts
    30

    Question

    Run "timedatectl" just to be certain the system time is what you expect it to be and that you're looking at the most recent log file:

    [email protected]:~/.ssh# timedatectl
    Local time: Sun 2019-02-03 15:58:27 GMT
    Universal time: Sun 2019-02-03 15:58:27 UTC
    RTC time: Sun 2019-02-03 15:58:27
    Time zone: Europe/London (GMT, +0000)
    System clock synchronized: yes
    systemd-timesyncd.service active: yes
    RTC in local TZ: no
    For the locale issue, I had a Google and came across a previous locale question on the forum. Maybe see if that has any relevance to your log entry:

    2019-02-03 15:17:46.662495|WARNING |ServerLibPriv | |The system locale is set to "C" this can cause unexpected behavior. We advice you to repair your locale!
    The log also looks to be complaining that it can't create a directory, so perhaps another permissions issue?

    2019-02-03 15:17:49.235567|ERROR |VirtualServer |1 |Unable to create virtualserver filetransfer internal/icons directory. Error: 2052 dir: file

  6. #6
    Join Date
    February 2015
    Posts
    11
    Quote Originally Posted by Whittle View Post
    Run "timedatectl" just to be certain the system time is what you expect it to be and that you're looking at the most recent log file:
    I don't seem to have 'timedatectl' Is that a command or service? I'm presently running FreeBSD v11.2 (will be upgrading to 12.0 once I get this working properly)

    I should add, here's the output of the "date" command. The date/time is correct:


    [email protected]:/home/teamspeak/teamspeak3-server_freebsd_amd64>date
    Fri Feb 15 07:47:27 MST 2019




    Quote Originally Posted by Whittle View Post
    For the locale issue, I had a Google and came across a previous locale question on the forum. Maybe see if that has any relevance to your log entry:
    That didn't seem to help me



    Quote Originally Posted by Whittle View Post
    The log also looks to be complaining that it can't create a directory, so perhaps another permissions issue?
    Here's the permissions on my /home/teamspeak folder:

    -rw------- 1 teamspeak teamspeak 4840 Feb 15 07:48 .sh_history
    -rw-r--r-- 1 teamspeak teamspeak 1055 Aug 17 2018 .cshrc
    -rw-r--r-- 1 teamspeak teamspeak 952 Aug 17 2018 .profile~
    -rw-r--r-- 1 teamspeak teamspeak 933 Aug 17 2018 .profile
    -rw-r--r-- 1 teamspeak teamspeak 851 Aug 17 2018 .shrc
    -rw-r--r-- 1 teamspeak teamspeak 392 Aug 17 2018 .login
    -rw------- 1 teamspeak teamspeak 379 Aug 17 2018 .mail_aliases
    -rw-r--r-- 1 teamspeak teamspeak 336 Aug 17 2018 .mailrc
    -rw------- 1 teamspeak teamspeak 281 Aug 17 2018 .rhosts
    -rw-r--r-- 1 teamspeak teamspeak 163 Aug 17 2018 .login_conf
    drwxr-xr-x 9 teamspeak teamspeak 27 Feb 15 07:31 teamspeak3-server_freebsd_amd64/
    drwxr-xr-x 6 teamspeak teamspeak 16 Jan 27 08:10 ./
    drwxr-xr-x 5 root wheel 5 Feb 15 07:27 ../
    drwx------ 3 teamspeak teamspeak 3 Aug 17 2018 .emacs.d/
    drwxr-xr-x 2 teamspeak teamspeak 3 Aug 17 2018 storage/
    drwxr-xr-x 2 teamspeak teamspeak 2 Aug 17 2018 bin/

    and the /home/teamspeak/teamspeak3-server_freebsd_amd64 folder inside it

    -rwxr-xr-x 1 teamspeak teamspeak 11109384 Jan 16 00:52 ts3server*
    -rw-r--r-- 1 teamspeak teamspeak 1252992 Jan 16 00:52 libts3db_sqlite3.so
    -rw-r--r-- 1 teamspeak teamspeak 961192 Jan 16 00:52 libts3_ssh.so
    -rw-r--r-- 1 teamspeak teamspeak 197632 Feb 15 07:31 ts3server.sqlitedb
    -rw-r--r-- 1 teamspeak teamspeak 68141 Jan 16 00:52 LICENSE
    -rw-r--r-- 1 teamspeak teamspeak 61174 Jan 16 00:52 CHANGELOG
    -rw-r--r-- 1 teamspeak teamspeak 57768 Jan 16 00:52 libts3db_mariadb.so
    -rw-r--r-- 1 teamspeak teamspeak 49459 Jan 16 00:52 LICENSE-THIRDPARTY
    -rw-r--r-- 1 teamspeak teamspeak 32768 Feb 15 07:31 ts3server.sqlitedb-shm
    -rwxr-xr-x 1 teamspeak wheel 3604 Aug 17 2018 t3updater.sh*
    -rw------- 1 teamspeak teamspeak 3243 Jan 24 06:18 ssh_host_rsa_key
    -rwxr-xr-x 1 teamspeak teamspeak 2593 Jan 16 00:52 ts3server_startscript.sh*
    drwxr-xr-x 5 teamspeak teamspeak 164 Jan 24 06:18 sql/
    drwxr-xr-x 2 teamspeak teamspeak 137 Jan 24 06:18 serverquerydocs/
    -rwxr-xr-x 1 teamspeak teamspeak 87 Jan 16 00:52 ts3server_minimal_runscript.sh*
    drwxr-xr-x 9 teamspeak teamspeak 27 Feb 15 07:31 ./
    drwxr-xr-x 6 teamspeak teamspeak 16 Jan 27 08:10 ../
    -rw-r--r-- 1 teamspeak teamspeak 14 Aug 17 2018 query_ip_whitelist.txt
    drwxr-xr-x 3 teamspeak teamspeak 9 Jan 24 06:18 doc/
    -rw-r--r-- 1 teamspeak teamspeak 6 Feb 15 07:31 ts3server.pid
    drwxr-xr-x 2 teamspeak teamspeak 6 Jan 24 06:18 tsdns/
    drwx------ 3 teamspeak teamspeak 5 Feb 15 07:31 logs/
    drwx------ 4 teamspeak teamspeak 4 Oct 2 05:39 files/
    drwxr-xr-x 2 teamspeak teamspeak 3 Jan 24 06:18 redist/
    -rw-r--r-- 1 teamspeak teamspeak 0 Jan 24 06:18 .ts3server_license_accepted
    -rw-r--r-- 1 teamspeak teamspeak 0 Aug 17 2018 query_ip_blacklist.txt
    -rw-r--r-- 1 teamspeak teamspeak 0 Feb 15 07:31 ts3server.sqlitedb-wal


    Do you have any idea at all what folder it's trying to create or where it belongs?
    re this error:
    2019-02-15 14:31:53.390623|ERROR |FileHelp | |CustomFileHelpers::createDirectory _wmkdir files/internal/icons -1 13
    2019-02-15 14:31:53.390969|ERROR |VirtualSvrMgr | |loading VirtualServer(1) failed to start, error: invalid file path

    I'm sure if I can figure that out, I could get it running again. I don't want to reinstall from scratch again

    Thanks!

  7. #7
    Join Date
    December 2018
    Posts
    30
    My apologies, I'm not sure what else to suggest as the files/ folder looks to already be writable by the user "teamspeak".
    Unless of course maybe the folders within it are under a different user (i.e. root), but it may be a red-herring anyway.

    At this point I think I'll bow-out and hopefully somebody with more experience will respond - best of luck!

  8. #8
    Join Date
    February 2018
    Posts
    3
    I concur with Whittle - are the permissions inside the files directory correct?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Server Issue
    By Hacket in forum Server Support
    Replies: 1
    Last Post: February 21st, 2013, 08:15 AM
  2. Server issue.
    By juewel in forum Windows
    Replies: 2
    Last Post: January 11th, 2013, 11:45 AM
  3. OS X 10.5 server issue
    By G3R3N in forum macOS
    Replies: 1
    Last Post: October 2nd, 2010, 06:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •