Current time: 11-29-2024, 06:59 PM Hello There, Guest! (LoginRegister)


Post Reply 
Trouble with ispcp-rqst-mngr
Author Message
ewestlake Offline
Junior Member
*

Posts: 24
Joined: Aug 2011
Reputation: 0
Post: #1
Trouble with ispcp-rqst-mngr
I am using the most recent version of ispCP with PHP5.3.2 / Apache 2.2.14 on Ubuntu 10.04.3 LTS.

I was having problems before with the database access on the GUI. Now I cannot add new domains to my server. I have tried a lot of things and came to the conclusion that something within ispcp-rqst-mngr is causing the error.

As you can see from the log below I am hitting the error on doHashSQL() which it is not connecting to the DB. How can I fix this error? I need to fix this as I have a site that needs to be up in less than a week and without the ability to add them to the system it makes my life hard and I will have to set the site up manually (which I prefer not to do because I lose all possible control on it through ispCP.

[DEBUG] push_el() sub_name: mngr_start_up(), msg: Starting...
[DEBUG] push_el() sub_name: lock_system(), msg: Starting...
[DEBUG] push_el() sub_name: lock_system(), msg: Ending...
[DEBUG] push_el() sub_name: del_file(), msg: Starting...
[DEBUG] push_el() sub_name: del_file(), msg: Ending...
[DEBUG] push_el() sub_name: mngr_start_up(), msg: Ending...
[DEBUG] push_el() sub_name: mngr_engine(), msg: Starting...
[DEBUG] push_el() sub_name: mngr_engine_process(), msg: Starting...
[DEBUG] push_el() sub_name: mngr_engine_process(), msg: processing type dmn.
[DEBUG] push_el() sub_name: doHashSQL(), msg: Starting...
[DEBUG] push_el() sub_name: doHashSQL(), msg: [ERROR] Unable to connect SQL server !
[DEBUG] pop_el() sub_name: doHashSQL(), msg: [ERROR] Unable to connect SQL server !
[DEBUG] pop_el() sub_name: doHashSQL(), msg: Starting...
[DEBUG] pop_el() sub_name: mngr_engine_process(), msg: processing type dmn.
[DEBUG] pop_el() sub_name: mngr_engine_process(), msg: Starting...
[DEBUG] pop_el() sub_name: mngr_engine(), msg: Starting...
[DEBUG] pop_el() sub_name: mngr_start_up(), msg: Ending...
[DEBUG] pop_el() sub_name: del_file(), msg: Ending...
[DEBUG] pop_el() sub_name: del_file(), msg: Starting...
[DEBUG] pop_el() sub_name: lock_system(), msg: Ending...
[DEBUG] pop_el() sub_name: lock_system(), msg: Starting...
[DEBUG] pop_el() sub_name: mngr_start_up(), msg: Starting...
[DEBUG] pop_el() sub_name: get_conf(), msg: Ending...
[DEBUG] pop_el() sub_name: setup_main_vars(), msg: Ending...
[DEBUG] pop_el() sub_name: decrypt_db_password(), msg: Ending...
[DEBUG] pop_el() sub_name: decrypt_db_password(), msg: Starting...
[DEBUG] pop_el() sub_name: setup_main_vars(), msg: Starting...
[DEBUG] pop_el() sub_name: get_file(), msg: Ending...
[DEBUG] pop_el() sub_name: get_file(), msg: Starting...
[DEBUG] pop_el() sub_name: get_conf(), msg: Starting...
[DEBUG] pop_el() Empty 'EL' Stack !
[DEBUG] push_el() sub_name: mngr_shut_down(), msg: Starting...
[DEBUG] push_el() sub_name: mngr_shut_down(), msg: Ending...


Please help me. I need to get this fixed right away...
09-20-2011 12:52 AM
Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #2
RE: Trouble with ispcp-rqst-mngr
It looks more, that your mySQL connection could not be established. Please check this first.
09-20-2011 06:26 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ewestlake Offline
Junior Member
*

Posts: 24
Joined: Aug 2011
Reputation: 0
Post: #3
RE: Trouble with ispcp-rqst-mngr
My SQL is working. I just need to know where I find all the SQL stuff for that script

Also I need to know the hashing used on the password and the likes so I can double check that.
09-21-2011 12:55 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Trouble with ispcp-rqst-mngr
Try to put some log-commands in the "sub setup_main_vars()" in ispcp_common_methods.pl

eg:
push_el(\@main::el, 'setup_main_vars() - 1', $main::db_pwd);

@main::db_connect = (
"DBI:mysql:$main::db_name:$main::db_host", $main::db_user, $main::db_pwd
);

/J
09-21-2011 06:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
LindaGordon Offline


Posts: 1
Joined: Sep 2011
Reputation: 0
Post: #5
RE: Trouble with ispcp-rqst-mngr
I faced the same problem as that faced by Ewestlake.I tried to solve my problem by applying the commands you provided but still am facing the same problem.The solution you provided didn't worked.Can you provide some more guidelines.
09-21-2011 09:30 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: Trouble with ispcp-rqst-mngr
(09-21-2011 09:30 PM)LindaGordon Wrote:  I faced the same problem as that faced by Ewestlake.I tried to solve my problem by applying the commands you provided but still am facing the same problem.The solution you provided didn't worked.Can you provide some more guidelines.

be more specific... - it sounds like a bot....
09-21-2011 09:56 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ewestlake Offline
Junior Member
*

Posts: 24
Joined: Aug 2011
Reputation: 0
Post: #7
RE: Trouble with ispcp-rqst-mngr
I put those into the system. Nothing has changed. Here is the log from right now.


[DEBUG] push_el() sub_name: mngr_start_up(), msg: Starting...
[DEBUG] push_el() sub_name: lock_system(), msg: Starting...
[DEBUG] push_el() sub_name: lock_system(), msg: Ending...
[DEBUG] push_el() sub_name: del_file(), msg: Starting...
[DEBUG] push_el() sub_name: del_file(), msg: Ending...
[DEBUG] push_el() sub_name: mngr_start_up(), msg: Ending...
[DEBUG] push_el() sub_name: mngr_engine(), msg: Starting...
[DEBUG] push_el() sub_name: mngr_engine_process(), msg: Starting...
[DEBUG] push_el() sub_name: mngr_engine_process(), msg: processing type dmn.
[DEBUG] push_el() sub_name: doHashSQL(), msg: Starting...
[DEBUG] push_el() sub_name: doHashSQL(), msg: [ERROR] Unable to connect SQL server !
[DEBUG] pop_el() sub_name: doHashSQL(), msg: [ERROR] Unable to connect SQL server !
[DEBUG] pop_el() sub_name: doHashSQL(), msg: Starting...
[DEBUG] pop_el() sub_name: mngr_engine_process(), msg: processing type dmn.
[DEBUG] pop_el() sub_name: mngr_engine_process(), msg: Starting...
[DEBUG] pop_el() sub_name: mngr_engine(), msg: Starting...
[DEBUG] pop_el() sub_name: mngr_start_up(), msg: Ending...
[DEBUG] pop_el() sub_name: del_file(), msg: Ending...
[DEBUG] pop_el() sub_name: del_file(), msg: Starting...
[DEBUG] pop_el() sub_name: lock_system(), msg: Ending...
[DEBUG] pop_el() sub_name: lock_system(), msg: Starting...
[DEBUG] pop_el() sub_name: mngr_start_up(), msg: Starting...
[DEBUG] pop_el() sub_name: get_conf(), msg: Ending...
[DEBUG] pop_el() sub_name: setup_main_vars(), msg: Ending...
[DEBUG] pop_el() sub_name: decrypt_db_password(), msg: Ending...
[DEBUG] pop_el() sub_name: decrypt_db_password(), msg: Starting...
[DEBUG] pop_el() sub_name: setup_main_vars(), msg: Starting...
[DEBUG] pop_el() sub_name: setup_main_vars() - 1, msg:
[DEBUG] pop_el() sub_name: get_file(), msg: Ending...
[DEBUG] pop_el() sub_name: get_file(), msg: Starting...
[DEBUG] pop_el() sub_name: get_conf(), msg: Starting...
[DEBUG] pop_el() Empty 'EL' Stack !
[DEBUG] push_el() sub_name: mngr_shut_down(), msg: Starting...
[DEBUG] push_el() sub_name: mngr_shut_down(), msg: Ending...

How do I change the $main::db_pwd? where is it pulling from?

(09-21-2011 09:56 PM)joximu Wrote:  
(09-21-2011 09:30 PM)LindaGordon Wrote:  I faced the same problem as that faced by Ewestlake.I tried to solve my problem by applying the commands you provided but still am facing the same problem.The solution you provided didn't worked.Can you provide some more guidelines.

be more specific... - it sounds like a bot....
09-24-2011 09:19 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: Trouble with ispcp-rqst-mngr
the $main::db_pwd is created like this:

read crypted string from config file /etc/ispcp/ispcp.conf - uncrypt using the keys in the db-keys.pl file (engine/db-keys.pl or similar).

You may add a logging line just before the connection command to see the used login name and pw...

or set a new db password - I think there should be a doc in the wiki howto change the password for the mysql connection.

/J
09-24-2011 11:19 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ewestlake Offline
Junior Member
*

Posts: 24
Joined: Aug 2011
Reputation: 0
Post: #9
RE: Trouble with ispcp-rqst-mngr
I already went through the work. I will look at the files.

How can you tell if the isp-db-keys.pl file has the correct information in it?

How can it be re-written?
The ispcp-db-keys.pl has the same as the ispcp-db-keys.php in the values. and the PHP version works. Any thoughts on this? I cannot add to the server. I need this fixed. I have already reset the password to get access to the PHP side of the site.
(This post was last modified: 09-25-2011 04:28 AM by ewestlake.)
09-25-2011 04:14 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #10
RE: Trouble with ispcp-rqst-mngr
db-keys are ok?
-> if they do not contain {KEY} etc - then they should be ok (32 chars and 8chars)
try this script to decrypt the mail passwords
http://isp-control.net/forum/thread-5495.html
then you know that the php-keys are ok.

So I really think you need to check with what credentials the request manager is trying to connect...
in ispcp_common_methods.pl there's a sub setup_main_vars where you have

@main::db_connect = (
"DBI:mysql:$main::db_name:$main::db_host", $main::db_user, $main::db_pwd
);

maybe add a
push_el(\@main::el, 'setup_main_vars()', "DBI:mysql:$main::db_name:$main::db_host $main::db_user $main::db_pwd");
before...

/J
09-25-2011 07:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)