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

File corrupted and unable to restart after killAbrt #3

Description

@adrenalinux

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());

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions