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

Absolute file paths with upper case dont work #6888

Open
SWvheerden opened this issue Mar 24, 2025 · 0 comments
Open

Absolute file paths with upper case dont work #6888

SWvheerden opened this issue Mar 24, 2025 · 0 comments

Comments

@SWvheerden
Copy link
Collaborator

Using an absolute path with -b fails:

$ ./target/debug/minotari_node -b /home/user/Tari-2503-Tari-Diff/tari/_coin/nodes/tari_new_commit/ --network localnet
Initializing logging according to "/home/user/coinspect/concert/Tari-2503-Tari-Diff/tari/_coin/nodes/tari_new_commit/localnet/config/base_node/log4rs.yml"
Mar 12 10:34:43.000 [warn] Couldn't open file for 'Log err file /home/user/tari-2503-tari-diff/tari/_coin/nodes/tari_new_commit/localnet/libtor/base_node/tor.log': No such file or directory
Mar 12 10:34:43.000 [warn] Failed to parse/validate config: Failed to init Log options. See logs for details.
Mar 12 10:34:43.000 [err] Reading config failed--see warnings above.

Using a relative path with -b is OK:

$ tari (2d671fd9c) ✗ ./target/debug/minotari_node -b _coin/nodes/tari_new_commit/ --network localnet
Initializing logging according to "_coin/nodes/tari_new_commit/localnet/config/base_node/log4rs.yml"
Mar 12 10:36:30.850 [warn] Path for ControlPortWriteToFile (_coin/nodes/tari_new_commit/localnet/libtor/base_node/data/control_port) is relative and will resolve to /home/user/coinspect/concert/Tari-2503-Tari-Diff/tari/_coin/nodes/tari_new_commit/localnet/libtor/base_node/data/control_port. Is this what you wanted?
Mar 12 10:36:30.850 [warn] Path for DataDirectory (_coin/nodes/tari_new_commit/localnet/libtor/base_node/data) is relative and will resolve to /home/user/coinspect/concert/Tari-2503-Tari-Diff/tari/_coin/nodes/tari_new_commit/localnet/libtor/base_node/data. Is this what you wanted?

And here see:

Mar 12 10:34:43.000 [warn] Couldn't open file for 'Log err file /home/user/tari-2503-tari-diff/tari/_coin/nodes/tari_new_commit/localnet/libtor/base_node/tor.log': No such file or directory

The path is suddenly all-lower case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant