Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
teamspeak-server-bin startprobleme
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Gladdle
Guru
Guru


Joined: 27 Jul 2008
Posts: 312
Location: Cleebronn, Germany

PostPosted: Sun Mar 21, 2010 6:37 pm    Post subject: teamspeak-server-bin startprobleme Reply with quote

Ich bekomme beim Starten von media-sound/teamspeak-server-bin-3.0.0_beta20 zwar die Nachricht "Starting TeamSpeak 3 Server ... [ ok ]" aber in der Logdatei steht folgender Fehler:
Code:
|CRITICAL|DatabaseQuery |   | unable to load database plugin library "libts3db_mysql.so", halting!

Also schnell gesucht und den Gentoo Bug Nummer 303621 gefunden. Laut deren Aussage muss man die Zeile
Code:
export LD_LIBRARY_PATH="/opt/teamspeak3-server/:$LD_LIBRARY_PATH"
hinzufügen und das ganze funktioniert. Nun sieht meine /etc/init.d/teamspeak3-server so aus:
Code:
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak-server-bin/files/teamspeak3-server.rc,v 1.3 2010/01/20 17:55:02 trapni Exp $

depend() {
   need net
   use mysql
}

start() {
   ebegin "Starting TeamSpeak 3 Server"

   # temporay fix for EPERM bug
   rm -f /dev/shm/7gbhujb54g8z9hu43jre8

        # fix
        export LD_LIBRARY_PATH="/opt/teamspeak3-server:$LD_LIBRARY_PATH"

   start-stop-daemon --start --quiet --background \
      --pidfile "/var/run/teamspeak3-server/server.pid" --make-pidfile \
      --chuid "teamspeak3" --chdir "/opt/teamspeak3-server" \
      --exec "/opt/teamspeak3-server/ts3server-bin" -- \
      inifile="/etc/teamspeak3-server/server.conf"
   eend $?
}

stop() {
   ebegin "Stopping TeamSpeak Server"
   start-stop-daemon --stop --quiet \
      --pidfile "/var/run/teamspeak3-server/server.pid"
   eend $?
}

restart() {
   svc_stop
   sleep 3
   svc_start
}

Der Fehler besteht jedoch weiterhin, die Daten sind aber im Verzeichniss vorhanden. Kann mir jemand Helfen denn ich steh gerade auf dem Schlauch.



Nachtrag:
Hier die komplette log Datei:
Code:
timestamp|INFO    |ServerLibPriv |   | Server Version: 3.0.0-beta20 [Build: 10413], Linux
timestamp|INFO    |DatabaseQuery |   | Please make sure you use the supplied ts3server_minimal_runscript.sh to run the server, or set LD_LIBRARY_PATH yourself
timestamp|CRITICAL|DatabaseQuery |   | unable to load database plugin library "libts3db_mysql.so", halting!


Last edited by Gladdle on Sun Mar 21, 2010 7:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Evildad
Guru
Guru


Joined: 15 Apr 2004
Posts: 475

PostPosted: Sun Mar 21, 2010 7:25 pm    Post subject: Reply with quote

Was sagt denn ein

Code:
ldd /opt/teamspeak3-server/ts3server-bin
Back to top
View user's profile Send private message
Gladdle
Guru
Guru


Joined: 27 Jul 2008
Posts: 312
Location: Cleebronn, Germany

PostPosted: Sun Mar 21, 2010 7:36 pm    Post subject: Reply with quote

Hier die Ausgabe:
Code:
        linux-vdso.so.1 =>  (0x00007fff45d7d000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007fc3fc1bd000)
        librt.so.1 => /lib/librt.so.1 (0x00007fc3fbfb4000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007fc3fbd97000)
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libstdc++.so.6 (0x00007fc3fba96000)
        libm.so.6 => /lib/libm.so.6 (0x00007fc3fb813000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fc3fb5fd000)
        libc.so.6 => /lib/libc.so.6 (0x00007fc3fb2a1000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fc3fc3c1000)


Hier noch meine /etc/teamspeak3-server/server.conf:
Code:
machine_id=
default_voice_port=9987
voice_ip=0.0.0.0
licensepath=/opt/teamspeak3-server/
filetransfer_port=30033
filetransfer_ip=0.0.0.0
query_port=10011
query_ip=0.0.0.0

### Datenbankoptionen
dbplugin=ts3db_mysql
dbpluginparameter=/etc/teamspeak3-server/ts3db_mysql.ini
dbsqlcreatepath=create_mysql/
dbsqlpath=/opt/teamspeak3-server/sql/

### Logdateien
logpath=/var/log/teamspeak3-server/
logquerycommands=0
Back to top
View user's profile Send private message
Evildad
Guru
Guru


Joined: 15 Apr 2004
Posts: 475

PostPosted: Sun Mar 21, 2010 7:42 pm    Post subject: Reply with quote

Ok mach mal noch:

Code:
ldd libts3db_mysql.so
Back to top
View user's profile Send private message
Gladdle
Guru
Guru


Joined: 27 Jul 2008
Posts: 312
Location: Cleebronn, Germany

PostPosted: Sun Mar 21, 2010 8:36 pm    Post subject: Reply with quote

Code:
ldd /opt/teamspeak3-server/libts3db_mysql.so
        linux-vdso.so.1 =>  (0x00007fff4efa4000)
        libmysqlclient.so.15 => not found
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libstdc++.so.6 (0x00007f17f2bc0000)
        libm.so.6 => /lib/libm.so.6 (0x00007f17f293d000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f17f2727000)
        libc.so.6 => /lib/libc.so.6 (0x00007f17f23ca000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f17f30fd000)


Ich habe TS3 Server ja auch schon mal neu installiert.
Back to top
View user's profile Send private message
Evildad
Guru
Guru


Joined: 15 Apr 2004
Posts: 475

PostPosted: Sun Mar 21, 2010 9:16 pm    Post subject: Reply with quote

libmysqlclient.so.15 gibt es aber schon auf deinem System, oder?
Back to top
View user's profile Send private message
Gladdle
Guru
Guru


Joined: 27 Jul 2008
Posts: 312
Location: Cleebronn, Germany

PostPosted: Sun Mar 21, 2010 11:53 pm    Post subject: Reply with quote

Code:
revdep-rebuild --library libmysqlclient.so.15
 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries using libmysqlclient.so.15
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Checking dynamic linking
[ 100% ]                 

 * There are no dynamic links to libmysqlclient.so.15... All done.


Und nun bin ich Ratlos. dev-db/mysql-5.1.44-r1 ist installiert.
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5161

PostPosted: Mon Mar 22, 2010 7:32 am    Post subject: Reply with quote

Gladdle wrote:
Code:
revdep-rebuild --library libmysqlclient.so.15
 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries using libmysqlclient.so.15
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Checking dynamic linking
[ 100% ]                 

 * There are no dynamic links to libmysqlclient.so.15... All done.


Und nun bin ich Ratlos. dev-db/mysql-5.1.44-r1 ist installiert.


revdep-rebuild wird dir hier nicht helfen, da die libts3db_mysql.so in einem verzeichnis liegt, die, soweit ich weis, nicht von revdep-rebuild auf libs überprüft wird.

Und Evildad meinte du solltest mal schauen ob und welche version von libmysqlclient.so installiert ist. Die müsste eigentlich im /usr/lib Verzeichnis befinden.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Gladdle
Guru
Guru


Joined: 27 Jul 2008
Posts: 312
Location: Cleebronn, Germany

PostPosted: Mon Mar 22, 2010 9:31 pm    Post subject: Reply with quote

