Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

worker has no heartbeat, restarting #547

Closed
alirezakv opened this issue Aug 31, 2017 · 9 comments
Closed

worker has no heartbeat, restarting #547

alirezakv opened this issue Aug 31, 2017 · 9 comments

Comments

@alirezakv
Copy link

with a clean installation on KALI, I repeatedly get this error in production.log while using GUI. And this causes GUI to become very slow and requests are not being answered. I don't get this error in Debian!

@MrSeccubus
Copy link
Member

Does iot also happen if you run seccubus like this:

cd /opt/seccubus
morbo seccubus.pl

@alirezakv
Copy link
Author

alirezakv commented Aug 31, 2017

I used seccubus service to start it and this was the log:
[Thu Aug 31 13:32:15 2017] [info] Stopping worker 4739 gracefully (120 seconds)
[Thu Aug 31 13:32:33 2017] [error] Worker 4740 has no heartbeat (30 seconds), restarting
[Thu Aug 31 13:32:33 2017] [info] Stopping worker 4740 gracefully (120 seconds)
[Thu Aug 31 13:33:11 2017] [info] Worker 4736 stopped
[Thu Aug 31 13:33:11 2017] [info] Worker 4752 started
[Thu Aug 31 13:33:21 2017] [info] Worker 4738 stopped
[Thu Aug 31 13:33:21 2017] [info] Worker 4765 started
[Thu Aug 31 13:33:42 2017] [error] Worker 4741 has no heartbeat (30 seconds), restarting
[Thu Aug 31 13:33:42 2017] [info] Stopping worker 4741 gracefully (120 seconds)
[Thu Aug 31 13:33:45 2017] [error] Worker 4737 has no heartbeat (30 seconds), restarting
[Thu Aug 31 13:33:45 2017] [info] Stopping worker 4737 gracefully (120 seconds)
[Thu Aug 31 13:33:54 2017] [info] Worker 4739 stopped
[Thu Aug 31 13:33:54 2017] [info] Worker 4766 started
[Thu Aug 31 13:34:12 2017] [info] Worker 4740 stopped
[Thu Aug 31 13:34:12 2017] [info] Worker 4767 started
[Thu Aug 31 13:34:27 2017] [error] Worker 4752 has no heartbeat (30 seconds), restarting
[Thu Aug 31 13:34:27 2017] [info] Stopping worker 4752 gracefully (120 seconds)
[Thu Aug 31 13:35:22 2017] [info] Worker 4741 stopped
[Thu Aug 31 13:35:22 2017] [info] Worker 4737 stopped
[Thu Aug 31 13:35:22 2017] [info] Worker 4771 started
[Thu Aug 31 13:36:05 2017] [info] Worker 4752 stopped
[Thu Aug 31 15:13:37 2017] [warn] Stopping worker 4767 immediately
[Thu Aug 31 15:13:37 2017] [warn] Stopping worker 4771 immediately
[Thu Aug 31 15:13:37 2017] [warn] Stopping worker 4766 immediately
[Thu Aug 31 15:13:37 2017] [warn] Stopping worker 4765 immediately
[Thu Aug 31 15:13:37 2017] [info] Worker 4766 stopped
[Thu Aug 31 15:13:37 2017] [info] Worker 4765 stopped
[Thu Aug 31 15:13:37 2017] [info] Worker 4767 stopped
[Thu Aug 31 15:13:37 2017] [info] Worker 4771 stopped
[Thu Aug 31 15:13:37 2017] [info] Manager 4286 stopped

