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

Logs path unable to handle Ramdisk #53

Open
JMyklebust opened this issue Sep 19, 2024 · 2 comments
Open

Logs path unable to handle Ramdisk #53

JMyklebust opened this issue Sep 19, 2024 · 2 comments
Labels
blocked Waiting on a dependency bug Something isn't working

Comments

@JMyklebust
Copy link

JMyklebust commented Sep 19, 2024

The application is unable to handle placing the log folder on a ramdisk for some reason.
It always throws this error:
error: invalid value 'R:\StepCA\logs' for '--log-dir <path>': Incorrect function. (os error 1)

Ramdisk is based on ImDisk Ramdisk.

(Also I managed to tap enter and send this without typing anything first time 🤷)

@mtkennerly
Copy link
Owner

Hi! This seems to be a limitation of Rust itself, actually. I found a few relevant tickets:

Unfortunately, I don't think there's anything I can do for now, but we can leave this open for tracking.

@mtkennerly mtkennerly added bug Something isn't working blocked Waiting on a dependency labels Sep 25, 2024
@JMyklebust
Copy link
Author

It's probably good to track the issue at least, and it's not super important to me that it gets resolved as I can work around it.
However I did take a deeper dive via those links and it seems you can use std::path::absolute in the cases where fs::canonicalize fails?

https://doc.rust-lang.org/std/path/fn.absolute.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Waiting on a dependency bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants