在windows 2012服务器版上,当我运行puppet-librarian install时,我得到了下面的错误。
Error: No such file or directory - C:/Users/Administrator/infrastructure/.tmp/librarian/cache/source/puppet/forge/forgeapi_puppetlabs_com/opentable-windowsfeature/999.999.999/cache/tmp-unpacker20150907-1308-19kvk70/opentable-windowsfeature- 999.999.999/spec/acceptance/nodesets/windows-2008R2-serverstandard-x64.yml Error: Try 'puppet help module install' for usage我认为这是一个通用的windows问题,我花了一段时间才弄清楚这个错误。Windows的绝对文件名的最大长度为255个字符。Puppet-librarian没有给出一个好的错误消息来表明这是根本原因。Maximum filename length in NTFS (Windows XP and Windows Vista)?。
发布于 2015-09-10 21:54:27
长文件路径的问题可能是由于puppet-librarian使用PMT (Puppet module Tool)安装模块造成的。更复杂的是,Librarian从这个路径C:/Users/Administrator/infrastructure/.tmp/librarian/cache/source/puppet/forge/forgeapi_puppetlabs_com/opentable-windowsfeature/999.999.999/开始,这个路径已经很长了,然后PMT将cache/tmp-unpacker20150907-1308-19kvk70/opentable-windowsfeature-999.999.999添加到路径中,这进一步增加了路径的长度。
PMT存在长路径问题。我们将在未来的版本中通过添加LFN (长文件名)支持来修复这个问题。投票并观看PUP-4866,以了解这个问题何时得到解决。
由于following call的原因,木偶库管理员似乎也需要修复
command.push(*[path.to_s, "--module_repository", module_repository, "--modulepath", path.to_s, "--module_working_dir", path.to_s, "--ignore-dependencies", target])发布于 2015-09-08 23:35:01
我的解决方案是将根目录从"C:/Users/Administrator/infrastructure“移到"C:/infrastructure”。
https://stackoverflow.com/questions/32461802
复制相似问题