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

Unable to download the metric logs from the nodes in the controller node. #46

Closed
hanish520 opened this issue Apr 14, 2022 · 1 comment
Closed

Comments

@hanish520
Copy link
Contributor

When we run the experiment on the remote nodes with metrics enabled, the controller node cannot download these logs.

This issue is because the path used in the host structure for the "data-dir" value is malformed. An example value for this value is "tmp/hotstuff.BpLnfgDs/data", missing a starting "/". The problem is the same for "test-dir."

I modified the below line to "src, err := iago.NewPathFromAbs("/"+iago.GetStringVar(host, "data-dir"))" and it is working.

src, err := iago.NewPathFromAbs(iago.GetStringVar(host, "data-dir")) // assuming the dir variable was set earlier

I guess there is a better way to fix this.

@johningve
Copy link
Member

Well, it's not really malformed as such. It's just that the io/fs package and hence also wrfs allow only unrooted paths (see ValidPath). The Deploy function was correctly removing the root prefix from the data directory, but the code in FetchData was handling the data directory path as if it was still a rooted path.

Fixed in 8a23ebf

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

2 participants