Skip to content

Absolute file paths with upper case dont work #6888

@SWvheerden

Description

@SWvheerden

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions