Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Cannot pull/push #36

Open
wernight opened this issue Jun 28, 2016 · 8 comments
Open

Cannot pull/push #36

wernight opened this issue Jun 28, 2016 · 8 comments

Comments

@wernight
Copy link

wernight commented Jun 28, 2016

Trying to do a pull/push returns:

{"status":"error","message":"Failed to pull repo!"}

Environment:

  • Using wernight/codiad Docker image

  • Running inside the Terminal plugin (or directly inside the shell as PHP's user):

    $ ssh -T [email protected]
    Welcome to GitLab, John Doe!
    
  • Running from inside the Terminal plugin a git pull also works.

  • This plugins remote info look good.

PHP's logs seem pretty parse about the cause of this issue. I only see:

2016/06/28 22:22:22 [error] 13#0: *469 connect() failed (111: Connection refused) while connecting to upstream, client: ::ffff:10.234.0.2, server: _, request: "GET /plugins/Codiad-CodeGit-master/controller.php?action=status&path=myproject HTTP/1.1", upstream: "fastcgi://[::1]:9000", host: "codiad.example.com", referrer: "http://codiad.example.com/"

@wernight
Copy link
Author

It's visibly due to the reliance on some binaries as this issue is only on Alpine Linux and not on Debian based.

@Andr3as
Copy link
Owner

Andr3as commented Jul 3, 2016

I'm currently not able to test it with Alpine Linux. Did you checked the dependencies?

@wernight
Copy link
Author

wernight commented Jul 4, 2016

Yes dependencies are met. The simplest to repro this bug is using Docker:

$ docker run --rm -p 8080:80 wernight/codiad:alpine

@Andr3as
Copy link
Owner

Andr3as commented Jan 16, 2017

Sorry for my late reply. I tested it today with your docker image and was not able to reproduce your issue.

@wernight
Copy link
Author

You're sure you're using the :alpine tag? I don't remember upgrading it, so it should still reproduce (that is not pull or push without actually giving an error if I recall).

@Andr3as
Copy link
Owner

Andr3as commented Jan 17, 2017

Okay, thanks, I missed that.

After some digging: Alpine does not provide Bash as shell.
Try to change the following in expect.sh
#!/bin/bash
to
#!/bin/sh

I was not able to test it. My alpine docker instance tells me always the following error

  $ ssh -T [email protected]
  ssh: Could not resolve hostname github.com: Try again

After fixing this, I'll come back to you.

@wernight
Copy link
Author

wernight commented Jan 17, 2017 via email

@Andr3as
Copy link
Owner

Andr3as commented Jan 18, 2017

At home my container works as it should 🙈.

Now I was able to test the solution from above. I worked for me both on Alpine and on Debian. Could you please verify it on your system?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants