pm2-logrotate
pm2-logrotate copied to clipboard
Error in cluster mode
Hi, I have multiple apps running in cluster mode on my server via pm2, and each morning i get the error: { Error: ENOENT: no such file or directory, unlink 'xxx/meteor/logs/log__2019-07-20_00-00-00.log' errno: -2, code: 'ENOENT', syscall: 'unlink', path: 'xxx/meteor/logs/log__2019-07-20_00-00-00.log' } (number of instances - 1) times for each app. My guess is that pm2-logrotate tries to delete the log file once for each instance of the app. The first one deletes the log, and then other instances get the error because the file is already deleted.
the same for me