Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

File corrupted and unable to restart after killAbrt #3

Open
adrenalinux opened this issue Sep 15, 2023 · 0 comments
Open

File corrupted and unable to restart after killAbrt #3

adrenalinux opened this issue Sep 15, 2023 · 0 comments

Comments

@adrenalinux
Copy link

Logs:

systemd[1]: kitten-mq.service: Main process exited, code=dumped, status=6/ABRT
systemd[1]: kitten-mq.service: Failed with result 'core-dump'.
systemd[1]: kitten-mq.service: Service hold-off time over, scheduling restart.
systemd[1]: kitten-mq.service: Scheduled restart job, restart counter is at 3.
systemd[1]: Stopped Kitten-mq.
systemd[1]: Started Kitten-mq.
kitten-mq[16556]: Broker reloaded!
kitten-mq[16556]: undefined:1
kitten-mq[16556]: SyntaxError: Unexpected end of JSON input
kitten-mq[16556]:     at JSON.parse (<anonymous>)
kitten-mq[16556]:     at Server.<anonymous> (/snapshot/kitten-mq/node_modules/kitten-socket/lib/socket.js)
kitten-mq[16556]:     at Object.onceWrapper (events.js:421:28)
kitten-mq[16556]:     at Server.emit (events.js:315:20)
kitten-mq[16556]:     at emitListeningNT (net.js:1347:10)
kitten-mq[16556]:     at processTicksAndRejections (internal/process/task_queues.js:83:21)
kitten-mq[16556]:     at process.runNextTicks [as _tickCallback] (internal/process/task_queues.js:66:3)
kitten-mq[16556]:     at Function.Module.runMain (pkg/prelude/bootstrap.js:1376:13)
kitten-mq[16556]:     at internal/main/run_main_module.js:17:47
systemd[1]: kitten-mq.service: Main process exited, code=exited, status=1/FAILURE

More infos:

The broker.log was empty after the crash.
The systemd auto restart failed.
Manual solution -> remove the broker.log.

Maybe it's possible to handle this error :

var _packets = JSON.parse(fs.readFileSync(_logsFilename).toString());

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant