-
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
logs.disabled = true does not work with raw_exec on Windows #17148
Comments
On Windows the executor returns an error when trying to open the `NUL` device when we pass it `os.DevNull` for the stdout/stderr paths. Instead of opening the device, use the discard pipe so that we have platform-specific behavior from the executor itself. Fixes: #17148
I've got a draft PR up in #17199 that I think might fix this by using |
On Windows the executor returns an error when trying to open the `NUL` device when we pass it `os.DevNull` for the stdout/stderr paths. Instead of opening the device, use the discard pipe so that we have platform-specific behavior from the executor itself. Fixes: #17148
On Windows the executor returns an error when trying to open the `NUL` device when we pass it `os.DevNull` for the stdout/stderr paths. Instead of opening the device, use the discard pipe so that we have platform-specific behavior from the executor itself. Fixes: #17148
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. |
Discovered due to #17131
Nomad version
Nomad 1.5.5 amd64
Operating system and Environment details
Windows 11 Enterprise
Version: 22H2
OS Build: 22621.1105
Issue
Using
logs.disabled = true
with araw_exec
task on Windows prevents the task from starting with the following task event:Reproduction steps
Short example job with:
Expected Result
Task runs with empty logs.
Actual Result
Task fails to start with driver failure above.
Nomad Client logs (if appropriate)
Prior to the executor exiting it logs:
Sorry I can't include full snippets. Trying to copy and paste out of my Windows VM to Chrome on my host causes Chrome to crash and lose all my edits. 😞
The text was updated successfully, but these errors were encountered: