Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 11 of 11
  1. #1
    Join Date
    July 2011
    Posts
    6

    TS3 Server -> DatabaseError out of memory

    Hello,

    First of all, I am new to CentOs and I am not familiar with installing TeamSpeak.
    I have my own dedicated box with MintPanel installed.

    I followed this tutorial: http://docs.mintpanel.com/configure/teamspeak-3
    It all worked perfect untill I had to use the following command:
    Code:
    sudo -u mintcp sh ts3server_startscript.sh start
    That command gives me the following error:
    Code:
    Starting the TeamSpeak 3 server
    ts3server_startscript.sh: line 55: ts3server.pid: Permission denied
    TeamSpeak 3 server started, for details please view the log file
    [[email protected] teamspeak3]# 2011-07-19 13:01:07.283235|CRITICAL|ServerLibPriv |   | Server() DatabaseError out of memory
    I do not have a clue what is causing this error. Can somebody please help me?

    Additional info:
    -CentOs 5.6
    -Non-Profit License used
    -MySql installed

    Thanks in advance,
    Dutchy

  2. #2
    Join Date
    May 2010
    Posts
    6,310
    Hello

    Quote Originally Posted by dutchy91
    ts3server_startscript.sh: line 55: ts3server.pid: Permission denied
    Are you sure that all files and folders have the same linux owner (linux user)

    Please post the result from this command (in the server folder) : ls -al

  3. #3
    Join Date
    July 2011
    Posts
    6
    Quote Originally Posted by florian_fr40 View Post
    Please post the result from this command (in the server folder) : ls -al
    Code:
    total 11812
    drwxr-xr-x 7 root   root      4096 Jul 19 14:26 .
    drwxr-xr-x 5 mintcp mintcp    4096 Jul 19 14:21 ..
    -rw-r--r-- 1 mintcp mintcp   32532 May 23 06:10 CHANGELOG
    drwxr-xr-x 2 mintcp mintcp    4096 May 23 06:10 doc
    -rwxr-xr-x 1 mintcp mintcp  207351 May 23 06:10 libts3db_mysql.so
    -rwxr-xr-x 1 mintcp mintcp  918948 May 23 06:10 libts3db_sqlite3.so
    -rw-r--r-- 1 mintcp mintcp   24099 May 23 06:10 LICENSE
    -rw-r--r-- 1 root   root       919 Jul 19 14:26 licensekey.dat
    drwxr-xr-x 2 mintcp mintcp    4096 May 23 06:10 serverquerydocs
    -rw-r--r-- 1 mintcp mintcp 4198820 Jul 19 14:22 server.tar.gz
    drwxr-xr-x 4 mintcp mintcp    4096 May 23 06:10 sql
    drwxr-xr-x 2 mintcp mintcp    4096 Jul 19 14:25 teamspeak3-server_linux-x86
    -rwxr-xr-x 1 mintcp mintcp 6636044 May 23 06:10 ts3server_linux_x86
    -rwxr-xr-x 1 mintcp mintcp     432 May 23 06:10 ts3server_minimal_runscript.sh
    -rwxr-xr-x 1 mintcp mintcp    2842 May 23 06:10 ts3server_startscript.sh
    drwxr-xr-x 2 mintcp mintcp    4096 May 23 06:10 tsdns

  4. #4
    Join Date
    May 2010
    Posts
    6,310
    First I see a problem with the license file
    Change the owner from root to mintcp
    Code:
    chown mintcp licensekey.dat
    chgrp mintcp licensekey.dat
    So, for test could you start your server with the startscript.sh :
    Go in the Teamspeak server folder, use the mintcp user (su mintcp)
    And just start it with :
    Code:
    ./ts3server_startscript.sh start

  5. #5
    Join Date
    July 2011
    Posts
    6
    I have done what you said.
    When I am logged in as user 'root' the server does run './ts3server_startscript.sh start'.

    It doesn't when I am logged in as user 'mintcp'. I am getting the same error as in the first post.

  6. #6
    Join Date
    May 2010
    Posts
    6,310
    Quote Originally Posted by dutchy91
    Code:
    drwxr-xr-x 7 root   root      4096 Jul 19 14:26 .
    drwxr-xr-x 5 mintcp mintcp    4096 Jul 19 14:21 ..
    It's normal

    In fact the dot indcates the folder and double dot indicates the previous leval in arch folder.

    So, as you can see, only the root has acces to write/create something in this folder.
    (And mintcp user can't create a file, he can't create the ts3server.pid file).

    As root:
    Code:
    chown mintcp .
    chgrp mintcp .
    
    And for security reason :
    chown root ..
    chgrp root ..
    To get this result
    Code:
    drwxr-xr-x 7 mintcp   mintcp      4096 Jul 19 14:26 .
    drwxr-xr-x 5 root     root        4096 Jul 19 14:21 ..

    Now you can start your server normally, with you first command (sudo -u mintcp ......)

  7. #7
    Join Date
    July 2011
    Posts
    6
    I am going to try that now.
    -edit-
    I have done what you said. I don't get the 'no-permission' anymore. Still have a DatabaseError.
    Code:
    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
    [[email protected] teamspeak3]# 2011-07-19 14:03:50.228850|CRITICAL|SQL           |   | unable to remove old log entries error: database error
    Is this a MySQL problem?
    Last edited by dutchy91; July 18th, 2011 at 04:21 PM.

  8. #8
    Join Date
    May 2010
    Posts
    6,310
    Quote Originally Posted by dutchy91
    ts3server.pid found, but no server running. Possibly your previously started server crashed
    Please view the logfile for details.
    This message in this case is normal. Just delete the ts3server.pid file before start the server.

    Quote Originally Posted by dutchy91
    Is this a MySQL problem?
    The Mysql user has good enough power (write, create delete) ?
    Delete all table and restart your server (as a first time)
    Last edited by florian_fr40; March 26th, 2012 at 02:13 PM.

  9. #9
    Join Date
    July 2011
    Posts
    6
    Removing the ts3server.pid did fix a part of the problem. However, the DatabaseError still occurs.
    The Mysql user has good enough power (write, create delete) ?
    Delete all table and restart your server (as a first time)
    I have no idea how to check/do that?
    Last edited by dutchy91; July 18th, 2011 at 08:04 PM.

  10. #10
    Join Date
    July 2011
    Posts
    6
    Thanks florian!

    I removed the whole server. Tried everything again and did the things you said above. It is now working and fully operating.

    Thanks alot for the help!
    Dutchy

  11. #11
    Join Date
    January 2010
    Location
    Germany
    Posts
    80
    The problem was, that you mysql-user doesn't have enough rights to wirte and delete database entries.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. DatabaseError database disk image is malformed
    By technical in forum Linux / FreeBSD
    Replies: 2
    Last Post: July 22nd, 2013, 08:54 PM
  2. Server() DatabaseError disk I/O error (FreeBSD)
    By SlipKo in forum Linux / FreeBSD
    Replies: 4
    Last Post: December 22nd, 2010, 05:54 PM

Tags for this Thread

Posting Permissions

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