Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303621 - media-sound/teamspeak-server-bin-3.0.0_beta17 : LD_LIBRARY_PATH not set correctly
Summary: media-sound/teamspeak-server-bin-3.0.0_beta17 : LD_LIBRARY_PATH not set corre...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Christian Parpart (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-05 19:43 UTC by Daniel
Modified: 2010-09-11 16:02 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixed Teamspeak3 Init Script (teamspeak3-server,958 bytes, text/plain)
2010-02-05 19:46 UTC, Daniel
Details
init script with EPERM Bug workaround removed & LD_LIBRARY_PATH (teamspeak3-server.init,1.02 KB, text/plain)
2010-02-09 21:59 UTC, Benjamin Börngen-Schmidt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2010-02-05 19:43:34 UTC
When starting Teamspeak3 with /etc/init.d/teamspeak3-server start it fails silently.
Looking at the log tells me:
2010-02-05 15:13:55.212900|INFO    |ServerLibPriv |   | Server Version: 3.0.0-beta17 [Build: 10115]
2010-02-05 15:13:55.213220|INFO    |DatabaseQuery |   | Please make sure you use the supplied ts3server_runscript.sh to run the server, or set LD_LIBRARY_PATH yourself
2010-02-05 15:13:55.213287|CRITICAL|DatabaseQuery |   | unable to load database plugin library "libts3db_sqlite3.so", halting!

Looking at the changelog for beta17 also tells me:

The server now must be started with LD_LIBRARY_PATH set to make sure the necessary libraries are found.

After adding 
export LD_LIBRARY_PATH="/opt/teamspeak3-server/:$LD_LIBRARY_PATH"
to the init file it started without problems.

Maybe it's important to note that this was the first start of teamspeak on my server, I had no previous versions installed of teamspeak3.

Reproducible: Always

Steps to Reproduce:
1. clean Install Teamspeak3 beta17 
2. start with /etc/init.d/teamspeak3-server start


Actual Results:  
failed starting

Expected Results:  
successful start
Comment 1 Daniel 2010-02-05 19:46:44 UTC
Created attachment 218561 [details]
Fixed Teamspeak3 Init Script

I fixed this Bug on my machine with this init script.
Comment 2 Alexandre Ney 2010-02-07 17:21:46 UTC
(In reply to comment #1)
> Created an attachment (id=218561) [details]
> Fixed Teamspeak3 Init Script
> 
> I fixed this Bug on my machine with this init script.
> 

Thank you, I was having the same problem but your init script works perfectly :)
Comment 3 Benjamin Börngen-Schmidt 2010-02-09 21:59:03 UTC
Created attachment 219031 [details]
init script with EPERM Bug workaround removed & LD_LIBRARY_PATH

In addition to Daniel T.'s init script I removed the lines about the EPERM bug and can confirm that TS3 now cleans up /dev/shm itself when it stops.
The only problem that could arise is, when TS3 was started before as some other user. Then it might not be able to remove the file.
Comment 4 Jarry 2010-02-11 17:53:13 UTC
Just upgraded to 3.0.0_beta18, it has the same problem:

# more ts3server_2010-02-11__17_44_10.396776.log
2010-02-11 17:44:10.396915|INFO    |ServerLibPriv |   | Server Version: 3.0.0-beta18 [Build: 10190]
2010-02-11 17:44:10.397117|INFO    |DatabaseQuery |   | Please make sure you use
 the supplied ts3server_minimal_runscript.sh to run the server, or set LD_LIBRARY_PATH yourself
2010-02-11 17:44:10.397147|CRITICAL|DatabaseQuery |   | unable to load database
plugin library "libts3db_sqlite3.so", halting!
Comment 5 Dan D. 2010-03-28 01:28:18 UTC
Same thing here with new install of 3.0.0_beta18, and upgrade to 3.0.0_beta20. Attached init.d script works. as well
Comment 6 Alex Giouzenis 2010-05-19 10:07:02 UTC
Still exists with media-sound/teamspeak-server-bin-3.0.0_beta22

I can confirm the fix in the init script. If you do not want to set LD_LIBRARY_PATH in there, you can simply fix it by changing the init script line from
                --exec "/opt/teamspeak3-server/ts3server-bin" -- \
to
                --exec "/usr/sbin/ts3server" -- \
which is a wrapper script that sets the library path.
Comment 7 Conrad Kostecki gentoo-dev 2010-05-19 15:52:28 UTC
Thanks!
Works for me, hope this is getting fixed.
Comment 8 Christian Parpart (RETIRED) gentoo-dev 2010-09-11 16:02:16 UTC
Thank you for your feedback. I've updated the init script accordingly.