Bug 787540 - The remote end hung up unexpectedly after performing git push (Dancer quick start)
Summary: The remote end hung up unexpectedly after performing git push (Dancer quick s...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Troy Dawson
QA Contact: libra bugs
URL:
Whiteboard:
: 798531 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-06 03:33 UTC by bzhao
Modified: 2015-05-14 22:51 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-19 18:23:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description bzhao 2012-02-06 03:33:12 UTC
Description of problem:
it will prompt error info after git push

Version-Release number of selected component (if applicable):
rhc-0.85.12-1.el6_2.noarch

How reproducible:
always

Steps to Reproduce:
1.create application 
rhc-create-app -a dancer -t perl-5.10

2. Add this upstream dancer repo
cd dancer
git rm -r perl
git commit -a -m "remove stock perl dir to prepare for Dancer"
git remote add upstream -m master git://github.com/openshift/dancer-example.git
git pull -s recursive -X theirs upstream master

3.Then push the repo upstream
git push

  
Actual results:
git push successfully without any error info and you can access your app successfully

Expected results:
git push with error info, can't access this app successfully and it will display Service Temporarily Unavailable

Additional info:
# git push
remote: Successfully installed Test-SharedFork-0.19
remote: Building and testing Test-TCP-1.15 ... fatal: The remote end hung up unexpectedly
error: error in sideband demultiplexer
To ssh://f082450f16d548a588b584c8c668ba6a.rhcloud.com/~/git/dancer.git/
   99f6cd0..a9addfa  master -> master
error: failed to push some refs to 'ssh://f082450f16d548a588b584c8c668ba6a.rhcloud.com/~/git/dancer.git/'

Comment 1 Dan McPherson 2012-02-06 04:08:35 UTC
Troy,
  This looks like one I sent you the other day.  Although I don't see it in your queue now.

Comment 2 Troy Dawson 2012-02-07 20:11:11 UTC
Although it looks similar, it's actually failling at an earlier point, but it keeps going making it look like Test-TCP is the real failure.

...
remote: Configuring HTTP-Server-Simple-0.44 ... OK
remote: Building and testing HTTP-Server-Simple-0.44 ... FAIL
remote: ! Installing HTTP::Server::Simple failed. See /var/lib/libra/f1837cb030fc424281f4b77394f57bd3/.cpanm/build.log for details.
remote: ! Bailing out the installation for HTTP-Server-Simple-PSGI-0.14. Retry with --prompt or --force.
remote: --> Working on Try::Tiny
...

I'll look into this some more.

Comment 3 Troy Dawson 2012-02-07 21:11:29 UTC
I'm not positive that the HTTP-Server-Simple failing is causing the problem or not.  I need to look at a dancer install that worked. The related packages haven't been updated for about a year, so it should be stable.
Test-TCP was working a week ago, and it's version hasn't changed either.

Still investigating.  But if you know of someone who has dancer working on openshift, and they wouldn't mind sending me their build.log, that would help things.

Comment 4 Troy Dawson 2012-02-08 22:30:08 UTC
It looks like it is the HTTP-Server-Simple tests that are failing.
Investigating what is causing that, and hopefully a solution.

Comment 5 Troy Dawson 2012-02-09 14:53:12 UTC
Good news, we figured out what the HTTP-Server-Simple was failing on and know the solution.
Bad news, that didn't fis the Test-TCP error, which is still failing the build.

Comment 6 Troy Dawson 2012-02-10 23:13:02 UTC
The solution is to install the cpan modules without running their tests.
We are testing a solution in the perl cartridge that will make this an option.  It should be out in the next OpenShift release.

Comment 7 Troy Dawson 2012-02-14 15:57:52 UTC
The ability to bypass the cpan tests, and let dancer build again, is now is the openshift dev area. It will make it's way through the release process and should be available in production around February 20.

To bypass the cpan tests and get dancer to build, there is an extra step.  See step 3 below.

-----

1.create application 
rhc-create-app -a dancer -t perl-5.10

2. Add this upstream dancer repo
cd dancer
git rm -r perl
git commit -a -m "remove stock perl dir to prepare for Dancer"
git remote add upstream -m master git://github.com/openshift/dancer-example.git
git pull -s recursive -X theirs upstream master

3. Disable the cpan tests
touch .openshift/markers/disable_cpan_tests
git add .openshift/markers/disable_cpan_tests
git commit -m "disabling cpan tests" .openshift/markers/disable_cpan_tests

4.Then push the repo upstream
git push

-----

Or, we should get the dancer quickstart maintainer to add the file
.openshift/markers/disable_cpan_tests to the quickstart github repo.

Comment 8 Troy Dawson 2012-02-29 15:23:25 UTC
.openshift/markers/disable_cpan_tests is now in the dancer github repo.  When the new openshift update goes out, everything should work.

Comment 9 Troy Dawson 2012-02-29 15:24:00 UTC
The following is a work around until the new openshift is released.
1 - ssh into your dancer application

  rhc-domain-info
(in the dancer application section, find the Git URL section.  You will need
everything between ssh:// and the next /.  That is your user ID and the machine
you are logging into)
  ssh <UserID>@<app>-<domain>.rhcloud.com

(Example)
  ssh c56ef7ae91dcs52n9cf6224001e144be.com

2 - Install the dancer perl modules by hand, without the tests
(This assumes that you followed the dancer instructions exactly and your
application is really called dancer)

  cpanm -n -L ~/dancer/perl5lib Test::Base
  cpanm -n -L ~/dancer/perl5lib YAML
  cpanm -n -L ~/dancer/perl5lib Dancer
  cpanm -n -L ~/dancer/perl5lib Plack::Handler::Apache2

3 - Log out

  exit

4 - Repush your dancer application
  echo "installed perl modules by hand" >> README
  git commit -m "updated README" README
  git push

Everything should work then.

Comment 10 Troy Dawson 2012-02-29 15:24:34 UTC
*** Bug 798531 has been marked as a duplicate of this bug. ***

Comment 11 Meng Bo 2012-03-07 09:58:26 UTC
set status to ON_QA since bug fixed.

Comment 12 Meng Bo 2012-03-07 10:07:17 UTC
verified on devenv_1653, bug has been fixed.


Note You need to log in before you can comment on or make changes to this bug.