then i used morbo and this is the log:
[Thu Aug 31 15:15:39 2017] [debug] GET "/api/session"
[Thu Aug 31 15:15:39 2017] [debug] Routing to controller "Seccubus::Controller::Sessions" and action "read"
[Thu Aug 31 15:15:39 2017] [debug] 200 OK (0.024809s, 40.308/s)
[Thu Aug 31 15:15:39 2017] [debug] GET "/api/workspaces"
[Thu Aug 31 15:15:39 2017] [debug] Routing to a callback
[Thu Aug 31 15:15:39 2017] [debug] 403 Forbidden (0.001043s, 958.773/s)
[Thu Aug 31 15:15:39 2017] [debug] GET "/api/workspaces"
[Thu Aug 31 15:15:39 2017] [debug] Routing to a callback
[Thu Aug 31 15:15:39 2017] [debug] 403 Forbidden (0.000487s, 2053.388/s)
[Thu Aug 31 15:15:39 2017] [debug] GET "/api/appstatus"
[Thu Aug 31 15:15:39 2017] [debug] Routing to controller "Seccubus::Controller::AppStatus" and action "read"
[Thu Aug 31 15:15:39 2017] [debug] 200 OK (0.010193s, 98.107/s)
[Thu Aug 31 15:15:39 2017] [debug] GET "/api/version"
[Thu Aug 31 15:15:39 2017] [debug] Routing to controller "Seccubus::Controller::Version" and action "read"
[Thu Aug 31 15:17:50 2017] [debug] 200 OK (130.564689s, 0.008/s)
[Thu Aug 31 15:17:50 2017] [debug] Inactivity timeout
[Thu Aug 31 15:17:50 2017] [debug] Inactivity timeout
[Thu Aug 31 15:17:50 2017] [debug] POST "/api/session"
[Thu Aug 31 15:17:50 2017] [debug] Routing to controller "Seccubus::Controller::Sessions" and action "create"
[Thu Aug 31 15:17:50 2017] [debug] 200 OK (0.314254s, 3.182/s)
[Thu Aug 31 15:17:52 2017] [debug] GET "/api/appstatus"
[Thu Aug 31 15:17:52 2017] [debug] Routing to controller "Seccubus::Controller::AppStatus" and action "read"
[Thu Aug 31 15:17:52 2017] [debug] 200 OK (0.010753s, 92.997/s)
[Thu Aug 31 15:17:52 2017] [debug] GET "/api/version"
[Thu Aug 31 15:17:52 2017] [debug] Routing to controller "Seccubus::Controller::Version" and action "read"
[Thu Aug 31 15:20:03 2017] [debug] 200 OK (131.243394s, 0.008/s)
[Thu Aug 31 15:20:03 2017] [debug] GET "/api/session"
[Thu Aug 31 15:20:03 2017] [debug] Routing to controller "Seccubus::Controller::Sessions" and action "read"
[Thu Aug 31 15:20:03 2017] [debug] 200 OK (0.005449s, 183.520/s)
[Thu Aug 31 15:20:03 2017] [debug] Inactivity timeout
[Thu Aug 31 15:20:03 2017] [debug] Inactivity timeout
[Thu Aug 31 15:20:03 2017] [debug] Inactivity timeout
[Thu Aug 31 15:20:03 2017] [debug] GET "/api/workspaces"
[Thu Aug 31 15:20:03 2017] [debug] Routing to a callback
[Thu Aug 31 15:20:03 2017] [debug] Routing to controller "Seccubus::Controller::Workspaces" and action "list"
[Thu Aug 31 15:20:03 2017] [debug] 200 OK (0.008172s, 122.369/s)
[Thu Aug 31 15:20:03 2017] [debug] GET "/api/workspaces"
[Thu Aug 31 15:20:03 2017] [debug] Routing to a callback
[Thu Aug 31 15:20:03 2017] [debug] Routing to controller "Seccubus::Controller::Workspaces" and action "list"
[Thu Aug 31 15:20:03 2017] [debug] 200 OK (0.006074s, 164.636/s)
[Thu Aug 31 15:20:03 2017] [debug] GET "/api/workspaces"
[Thu Aug 31 15:20:03 2017] [debug] Routing to a callback
[Thu Aug 31 15:20:03 2017] [debug] Routing to controller "Seccubus::Controller::Workspaces" and action "list"
[Thu Aug 31 15:20:03 2017] [debug] 200 OK (0.005617s, 178.031/s)
[Thu Aug 31 15:20:03 2017] [debug] GET "/api/appstatus"
[Thu Aug 31 15:20:03 2017] [debug] Routing to controller "Seccubus::Controller::AppStatus" and action "read"
[Thu Aug 31 15:20:03 2017] [debug] 200 OK (0.010817s, 92.447/s)
[Thu Aug 31 15:20:03 2017] [debug] GET "/api/workspace/-1/issues"
[Thu Aug 31 15:20:03 2017] [debug] Routing to a callback
[Thu Aug 31 15:20:03 2017] [debug] Routing to controller "Seccubus::Controller::Issues" and action "list"
[Thu Aug 31 15:20:03 2017] [debug] 200 OK (0.018541s, 53.935/s)
[Thu Aug 31 15:20:03 2017] [debug] GET "/api/sql"
[Thu Aug 31 15:20:03 2017] [debug] Routing to a callback
[Thu Aug 31 15:20:03 2017] [debug] Routing to controller "Seccubus::Controller::Sql" and action "list"
[Thu Aug 31 15:20:03 2017] [debug] 200 OK (0.007619s, 131.251/s)
[Thu Aug 31 15:20:03 2017] [debug] GET "/api/workspaces"
[Thu Aug 31 15:20:03 2017] [debug] Routing to a callback
[Thu Aug 31 15:20:03 2017] [debug] Routing to controller "Seccubus::Controller::Workspaces" and action "list"
[Thu Aug 31 15:20:03 2017] [debug] 200 OK (0.006004s, 166.556/s)
[Thu Aug 31 15:20:03 2017] [debug] GET "/api/version"
[Thu Aug 31 15:20:03 2017] [debug] Routing to controller "Seccubus::Controller::Version" and action "read"

