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

ioBroker crashes during log file rotation #2092

Closed
volkerrichert opened this issue Jan 5, 2023 · 1 comment · Fixed by #2633
Closed

ioBroker crashes during log file rotation #2092

volkerrichert opened this issue Jan 5, 2023 · 1 comment · Fixed by #2633
Assignees
Labels
bug 🐞 dependencies Pull requests that update a dependency file

Comments

@volkerrichert
Copy link

volkerrichert commented Jan 5, 2023

Sometimes ioBroker crashes during log file rotation.

ENOENT: no such file or directory, unlink '/opt/iobroker/log/iobroker.2023-01-04.log'
Error: ENOENT: no such file or directory, unlink '/opt/iobroker/log/iobroker.2023-01-04.log'
    at Object.unlinkSync (node:fs:1767:3)
    at WriteStream.<anonymous> (/opt/iobroker/node_modules/winston-daily-rotate-file/daily-rotate-file.js:140:28)
    at WriteStream.emit (node:events:525:35)
    at WriteStream.emit (node:domain:489:12)
    at finish (node:internal/streams/writable:756:10)
    at finishMaybe (node:internal/streams/writable:741:9)
    at afterWrite (node:internal/streams/writable:506:3)
    at onwrite (node:internal/streams/writable:479:7)
    at node:internal/fs/streams:416:5
    at FSReqCallback.wrapper [as oncomplete] (node:fs:816:5)

See PR from @Apollon77 winstonjs/winston-daily-rotate-file#366

@Apollon77 Apollon77 added bug 🐞 dependencies Pull requests that update a dependency file labels Jan 5, 2023
@haselchen
Copy link

foxriver76 added a commit that referenced this issue Mar 13, 2024
- and update the lib to make the error handler work
- closes #2547
- closes #2092
foxriver76 added a commit that referenced this issue Mar 22, 2024
- and update the lib to make the error handler work
- closes #2547
- closes #2092
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants