-
Notifications
You must be signed in to change notification settings - Fork 71
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
Problems with long Pathnames on Windows #130
Comments
I was able to trigger this issue despite the shortened hashes. Reported it on the offending cookbook (edelight/chef-mongodb#160). Not sure if there is a solution, but I just moved my project directory to get it under the 256 length limit. |
I am coming across this issue with librarian-puppet rather than chef, but am not able to work around it in one particular case. I am having our build agents (Team City) in my case do a librarian-puppet install so that they have the modules required to run tests against our internally developed modules. I'd rather not change the working directory for our agents. Any chance there's a permanent fix identified for this? |
I came across the problem on Win 8.1 Pro. Shouldn't KB2919355 fix it? I have this update installed, but still have the same problem. I think this is more like the stackoverfow discussion... |
Answering with stackoverflow link: Does MAX_PATH issue still exists in Windows 10. |
Recently I'm running into
No such file or directory - ...<quite long path> ... (Errno::ENOENT)
errors more often.The problem is due to the max path length limit of 256 chars on Windows.
The backtraces look similar to that:
One of the issues is that the librarian dictated tmp paths (e.g.
tmp/librarian/cache/source/chef/site/877777683730772c36b1e6a3fc3aa2c3/apache2/version-uri/4c32315570baa05b9c5678752b2968c9/package/
) already take up 131 chars, leaving only 135 chars left forWhile you can work around 1. using
subst R: C:\path\to\where\my\projects\are
(that I have done already in the backtrace above) to some extent, you typically can't do this for 2.I don't have a good idea how to really solve this issue, but there are some strategies to consider:
tmp/librarian/c/s/c/s/877777683730772c36b1e6a3fc3aa2c3/apache2/vu/4c32315570baa05b9c5678752b2968c9/p/
instead oftmp/librarian/cache/source/chef/site/877777683730772c36b1e6a3fc3aa2c3/apache2/version-uri/4c32315570baa05b9c5678752b2968c9/package/
(saves 29 chars)Any ideas how to deal with this?
The text was updated successfully, but these errors were encountered: