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

Temp dirs not found plotting with b15 dev 47, to the root of a mount point on Windows #103

Closed
kiwihaitch opened this issue Oct 17, 2020 · 10 comments
Assignees

Comments

@kiwihaitch
Copy link

On windows with a drive mountpoint at: C:_\SM01\05 - plotting to this directory path fails with a Temp dir not found. If I create a subdir below it, eg C:_\SM01\05\PLOT - plot works properly.

Log file attached.

@hoffmang9
Copy link
Member

Additional notes:

  1. That path as tempdir works under Beta 15
  2. It's pretty clearly failing in C++ and not the python layer.

@hoffmang9
Copy link
Member

Windows Server 2016

@kiwihaitch
Copy link
Author

OS: Server 2016. Log re-attached

b15.47-plot-error.txt

@arvidn
Copy link
Contributor

arvidn commented Oct 19, 2020

I tried to reproduce this with the C++ plotting tool, on windows. No luck so far, I'm running:

Debug\ProofOfSpace.exe create -k 32 -b 4528 -u 128 -s 65536 -t C:\_\SM01\05 -2 C:\_\SM01\05 -d C:\_\SM01\05

(and make sure I create the directory c:\_\SM01\05)

Looking at the code, this error comes from:

if (!fs::exists(tmp_dirname)) {
   throw InvalidValueException("Temp directory " + tmp_dirname + " does not exist");
}

Since the error message says:

Caught plotting error: Temp directory C:\_\SM01\05 does not exist

It really suggests that the directory "C:_\SM01\05" indeed does not exist. It's possible that there could be other conditions causing fs::exists() to return false though.

@kiwihaitch
Copy link
Author

The Path C:_\SM01\05 has to be an NTFS Mountpoint for it to fail (ie has another drive mounted there rather than have it's own drive letter). If a directory below the mountpoint is used eg: C:_\SM01\05\Plot then the plotter is fine. It's only in the specific case of attemptting to plot to the root of the mountpoint.

image

@arvidn
Copy link
Contributor

arvidn commented Oct 19, 2020

oh, I see. The log said "C:_..." so I missed that you're using the per-drive working directory.

but it's the mount-point that's relevant.

@arvidn
Copy link
Contributor

arvidn commented Oct 19, 2020

I have reproduced the issue

@arvidn
Copy link
Contributor

arvidn commented Oct 19, 2020

gulrak/filesystem#75

@arvidn
Copy link
Contributor

arvidn commented Nov 11, 2020

as far as I can tell, this has been resolved

@hoffmang9
Copy link
Member

This was directly fixed and the lingering other Windows issue should be resolved by #125

Closing.

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

4 participants