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

When the website service runs for half an hour to an hour, errors may occur #140

Open
RickHunterS opened this issue Mar 24, 2021 · 2 comments
Labels
waiting for reply Awaiting for feedback from user/reporter

Comments

@RickHunterS
Copy link

Hello, when I run the website service on the server for about half an hour to an hour, the following error will appear, and then the Linux terminal will automatically “killed ” the process. Can you help me find out the cause of my mistake.

[system] Rejection: { Error: Cannot enqueue Query after fatal error.
at Protocol._validateEnqueue (/root/rats-search/node_modules/mysql/lib/protocol/Protocol.js:212:16)
at Protocol._enqueue (/root/rats-search/node_modules/mysql/lib/protocol/Protocol.js:138:13)
at Connection.query (/root/rats-search/node_modules/mysql/lib/Connection.js:198:25)
at queryCall (/root/rats-search/src/background/mysql.js:12:10)
at Promise (/root/rats-search/src/background/mysql.js:30:4)
at new Promise ()
at Connection.sphinx.query (/root/rats-search/src/background/mysql.js:15:42)
at Promise (/root/rats-search/src/background/spider.js:621:17)
at new Promise ()
at insertTorrentToDB (/root/rats-search/src/background/spider.js:542:50) code: 'PROTOCOL_ENQUEUE_AFTER_FATAL_ERROR', fatal: false }

[spider] finded torrent The.Godfather.Part.II.1974.576p.BRRip.x265-DiN and add to database
[add] { Error: Cannot enqueue Query after fatal error.
at Protocol._validateEnqueue (/root/rats-search/node_modules/mysql/lib/protocol/Protocol.js:212:16)
at Protocol._enqueue (/root/rats-search/node_modules/mysql/lib/protocol/Protocol.js:138:13)
at Connection.query (/root/rats-search/node_modules/mysql/lib/Connection.js:198:25)
at queryCall (/root/rats-search/src/background/mysql.js:12:10)
at Promise (/root/rats-search/src/background/mysql.js:30:4)
at new Promise ()
at Connection.sphinx.query (/root/rats-search/src/background/mysql.js:15:42)
at Promise (/root/rats-search/src/background/spider.js:621:17)
at new Promise ()
at insertTorrentToDB (/root/rats-search/src/background/spider.js:542:50) code: 'PROTOCOL_ENQUEUE_AFTER_FATAL_ERROR', fatal: false }

[system] Rejection: { Error: Cannot enqueue Query after fatal error.
at Protocol._validateEnqueue (/root/rats-search/node_modules/mysql/lib/protocol/Protocol.js:212:16)
at Protocol._enqueue (/root/rats-search/node_modules/mysql/lib/protocol/Protocol.js:138:13)
at Connection.query (/root/rats-search/node_modules/mysql/lib/Connection.js:198:25)
at queryCall (/root/rats-search/src/background/mysql.js:12:10)
at Promise (/root/rats-search/src/background/mysql.js:30:4)
at new[root@racknerd-acba13 rats-search]# Promise ()
at Connection.sphinx.query (/root/rats-search/src/background/mysql.js:15:42)
at Promise (/root/rats-search/src/background/spider.js:621:17)
at new Promise ()
at insertTorrentToDB (/root/rats-search/src/background/spider.js:542:50) code: 'PROTOCOL_ENQUEUE_AFTER_FATAL_ERROR', fatal: false }

Killed
[root@racknerd-acba13 rats-search]#

@RickHunterS
Copy link
Author

Oh, yes, about the last question how to keep the background running, the current solution I use is to use TMUX, create a new session, and then exit to separate the session from the background running

@DEgITx
Copy link
Owner

DEgITx commented Jun 22, 2021

can you recheck with master? and post rats.log

@DEgITx DEgITx added the waiting for reply Awaiting for feedback from user/reporter label Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for reply Awaiting for feedback from user/reporter
Projects
None yet
Development

No branches or pull requests

2 participants