-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Task failing with logmon failed to create fifo for extracting logs #5803
Comments
Updated actual job file to the posting. |
Please note that the error is not just happening with kapacitor, it might happen with any other executable. |
Issue still present in Nomad v0.9.3 (c5e8b66) |
Hmm |
We have been using Nomad this way for a while and are in a position where we cannot run it as an admin. This issue started happening a week ago only. It seems to be a race condition that happens sometimes. If we keep restarting the task, it eventually succeeds. |
Just wondering, this task seems to be tagged with driver/exec when we are using raw_exec, is this normal? |
@nickethier same result when running Nomad agent -dev from an admin terminal, with the last job:
|
Access is denied is often used not only for permission, but also concurrent access of non-shared handles in Windows. It's a typical error in case of dying process and log file access. Also, handles of dying (terminated) processes in Windows are clear by the kernel after the process is reported as dead. The problem could be around such race condition. |
Hey folks ✨, I'm taking a look into this now that I have a windows test environment back up. It seems to be an issue with the way we handle restarts inside logmon, but I need to dig a little bit further to try and figure out the correct fix. |
Also seeing this on Ubuntu: |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
Affect versions:
The issue is NOT present in Nomad v0.8.7.
Operating system and Environment details
Windows 10 Pro, 64bit
Issue
Task failing with logmon error:
logmon: rpc error: code = Unknown desc = failed to create fifo for extracting logs: open //./pipe/kapacitor-153973e1.stdout: Access is denied.
Reproduction steps
https://dl.influxdata.com/telegraf/releases/telegraf-1.3.5_windows_amd64.zip
https://dl.influxdata.com/chronograf/releases/chronograf-1.3.8.1_windows_amd64.zip
https://dl.influxdata.com/influxdb/releases/influxdb-1.3.5_windows_amd64.zip
https://dl.influxdata.com/kapacitor/releases/kapacitor-1.3.3_windows_amd64.zip
Job file
Nomad Client logs (if appropriate)
The text was updated successfully, but these errors were encountered: