CMD_DB segfaulting

TheAncient

Verified User
Joined
Nov 24, 2009
Messages
8
After some recent upgrades on this Debian 5.0 box my directadmin 1.3.7 is segfaulting on CMD_DB. So no users can manage their mysql databases or use the password change feature.

You get the standard directadmin segfault page when you click on "MySQL Management" or the change password feature.

I ran gdb as recommended on the help page

(gdb) run s
Starting program: /usr/local/directadmin/directadmin s
DirectAdmin 1.37.0
Accepting Connections on port 2222
[Thread debugging using libthread_db enabled]
Error while reading shared library symbols:
Cannot find new threads: generic error
Cannot find new threads: generic error
(gdb) bt full
#0 0x082e4d91 in _dl_debug_state ()
No locals.
#1 0x082e61c6 in dl_open_worker ()
No locals.
#2 0x082e4a5a in _dl_catch_error ()
No locals.
#3 0x082e5bae in _dl_open ()
No locals.
#4 0x082e8316 in do_dlopen ()
No locals.
#5 0x082e4a5a in _dl_catch_error ()
No locals.
#6 0x082e80aa in dlerror_run ()
No locals.
#7 0x082e829f in __libc_dlopen_mode ()
No locals.
#8 0x082d9dab in __nss_lookup_function ()
No locals.
#9 0x082d9e9d in __nss_lookup ()
No locals.
#10 0x08303795 in __nss_services_lookup ()
No locals.
#11 0x082dc3b0 in getservbyname_r ()
No locals.
#12 0x082dc14a in getservbyname ()
No locals.
#13 0x0826209c in mysql_server_init ()
No locals.
#14 0x08289dd8 in mysql_init ()
No locals.
#15 0x08109baf in Database::connect ()
No locals.
#16 0x08110883 in Database::setDBTableToken ()
No locals.
#17 0x08071158 in Command::doDB ()
No locals.
#18 0x0808d6f5 in Command::doCommand ()
No locals.
#19 0x0808fa2e in Command::run ()
No locals.
#20 0x0819f984 in server ()
No locals.
#21 0x081a0317 in main ()
No locals.




I would appreciate some advice on where I should look next to track down why its having a problem.

Mysql is installed from Debian 5.0.51a, not the DA installed mysql.

Mysql is working and all customers databases being used.

/etc/nsswitch.conf seems fine, same as other servers
all /lib/libnss* seem file, md5sum the same as other servers

Not sure where to look next.
 
Why are you not using the mysql from custombuild? Im sure thats your problem then.

cd /usr/local/directadmin/custombuild
./build update
./build mysql d
./build php n
 
Unfortunately I cant use custombuild as this machine has to use customapache. The server has all our remaining frontpage users on it.
 
Unfortunately that's where I started. I submitted my question a week ago and haven't heard anything back. So I thought I would post here and try to get it figured out myself.
 
Whenever I've contacted support, I always receive a reply - if you do not, then the email may be filtered then deleted somewhere. Whitelist their domain.
 
Hello,

We've replied to the email with regards to this issue. We've found that some Debian 5 boxes don't like our static binaries.

The solution is to grab a set of dynamic binaries. The way to do that is to login to your Clients Section, click your license, and go to the pre-release download section. You'll see a link for download ending with "packed_debian50.tar.gz". Replace that value with "packed_debian50_dynamic.tar.gz" and use the guide normally beyond that.

This will install some dynamic binaries for you, which should solve the issue.

Static and dynamic binaries both have their place. For mass distributions with many different flavors of the same OS (including different versions of 5.x.x), we always try to provide static binaries as they have the highest chance of working when libraries are located in different locations, and with different versions of libraries (since they're all built into the DA binary and DA doesn't need any outside linking). However, this doesn't always work as seen by this error, thus sometimes we need to use the dynamic binaries to rely on whatever the OS has to offer (in case it's got something specific it needs.. )

Anyway, give the dynamic binaries a try to see if they work (for anyone else with the issue).

FYI: for future updates, you'll likely need to repeat this process.

John
 
