Hello Vincent, Thank you for your response.
*fatal: could not create work tree dir 'test-packr-clone': Permission denied"* *'test-packr-clone'* is the repository which i need to clone in my image. Please refer the attached file for permission details which is created by ansible playbook. As per my knowledge, when we clone git as deploy user then the ownership of the file (directory) should be deploy by default if it able to fetch the repository. The issue i am facing is how I can fetch my code from Gitlab during image creation still i am out of ideas. On Wednesday, January 2, 2019 at 11:02:52 PM UTC+5:30, Vincent Rubiolo wrote: > > Hi Tekchand, > > Rickard already provided a lot of useful information about the SSH > connection. On my end, I wanted to ask: could this be a file permission > issue? > I see > >> *fatal: could not create work tree dir 'test-packr-clone': Permission >> denied"* > > which hints to me at a file permission problem when creating the clone > (i.e during sth like 'mkdir'). > > Which directory are you calling the 'git clone' command from (this is not > obvious from your Playbook)? I'd check you have write rights to that > directory with your user or switch to one where you do. > > HTH, > > Vincent > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/1c520210-7c8d-4bdf-ab72-8259bcf53f7c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
