-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
running as daemon: executable /usr/share/telegram-daemon/bin/msg-search-engine not found #373
Comments
probably you named your conf file wrong |
I have the same problem. I did it with the wiki instructions and I have two empty files in /etc/telegram-daemon/ :
And the contents of /etc/telegram-cli/ are: |
downloads folder will contain downloads, it is generated automatically. lua scripts are generated by you. |
I'm also having the same problem in Debian. executable /usr/share/telegram-daemon/bin/msg-search-engine not found |
I have also the same issue in Debian root@telegram:/etc/init.d# ./start-telegram-daemon |
vysheng and how do I generate the lua scripts in /var/lib/telegram-daemon/ and the executable /usr/share/telegram-daemon/bin/msg-search-engine ? |
Same problem: executable /usr/share/telegram-daemon/bin/msg-search-engine not found I saw that "msg-search-engine" is called from script https://github.com/vysheng/tg/blob/master/start-telegram-daemon in : my %Vars = ( Thanks.. |
I solved this substituting my %Vars = ( with my %Vars = ( Ciao |
Solved !! Thanks! |
I applied the timetravel0 solution, but after starting the daemon, there is no process running. Did anyone got it running as daemon? |
I made a little workaround to get it working. I wrote my own /etc/init.d/ file and added it into the linux runlevels so I can start the service with "sudo service telegram-daemon start/stop/restart"
|
@Fizzzel thank you for your start script, this is the only one i got to work. The other approach is severely broken... |
@Fizzzel Thank you for your script, it works fine! |
@Fizzzel Why do you use sudo to run telegram-cli as the daemonuser? Why don't you use the -U and -G option of telegram-cli? Here is my version of the init script, note the -b though if copying, as this is a bot:
|
@beMoD I wrote my script in 2min, and I was excited that it worked instantly :D If beMoD's script is better, then you're all welcome to use it instead of mine!!! |
Ah, i see. Just thought there is a special reason you did it that way, thats why I asked :-) |
For me it helped to edit the script /usr/share/telegram-daemon/bin/start-telegram-daemon at the part where it writes the config: |
Can somebody fix this problem? |
Thanks for all the great working, the cli works great!
I tried to run te telegram-cli as daemon on my raspberry pi as described in the wiki page.
When I start the script, I get the following error/output:
/etc/init.d/telegram-daemon start z5
executable /usr/share/telegram-daemon/bin/msg-search-engine not found
Please help :)
The text was updated successfully, but these errors were encountered: