sinopia icon indicating copy to clipboard operation
sinopia copied to clipboard

one of the uplinks is down, refuse to publish?

Open ghost opened this issue 9 years ago • 5 comments

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.

ghost avatar Dec 16 '15 08:12 ghost

Hi, do you have internet access?

Can you publish your configuration?

MickelSierra85 avatar Jan 17 '16 08:01 MickelSierra85

+1

yinrong avatar Jul 20 '16 03:07 yinrong

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:[email protected]:80
https_proxy: http://user:[email protected]:80

# a list of other known repositories we can talk to
uplinks:
    npmjs:
         url: https://registry.npmjs.org/

jennasalau avatar Oct 11 '16 00:10 jennasalau

use nrm

ws-tumx avatar Oct 30 '18 03:10 ws-tumx

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

DninoAdnane avatar Apr 23 '19 14:04 DninoAdnane