Error building Server
See original GitHub issueIssue Description
There are several issues but lets start one by one: i followed instructions to build KP server but debugging config file throws below error:
DEBUG king phisher version: 1.9.0 python version: 3.5.2 ERROR failed to bind server to address (socket error #98) ERROR socket error #98 (Address already in use)
Traceback (most recent call last): File “/opt/king-phiser/king_phisher/server/build.py”, line 145, in server_from_config server = KingPhisherServer(config, plugin_manager, handler_klass, addresses=addresses, ssl_certfile=ssl_certfile, ssl_keyfile=ssl_keyfile) File “/opt/king-phiser/king_phisher/server/server.py”, line 843, in init super(KingPhisherServer, self).init(handler_klass, *args, **kwargs) File “/usr/local/lib/python3.5/dist-packages/advancedhttpserver.py”, line 1780, in init server = server_klass((address[0], address[1]), handler_klass, config=self.__config) File “/usr/local/lib/python3.5/dist-packages/advancedhttpserver.py”, line 703, in init super(ServerNonThreaded, self).init(*args, **kwargs) File “/usr/lib/python3.5/socketserver.py”, line 440, in init self.server_bind() File “/usr/local/lib/python3.5/dist-packages/advancedhttpserver.py”, line 771, in server_bind super(ServerNonThreaded, self).server_bind(*args, **kwargs) File “/usr/lib/python3.5/http/server.py”, line 138, in server_bind socketserver.TCPServer.server_bind(self) File “/usr/lib/python3.5/socketserver.py”, line 454, in server_bind self.socket.bind(self.server_address) OSError: [Errno 98] Address already in use CRITICAL server failed to build with error: socket error #98 (Address already in use) INFO unloading 0 plugins
Reproduction Steps
- Able to start KP server but not able to launch client as both reside on same server.
Environment Details
Host OS: Ubuntu 16.04 GNOME, etc. King Phisher Version: 1.9.0
Error Details / Stack Trace
-
KP server is running on port 80. I disabled Apache on the server.
-
Details from /var/log/king-phisher.log 2018-01-04 12:02:06,275 KingPhisher.Server.CLI CRITICAL server failed to build with error: socket error #98 (Address already in use)
-
Unable to launch client from same KP server Traceback (most recent call last): File “./KingPhisher”, line 49, in <module> from king_phisher.client import application File “/opt/king-phiser/king_phisher/client/application.py”, line 52, in <module> from king_phisher.client import assistants File “/opt/king-phiser/king_phisher/client/assistants/init.py”, line 33, in <module> from .campaign import * File “/opt/king-phiser/king_phisher/client/assistants/campaign.py”, line 36, in <module> from king_phisher.client import gui_utilities File “/opt/king-phiser/king_phisher/client/gui_utilities.py”, line 517 elif len(error.args) > 1: ^ SyntaxError: invalid syntax
Please advice.
If you are opening an issue regarding the client, copy text from the "Error
Details" of the error dialog in the client here. If you are opening an issue
regarding the server copy the relevant lines from the logs here.
Issue Analytics
- State:
- Created 6 years ago
- Comments:26 (9 by maintainers)
Top GitHub Comments
I am able to launch client successfully with GNOME desktop. Thank you @zeroSteiner @wolfthefallen for all your help. I might open new tickets for other issues.
Ubuntu GNOME is what we recommend, you just can’t do it over SSH. Fedora Workstation and Windows are the other two most widely supported options for the client.