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.

Cant start KingPhisherServer, Failed with result 'exit-code'.

See original GitHub issue

Issue Description

I get a stack trace when I start KingFisher server

Reproduction Steps

  1. Start King Phisher

Environment Details

King Phisher Version: 1.9.0-beta4 (rev: fa0ea7c8a6d5) Platform Version: Linux: Kali kali-rolling kali-rolling Python Version: 3.6.3 Gtk Version: 3.22.24

Error Details / Stack Trace

/root/Downloads/king-phisher/KingPhisherServer -L Debug server_config.yml 
Traceback (most recent call last):
  File "/root/Downloads/king-phisher/KingPhisherServer", line 50, in <module>
    from king_phisher.server import build
  File "/root/Downloads/king-phisher/king_phisher/server/build.py", line 39, in <module>
    from king_phisher.server.server import KingPhisherRequestHandler, KingPhisherServer
  File "/root/Downloads/king-phisher/king_phisher/server/server.py", line 54, in <module>
    from king_phisher.server import server_rpc
  File "/root/Downloads/king-phisher/king_phisher/server/server_rpc.py", line 44, in <module>
    from king_phisher.server import graphql
  File "/root/Downloads/king-phisher/king_phisher/server/graphql.py", line 495, in <module>
    schema = Schema()
  File "/root/Downloads/king-phisher/king_phisher/server/graphql.py", line 480, in __init__
    super(Schema, self).__init__(**kwargs)
  File "/usr/local/lib/python3.6/dist-packages/graphene/types/schema.py", line 44, in __init__
    self.build_typemap()
  File "/usr/local/lib/python3.6/dist-packages/graphene/types/schema.py", line 105, in build_typemap
    self._type_map = TypeMap(initial_types, auto_camelcase=self.auto_camelcase, schema=self)
  File "/usr/local/lib/python3.6/dist-packages/graphene/types/typemap.py", line 66, in __init__
    super(TypeMap, self).__init__(types)
  File "/usr/local/lib/python3.6/dist-packages/graphql/type/typemap.py", line 16, in __init__
    self.update(reduce(self.reducer, types, OrderedDict()))
  File "/usr/local/lib/python3.6/dist-packages/graphene/types/typemap.py", line 74, in reducer
    return self.graphene_reducer(map, type)
  File "/usr/local/lib/python3.6/dist-packages/graphene/types/typemap.py", line 104, in graphene_reducer
    return GraphQLTypeMap.reducer(map, internal_type)
  File "/usr/local/lib/python3.6/dist-packages/graphql/type/typemap.py", line 79, in reducer
    field_map = type.fields
  File "/usr/local/lib/python3.6/dist-packages/graphql/pyutils/cached_property.py", line 16, in __get__
    value = obj.__dict__[self.func.__name__] = self.func(obj)
  File "/usr/local/lib/python3.6/dist-packages/graphql/type/definition.py", line 180, in fields
    return define_field_map(self, self._fields)
  File "/usr/local/lib/python3.6/dist-packages/graphql/type/definition.py", line 189, in define_field_map
    field_map = field_map()
  File "/usr/local/lib/python3.6/dist-packages/graphene/types/typemap.py", line 236, in construct_fields_for_type
    map = self.reducer(map, field.type)
  File "/usr/local/lib/python3.6/dist-packages/graphene/types/typemap.py", line 74, in reducer
    return self.graphene_reducer(map, type)
  File "/usr/local/lib/python3.6/dist-packages/graphene/types/typemap.py", line 104, in graphene_reducer
    return GraphQLTypeMap.reducer(map, internal_type)
  File "/usr/local/lib/python3.6/dist-packages/graphql/type/typemap.py", line 79, in reducer
    field_map = type.fields
  File "/usr/local/lib/python3.6/dist-packages/graphql/pyutils/cached_property.py", line 16, in __get__
    value = obj.__dict__[self.func.__name__] = self.func(obj)
  File "/usr/local/lib/python3.6/dist-packages/graphql/type/definition.py", line 180, in fields
    return define_field_map(self, self._fields)
  File "/usr/local/lib/python3.6/dist-packages/graphql/type/definition.py", line 189, in define_field_map
    field_map = field_map()
  File "/usr/local/lib/python3.6/dist-packages/graphene/types/typemap.py", line 236, in construct_fields_for_type
    map = self.reducer(map, field.type)
  File "/usr/local/lib/python3.6/dist-packages/graphene/types/typemap.py", line 74, in reducer
    return self.graphene_reducer(map, type)
  File "/usr/local/lib/python3.6/dist-packages/graphene/types/typemap.py", line 104, in graphene_reducer
    return GraphQLTypeMap.reducer(map, internal_type)
  File "/usr/local/lib/python3.6/dist-packages/graphql/type/typemap.py", line 79, in reducer
    field_map = type.fields
  File "/usr/local/lib/python3.6/dist-packages/graphql/pyutils/cached_property.py", line 16, in __get__
    value = obj.__dict__[self.func.__name__] = self.func(obj)
  File "/usr/local/lib/python3.6/dist-packages/graphql/type/definition.py", line 180, in fields
    return define_field_map(self, self._fields)
  File "/usr/local/lib/python3.6/dist-packages/graphql/type/definition.py", line 189, in define_field_map
    field_map = field_map()
  File "/usr/local/lib/python3.6/dist-packages/graphene/types/typemap.py", line 236, in construct_fields_for_type
    map = self.reducer(map, field.type)
  File "/usr/local/lib/python3.6/dist-packages/graphene/types/typemap.py", line 74, in reducer
    return self.graphene_reducer(map, type)
  File "/usr/local/lib/python3.6/dist-packages/graphene/types/typemap.py", line 104, in graphene_reducer
    return GraphQLTypeMap.reducer(map, internal_type)
  File "/usr/local/lib/python3.6/dist-packages/graphql/type/typemap.py", line 79, in reducer
    field_map = type.fields
  File "/usr/local/lib/python3.6/dist-packages/graphql/pyutils/cached_property.py", line 16, in __get__
    value = obj.__dict__[self.func.__name__] = self.func(obj)
  File "/usr/local/lib/python3.6/dist-packages/graphql/type/definition.py", line 180, in fields
    return define_field_map(self, self._fields)
  File "/usr/local/lib/python3.6/dist-packages/graphql/type/definition.py", line 189, in define_field_map
    field_map = field_map()
  File "/usr/local/lib/python3.6/dist-packages/graphene/types/typemap.py", line 236, in construct_fields_for_type
    map = self.reducer(map, field.type)
  File "/usr/local/lib/python3.6/dist-packages/graphene_sqlalchemy/fields.py", line 27, in type
    "SQLAlchemyConnectionField only accepts SQLAlchemyObjectType types"
AssertionError: SQLAlchemyConnectionField only accepts SQLAlchemyObjectType types

when i tried to run service it shown:

xim 12 23:53:43 kali systemd[1]: king-phisher.service: Control process exited, code=exited status=1
xim 12 23:53:43 kali systemd[1]: Failed to start King Phisher Server.
xim 12 23:53:43 kali systemd[1]: king-phisher.service: Unit entered failed state.
xim 12 23:53:43 kali systemd[1]: king-phisher.service: Failed with result 'exit-code'.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
zeroSteinercommented, Nov 14, 2017

That’s a good catch, thanks for letting us know about that @sonnh58. We’re going to update our temporary fix until we can get everything fully updated for Graphene v2.

1reaction
sonnh58commented, Nov 14, 2017

i found solution

add to requirements.txt

graphql-core==1.1.0

graphql-core v2 causes error

Read more comments on GitHub >

github_iconTop Results From Across the Web

King Phisher systemd service start failure · Issue #382 - GitHub
Issue Description Upon installing king phisher on a fresh Debian 9 ... systemd[1]: king-phisher.service: Failed with result 'exit-code'.
Read more >
King Phisher refuses to launch - Kali Linux Forums
Hello, whenever i try to start king phisher and enter my credentials it always gives me this error "the server refused the connection"...
Read more >
King Phisher Documentation - Read the Docs
Execute a GraphQL query on the server and return the results. This will raise. KingPhisherGraphQLQueryError if the query fails. Parameters.
Read more >
King Phisher - Phishing Campaign Toolkit | Full Tutorial
King Phisher is a tool for testing and promoting user awareness by simulating real-world phishing attacks. Here is the complete tutorial of ...
Read more >
King-phisher 1.5.1 with SSH keys + TLS - sw1tch.net
Default error verbosity is pretty good, and usually points clearly to ... You can start the King Phisher client with the following command:...
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