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 not downloading Packges #258

Open
ephillipe opened this issue Jan 30, 2017 · 0 comments
Open

Bower not downloading Packges #258

ephillipe opened this issue Jan 30, 2017 · 0 comments

Comments

@ephillipe
Copy link

ephillipe commented Jan 30, 2017

I'm trying use Private Bower with http because my infra limitations. Then I install Private-Bower in a Docker container and a Git HTTP Server pointing to repository folder.

This WORK
$ git ls-remote --tags --heads http://git.bower.alterdata-cirrus-cluster.net/angular/.git

This Does NOT WORK
$ git ls-remote --tags --heads http://git.bower.alterdata-cirrus-cluster.net/angular
fatal: repository 'http://git.bower.alterdata-cirrus-cluster.net/angular/' not found

Private Bower Docker

private-bower:
    image: tandrup/private-bower
    environment:
      ADDRESS: bower.alterdata-cirrus-cluster.net
    volumes:
    - fs-xxxxxxxx/:/data

Git HTTP Server

cirocosta-gitserver-http:
    image: cirocosta/gitserver-http
    volumes:
    - fs-xxxxxxxx/gitRepoCache:/var/lib/git

Git HTTP Server - Error

30/01/2017 16:51:3810.42.118.98 - - [30/Jan/2017:18:51:38 +0000] "GET /angularjs HTTP/1.1" 404 142 "-" "node/v6.9.4 linux x64"

Local bower command error

erick.cirrus@pat1731-lnx ~/Desenvolvimento/karoo-widgets-chat/client $ bower -V install angularjs
bower angularjs#*           not-cached http://git.bower.alterdata-cirrus-cluster.net/angularjs#*
bower angularjs#*              resolve http://git.bower.alterdata-cirrus-cluster.net/angularjs#*
bower angularjs#*             download http://git.bower.alterdata-cirrus-cluster.net/angularjs
bower angularjs#*                EHTTP Status code of 404

Stack trace:
Error: Status code of 404
    at createError (/usr/lib/node_modules/bower/lib/util/createError.js:4:15)
    at Request.<anonymous> (/usr/lib/node_modules/bower/lib/util/download.js:91:36)
    at emitOne (events.js:101:20)
    at Request.emit (events.js:188:7)
    at Request.onRequestResponse (/usr/lib/node_modules/bower/lib/node_modules/request/request.js:951:10)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:474:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
    at Socket.socketOnData (_http_client.js:363:20)
From previous event:
    at RetryOperation._fn (/usr/lib/node_modules/bower/lib/util/download.js:41:10)
    at RetryOperation.attempt (/usr/lib/node_modules/bower/lib/node_modules/retry/lib/retry_operation.js:56:8)
    at download (/usr/lib/node_modules/bower/lib/util/download.js:36:15)
    at UrlResolver._download (/usr/lib/node_modules/bower/lib/core/resolvers/UrlResolver.js:133:12)
    at UrlResolver._resolve (/usr/lib/node_modules/bower/lib/core/resolvers/UrlResolver.js:96:17)

Console trace:
Error
    at StandardRenderer.error (/usr/lib/node_modules/bower/lib/renderers/StandardRenderer.js:81:37)
    at Logger.<anonymous> (/usr/lib/node_modules/bower/lib/bin/bower.js:110:26)
    at emitOne (events.js:96:13)
    at Logger.emit (events.js:188:7)
    at Logger.emit (/usr/lib/node_modules/bower/lib/node_modules/bower-logger/lib/Logger.js:29:39)
    at /usr/lib/node_modules/bower/lib/commands/index.js:48:20
    at _rejected (/usr/lib/node_modules/bower/lib/node_modules/q/q.js:844:24)
    at /usr/lib/node_modules/bower/lib/node_modules/q/q.js:870:30
    at Promise.when (/usr/lib/node_modules/bower/lib/node_modules/q/q.js:1122:31)
    at Promise.promise.promiseDispatch (/usr/lib/node_modules/bower/lib/node_modules/q/q.js:788:41)
System info:
Bower version: 1.8.0
Node version: 6.9.4
OS: Linux 4.4.0-59-generic x64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant