Status
Not open for further replies.

vuong184

Active Member
202
2011
12
0
I have a Dedicated server at ovh.com/us, now my Dedicated server have error :(
ERROR: PleskFatalException
Unable to connect to database: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: No such file or directory

0: common_func.php3:153
psaerror(string 'Unable to connect to database: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: No such file or directory')
1: auth.php3:116
command: df -h

[root@ns4000842 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 20G 2.2G 17G 12% /
/dev/root 20G 2.2G 17G 12% /
none 7.8G 248K 7.8G 1% /dev
/dev/md2 1.8T 1.8T 0 100% /var
tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/root 20G 2.2G 17G 12% /var/named/chroot/etc/named
/dev/md2 1.8T 1.8T 0 100% /var/named/chroot/var/named
/dev/root 20G 2.2G 17G 12% /var/named/chroot/etc/named.rfc1912.zones
/dev/root 20G 2.2G 17G 12% /var/named/chroot/etc/rndc.key
/dev/root 20G 2.2G 17G 12% /var/named/chroot/usr/lib64/bind
/dev/root 20G 2.2G 17G 12% /var/named/chroot/etc/named.iscdlv.key
/dev/root 20G 2.2G 17G 12% /var/named/chroot/etc/named.root.key
[root@ns4000842 ~]#
ERROR: Zend_Db_Adapter_Exception
SQLSTATE[08004] [1040] Too many connections

0: Abstract.php:144
Zend_Db_Adapter_Pdo_Abstract->_connect()
1: Mysql.php:109
Zend_Db_Adapter_Pdo_Mysql->_connect()
2: Abstract.php:459
Zend_Db_Adapter_Abstract->query(string 'DESCRIBE `sessions`', array)
3: Abstract.php:238
Zend_Db_Adapter_Pdo_Abstract->query(string 'DESCRIBE `sessions`', array)
4: Mysql.php:19
Db_Adapter_Pdo_Mysql->query(string 'DESCRIBE `sessions`')
5: Mysql.php:169
Zend_Db_Adapter_Pdo_Mysql->describeTable(string 'sessions', NULL null)
6: Abstract.php:835
Zend_Db_Table_Abstract->_setupMetadata()
7: Abstract.php:857
Zend_Db_Table_Abstract->_getCols()
8: Abstract.php:897
Zend_Db_Table_Abstract->_setupPrimaryKey()
9: DbTable.php:519
Zend_Session_SaveHandler_DbTable->_getPrimary(string '5113477ca9cc0fefc9f120cd744f380c')
10: DbTable.php:318
Zend_Session_SaveHandler_DbTable->read(string '5113477ca9cc0fefc9f120cd744f380c')
11: SaveHandler.php:27
CommonPanel_Session_SaveHandler->read(string '5113477ca9cc0fefc9f120cd744f380c')
12: :
session_start()
13: class.Session.php:152
Session->Session()
14: auth.php3:178
i need optimize Dedicated server.
Who can optimize Dedicated server, please pm me, i will send info login ssh :)
THanks!
 
Last edited:
3 comments
Well first clear out your Disk a bit .., i can see /dev/md2 is 100% used.

If you need further help, Please feel free to contact us via our website or drop an email to sales[at]serverpolice.org
 
use command du to find what takes that much space:
cd /
du -sh ./*
then go to folder with big size and etc etc:
cd /var

du -sh ./*

Then you will found out what takes that much space.
 
use command du to find what takes that much space:
cd /
du -sh ./*
then go to folder with big size and etc etc:
cd /var

du -sh ./*

Then you will found out what takes that much space.

[root@ns4000842 ~]# cd /
[root@ns4000842 /]# du -sh ./*
7.2M ./bin
8.5M ./boot
4.0K ./cgroup
248K ./dev
27M ./etc
24K ./home
11M ./lib
21M ./lib64
16K ./lost+found
4.0K ./media
4.0K ./mnt
4.0K ./monit.service
219M ./opt
du: cannot access `./proc/27455/task/27455/ns/net': No such file or directory
du: cannot access `./proc/27455/task/27455/ns/uts': No such file or directory
du: cannot access `./proc/27455/task/27455/ns/ipc': No such file or directory
du: cannot access `./proc/27455/ns/net': No such file or directory
du: cannot access `./proc/27455/ns/uts': No such file or directory
du: cannot access `./proc/27455/ns/ipc': No such file or directory
du: cannot access `./proc/27668/task/27668/ns/net': No such file or directory
du: cannot access `./proc/27668/task/27668/ns/uts': No such file or directory
du: cannot access `./proc/27668/task/27668/ns/ipc': No such file or directory
du: cannot access `./proc/27668/ns/net': No such file or directory
du: cannot access `./proc/27668/ns/uts': No such file or directory
du: cannot access `./proc/27668/ns/ipc': No such file or directory
du: cannot access `./proc/29025/task/29025/fd/4': No such file or directory
du: cannot access `./proc/29025/task/29025/fdinfo/4': No such file or directory
du: cannot access `./proc/29025/fd/4': No such file or directory
du: cannot access `./proc/29025/fdinfo/4': No such file or directory
0 ./proc
443M ./root
20M ./sbin
4.0K ./selinux
4.0K ./srv
du: cannot access `./sys/kernel/slab/L2TP/IP': No such file or directory
0 ./sys
2.5M ./tmp
1.3G ./usr
du: WARNING: Circular directory structure.
This almost certainly means that you have a corrupted file system.
NOTIFY YOUR SYSTEM MANAGER.
The following directory is part of the cycle:
`./var/named/chroot/var/named'

[root@ns4000842 /]# cd /var
[root@ns4000842 var]# du -sh ./*
4.0K ./account
36M ./cache
8.0K ./db
123M ./drweb
8.0K ./empty
4.0K ./games
751M ./lib
4.0K ./local
36K ./lock
126M ./log
16K ./lost+found
0 ./mail
0 ./mysql.sock
du: WARNING: Circular directory structure.
This almost certainly means that you have a corrupted file system.
NOTIFY YOUR SYSTEM MANAGER.
The following directory is part of the cycle:
`./named/chroot/var/named'

244K ./named
4.0K ./nis
13M ./opt
8.0K ./parallels
4.0K ./preserve
16K ./proftpd.delay
2.4M ./qmail
160K ./run
112K ./spool
4.0K ./tmp
1.8T ./www
4.0K ./yp
[root@ns4000842 var]#
 
Status
Not open for further replies.
Back
Top