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 load and create pushkin for kind %s' #124

Closed
theodotos opened this issue May 12, 2020 · 3 comments
Closed

Failed to load and create pushkin for kind %s' #124

theodotos opened this issue May 12, 2020 · 3 comments

Comments

@theodotos
Copy link

After the latest pull (commit cde647a) I get the following error when I run sygnal:

/opt/sygnal# python -m sygnal.sygnal
Error during startup:
Traceback (most recent call last):
  File "/opt/synapse/env/lib/python3.7/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
    result = g.send(result)
  File "/opt/sygnal/sygnal/sygnal.py", line 221, in start
    port, bind_addresses, pushgateway_api
  File "/opt/synapse/env/lib/python3.7/site-packages/twisted/internet/defer.py", line 911, in ensureDeferred
    return _cancellableInlineCallbacks(coro)
  File "/opt/synapse/env/lib/python3.7/site-packages/twisted/internet/defer.py", line 1529, in _cancellableInlineCallbacks
    _inlineCallbacks(None, g, status)
--- <exception caught here> ---
  File "/opt/sygnal/sygnal/sygnal.py", line 221, in start
    port, bind_addresses, pushgateway_api
  File "/opt/synapse/env/lib/python3.7/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
    result = g.send(result)
  File "/opt/sygnal/sygnal/sygnal.py", line 194, in _make_pushkins_then_start
    "Failed to load and create pushkin for kind %s", app_cfg["type"]
builtins.RuntimeError: ('Failed to load and create pushkin for kind %s', 'apns')

Any idea?

@clokep
Copy link
Member

clokep commented May 13, 2020

Looks like we're still not logging the proper error here. :sigh: I'm going to make a few more improvements here and hopefully you'll be able to get the real exception.

You can likely get it by modifying the following lines:

sygnal/sygnal/sygnal.py

Lines 193 to 195 in cde647a

raise RuntimeError(
"Failed to load and create pushkin for kind %s", app_cfg["type"]
)

And just change it to raise instead.

@clokep
Copy link
Member

clokep commented May 13, 2020

The changes in #125 should help show the actual error. I'd also recommend joining #sygnal:matrix.org for support.

@theodotos
Copy link
Author

Yes it was a missing aioapns module. Thanks @clokep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants