question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error building Server

See original GitHub issue

Issue 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

  1. 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

  1. KP server is running on port 80. I disabled Apache on the server.

  2. 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)

  3. 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:closed
  • Created 6 years ago
  • Comments:26 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
SJHsimkaurcommented, Jan 4, 2018

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.

0reactions
zeroSteinercommented, Jan 4, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error building server: An error occurred while resigning test.apk
I get the following error: io.selendroid.standalone.SelendroidLauncher launchServer SEVERE: Error building server: An error occurred while ...
Read more >
Build failed! Server error performing build - Kodular Community
I am facing this problem with one of my app that I create recently … I try to export (build) other apps that...
Read more >
"Failed to connect with build server, no functionality will work ...
Metals no longer works - no features work/no run/debug button displayed. Clicking "connect to build server" yields the error in the title.
Read more >
"Server error: could not build target. Please try again later!"?
Hi! I'm trying to finish my project but this messages came up every time i try to build the QR code. Some help...
Read more >
Error while trying to build Dev Server! - Unreal Engine Forums
I get 2 errors when i try to build. My goal is to get a dedicated server to my game. Any ideas what...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found