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

Failed to connect to RPC server #424

Closed
zoubida43 opened this issue Jan 27, 2020 · 5 comments
Closed

Failed to connect to RPC server #424

zoubida43 opened this issue Jan 27, 2020 · 5 comments
Labels
help me Requests for support stale

Comments

@zoubida43
Copy link

Issue Description

Trying to re-connect to server after i was able to connect couple of days ago

Reproduction Steps

  1. Start King Phisher
  2. Do something to trigger the crash

Environment Details

Host OS: Kali
King Phisher Version: x.y.z

Error Details / Stack Trace

root@kingkali:/opt/king-phisher# lsof -i -P -n | grep LISTEN
postgres 757 postgres 3u IPv6 19616 0t0 TCP [::1]:5432 (LISTEN)
postgres 757 postgres 4u IPv4 19617 0t0 TCP 127.0.0.1:5432 (LISTEN)
sshd 1094 root 3u IPv4 23773 0t0 TCP *:22 (LISTEN)
sshd 1094 root 4u IPv6 23784 0t0 TCP *:22 (LISTEN)
python 1224 nobody 4u IPv4 26539 0t0 TCP 172.21.98.211:8081 (LISTEN)
python 1266 root 4u IPv4 26539 0t0 TCP 172.21.98.211:8081 (LISTEN)

DEBUG target directory: /opt/king-phisher
INFO checking for the pipenv environment
DEBUG pipenv path: '/usr/local/bin/pipenv'
DEBUG pipenv Pipfile: /opt/king-phisher/Pipfile
Loading .env environment variablesâ¦
DEBUG king phisher version: 1.16.0-beta (rev: 51185b4) python version: 3.7.5
DEBUG using plugin-specific library path: /var/king-phisher/lib/python3.7/site-packages
INFO listening on 172.21.98.211:8081
INFO serving files has been enabled
INFO initializing database connection with driver postgresql
DEBUG postgresql-setup was not found
DEBUG starting external process: /usr/bin/systemctl status postgresql.service
DEBUG postgresql service is already running via systemctl
DEBUG starting external process: su postgres -c psql -At -c "SELECT usename FROM pg_user"
DEBUG starting external process: su postgres -c psql -At -c "SELECT datname FROM pg_database"
DEBUG current database schema version: 9 (latest)
DEBUG connected to postgresql database: king_phisher
INFO restored 0 valid sessions and skipped 0 expired sessions from the database
DEBUG use pam service 'sshd' for authentication
DEBUG forked an authenticating process with pid: 1266
INFO the job manager has been started
INFO adding new job with id: 74febfc3-b065-4447-9f9d-d04535af4370 and callback function: _maintenance
INFO adding new job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG web socket manager worker running in tid: 0x7fbe99d11700
DEBUG initialized the table api dataset (schema version: 8)
DEBUG server request test id initialized with value: S5yzp6XYAcQnHg7iqLZ3br8o
INFO including 4 custom http headers
INFO server running in process: 1224 main tid: 0x7fbe9e1a0740
INFO dropped privileges to the nobody account (uid: 65534, gid: 65534)
DEBUG executing job with id: 74febfc3-b065-4447-9f9d-d04535af4370 and callback function: _maintenance
DEBUG running periodic maintenance tasks
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: ping_all
DEBUG executing job with id: 3ee2ffa7-9877-4597-bb15-9a51d4e49092 and callback function: pin

@zoubida43
Copy link
Author

Thank you!

@zeroSteiner
Copy link
Collaborator

Well you're listening on port 8081 which is odd. Are you connecting to that port in the client?

@zeroSteiner zeroSteiner added the help me Requests for support label Jan 27, 2020
@zoubida43
Copy link
Author

zoubida43 commented Jan 27, 2020 via email

@zeroSteiner
Copy link
Collaborator

Well you should double check that because that error message means the client can't connect to the server. Need to make sure the server is running and that you're connecting to the correct port that it's listening on.

@stale
Copy link

stale bot commented Feb 17, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 17, 2020
@stale stale bot closed this as completed Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help me Requests for support stale
Projects
None yet
Development

No branches or pull requests

2 participants