git fetch fails with error 255
I've done the following configuration:
- created a deployUser
- granted deployUser full control to local repo folder
- created customAppPool for gitdeployhub with deployUser as the identity
- using TortoisePlink and Putty ssh, not openssh on my git install.
- Created a putty session for bitbucket.org using my custom ssh private key as the auth key.
I can log in to the server as deployUser, and successfully run a git fetch/ git pull from the commandline.
I tried setting environmentVariables="PLINK_PROTOCOL=SSH;GIT_SSH=
With the level of logging going on in gitdeployhub, I can't see what is causing the error 255 on the git fetch.
Do you have any insight on this?
Hi, sorry for the delay, I was on holidays and got back today. The output log (that you can see on the log column, and recently also sent thru System.Diagnostic to deployment.log file) should just capture all the process output, so I don't know how could we get more logging info. Can you share the full deployment log?
quick googling indicates that error is often related to authentication. I haven't used Putty ssh with it though (moved to openssh), but I'd expect it should "just work".
If you check: https://github.com/benjamine/gitdeployhub/blob/master/Web/Engine/Instance.cs
you'll notice Fetch method it's just doing a git fetch using System.Diagnostics.Process class.
that will already include environment variables if set at machine or user level.
you might need to add write permissions on the IIS home directory tab too.