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

Shutdown ou Page Crash #34

Closed
turtleSP opened this issue May 26, 2021 · 5 comments
Closed

Shutdown ou Page Crash #34

turtleSP opened this issue May 26, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@turtleSP
Copy link

Depois de ligar o bot e passados algumas 2h ~ 3h o bot dá crash ou shutdown na consola
Não tem nenhum script para dar npm start automático quando ele fecha o nodejs?

@KillovSky KillovSky added the invalid This doesn't seem right label May 26, 2021
@KillovSky
Copy link
Owner

Preciso que me mostre o seu terminal quando isso ocorrer, se for somente uma mensagem sem quaisquer logs de erros se torna um tanto difícil saber a causa, mas experimente fazer um teste com o módulo PM, ele auto reinicia sua BOT após certo tempo.

@turtleSP
Copy link
Author

Como posso testar esse módulo PM
Uploading Screenshot_1.png…

@turtleSP
Copy link
Author

Screenshot_1

@KillovSky
Copy link
Owner

Pode ser que o Linux esteja matando o navegador, você está usando Chrome?

Se não, instale-o e teste.

Já para o caso do PM2, primeiro instale ele com npm i .

npm i pm2 --g

Depois rode:

pm2 start index.js
pm2 monit

Isso faz com que caso seu BOT obtenha erros, o PM2 reinicie ele automaticamente.

@KillovSky KillovSky added bug Something isn't working and removed invalid This doesn't seem right labels May 27, 2021
@KillovSky
Copy link
Owner

Irei encerrar por aqui pois causei um erro opcional semelhante fechando o processo com o task manager e o PM2 funcionou perfeitamente, se ainda tiver erros peço que abra uma nova issue, sinta-se a vontade para comentar mais nesta também.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants