bowlby
2012-Nov-19 12:01 UTC
[Puppet Users] vcsrepo: Could not create repository (non-repository at path)
Hi, I''m running into a problem using the puppetlabs provided vcsrepo-module. It keeps giving the same error: -------------- notice: /Stage[main]//Vcsrepo[/usr/share/test2]/ensure: Creating repository from latest err: /Stage[main]//Vcsrepo[/usr/share/test2]/ensure: change from absent to latest failed: Could not create repository (non-repository at path) -------------- This is in my vcs.pp and when I run, puppet apply ./vcs.pp I keep getting the error below. When I run git clone as the user it runs fine. Anybody any suggestions? -------------- Exec { path => "/bin:/usr/bin:/sbin:/usr/sbin", } vcsrepo { ''/usr/share/test2'': ensure => latest, provider => git, revision => ''master'', path => ''/usr/share/test2'', user => "user", source => ''git://github.com/puppetlabs/puppetlabs-vcsrepo.git'' } - -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/Oa4SscXpWJ0J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jeff McCune
2012-Nov-20 20:12 UTC
Re: [Puppet Users] vcsrepo: Could not create repository (non-repository at path)
On Mon, Nov 19, 2012 at 7:01 AM, bowlby <bramenning@gmail.com> wrote:> Hi, > I''m running into a problem using the puppetlabs provided vcsrepo-module. It > keeps giving the same error: > > -------------- > notice: /Stage[main]//Vcsrepo[/usr/share/test2]/ensure: Creating repository > from latest > err: /Stage[main]//Vcsrepo[/usr/share/test2]/ensure: change from absent to > latest failed: Could not create repository (non-repository at path) > --------------I suggest running with the --debug flag turned on and then comparing the git commands that Puppet is executing to the commands you execute manually. I suspect there''s a slight difference that''s causing the wrong directory to be used by Puppet or something. If you''re still stuck, could you please follow up in this thread with the debug output and the git command you''re executing manually? This information should help us troubleshoot the issue more quickly. -Jeff -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ryan Coleman
2012-Nov-20 20:26 UTC
Re: [Puppet Users] vcsrepo: Could not create repository (non-repository at path)
On Mon, Nov 19, 2012 at 4:01 AM, bowlby <bramenning@gmail.com> wrote:> Hi, > I''m running into a problem using the puppetlabs provided vcsrepo-module. > It keeps giving the same error: > > -------------- > notice: /Stage[main]//Vcsrepo[/usr/share/test2]/ensure: Creating > repository from latest > err: /Stage[main]//Vcsrepo[/usr/share/test2]/ensure: change from absent to > latest failed: Could not create repository (non-repository at path) >Does /usr/share/test2 already exist prior to the Vcsrepo resource being enforced on your system? I can''t find the appropriate bug against vcsrepo right now ( https://projects.puppetlabs.com/projects/modules/issues?query_id=185) but I suspect that this problem stems from a bug where vcsrepo wants to be the one to create the test2 directory and cannot. If this turns out to be your problem, I''ll find/create a bug report on it and send it your way. Sorry for the inconvenience. --Ryan> -------------- > > This is in my vcs.pp and when I run, puppet apply ./vcs.pp > I keep getting the error below. When I run git clone as the user it runs > fine. > Anybody any suggestions? > > -------------- > Exec { path => "/bin:/usr/bin:/sbin:/usr/sbin", } > > vcsrepo { ''/usr/share/test2'': > ensure => latest, > provider => git, > revision => ''master'', > path => ''/usr/share/test2'', > user => "user", > source => ''git:// > github.com/puppetlabs/puppetlabs-vcsrepo.git'' > } > - > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/Oa4SscXpWJ0J. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- Ryan Coleman | Modules & Forge | @ryanycoleman | ryancoleman in #puppet -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.