Forum

Results 1 to 12 of 12
  1. #1
    Join Date
    February 2014
    Posts
    8

    ts3 server crash on synology nas

    I'm having a crash-on-startup problem running TS3 on my atom-based synology nas.

    It used to work on the 3.0.6.1 version, using the 32-bit server. When that started nagging about 3.0.10.1, I installed that, and I somehow got that running the first time. However, when I powered down the NAS to relocate it, I could not get the teamspeak server running again, either using the 32-bit or the 64-bit server. I have downloaded and tried the newer 3.0.10.3 version, but that does not work either. However, the older 3.0.6.1 still works.

    There are some pecularities about this environment that may have to do with the issue: It is an atom soc, and its shell is a rather limited busybox environment. The provided start script does not quite work.

    The coredump, logs, and core_environment tarball are available for download on azy.asuscomm.com/ts3crash.tar.gz

  2. #2
    Join Date
    February 2014
    Posts
    5
    I confirm the 3.0.7.2 linux x86 version works fine on DS412+ (atom-based) running DSM 4.3-3180 update 4. If you are having hiccups on start, delete ts3server.pid, rename (or delete) ts3server.sqlitedb and start the server again (included start script work fine). You still can download 3.0.7.2 from the official download page, just hit the current version and manually change version in folder & filename of the file download URL.

    After struggling for a couple days trying to update to 3.0.10.3, I managed somehow to get it to work for a couple hours yesterday (using the 3.0.10.3 linux amd64 package), until I rebooted the NAS and now I can't get it to work again (argh!). It DID work for some time (screenshotted so it DID happen) so there's hope. I did wipe/reinstall from scratch (nothing fancy: wipe, wget normal package from teamspeak.com server, extract and launch using startscript) several times yesterday and it worked flawlessly on every try, but since the reboot, v3.0.10.3 hates me badly.

    It seems to crash (Segmentation fault) at the Puzzle precompute, which appeared with 3.0.8 (see here), and this thread mentions you need to have shared memory properly mounted unless you have a license file. I'm not sure if I have shared memory mounted properly or not (/dev/shm = no such file or directory, so I would think it's not mounted) but I'm 100% sure I didn't play with this yesterday.

    Time to go to bed. I'll get back to it later.

  3. #3
    Join Date
    February 2014
    Posts
    8
    Sounds awfully similar to my case. I can't find traces of mounted shared memory on that box, but if I try to start the 3.0.10.3 64-bit server while the 3.0.6.1 32-bit server is running I get an error message:

    2014-02-13 18:01:19.058865|ERROR |ServerLibPriv | | Server() error while starting servermanager, error: instance limit reached

    It segfaults almost instantly after the 'unable to find license key' message, and that puzzle sounds like it'd take a noticeable amount of time on the atom. So it's probably not after that.

    I'll see if I can download and try some different server versions around 3.0.7.2/3.0.8 this weekend. Can't right now because I've got users online.

    For reference, my first of 4 cpuinfo entries:

    Code:
    processor	: 0
    vendor_id	: GenuineIntel
    cpu family	: 6
    model		: 28
    model name	: Intel(R) Atom(TM) CPU D525   @ 1.80GHz
    stepping	: 10
    microcode	: 0x107
    cpu MHz		: 1793.929
    cache size	: 512 KB
    physical id	: 0
    siblings	: 4
    core id		: 0
    cpu cores	: 2
    apicid		: 0
    initial apicid	: 0
    fpu		: yes
    fpu_exception	: yes
    cpuid level	: 10
    wp		: yes
    flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm dtherm
    bogomips	: 3587.85
    clflush size	: 64
    cache_alignment	: 64
    address sizes	: 36 bits physical, 48 bits virtual
    power management:

  4. #4
    Join Date
    February 2014
    Posts
    8
    Oh, and if you want to try getting out coredumps, the synology nas does generate them but in the directory /volume1/, which by default is only writable by root.

  5. #5
    Join Date
    February 2014
    Posts
    5
    I still have a log from when 3.0.10.3 was working:

    Code:
    2014-02-12 04:20:29.118053|INFO    |ServerLibPriv |   | TeamSpeak 3 Server 3.0.10.3 (2014-01-01 16:28:39)
    2014-02-12 04:20:29.118402|INFO    |ServerLibPriv |   | SystemInformation: Linux 3.2.40 #3810 SMP Fri Jan 3 13:34:26 CST 2014 x86_64 Binary: 64bit
    2014-02-12 04:20:29.121123|INFO    |DatabaseQuery |   | dbPlugin name:    SQLite3 plugin, Version 2, (c)TeamSpeak Systems GmbH
    2014-02-12 04:20:29.121230|INFO    |DatabaseQuery |   | dbPlugin version: 3.7.3
    2014-02-12 04:20:29.121934|INFO    |DatabaseQuery |   | checking database integrity (may take a while)
    2014-02-12 04:20:29.182931|INFO    |SQL           |   | db_CreateTables() tables created
    2014-02-12 04:20:29.799434|WARNING |Accounting    |   | Unable to find valid license key, falling back to limited functionality
    2014-02-12 04:20:34.193508|INFO    |              |   | Puzzle precompute time: 3853
    2014-02-12 04:20:34.194425|INFO    |FileManager   |   | listening on 0.0.0.0:30033
    2014-02-12 04:20:34.207659|INFO    |VirtualSvrMgr |   | executing monthly interval
    2014-02-12 04:20:34.208096|INFO    |VirtualSvrMgr |   | reset virtualserver traffic statistics
    2014-02-12 04:20:34.747722|INFO    |CIDRManager   |   | updated query_ip_whitelist ips: 127.0.0.1,
    2014-02-12 04:20:34.749008|INFO    |Query         |   | listening on 0.0.0.0:10011
    2014-02-12 04:20:34.713840|INFO    |VirtualServer |  1| listening on 0.0.0.0:9987
    2014-02-12 04:20:34.714795|INFO    |VirtualServer |  1| client 'server'(id:0) added privilege key for servergroup 'Server Admin'(id:6)
    2014-02-12 04:20:34.714874|WARNING |VirtualServer |  1| --------------------------------------------------------
    2014-02-12 04:20:34.714949|WARNING |VirtualServer |  1| ServerAdmin privilege key created, please use the line below
    2014-02-12 04:20:34.715001|WARNING |VirtualServer |  1| token=LmlnxEzg9U7bB3RfRPcrSFuMxTOJuklQc9JmaSQE
    2014-02-12 04:20:34.715052|WARNING |VirtualServer |  1| --------------------------------------------------------
    Puzzle precompute takes 3.8 secs on the DS412+ (Atom D2700 @2.13GHz). However, on slower systems it could take a couple mins (e.g. over 3 mins on the first thread I linked in my previous post).

    I'll try to post a coredump tonight if it can help.

    I wish we could still obtain a non-profit licence to try. On post #3 of this thread the guy mention server starts if he uses a licence, but doesn't start without a licence (again, it might be related to that shared memory thing). However, as you can see in my log, the server was running without a licence anyway.

  6. #6
    Join Date
    February 2014
    Posts
    8
    A coredump would at most help if a dev came to look at this.

    Here's the startup log snippet of my one previous working start

    Code:
    2013-12-01 11:49:57.122021|INFO    |ServerLibPriv |   | TeamSpeak 3 Server 3.0.10.1 (2013-11-08 11:09:56)
    2013-12-01 11:49:57.122438|INFO    |ServerLibPriv |   | SystemInformation: Linux 3.2.40 #3776 SMP Sat Aug 17 02:16:50 CST 2013 x86_64 Binary: 64bi
    2013-12-01 11:49:57.125813|INFO    |DatabaseQuery |   | dbPlugin name:    SQLite3 plugin, Version 2, (c)TeamSpeak Systems GmbH
    2013-12-01 11:49:57.125949|INFO    |DatabaseQuery |   | dbPlugin version: 3.7.3
    2013-12-01 11:49:57.126746|INFO    |DatabaseQuery |   | checking database integrity (may take a while)
    2013-12-01 11:49:57.207627|WARNING |Accounting    |   | Unable to find valid license key, falling back to limited functionality
    2013-12-01 11:50:01.917129|INFO    |              |   | Puzzle precompute time: 4168
    2013-12-01 11:50:01.918171|INFO    |FileManager   |   | listening on 0.0.0.0:30033
    2013-12-01 11:50:02.014962|INFO    |CIDRManager   |   | updated query_ip_whitelist ips: 127.0.0.1,
    2013-12-01 11:50:02.016480|INFO    |Query         |   | listening on 0.0.0.0:10011
    2013-12-09 04:16:38.528260|ERROR   |              |   | TS3ANetwork::ResolveHostName failed error: -2 (Name or service not known) 0
    2013-12-09 04:26:34.028278|ERROR   |              |   | TS3ANetwork::ResolveHostName failed error: -2 (Name or service not known) 0
    2013-12-09 04:36:36.057292|ERROR   |              |   | TS3ANetwork::ResolveHostName failed error: -2 (Name or service not known) 0

  7. #7
    Join Date
    February 2014
    Posts
    5
    Quote Originally Posted by pleegwat View Post
    It segfaults almost instantly after the 'unable to find license key' message, and that puzzle sounds like it'd take a noticeable amount of time on the atom. So it's probably not after that.
    Sorry, I just read your post again and kinda had misread that part.

    Yeah, same here. It's most likely crashing at the beginning of puzzle precompute and not at the end or after.


    I have a feeling shared memory might be the key here. Quick googling on the topic doesn't return much useful infos so far. I'll check again later.

  8. #8
    Join Date
    February 2014
    Posts
    8
    I've also tried mounting tmpfs on /dev/shm, and that doesn't make a difference. I didn't much expect it too either, given that the are-multiple-instances-running check seems to be working correctly.

    I've done some trying getting an strace to pinpoint the problem, but it's not included in the os, and I'm not sure how to build one. Will do some searching on that.

  9. #9
    Join Date
    February 2014
    Posts
    8
    Installed a debian chroot (from synocommunity.com) and teamspeak runs fine inside that. Which means the problem is probably library related.

  10. #10
    Join Date
    February 2014
    Posts
    5
    Did you follow a particular procedure?

    I installed Python and debian chroot (both from SynoCommunity), then trying the x86 version of ts3server 3.0.10.3 says I don't have the right package for my system, and the amd64 version says "./ts3server_linux_amd64: not found".


    It's still weird though, if it's a missing library, that we both have been able to run it for some time.

  11. #11
    Join Date
    February 2014
    Posts
    8
    It's a 32-bit chroot on a 64-bit host, which is not correctly handled by the scripts. You can start the binary directly (`LD_LIBRARY_PATH=. ./ts3server_linux_x86` from the directory containing the teamspeak binary)

  12. #12
    Join Date
    February 2014
    Posts
    5
    *sigh*

    Launching with "LD_LIBRARY_PATH=. ./ts3server_linux_x86" returns a "failed to register local accounting service" error after the no license key message under chroot.

    I tried to launch my other non-chroot versions with the same command (3.0.10.3 amd64 failed to launch, then 3.0.7.2 x86 started and as I realized it was the older version I stopped it with a ctrl+c), then I tried to launch my original 3.0.10.3 amd64 package from the package center "start" button and it's running just fine, go figure..

    I guess I'll leave it that way and hope I won't need to reboot my NAS for a long while.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Synology NAS - Server install - possible?
    By DarkStaR in forum General Questions
    Replies: 0
    Last Post: September 8th, 2012, 11:50 PM
  2. TS3 testing on Synology DS207+ server
    By Ronny_The_Menace in forum General Questions
    Replies: 0
    Last Post: July 13th, 2008, 09:42 PM

Posting Permissions

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