New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git Pull on Stack Deploy fails with valid URL #1926
Comments
Portainer send an invalid git request to the server (it appends
|
This is likely a pretty major bug (missing multi_ack support) in This is a real deal-breaker for us. |
Out of curiosity, are bug fixed prioritized for businesses with a support subscription? |
@turbo FYI I have implemented alternative method for VSTS users: https://marketplace.visualstudio.com/items?itemName=OlliJanatuinen.portainer-deploy |
I work for a Microsoft oriented company which is trying to adopt Docker. |
Hi @GrumpyMeow Based on #1926 (comment)
It has not been resolved, unfortunately no activity on go-git for this one. One solution here would be to use another library than go-git as our git service implementation. |
@turbo / @GrumpyMeow It is nice to see that more VSTS users are joining to Portainer users. But in same time it feels that you are are thinking this bit weird way. On fully adopted implementation VSTS is much more than just Git repository, it also owns whole CI/CD pipeline(s), test automation, all approval chains, work item management, etc. That why IMO VSTS must push services to Portainer rather than Portainer would pull them. But I created another feature request about it to #2448 so please share your though about it on there. |
@olljanat We're using VSTS as a code hosting platform, not as a build platform. Our issue is exactly what I described here and not more. This is a bug in the git pull done by Portainer, it doesn't really matter what service is on the other end. We are paying Portainer customers and would like to see this resolved. VSTS (now called Azure DevOps btw.) integration beyond that might be relevant to other users, but not to us. |
@turbo OK. I understand that this one is bug from users point of view but from code point of view issue is that any of authentication methods which are supported by VSTS have not been implemented to libraries which Portainer currently uses so it is bit more tricky to fix than normal bug fixes. But as VSTS also supports connecting Git repos with SSH , I understood from your comment that options works for you I think that best options would be then finalize PR #2294 and add comment to documentation that with VSTS you need use SSH authentication. Works for you? |
Yes, SSH would be the preferred way to connect to Azure DevOps for us. |
I have found that calling |
@filipvaleriu sorry but I did not understood that how that is related to this issue which talks about git pull issue (not push)? |
Yes, i see now, you are corect about that. |
@olljanat We're trying to go all-in on VSTS: build agents, CI/CD, Pull Requests, GIT, scrumb board, etc. |
@GrumpyMeow OK. Would #1752 work for your use cases? We have about 90% ready solution for it on #2294 which just would need to be finalized. Then what comes to CI/CD into real production envs please comment about it to #2448 |
This issue has been marked as stale as it has not had recent activity, it will be closed if no further activity occurs in the next 7 days. If you are able to reproduce this issue on the latest version of Portainer, feel free to leave a comment and we can pick up this issue again. |
Since no further activity has appeared on this issue I will close it for now. If you are able to reproduce this issue on the latest version of Portainer, feel free to leave a comment and we can pick up this issue again. |
@deviantony Hey Tony. Sorry to dig this out from the dead. I've been affected by the impossibility to deploy a stack from VSTS as well. Considering that the underlying issue in is still not resolved in the go-git package and it's been 3 years since that issue was created. Wouldn't it be possible to use the git executable instead? |
@mateuszdrab yeah that could be an approach, I'm always reluctant to use binaries against libraries for the following main reasons:
That underlying issue in the If we start relaying on more git features in Portainer, I can see this as a direction where we would want to go. In the meantime, any contribution to the discussion/implementation of using the git binary is welcome. cc @ncresswell NOTE: interesting link on the source of golang which is actually doing this behind the scenes here |
Also re-opening this issue. |
Since the opening of this issue, VSTS became Azure DevOps. So to test this I went and set up an Azure repo and tried to deploy a stack from it, but I keep getting Deployment error Additional Info:
|
@deviantony have you reproduced? |
I did not reproduce as I do not have any VSTS related environment. Re-opening for the binary usage consideration. |
@itsconquest I think you neeed to take out the credentials from the URL and put it in the authentication section within portainer. Then you should see error 400 - the issue I'm experiencing also. When using the PAT, you can put anything for the username, and the PAT for the password. |
Ah yes it seems that I can indeed reproduce this including the appending of |
Closed via #5070 |
) * merge capabilities changes from Chaim * refactor(docker/switch/component): implement new design [EE=3688] * code review issues * merge code * feat(ui): UI improvements node details screen EE-3468 (#1926) * merge code * fix encode secret toggle bug on adding secret page * fixed a bug for service webhook toggle
Bug description
VSTS Git URLs look like this:
where
repo
is the name of the repository. The bug is that portainer fails to pull a valid repo with the following error message:Expected behavior
The same as
git clone
, which doesn't fail:Clones the repo just fine.
Technical details:
docker run -p 9000:9000 portainer/portainer
): stackThe text was updated successfully, but these errors were encountered: