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

crashes with telegram-cli: loop.c:742: accept_incoming: Assertion fd >= 0' failed.` #41

Open
towc opened this issue Nov 21, 2018 · 1 comment

Comments

@towc
Copy link

towc commented Nov 21, 2018

telegram-cli was installed with snap

Here's the traceback:

$ nctelegram
telegram-cli: loop.c:742: accept_incoming: Assertion `fd >= 0' failed.
Traceback (most recent call last):
  File "/usr/local/bin/nctelegram", line 93, in <module>
    ncTelegram.Telegram_ui(config_full)
  File "/usr/local/lib/python3.6/dist-packages/ncTelegram/__init__.py", line 39, in __init__
    self.start_Telegram()
  File "/usr/local/lib/python3.6/dist-packages/ncTelegram/__init__.py", line 187, in start_Telegram
    pubkey_file=PATH_PUBKEY)
  File "/usr/local/lib/python3.6/dist-packages/pytg/__init__.py", line 52, in __init__
    raise AssertionError("CLI Process died.")
AssertionError: CLI Process died.

I used the ncTelegram.conf from this repo, and modified the first 2 parts like so:

$ cat .ncTelegram.conf | head -n 3
[general]
path_telegram = /snap/bin/telegram-cli
path_pubkey = /home/user/tg/server.pub

~/tg also has tg-server.pub in it, and I tried using that too, but I get the exact same traceback

It's curious because the only results to sudo updatedb && locate server.pub are the 2 items in ~/tg, and I don't think that directory comes from snap, but from a failed attempt of me installing telegram-cli, before realizing I could use snap. I can't seem to find those server.pub files from the snap install

I'm running ubuntu

@nautilor
Copy link

nautilor commented Jan 23, 2019

I get a similar Assertion `0' failed caused by pytg on the receiver with Remote end closed I have checked and my path_telegram and my path_pubkey are correct (I use the default path for telegram-cli)

you can search them with

$ which telegram-cli
/usr/bin/telegram-cli
$ sudo updatedb
$ locate server.pub | grep telegram
/etc/telegram-cli/server.pub

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