librarian-puppet icon indicating copy to clipboard operation
librarian-puppet copied to clipboard

No such file or directory @ dir_s_mkdir - windows

Open ogizanagi opened this issue 10 years ago • 2 comments

Running command librarian-puppet install/update , I get the following stacktrace :

D:\Ogizanagi\Desktop\Project\puphpet\puppet>librarian-puppet install
DL is deprecated, please use Fiddle
Error executing puppet module install. Check that this command succeeds:
puppet module install --version 4.3.2 --target-dir D:/Ogizanagi/Desktop/Project/puphpet/puppet/.tmp/librarian/cache/source/puppet/forge/forgeapi_puppetlabs_com/puppetlabs-stdlib/4.3.2 --module_repository https://
forgeapi.puppetlabs.com --modulepath D:/Ogizanagi/Desktop/Project/puphpet/puppet/.tmp/librarian/cache/source/puppet/forge/forgeapi_puppetlabs_com/puppetlabs-stdlib/4.3.2 --module_working_dir D:/Ogizanagi/Desktop/
Project/puphpet/puppet/.tmp/librarian/cache/source/puppet/forge/forgeapi_puppetlabs_com/puppetlabs-stdlib/4.3.2 --ignore-dependencies puppetlabs-stdlib
Error:
DL is deprecated, please use Fiddle
Failed to add /CN=flexr2hyperv50.flex.ikoula.com
Failed to add /C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/CN=Microsoft Root Certificate Authority 2011
Failed to add /C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/CN=Microsoft Root Certificate Authority 2010
Failed to add /CN=flexr2hyperv50.flex.ikoula.com
Failed to add /C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/CN=Microsoft Root Certificate Authority 2011
Failed to add /C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/CN=Microsoft Root Certificate Authority 2010
Failed to add /CN=flexr2hyperv50.flex.ikoula.com
Failed to add /C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/CN=Microsoft Root Certificate Authority 2011
Failed to add /C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/CN=Microsoft Root Certificate Authority 2010
Error: No such file or directory @ dir_s_mkdir - D:/Ogizanagi/Desktop/Project/puphpet/puppet/.tmp/librarian/cache/source/puppet/forge/forgeapi_puppetlabs_com/puppetlabs-stdlib/4.3.2/cache/tmp-unpacker20141021-394
72-yo77p8/puppetlabs-stdlib-4.3.2/spec/unit/puppet/provider/file_line

I'm running under windows 7, with Ruby 2.1.3p242 (2014-09-19 revision 47630) [x64-mingw32] and the following gems installed :

*** LOCAL GEMS ***

activemodel (4.2.0.beta2)
activesupport (4.2.0.beta2)
bigdecimal (1.2.4)
builder (3.2.2)
facter (2.2.0 x64-mingw32)
faraday (0.9.0)
ffi (1.9.6 x64-mingw32)
her (0.7.2)
hiera (1.3.4)
highline (1.6.21)
i18n (0.7.0.beta1)
io-console (0.4.2)
json (1.8.1)
json_pure (1.8.1)
librarian (0.1.2)
librarian-puppet (2.0.0, 1.4.0)
minitar (0.5.4)
minitest (5.4.2, 4.7.5)
multi_json (1.10.1)
multipart-post (2.0.0)
open3_backport (0.0.3)
open4 (1.3.4)
psych (2.0.5)
puppet (3.7.1)
puppet_forge (1.0.3)
rake (10.1.0)
rdoc (4.1.0)
rsync (1.0.9)
ruby-git (0.2.2)
rubygems-update (2.4.2)
sys-admin (1.6.3)
test-unit (2.1.3.0)
thor (0.19.1)
thread_safe (0.3.4)
tzinfo (1.2.2)
win32-api (1.5.2 universal-mingw32)
win32-dir (0.5.0, 0.4.9)
win32-process (0.7.4)
win32-security (0.2.5)
win32-service (0.8.6)
win32console (1.3.2)
windows-api (0.4.3)
windows-pr (1.2.4)

