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

AuthKeyDuplicatedError should cause logout, not crash #292

Closed
turt2live opened this issue Mar 10, 2019 · 0 comments
Closed

AuthKeyDuplicatedError should cause logout, not crash #292

turt2live opened this issue Mar 10, 2019 · 0 comments
Labels
enhancement New feature or improvement
Milestone

Comments

@turt2live
Copy link
Contributor

During startup:

Mar 10 02:29:56 integrations python[13828]: [2019-03-10 02:29:56,917] [ERROR@mau.init] Unexpected error
Mar 10 02:29:56 integrations python[13828]: Traceback (most recent call last):
Mar 10 02:29:56 integrations python[13828]:   File "/home/telegram/mautrix-telegram/mautrix_telegram/__main__.py", line 156, in <module>
Mar 10 02:29:56 integrations python[13828]:     loop.run_until_complete(run_startup_actions())
Mar 10 02:29:56 integrations python[13828]:   File "uvloop/loop.pyx", line 1451, in uvloop.loop.Loop.run_until_complete
Mar 10 02:29:56 integrations python[13828]:   File "/home/telegram/mautrix-telegram/mautrix_telegram/__main__.py", line 153, in run_startup_actions
Mar 10 02:29:56 integrations python[13828]:     await action
Mar 10 02:29:56 integrations python[13828]:   File "/home/telegram/mautrix-telegram/mautrix_telegram/abstract_user.py", line 189, in ensure_started
Mar 10 02:29:56 integrations python[13828]:     await self.start(delete_unless_authenticated=not even_if_no_session)
Mar 10 02:29:56 integrations python[13828]:   File "/usr/lib/python3.6/asyncio/coroutines.py", line 129, in throw
Mar 10 02:29:56 integrations python[13828]:     return self.gen.throw(type, value, traceback)
Mar 10 02:29:56 integrations python[13828]:   File "/home/telegram/mautrix-telegram/mautrix_telegram/user.py", line 180, in start
Mar 10 02:29:56 integrations python[13828]:     await super().start()
Mar 10 02:29:56 integrations python[13828]:   File "/usr/lib/python3.6/asyncio/coroutines.py", line 129, in throw
Mar 10 02:29:56 integrations python[13828]:     return self.gen.throw(type, value, traceback)
Mar 10 02:29:56 integrations python[13828]:   File "/home/telegram/mautrix-telegram/mautrix_telegram/abstract_user.py", line 176, in start
Mar 10 02:29:56 integrations python[13828]:     await self.client.connect()
Mar 10 02:29:56 integrations python[13828]:   File "/usr/lib/python3.6/asyncio/coroutines.py", line 129, in throw
Mar 10 02:29:56 integrations python[13828]:     return self.gen.throw(type, value, traceback)
Mar 10 02:29:56 integrations python[13828]:   File "/home/telegram/.tgenv/lib/python3.6/site-packages/telethon/client/telegrambaseclient.py", line 357, in connect
Mar 10 02:29:56 integrations python[13828]:     functions.help.GetConfigRequest()))
Mar 10 02:29:56 integrations python[13828]: telethon.errors.rpcerrorlist.AuthKeyDuplicatedError: The authorization key (session file) was used under two different IP addresses simultaneously, and can no longer be used. Use the same session exclusively, or use different sessions (caused by InvokeWithLayerRequest)
Mar 10 02:29:57 integrations systemd[1]: telegram.service: Main process exited, code=exited, status=1/FAILURE
@tulir tulir added the enhancement New feature or improvement label Mar 12, 2019
@tulir tulir added this to the soon™ milestone Mar 12, 2019
@tulir tulir modified the milestones: 0.6.0, soon™ May 30, 2019
@tulir tulir closed this as completed in df67ed5 Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement
Development

No branches or pull requests

2 participants