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

king-phisher.service: Control process exited, code=exited, status=1/FAILURE #486

Open
Zhuss1 opened this issue Jun 4, 2022 · 5 comments
Labels

Comments

@Zhuss1
Copy link

Zhuss1 commented Jun 4, 2022

Issue Description

I am beginner but i have done quite a good research on troubleshooting this error.
after installing and trying to run the kingphisher server this is the error below that i get .

Kindly help me resolve or advice on solutions

Reproduction Steps

  1. Start King Phisher
    sudo service king-phisher start

Environment Details

Host OS: Ubuntu 20.04
provider : digital ocean 40/month

Error Details / Stack Trace

● king-phisher.service - King Phisher Server
Loaded: loaded (/lib/systemd/system/king-phisher.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2022-06-04 10:52:56 UTC; 11s ago
Process: 45549 ExecStart=/usr/bin/python3 /opt/king-phisher/KingPhisherServer /opt/king-phisher/server_config.yml (code=exited, status=1/>

Jun 04 10:52:55 ubuntu-s-4vcpu-8gb-amd-sfo3-01-kpq python3[45549]: File "/opt/king-phisher/king_phisher/server/main.py", line 51, in
Jun 04 10:52:55 ubuntu-s-4vcpu-8gb-amd-sfo3-01-kpq python3[45549]: from king_phisher.server import plugins
Jun 04 10:52:55 ubuntu-s-4vcpu-8gb-amd-sfo3-01-kpq python3[45549]: File "/opt/king-phisher/king_phisher/server/plugins.py", line 38, in
Jun 04 10:52:55 ubuntu-s-4vcpu-8gb-amd-sfo3-01-kpq python3[45549]: from king_phisher import plugins
Jun 04 10:52:55 ubuntu-s-4vcpu-8gb-amd-sfo3-01-kpq python3[45549]: File "/opt/king-phisher/king_phisher/plugins.py", line 59, in
Jun 04 10:52:55 ubuntu-s-4vcpu-8gb-amd-sfo3-01-kpq python3[45549]: StrictVersion = distutils.version.StrictVersion
Jun 04 10:52:55 ubuntu-s-4vcpu-8gb-amd-sfo3-01-kpq python3[45549]: AttributeError: module 'distutils' has no attribute 'version'
Jun 04 10:52:56 ubuntu-s-4vcpu-8gb-amd-sfo3-01-kpq systemd[1]: king-phisher.service: Control process exited, code=exited, status=1/FAILURE
Jun 04 10:52:56 ubuntu-s-4vcpu-8gb-amd-sfo3-01-kpq systemd[1]: king-phisher.service: Failed with result 'exit-code'.
Jun 04 10:52:56 ubuntu-s-4vcpu-8gb-amd-sfo3-01-kpq systemd[1]: Failed to start King Phisher Server.

@Zhuss1
Copy link
Author

Zhuss1 commented Jun 5, 2022

@zeroSteiner @wolfthefallen please help , i have seen your reviews and solutions on here> can you guys have a look ? Thanks in advance

@sweetjeez
Copy link

sweetjeez commented Jun 8, 2022 via email

@nykchi
Copy link

nykchi commented Jun 8, 2022

I seem to be having the same issue on my attempted install. Any help would be greatly appreciated.

Update:
Commenting out the StrictVersion = distutils.version.StrictVersion in /opt/king-phisher/king_phisher/plugins.py allows me to start the server, but he doesn't seem happy as connecting to 127.0.0.1:80 gives a 404 error and KingPhisher client has the following complaints.

I believe the issues are due to Python code changes between Python3.x and Python3.9. I'm not a python coder, so any help would be appreciated.

/opt/king-phisher$ ./KingPhisher
/usr/local/lib/python3.9/dist-packages/pkg_resources/init.py:123: PkgResourcesDeprecationWarning: 1.14.0-unknown is an invalid version and will not be supported in a future release
warnings.warn(
/usr/local/lib/python3.9/dist-packages/pkg_resources/init.py:123: PkgResourcesDeprecationWarning: 2.2.0-ubuntu0.21.04.1 is an invalid version and will not be supported in a future release
warnings.warn(
Loading .env environment variables...

(main.py:880891): Gtk-WARNING **: 18:47:22.744: Locale not supported by C library.
Using the fallback 'C' locale.
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/opt/king-phisher/king_phisher/client/main.py", line 48, in
from king_phisher.client import application
File "/opt/king-phisher/king_phisher/client/application.py", line 59, in
from king_phisher.client import dialogs
File "/opt/king-phisher/king_phisher/client/dialogs/init.py", line 37, in
from .configuration import *
File "/opt/king-phisher/king_phisher/client/dialogs/configuration.py", line 41, in
from king_phisher.client import graphs
File "/opt/king-phisher/king_phisher/client/graphs.py", line 52, in
import matplotlib
File "/opt/king-phisher/.venv/lib/python3.9/site-packages/matplotlib/init.py", line 192, in
if not compare_versions(six.version, '1.10'):
File "/opt/king-phisher/.venv/lib/python3.9/site-packages/matplotlib/init.py", line 179, in compare_versions
a = distutils.version.LooseVersion(a)
AttributeError: module 'distutils' has no attribute 'version'

Environment Details
Host OS: Ubuntu 21.04

● king-phisher.service - King Phisher Server
Loaded: loaded (/lib/systemd/system/king-phisher.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2022-06-08 18:27:20 EDT; 15s ago
Process: 879683 ExecStart=/usr/bin/python3 /opt/king-phisher/KingPhisherServer /opt/king-phisher/server_config.yml (code=exited, stat>

Jun 08 18:27:20 kirov-Lenovo-YOGA-730 python3[879683]: File "/opt/king-phisher/king_phisher/server/main.py", line 51, in
Jun 08 18:27:20 kirov-Lenovo-YOGA-730 python3[879683]: from king_phisher.server import plugins
Jun 08 18:27:20 kirov-Lenovo-YOGA-730 python3[879683]: File "/opt/king-phisher/king_phisher/server/plugins.py", line 38, in
Jun 08 18:27:20 kirov-Lenovo-YOGA-730 python3[879683]: from king_phisher import plugins
Jun 08 18:27:20 kirov-Lenovo-YOGA-730 python3[879683]: File "/opt/king-phisher/king_phisher/plugins.py", line 59, in
Jun 08 18:27:20 kirov-Lenovo-YOGA-730 python3[879683]: StrictVersion = distutils.version.StrictVersion
Jun 08 18:27:20 kirov-Lenovo-YOGA-730 python3[879683]: AttributeError: module 'distutils' has no attribute 'version'
Jun 08 18:27:20 kirov-Lenovo-YOGA-730 systemd[1]: king-phisher.service: Control process exited, code=exited, status=1/FAILURE
Jun 08 18:27:20 kirov-Lenovo-YOGA-730 systemd[1]: king-phisher.service: Failed with result 'exit-code'.
Jun 08 18:27:20 kirov-Lenovo-YOGA-730 systemd[1]: Failed to start King Phisher Server.
lines 1-15/15 (END)

@Zhuss1
Copy link
Author

Zhuss1 commented Jun 18, 2022

Is this repo is functional ? Please help admin

@stale
Copy link

stale bot commented Feb 28, 2023

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 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants