[GH-ISSUE #82] .pid file locked #58

Closed
opened 2026-03-03 16:04:05 +03:00 by kerem · 2 comments
Owner

Originally created by @the1mills on GitHub (Oct 6, 2016).
Original GitHub issue: https://github.com/mthenw/frontail/issues/82

sorry if this has been asked before, what is the canonical way to deal with this?

Error: EACCES: permission denied, open '/var/run/frontail.pid'
    at Error (native)
    at Object.fs.openSync (fs.js:640:18)
    at Object.fs.writeFileSync (fs.js:1333:33)
    at module.exports (/Users/t_millal/WebstormProjects/autodesk/crucible-poc-discovery/node_modules/frontail/lib/daemonize.js:57:6)
    at Object.<anonymous> (/Users/t_millal/WebstormProjects/autodesk/crucible-poc-discovery/node_modules/frontail/index.js:34:3)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
Originally created by @the1mills on GitHub (Oct 6, 2016). Original GitHub issue: https://github.com/mthenw/frontail/issues/82 sorry if this has been asked before, what is the canonical way to deal with this? ``` Error: EACCES: permission denied, open '/var/run/frontail.pid' at Error (native) at Object.fs.openSync (fs.js:640:18) at Object.fs.writeFileSync (fs.js:1333:33) at module.exports (/Users/t_millal/WebstormProjects/autodesk/crucible-poc-discovery/node_modules/frontail/lib/daemonize.js:57:6) at Object.<anonymous> (/Users/t_millal/WebstormProjects/autodesk/crucible-poc-discovery/node_modules/frontail/index.js:34:3) at Module._compile (module.js:556:32) at Object.Module._extensions..js (module.js:565:10) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) ```
kerem closed this issue 2026-03-03 16:04:05 +03:00
Author
Owner

@mthenw commented on GitHub (Oct 6, 2016):

Hey, when running as a daemon frontail sets its process id in a file (for easier cleanup). By default it's /var/run/frontail.pid. Looks like your user doesn't have access there. You can change pid file path with --pid-path flag or run command with sudo.

<!-- gh-comment-id:251899482 --> @mthenw commented on GitHub (Oct 6, 2016): Hey, when running as a daemon frontail sets its process id in a file (for easier cleanup). By default it's `/var/run/frontail.pid`. Looks like your user doesn't have access there. You can change pid file path with `--pid-path` flag or run command with `sudo`.
Author
Owner

@the1mills commented on GitHub (Oct 6, 2016):

why not install this .pid in the user's path (uset home directory)? then
the user will chown it by default?
On Oct 6, 2016 1:32 AM, "Maciej Winnicki" notifications@github.com wrote:

Closed #82 https://github.com/mthenw/frontail/issues/82.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mthenw/frontail/issues/82#event-814407310, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACDIYAGBNsMemb-IriZQb29RLhHquDRuks5qxLINgaJpZM4KPb_p
.

<!-- gh-comment-id:252024406 --> @the1mills commented on GitHub (Oct 6, 2016): why not install this .pid in the user's path (uset home directory)? then the user will chown it by default? On Oct 6, 2016 1:32 AM, "Maciej Winnicki" notifications@github.com wrote: > Closed #82 https://github.com/mthenw/frontail/issues/82. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > https://github.com/mthenw/frontail/issues/82#event-814407310, or mute > the thread > https://github.com/notifications/unsubscribe-auth/ACDIYAGBNsMemb-IriZQb29RLhHquDRuks5qxLINgaJpZM4KPb_p > .
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/frontail#58
No description provided.