Current time: 12-23-2024, 05:42 PM Hello There, Guest! (LoginRegister)


Post Reply 
ispCP don't "work"
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #21
RE: ispCP don't "work"
Most important is the 3rd paragraph "telnet on 9876 and 'execute' does not kick on the request manager script".

The thing with open_basedir etc is not relevant, since there is no php in this part.
The daemon (port 9876) should run the perl script "ispcp_rqst_mngr" when asked for it - and this seems not to work.

But I don't know why :-(

It seems to be something in/with the daemon...

/J
05-08-2009 08:15 AM
Visit this user's website Find all posts by this user Quote this message in a reply
kserxes Offline


Posts: 3
Joined: May 2009
Reputation: 0
Post: #22
RE: ispCP don't "work"
Hmmm, I did an strace on the ispcp_daemon process while executing the ispcp_debugger and the telnet connection. Maybe you can get something out of that:

ispcp_debugger: Execute requests
Code:
accept(0, {sa_family=AF_INET, sin_port=htons(8277), sin_addr=inet_addr("127.0.0.1")}, [16]) = 2
setsockopt(2, SOL_SOCKET, SO_RCVTIMEO, "\36\0\0\0\0\0\0\0", 8) = 0
setsockopt(2, SOL_SOCKET, SO_SNDTIMEO, "\36\0\0\0\0\0\0\0", 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7e126f8) = 4076
close(2)                                = 0
accept(0, 0xbfd0f974, [16])             = ? ERESTARTSYS (To be restarted)
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 4076
waitpid(-1, 0xbfd0f638, WNOHANG)        = -1 ECHILD (No child processes)
rt_sigaction(SIGCHLD, {0x80491f0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}, 8) = 0
sigreturn()                             = ? (mask now [])
time(NULL)                              = 1241778861
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
send(1, "<29>May  8 12:34:21 ispcp_daemon"..., 71, MSG_NOSIGNAL) = 71


telnet connect:
Code:
accept(0, {sa_family=AF_INET, sin_port=htons(8278), sin_addr=inet_addr("127.0.0.1")}, [16]) = 2
setsockopt(2, SOL_SOCKET, SO_RCVTIMEO, "\36\0\0\0\0\0\0\0", 8) = 0
setsockopt(2, SOL_SOCKET, SO_SNDTIMEO, "\36\0\0\0\0\0\0\0", 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7e126f8) = 4139
close(2)                                = 0

telnet HELO & execute query:
Nothing happens... is this handled by another process?

telnet BYE:
Code:
accept(0, 0xbfd0f974, [16])             = ? ERESTARTSYS (To be restarted)
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 4146
waitpid(-1, 0xbfd0f638, WNOHANG)        = -1 ECHILD (No child processes)
rt_sigaction(SIGCHLD, {0x80491f0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}, 8) = 0
sigreturn()                             = ? (mask now [])
time(NULL)                              = 1241779021
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
send(1, "<29>May  8 12:37:01 ispcp_daemon"..., 71, MSG_NOSIGNAL) = 71

If there is some other information I can provide you with to find the cause I'll be happy to supply it.

Cheers,
Juergen
05-08-2009 08:44 PM
Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #23
RE: ispCP don't "work"
please make an strace with -F flag (for follow)

but as you can see :
Quote:clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7e126f8) = 4139

The process forks itself via "clone" to execute the rqst-mngr.
05-08-2009 08:53 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kserxes Offline


Posts: 3
Joined: May 2009
Reputation: 0
Post: #24
RE: ispCP don't "work"
Ok, so thats what I get with the -f option:

