Hacklone / private-bower

A simple private bower registry
Other
665 stars 131 forks source link

Unable to fetch from remote repository #234

Open igrcic opened 8 years ago

igrcic commented 8 years ago

Hi everyone,

I installed private-bower using docker image, and I can register my private modules just fine. But for some reason I cannot fetch packages from public repos:

$ bower i
bower jquery#~2.2.0         not-cached git://myserver:6789/jquery#~2.2.0
bower jquery#~2.2.0            resolve git://myserver:6789/jquery#~2.2.0
bower angular#~1.4.9        not-cached git://myserver:6789/angular#~1.4.9
bower angular#~1.4.9           resolve git://myserver:6789/angular#~1.4.9
bower angular-ui-router#~0.2.17 cached git://myserver:6789/angular-ui-router#0.2.18
bower angular-ui-router#~0.2.17         validate 0.2.18 against git://myserver:6789/angular-ui-router#~0.2.17
bower toastr#~2.1.2                       cached git://myserver:6789/toastr#2.1.2
bower toastr#~2.1.2                     validate 2.1.2 against git://myserver:6789/toastr#~2.1.2
bower angular-translate#~2.9.0            cached git://myserver:6789/angular-translate#2.9.2
bower angular-translate#~2.9.0          validate 2.9.2 against git://myserver:6789/angular-translate#~2.9.0
bower angular-resource#~1.4.9             cached git://myserver:6789/angular-resource#1.4.10
bower angular-resource#~1.4.9           validate 1.4.10 against git://myserver:6789/angular-resource#~1.4.9
bower underscore#~1.8.3                   cached git://myserver:6789/underscore#1.8.3
bower underscore#~1.8.3                 validate 1.8.3 against git://myserver:6789/underscore#~1.8.3
bower angular-translate-storage-cookie#~2.9.0           cached git://myserver:6789/angular-translate-storage-cookie#2.9.2
bower angular-translate-storage-cookie#~2.9.0         validate 2.9.2 against git://myserver:6789/angular-translate-storage-cookie#~2.9.0
bower angular-translate-loader-static-files#~2.9.0      cached git://myserver:6789/angular-translate-loader-static-files#2.9.2
bower angular-translate-loader-static-files#~2.9.0    validate 2.9.2 against git://myserver:6789/angular-translate-loader-static-files#~2.9.0
bower angular-bootstrap#~1.1.2                          cached git://myserver:6789/angular-bootstrap#1.1.2
bower angular-bootstrap#~1.1.2                        validate 1.1.2 against git://myserver:6789/angular-bootstrap#~1.1.2
bower angular-ui-router#~0.2.17                        ECMDERR Failed to execute "git ls-remote --tags --heads git://myserver:6789/angular-ui-router", exit code of #128 fatal: remote error
: access denied or repository not exported: /angular-ui-router

Additional error details:
fatal: remote error: access denied or repository not exported: /angular-ui-router

Next time i run bower install, i get the same error but for some other module:

bower angular-translate-storage-cookie#~2.9.0          ECMDERR Failed to execute "git ls-remote --tags --heads git://myserver:6789/angular-translate-storage-cookie", exit code of #128 fata
l: remote error: access denied or repository not exported: /angular-translate-storage-cookie

Can anyone give some hints please? Do I maybe have some problems with docker image? (ports 5678 and 6789 are up and running)

bower --version
1.7.9
igrcic commented 8 years ago

Hi,

bower search works , it fails over to public repository just fine. Am I hitting ssh key issue?

aecz commented 8 years ago

Same here. It downloads some public packages fine but fail for others, example angular-resize below.

bower angular-bootstrap#~0.14.3                      cached git://bower.gftlabs.com/angular-bootstrap#0.14.3
bower angular-bootstrap#~0.14.3                    validate 0.14.3 against git://bower.gftlabs.com/angular-bootstrap#~0.14.3
bower angular-mocks#~1.4.8                           cached git://bower.gftlabs.com/angular-mocks#1.4.12
bower angular-mocks#~1.4.8                         validate 1.4.12 against git://bower.gftlabs.com/angular-mocks#~1.4.8
bower angular-ripple#*                             checkout master
bower angular-ripple#*                             resolved git://bower.gftlabs.com/angular-ripple#82a04c64fe
bower angular-resize#~1.0.0                         ECMDERR Failed to execute "git ls-remote --tags --heads git://bower.gftlabs.com/angular-resize", exit code of #128 fatal: remote
 error: access denied or repository not exported: /angular-resize

Additional error details:
fatal: remote error: access denied or repository not exported: /angular-resize

Also bower search is working:

>bower se angular-resize
Search results:
    angular-resize https://github.com/rubenv/angular-resize.git
    angular-resize-number-directive https://github.com/jrmatos/angular-resize-number-directive.git
aecz commented 8 years ago

Here what i have done to make it work also im not sure if it is the best solution.

Delete the package that fails in your private-bower. I did it directly from the web interface.

Then, execute bower install --force.