but using morbo, GUI stops responding and will do nothing, does not show status page and does not login

@MrSeccubus
Copy link
Member

So hypnotoad is rightfully killing haning child processes. The questions remains, why do child processes hang on Kali...

@alirezakv
Copy link
Author

@seccubus if there is anything I can do to test tell me!

@alirezakv
Copy link
Author

I just reinstalled the latest version from git (d6eb441 commit) on Kali and it seems that this problem is solved!

@MrSeccubus
Copy link
Member

Does you comment in #568 mean I have unknowing resolved this issue now?

@alirezakv
Copy link
Author

@seccubus I'm not sure but I encountered the issue when I upgraded from 2.28 to 2.38. After some investigation I saw that PERL5LIB only had "/opt/seccubus". So I did a clean installation and changed PERL5LIB to "/opt/seccubus:/opt/seccubus/lib" and the problem was fixed. So I guess the problem was about PERL5LIB.

@MrSeccubus
Copy link
Member

Yes, that is the same thing that I encountered between releases 2.38 and 2.40. Also it seems debian has changed perl's behaviour not to have the current directory in the default clean path anymore...

Good, case closed for me, unless you object.

BTW would you mind writing up how you installed on Kali as that is a common question.

@alirezakv
Copy link
Author

alirezakv commented Sep 18, 2017

@seccubus
apt install perl mariadb-server libalgorithm-diff-perl libdbi-perl libdbd-mysql-perl libjson-perl libxml-simple-perl libwww-perl liblwp-protocol-https-perl libnet-ip-perl libtimedate-perl libhtml-parser-perl libcrypt-pbkdf2-perl libterm-readkey-perl libmojolicious-perl;
then install from source:
git clone ...
cd seccubus
./build_all
cd build
./install.pl --basedir /opt/seccubus
and then running deb postinstall script (which is only required for the first time)
This is how i'm doing it on kali!
about #533:
In debian repository we have mysql-server which depends on default-mysql-server (metapackage) which depends on mariadb-server so installing mysql-server will install maridb-server.
in kali repository we have default-mysql-server (metapackage) which depends on mariadb-server and there is no mysql-server.
deb file depends on mysql-server which will work on debian but not in kali!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants