adityathebe / telegramForwarder

Telegram bot to forward messages
162 stars 116 forks source link

Service telegram-forwarder-node-bot start failed. #23

Closed DowXu3 closed 3 years ago

DowXu3 commented 3 years ago
Error: Cannot find module '/usr/src/telegram-forwarder/bot/wait-for.sh'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
internal/modules/cjs/loader.js:638
    throw err;
adityathebe commented 3 years ago

Please make sure you have the latest version. Specifically, check if your local repo has the file telegram-forwarder/bot/wait-for.sh.

DowXu3 commented 3 years ago

Yes, I have tried delete telegramForwarder folder and re-clone the project. [root@somehost bot]# pwd /root/telegramForwarder/bot [root@somehost bot]# ls wait-for.sh wait-for.sh

adityathebe commented 3 years ago

Did you rebuild the docker images ?

https://github.com/adityathebe/telegramForwarder#things-to-keep-in-mind

DowXu3 commented 3 years ago

Thanks for help, I rebuild the image and works fine.

Did you rebuild the docker images ?

https://github.com/adityathebe/telegramForwarder#things-to-keep-in-mind