The solution is to grab a set of dynamic binaries. The way to do that is to login to your Clients Section, click your license, and go to the pre-release download section. You'll see a link for download ending with "packed_debian50.tar.gz". Replace that value with "packed_debian50_dynamic.tar.gz" and use the guide normally beyond that.

John

Hi John,

Did it. Tried

/packed_debian50_64_dynamic.tar.gz and
/packed_debian50_dynamic_64.tar.gz

Nothing to find...

I run debian 5.0.7 64bit
 
What do you mean nothing to find.

Install the updates and restart directadmin.

What are you trying to find.
 
Running Debian5 and having the same problems. I tried this fix. My entire DA server is not working.... ugg!!
 
maybe he cant find the 64bit version, John pointed to a 32bit file prolly and he tryed two combination for "find" the 64bit package.

Maybe John should point he to the 64bit dynamic filename.

This is what ive understand :)

Regards
 
Hello,

Here's the whole list of debian files:
Code:
-rw-r--r-- 1 root root 3826815 Dec 19 13:22 packed_debian31_dynamic.tar.gz
-rw-r--r-- 1 root root 5495228 Feb 24 18:51 packed_debian31.tar.gz
-rw-r--r-- 1 root root 2598453 Feb 25 01:31 packed_debian50_64.tar.gz
-rw-r--r-- 1 root root 3840903 Jan 28 03:38 packed_debian50_dynamic.tar.gz
-rw-r--r-- 1 root root 5510512 Feb 25 01:29 packed_debian50.tar.gz
-rw-r--r-- 1 root root 2614309 Feb 25 01:23 packed_debian60_64.tar.gz
-rw-r--r-- 1 root root 2562590 Feb 25 01:25 packed_debian60.tar.gz
The "dynamic" ones are not as updated as the others, but only go back as far as December.

5.0.6 should probably be 5 then.. I'm not too sure.
You could try the 6.0 version just to see, if nothing else is working, or even the listed version of the packed_debian50.tar.gz, as it's a newer compile.

John
 
I went through and tried a different binary but when I try to restart DA, I get this:

Code:
server:/usr/local/directadmin# /etc/init.d/directadmin restart
Stopping DirectAdmin: [ FAILED ]
Starting DirectAdmin: [ OK ]

This is frustrating.
 
You could try the 6.0 version just to see, if nothing else is working
Tried the 6.0, get this error during the process:

Code:
server:/usr/local/directadmin# ./directadmin p
./directadmin: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
 
what the directadmin's log say?
Code:
server:/usr/local/directadmin# cat /var/log/directadmin/error.log
2011:02:21-11:37:34: Timeout from from 63.226.205.17 : last flagged: Request::readAndProcess(*skt, 63.226.205.17, 63.226.205.17)
2011:02:24-23:36:47: File ./data/users/publicola/user.usage has been written to after this process read it.  Not going to overwrite it.
2011:02:24-23:51:19: unable to stat /usr/local/directadmin/data/sessions/da_sess_PWDeUwUKUVbrwQ0Ip6DqBZmhwoJM0DvPk63C2WWV15MxVKFJOR9YytFugYEgk84S.temp for filesize after write: euid:103
2011:02:24-23:51:19: Unable to write session file: Unable to stat /usr/local/directadmin/data/sessions/da_sess_PWDeUwUKUVbrwQ0Ip6DqBZmhwoJM0DvPk63C2WWV15MxVKFJOR9YytFugYEgk84S.temp for filesize after write<br>
ConfigFile::removeFile(/usr/local/directadmin/data/sessions/da_sess_PWDeUwUKUVbrwQ0Ip6DqBZmhwoJM0DvPk63C2WWV15MxVKFJOR9YytFugYEgk84S) filename does not match<br>
.  Make sure the disk isn't full.
2011:02:24-23:51:19: unable to stat ./data/admin/login.hist.temp for filesize after write: euid:103
2011:02:24-23:51:19: Unable to write ./data/admin/login.hist: Unable to stat ./data/admin/login.hist.temp for filesize after write<br>
ConfigFile::removeFile(./data/admin/login.hist) filename does not match<br>

2011:02:24-23:51:19: unable to stat ./data/admin/login.hist.temp for filesize after write: euid:103
2011:02:24-23:51:19: Unable to write ./data/admin/login.hist: Unable to stat ./data/admin/login.hist.temp for filesize after write<br>
ConfigFile::removeFile(./data/admin/login.hist) filename does not match<br>

2011:02:24-23:51:21: unable to stat /usr/local/directadmin/data/sessions/da_sess_huZfyGmgiwue15iQeM3skjl8CxvvfoGLin0e1nKkhDMgI47wP8p7qYD2T6x9uBUc.temp for filesize after write: euid:103
2011:02:24-23:51:21: Unable to write session file: Unable to open /usr/local/directadmin/data/sessions/da_sess_huZfyGmgiwue15iQeM3skjl8CxvvfoGLin0e1nKkhDMgI47wP8p7qYD2T6x9uBUc for reading.<br>
Unable to stat /usr/local/directadmin/data/sessions/da_sess_huZfyGmgiwue15iQeM3skjl8CxvvfoGLin0e1nKkhDMgI47wP8p7qYD2T6x9uBUc.temp for filesize after write<br>
ConfigFile::removeFile(/usr/local/directadmin/data/sessions/da_sess_huZfyGmgiwue15iQeM3skjl8CxvvfoGLin0e1nKkhDMgI47wP8p7qYD2T6x9uBUc) filename does not match<br>
.  Make sure the disk isn't full.
2011:02:24-23:51:21: Unable to write session file: Unable to read session file: Unable to open /usr/local/directadmin/data/sessions/da_sess_huZfyGmgiwue15iQeM3skjl8CxvvfoGLin0e1nKkhDMgI47wP8p7qYD2T6x9uBUc for reading.<br>
<br>
Unable to write session file: Unable to open /usr/local/directadmin/data/sessions/da_sess_huZfyGmgiwue15iQeM3skjl8CxvvfoGLin0e1nKkhDMgI47wP8p7qYD2T6x9uBUc for reading.<br>
Unable to stat /usr/local/directadmin/data/sessions/da_sess_huZfyGmgiwue15iQeM3skjl8CxvvfoGLin0e1nKkhDMgI47wP8p7qYD2T6x9uBUc.temp for filesize after write<br>
ConfigFile::removeFile(/usr/local/directadmin/data/sessions/da_sess_huZfyGmgiwue15iQeM3skjl8CxvvfoGLin0e1nKkhDMgI47wP8p7qYD2T6x9uBUc) filename does not match<br>
. Make sure the disk isn't full.<br>

2011:02:24-23:51:21: unable to stat ./data/admin/login.hist.temp for filesize after write: euid:103
2011:02:24-23:51:21: Unable to write ./data/admin/login.hist: Unable to stat ./data/admin/login.hist.temp for filesize after write<br>
ConfigFile::removeFile(./data/admin/login.hist) filename does not match<br>

2011:02:24-23:51:21: unable to stat ./data/admin/login.hist.temp for filesize after write: euid:103
2011:02:24-23:51:21: Unable to write ./data/admin/login.hist: Unable to stat ./data/admin/login.hist.temp for filesize after write<br>
ConfigFile::removeFile(./data/admin/login.hist) filename does not match<br>

2011:02:24-23:51:23: unable to stat /usr/local/directadmin/data/sessions/da_sess_8MRBjBfiLmqxRu2Ek4Usn9xJKwqyaoagB1ruAUaTEQQgKRs5TLvESqVklLiJ8I0H.temp for filesize after write: euid:103
2011:02:24-23:51:23: Unable to write session file: Unable to open /usr/local/directadmin/data/sessions/da_sess_8MRBjBfiLmqxRu2Ek4Usn9xJKwqyaoagB1ruAUaTEQQgKRs5TLvESqVklLiJ8I0H for reading.<br>
Unable to stat /usr/local/directadmin/data/sessions/da_sess_8MRBjBfiLmqxRu2Ek4Usn9xJKwqyaoagBserver:/server:/uservservservserver:serserservsesersesessssssssersesserver:/usr/local/directadmin#
 
Back
Top