ls -lha1 /usr/lib/*mysql*
Code:
lrwxrwxrwx 1 root root   32 21. Mär 23:31 /usr/lib/libmysqlclient_r.so -> mysql/libmysqlclient_r.so.16.0.0
lrwxrwxrwx 1 root root   32 21. Mär 23:31 /usr/lib/libmysqlclient_r.so.16 -> mysql/libmysqlclient_r.so.16.0.0
lrwxrwxrwx 1 root root   32 21. Mär 23:31 /usr/lib/libmysqlclient_r.so.16.0 -> mysql/libmysqlclient_r.so.16.0.0
lrwxrwxrwx 1 root root   32 21. Mär 23:31 /usr/lib/libmysqlclient_r.so.16.0.0 -> mysql/libmysqlclient_r.so.16.0.0
lrwxrwxrwx 1 root root   30 21. Mär 23:31 /usr/lib/libmysqlclient.so -> mysql/libmysqlclient.so.16.0.0
lrwxrwxrwx 1 root root   30 21. Mär 23:31 /usr/lib/libmysqlclient.so.16 -> mysql/libmysqlclient.so.16.0.0
lrwxrwxrwx 1 root root   30 21. Mär 23:31 /usr/lib/libmysqlclient.so.16.0 -> mysql/libmysqlclient.so.16.0.0
lrwxrwxrwx 1 root root   30 21. Mär 23:31 /usr/lib/libmysqlclient.so.16.0.0 -> mysql/libmysqlclient.so.16.0.0
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5161

PostPosted: Tue Mar 23, 2010 7:19 am    Post subject: Reply with quote

Da haben wir das problem. Anscheinend ist das mysql plugin von teamspeak 3 nur kompatible mit mysql < 5.1.
Entweder du machst ein downgrade auf mysql 5.0.x oder du verwendest das sqlite backend, falls dies funktioniert.

hier noch ein paar infos: http://forum.teamspeak.com/showthread.php?t=50353
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Evildad
Guru
Guru


Joined: 15 Apr 2004
Posts: 475

PostPosted: Tue Mar 23, 2010 7:28 pm    Post subject: Reply with quote

Oder aber Du versuchst nen wilden Hack und linkst /usr/lib/libmysqlclient.so auf die fehlende /usr/lib/libmysqlclient.so.15.

Aber alles ohne Gewähr und ner Warnung, dass das sehr unschön ist :D
Back to top
View user's profile Send private message
Gladdle
Guru
Guru


Joined: 27 Jul 2008
Posts: 312
Location: Cleebronn, Germany

PostPosted: Sun Mar 28, 2010 10:02 pm    Post subject: Reply with quote

Code:
echo ">=dev-db/mysql-5.1.39-r1" >> /etc/portage/package.mask
echo ">=virtual/mysql-5.1" >> /etc/portage/package.mask
emerge --update --deep --newuse @world
revdep-rebuild


Und das ganze läufft fehlerfrei. Vielen dank für euere Hilfe. Und entschuldigt das späte nachposten, aber Schule und Sport (Hobby) haben Vorrang :)
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4509
Location: Germany

PostPosted: Tue Apr 06, 2010 10:05 pm    Post subject: Reply with quote

Falls noch von Interesse
[Howto]TeamSpeak 3 Server mit MySQL
Back to top
View user's profile Send private message
Whitewolf Fox
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2004
Posts: 78
Location: Ratingen

PostPosted: Fri Oct 05, 2012 9:20 am    Post subject: Reply with quote

Evildad wrote:
Oder aber Du versuchst nen wilden Hack und linkst /usr/lib/libmysqlclient.so auf die fehlende /usr/lib/libmysqlclient.so.15.

Aber alles ohne Gewähr und ner Warnung, dass das sehr unschön ist :D


Ebenfalls unschön, aber ich glaube wenigstens *etwas* schöner, weil ihr keine Symlinks in Systempfaden setzen müsst (wo ggf. später kompilierte Programme sich ebenfalls von irritieren lassen) und ebenfalls die MySQL Version fahren könnt die Ihr wollt:


  1. Besorge Dir die libmysqlclient.so.15.0.0 Datei von einem Build-Chain kompatiblen System (gleiche GCC Version, gleiche Arch, etc.). Das geht z.B. indem Du, wie vorgeschlagen, erst MySQL in Version 5.1 installiertst, die Dateien wegkopierst und wieder die MySQL Version, die Du möchtest installierst.
  2. Lege das Verzeichnis /usr/local/lib64 an ; aus /usr/local hält sich der Paketmanager heraus.
  3. Kopiere die Datei libmysqlclient.so.15.0.0 dort hinein; ebenso einen Symlink namens libmysqlclient.so.15, der auf diese Datei zeigt.


Sollte nun relativ störungsfrei laufen.
_________________
http://www.marc-richter.info
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum