Skip to content
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

Bower dependencies causing Che build to fail #1827

Closed
helderm opened this issue Jul 18, 2016 · 5 comments
Closed

Bower dependencies causing Che build to fail #1827

helderm opened this issue Jul 18, 2016 · 5 comments
Labels
kind/enhancement A feature request - must adhere to the feature request template.

Comments

@helderm
Copy link

helderm commented Jul 18, 2016

While performing a full build on Che through Docker, I'm getting errors during the execution of che-dashboard-war project caused by Bower failing to get a status on some projects hosted on Github.

Reproduction Steps:

  1. Execute the build command through Docker
$ docker run -it --rm --name build-che -v "$HOME/.m2:/home/user/.m2" -v "$PWD":/home/user/che-build -w /home/user/che-build codenvy/che-dev mvn -DskipTests=true -Dgwt.compiler.localWorkers=2 -T 1C -Dskip-validate-sources clean install

Expected behavior:

Succesfully compiled binaries

Observed behavior:
The build is failing during the Bower installation phase of some packages. The package itself seems to be different in every run, which would suggest that a timeout error may have caused Bower to crash.

[exec] bower card#>=0.1.4                   checkout v2.0.0
[exec] bower angular#~1.3.8                 progress remote: Compressing objects: 100% (10/10), done.
[exec] bower angular#~1.3.8                 resolved https://github.com/angular/bower-angular.git#1.3.20
[exec] bower angular-moment#0.9.0            ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/urish/angular-moment.git", exit code of #128 fatal: unable to access 'https://github.com/urish/angular-moment.git/': Empty reply from server
[exec] 
[exec] Additional error details:
[exec] fatal: unable to access 'https://github.com/urish/angular-moment.git/': Empty reply from server

Che version: SHA 0d16da4
OS and version: Linux trusty 4.2.0-42-generic #49~14.04.1-Ubuntu SMP Wed Jun 29 20:22:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Docker version: Docker version 1.11.2, build b9f10c9
Che install: Docker container
Container version: codenvy/che-dev latest 1f9ad2e2af4d 5 weeks ago 2 GB

Additional information:

  • Problem started happening recently, didn't happen in an older version of Che: Yes
  • Problem can be reliably reproduced, doesn't happen randomly: Yes
@ddementieva
Copy link
Contributor

@helderm Can you check if https://github.com/urish/angular-moment.git repo is available for you?

@ghost
Copy link

ghost commented Jul 19, 2016

@helderm I just worked for me. Make sure you have got no connectivity issues on your host machine and in a container.

@ghost ghost added the kind/question Questions that haven't been identified as being feature requests or bugs. label Jul 19, 2016
@helderm
Copy link
Author

helderm commented Jul 19, 2016

The repo was available from inside the container the moment that I tested, and I had no connectivity issues as can be seen in the log from the other packages installed during the same session. I don't discard that connection may have been slow during build, which may have caused a timeout while installing that package.

I tested it again today, and the build is going fine for me as well. Anyway, I think it would be a plus if the build process were more resilient against this kind of problem. I researched a bit and noticed that Bower timeout can be configured in .bowerrc files by setting the timeout property, which defaults to 60000ms today. None of the .bowerrc files in the repo explicitly sets the timeout, maybe adding a property during build that customizes this value would be beneficial.

@helderm helderm closed this as completed Jul 19, 2016
@helderm helderm reopened this Jul 19, 2016
@TylerJewell TylerJewell added kind/enhancement A feature request - must adhere to the feature request template. and removed kind/question Questions that haven't been identified as being feature requests or bugs. labels Jul 19, 2016
@TylerJewell
Copy link

@benoitf - please consider this. FYI, this docker image has been moved out of /codenvy/dockerfiles into /che/dockerfiles/che-dev.

@TylerJewell
Copy link

Updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

No branches or pull requests

3 participants