ispCP - Board - Support
debian errors - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: debian errors (/thread-3974.html)

Pages: 1 2


debian errors - redrack - 08-07-2008 09:17 PM

Hello i made the installation on debian and when i browse the http://my-srv-ip/ i got this:

Fatal error: Uncaught exception 'Exception' with message 'Database error: Not connected to default' in /var/www/ispcp/gui/include/class.database.php:21 Stack trace: #0 /var/www/ispcp/gui/include/i18n.php(66): Database::getInstance() #1 /var/www/ispcp/gui/include/system-message.php(49): tr('ispCP Error') #2 /var/www/ispcp/gui/include/ispcp-config.php(62): system_message('ERROR: The php-...') #3 /var/www/ispcp/gui/include/sql.php(26): decrypt_db_password('NH9ji5P+Odo=') #4 /var/www/ispcp/gui/include/ispcp-lib.php(54): require_once('/var/www/ispcp/...') #5 /var/www/ispcp/gui/index.php(21): require('/var/www/ispcp/...') #6 {main} thrown in /var/www/ispcp/gui/include/class.database.php on line 21


and on http://my-srv-ip/admin/

i got this:


Fatal error: Uncaught exception 'Exception' with message 'Database error: Not connected to default' in /var/www/ispcp/gui/include/class.database.php:21 Stack trace: #0 /var/www/ispcp/gui/include/i18n.php(66): Database::getInstance() #1 /var/www/ispcp/gui/include/system-message.php(49): tr('ispCP Error') #2 /var/www/ispcp/gui/include/ispcp-config.php(62): system_message('ERROR: The php-...') #3 /var/www/ispcp/gui/include/sql.php(26): decrypt_db_password('NH9ji5P+Odo=') #4 /var/www/ispcp/gui/include/ispcp-lib.php(54): require_once('/var/www/ispcp/...') #5 /var/www/ispcp/gui/admin/index.php(21): require('/var/www/ispcp/...') #6 {main} thrown in /var/www/ispcp/gui/include/class.database.php on line 21


any ideea?


RE: debian errors - gOOvER - 08-07-2008 09:23 PM

http://www.isp-control.net/documentation/frequently_asked_questions/how_can_i_solve_a_problem_not_mentioned_in_this_faq


RE: debian errors - redrack - 08-07-2008 09:27 PM

that is pretty nice , but that does not help me much , i try google and onther things and i can't find a good answer, maybe someone from this forum got same problem and he got the solving commands , so if anyone know , a reply with a good answer will be good welcome.


RE: debian errors - gOOvER - 08-07-2008 09:31 PM

Boa, read the Link. Without the Informations, we CAN'T Help you!


RE: debian errors - redrack - 08-07-2008 09:33 PM

gOOvER Wrote:Boa, read the Link. Without the Informations, we CAN'T Help you!
right true ,

VPS with Xen , 2 GB RAM 20 GB HDD
Debian 4.0 /32

Fresh Install,
ispcp-omega-1.0.0-rc6

hope this info will help you.


RE: debian errors - gOOvER - 08-07-2008 09:37 PM

Did you follow the guide step by step? When did you download your copy of ispcp? Before or after 10am today?


RE: debian errors - redrack - 08-07-2008 09:39 PM

yes i did, 40-50 minutes ago , dont know that .


RE: debian errors - ephigenie - 08-07-2008 09:49 PM

This tells us normally that either your Database is down or ispCP cannot access it.

Quote:'Exception' with message 'Database error: Not connected to default'
So please test if you can access your db with the user & pw you set for ispCP.


RE: debian errors - redrack - 08-07-2008 10:02 PM

root@server daemon mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 17
Server version: 5.0.32-Debian_7etch6-log Debian etch distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>
works fine , i set the user root Big Grin is that a problem?

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| ispcp |
| mysql |
+--------------------+
3 rows in set (0.00 sec)

mysql>

Database changed
mysql> show tables;
+---------------------+
| Tables_in_ispcp |
+---------------------+
| admin |
| auto_num |
| config |
| custom_menus |
| domain |
| domain_aliasses |
| domain_traffic |
| email_tpls |
| error_pages |
| ftp_group |
| ftp_users |
| hosting_plans |
| htaccess |
| htaccess_groups |
| htaccess_users |
| lang_EnglishBritain |
| log |
| login |
| mail_users |
| orders |
| orders_settings |
| quotalimits |
| quotatallies |
| reseller_props |
| server_ips |
| server_traffic |
| sql_database |
| sql_user |
| straff_settings |
| subdomain |
| suexec_props |
| tickets |
| user_gui_props |
+---------------------+
33 rows in set (0.00 sec)

mysql>


all mysql info is here , but in ispcp.conf is this password: DATABASE_PASSWORD = NH9ji5P+Odo=


should i change that?


RE: debian errors - robmorin - 08-28-2008 12:20 PM

I got the same error exactly....

i installed a fresh copy of ispcp on a new test server.... rc6

all seemd to go ok, except for the install of the packages, as that command
apt-get install $(cat ./docs/Debian/debian-packages-etch)
ALways crapped out, so i had to manually add some packages....

but now my issue is the same as the guy above, i am using Etc also...

ANy ideas? i had to run the perl ispcp-setup 3 times, so i am wondering if the mysql password got messed up, and the one in the ispcp.conf file is no longer correct....

i tried using /var/www/ispcp/engine/ispcp-db-passwd to reset this but it did not work....

Thanks..
redrack Wrote:root@server daemon mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 17
Server version: 5.0.32-Debian_7etch6-log Debian etch distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>
works fine , i set the user root Big Grin is that a problem?

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| ispcp |
| mysql |
+--------------------+
3 rows in set (0.00 sec)

mysql>

Database changed
mysql> show tables;
+---------------------+
| Tables_in_ispcp |
+---------------------+
| admin |
| auto_num |
| config |
| custom_menus |
| domain |
| domain_aliasses |
| domain_traffic |
| email_tpls |
| error_pages |
| ftp_group |
| ftp_users |
| hosting_plans |
| htaccess |
| htaccess_groups |
| htaccess_users |
| lang_EnglishBritain |
| log |
| login |
| mail_users |
| orders |
| orders_settings |
| quotalimits |
| quotatallies |
| reseller_props |
| server_ips |
| server_traffic |
| sql_database |
| sql_user |
| straff_settings |
| subdomain |
| suexec_props |
| tickets |
| user_gui_props |
+---------------------+
33 rows in set (0.00 sec)

mysql>


all mysql info is here , but in ispcp.conf is this password: DATABASE_PASSWORD = NH9ji5P+Odo=


should i change that?