Code:
accept(0, {sa_family=AF_INET, sin_port=htons(1126), sin_addr=inet_addr("127.0.0.1")}, [16]) = 2
setsockopt(2, SOL_SOCKET, SO_RCVTIMEO, "\36\0\0\0\0\0\0\0", 8) = 0
setsockopt(2, SOL_SOCKET, SO_SNDTIMEO, "\36\0\0\0\0\0\0\0", 8) = 0
clone(Process 5100 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7e126f8) = 5100
[pid 31822] close(2)                    = 0
[pid 31822] accept(0,  <unfinished ...>
[pid  5100] close(0)                    = 0
[pid  5100] time(NULL)                  = 1241780766
[pid  5100] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
[pid  5100] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
[pid  5100] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
[pid  5100] send(1, "<29>May  8 13:06:06 ispcp_daemon"..., 60, MSG_NOSIGNAL) = 60
[pid  5100] write(2, "2", 1)            = 1
[pid  5100] write(2, "5", 1)            = 1
[pid  5100] write(2, "0", 1)            = 1
[pid  5100] write(2, " ", 1)            = 1
[pid  5100] write(2, "O", 1)            = 1
[pid  5100] write(2, "K", 1)            = 1
[pid  5100] write(2, " ", 1)            = 1
[pid  5100] write(2, "i", 1)            = 1
[pid  5100] write(2, "s", 1)            = 1
[pid  5100] write(2, "p", 1)            = 1
[pid  5100] write(2, "C", 1)            = 1
[pid  5100] write(2, "P", 1)            = 1
[pid  5100] write(2, " ", 1)            = 1
[pid  5100] write(2, "D", 1)            = 1
[pid  5100] write(2, "a", 1)            = 1
[pid  5100] write(2, "e", 1)            = 1
[pid  5100] write(2, "m", 1)            = 1
[pid  5100] write(2, "o", 1)            = 1
[pid  5100] write(2, "n", 1)            = 1
[pid  5100] write(2, " ", 1)            = 1
[pid  5100] write(2, "v", 1)            = 1
[pid  5100] write(2, "1", 1)            = 1
[pid  5100] write(2, ".", 1)            = 1
[pid  5100] write(2, "1", 1)            = 1
[pid  5100] write(2, " ", 1)            = 1
[pid  5100] write(2, "W", 1)            = 1
[pid  5100] write(2, "e", 1)            = 1
[pid  5100] write(2, "l", 1)            = 1
[pid  5100] write(2, "c", 1)            = 1
[pid  5100] write(2, "o", 1)            = 1
[pid  5100] write(2, "m", 1)            = 1
[pid  5100] write(2, "e", 1)            = 1
[pid  5100] write(2, "s", 1)            = 1
[pid  5100] write(2, " ", 1)            = 1
[pid  5100] write(2, "Y", 1)            = 1
[pid  5100] write(2, "o", 1)            = 1
[pid  5100] write(2, "u", 1)            = 1
[pid  5100] write(2, "!", 1)            = 1
[pid  5100] write(2, "\r", 1)           = 1
[pid  5100] write(2, "\n", 1)           = 1
[pid  5100] read(2, "e", 1)             = 1
[pid  5100] read(2, "x", 1)             = 1
[pid  5100] read(2, "e", 1)             = 1
[pid  5100] read(2, "c", 1)             = 1
[pid  5100] read(2, "u", 1)             = 1
[pid  5100] read(2, "t", 1)             = 1
[pid  5100] read(2, "e", 1)             = 1
[pid  5100] read(2, " ", 1)             = 1
[pid  5100] read(2, "q", 1)             = 1
[pid  5100] read(2, "u", 1)             = 1
[pid  5100] read(2, "e", 1)             = 1
[pid  5100] read(2, "r", 1)             = 1
[pid  5100] read(2, "y", 1)             = 1
[pid  5100] read(2, "\r", 1)            = 1
[pid  5100] read(2, "\n", 1)            = 1
[pid  5100] write(2, "2", 1)            = 1
[pid  5100] write(2, "5", 1)            = 1
[pid  5100] write(2, "0", 1)            = 1
[pid  5100] write(2, " ", 1)            = 1
[pid  5100] write(2, "O", 1)            = 1
[pid  5100] write(2, "K", 1)            = 1
[pid  5100] write(2, " ", 1)            = 1
[pid  5100] write(2, "1", 1)            = 1
[pid  5100] write(2, "2", 1)            = 1
[pid  5100] write(2, "7", 1)            = 1
[pid  5100] write(2, ".", 1)            = 1
[pid  5100] write(2, "0", 1)            = 1
[pid  5100] write(2, ".", 1)            = 1
[pid  5100] write(2, "0", 1)            = 1
[pid  5100] write(2, ".", 1)            = 1
[pid  5100] write(2, "1", 1)            = 1
[pid  5100] write(2, "/", 1)            = 1
[pid  5100] write(2, "q", 1)            = 1
[pid  5100] write(2, "u", 1)            = 1
[pid  5100] write(2, "e", 1)            = 1
[pid  5100] write(2, "r", 1)            = 1
[pid  5100] write(2, "y", 1)            = 1
[pid  5100] write(2, "\r", 1)           = 1
[pid  5100] write(2, "\n", 1)           = 1
[pid  5100] read(2, "b", 1)             = 1
[pid  5100] read(2, "y", 1)             = 1
[pid  5100] read(2, "e", 1)             = 1
[pid  5100] read(2, "\r", 1)            = 1
[pid  5100] read(2, "\n", 1)            = 1
[pid  5100] write(2, "2", 1)            = 1
[pid  5100] write(2, "5", 1)            = 1
[pid  5100] write(2, "0", 1)            = 1
[pid  5100] write(2, " ", 1)            = 1
[pid  5100] write(2, "O", 1)            = 1
[pid  5100] write(2, "K", 1)            = 1
[pid  5100] write(2, " ", 1)            = 1
[pid  5100] write(2, "G", 1)            = 1
[pid  5100] write(2, "o", 1)            = 1
[pid  5100] write(2, "o", 1)            = 1
[pid  5100] write(2, "d", 1)            = 1
[pid  5100] write(2, " ", 1)            = 1
[pid  5100] write(2, "B", 1)            = 1
[pid  5100] write(2, "y", 1)            = 1
[pid  5100] write(2, "e", 1)            = 1
[pid  5100] write(2, "!", 1)            = 1
[pid  5100] write(2, "\r", 1)           = 1
[pid  5100] write(2, "\n", 1)           = 1
[pid  5100] rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
[pid  5100] rt_sigaction(SIGCHLD, NULL, {0x80491f0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, 8) = 0
[pid  5100] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid  5100] nanosleep({1, 0}, {1, 0})   = 0
[pid  5100] close(2)                    = 0
[pid  5100] exit_group(0)               = ?
Process 5100 detached
<... accept resumed> 0xbfd0f974, [16])  = ? ERESTARTSYS (To be restarted)
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 5100
waitpid(-1, 0xbfd0f638, WNOHANG)        = -1 ECHILD (No child processes)
rt_sigaction(SIGCHLD, {0x80491f0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}, 8) = 0
sigreturn()                             = ? (mask now [])
time(NULL)                              = 1241780788
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
send(1, "<29>May  8 13:06:28 ispcp_daemon"..., 71, MSG_NOSIGNAL) = 71

Cheers
05-08-2009 09:08 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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