Here is my Puppetfile:

forge "https://forgeapi.puppetlabs.com"
mod 'stdlib', :git => 'https://github.com/puphpet/puppetlabs-stdlib.git'
mod 'concat', :git => 'https://github.com/puphpet/puppetlabs-concat.git'
mod 'apt', :git => 'https://github.com/puphpet/puppetlabs-apt.git'
mod 'yum', :git => 'https://github.com/puphpet/puppet-yum.git'
mod 'vcsrepo', :git => 'https://github.com/puphpet/puppetlabs-vcsrepo.git'
mod 'ntp', :git => 'https://github.com/puphpet/puppetlabs-ntp.git'
mod 'firewall', :git => 'https://github.com/puppetlabs/puppetlabs-firewall.git'
mod 'git', :git => 'https://github.com/puphpet/puppetlabs-git.git'
mod 'swap_file', :git => 'https://github.com/petems/puppet-swap_file.git'
mod 'apache', :git => 'https://github.com/puphpet/puppetlabs-apache.git'
mod 'nginx', :git => 'https://github.com/puphpet/puppet-nginx.git'
mod 'php', :git => 'https://github.com/puphpet/puppet-php.git'
mod 'composer', :git => 'https://github.com/puphpet/puppet-composer.git'
mod 'puphpet', :git => 'https://github.com/puphpet/puppet-puphpet.git'
mod 'puppi', :git => 'https://github.com/puphpet/puppi.git'
mod 'supervisord', :git => 'https://github.com/puphpet/puppet-supervisord.git'
mod 'drush', :git => 'https://github.com/puphpet/puppet-drush.git'
mod 'rvm', :git => 'https://github.com/maestrodev/puppet-rvm.git'
mod 'nodejs', :git => 'https://github.com/puppetlabs/puppetlabs-nodejs.git'
mod 'python', :git => 'https://github.com/stankevich/puppet-python.git'
mod 'mysql', :git => 'https://github.com/puphpet/puppetlabs-mysql.git'
mod 'postgresql', :git => 'https://github.com/puphpet/puppetlabs-postgresql.git'
mod 'sqlite', :git => 'https://github.com/puppetlabs/puppetlabs-sqlite.git'
mod 'mongodb', :git => 'https://github.com/puphpet/puppetlabs-mongodb.git'
mod 'redis', :git => 'https://github.com/puphpet/puppet-redis.git'
mod 'mailcatcher', :git => 'https://github.com/puphpet/puppet-mailcatcher.git'
mod 'beanstalkd', :git => 'https://github.com/puphpet/puppet-beanstalkd.git'
mod 'rabbitmq', :git => 'https://github.com/puphpet/puppetlabs-rabbitmq.git'
mod 'staging', :git => 'https://github.com/puphpet/puppet-staging.git'
mod 'elasticsearch', :git => 'https://github.com/puphpet/puppet-elasticsearch.git'

I'm not very familiar with ruby & puppet, but I've made a vagrant project with puphpet to build a base box and push it on a private git repository. So I need to exclude vendors from it & provide a way to install them later. But I'm fighting with it since yesterday, under a windows environement where a lot of missing gems where required but not specified in the installation procedure or as librarian dependencies :hear_no_evil:

:information_source: Tips for windows users, if it can help for further cases: I've installed the following gems in order to run librarian-puppet so far:

  • win32-api
  • win32-dir
  • win32-process
  • win32-security
  • win32-service
  • win32console
  • windows-api
  • windows-pr
  • minitar
  • sys-admin

ogizanagi avatar Oct 21 '14 08:10 ogizanagi

FYI. I'm getting this on one of my build agents now too. It just started failing within the last 36 hours. I have 30 some other build agents as well were the command runs ok. All are running windows server 2008. I'll look to see what kind of config change may have happened to this one to cause this issue and report back.

Breeze773 avatar Apr 16 '15 13:04 Breeze773

Any fixes?

RehanSaeed avatar Mar 07 '16 12:03 RehanSaeed