rlidwka / sinopia

Private npm repository server
5.51k stars 656 forks source link

one of the uplinks is down, refuse to publish? #356

Open ghost opened 8 years ago

ghost commented 8 years ago

I have successfully installed sinopia on docker engine. But failed to publish my first package into it. Below is the error statcktrace

[root@xxxxxx ibm-c3]# npm publish npm ERR! publish Failed PUT 503 npm ERR! Linux 3.10.0-229.4.2.el7.x86_64 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "publish" npm ERR! node v4.2.3 npm ERR! npm v2.14.7 npm ERR! code E503

npm ERR! one of the uplinks is down, refuse to publish : ibm-c3 npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! /root/xuhang/ibm-c3/npm-debug.log

I have already viewed the related topic about this issue like below two, but did not help me. https://github.com/rlidwka/sinopia/issues/289 https://github.com/rlidwka/sinopia/issues/124

Any one can help me? thanks.

MickelSierra85 commented 8 years ago

Hi, do you have internet access?

Can you publish your configuration?

yinrong commented 8 years ago

+1

jennasalau commented 7 years ago

Hi,

I was having this issue and resolved it by setting my companies proxy information on the sinopia server.

Make sure your server can access the uplink urls set in config.yaml

For me since my server is behind a proxy i needed to add the proxy deets.

example in config.yaml

# Proxy for uplinks
http_proxy: http://user:pass@myproxy.com:80
https_proxy: http://user:pass@myproxy.com:80

# a list of other known repositories we can talk to
uplinks:
    npmjs:
         url: https://registry.npmjs.org/
ws-tumx commented 5 years ago

use nrm

DninoAdnane commented 5 years ago

you can comment #proxy=npmjs in file config config.yaml