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

one of the uplinks is down, refuse to publish #124

Closed
gywbd opened this issue Sep 19, 2014 · 3 comments
Closed

one of the uplinks is down, refuse to publish #124

gywbd opened this issue Sep 19, 2014 · 3 comments

Comments

@gywbd
Copy link

gywbd commented Sep 19, 2014

i used to install sinopia and it worked very well. i published a few private npm packages to it, all of them were published successfully. but now when i create a new local package and use "npm publish" to publish to sinopia. it was not ok. but if i republish the old package, it still worked. here is the log from sinopia server:

warn --- Server is listening on http://0.0.0.0:4873/
http --> ERR, req: 'GET https://registry.npmjs.org/local-version-number', error: CERT_NOT_YET_VALID
http <-- 503, user: admin, req: 'PUT /local-version-number', error: one of the uplinks is down, refuse to publish
http --> ERR, req: 'GET https://registry.npmjs.org/local-version-number', error: CERT_NOT_YET_VALID
http <-- 503, user: admin, req: 'PUT /local-version-number', error: one of the uplinks is down, refuse to publish
warn --> host registry.npmjs.org is now offline
http <-- 503, user: admin, req: 'PUT /local-version-number', error: one of the uplinks is down, refuse to publish
http <-- 201, user: admin, req: 'PUT /local-cache', bytes: 3125/33
http <-- 503, user: admin, req: 'PUT /local-version-number', error: one of the uplinks is down, refuse to publish

local-cache is the old package which was published before. and local-version-number is the new package which could not be published.

i checked the package.json and don't get any error. so can you tell what the problem is?

thanks!

@rlidwka
Copy link
Owner

rlidwka commented Sep 19, 2014

error: CERT_NOT_YET_VALID

This is the problem. Please, check your system time, maybe it's off by a year or so.

Try to run:

$ curl https://registry.npmjs.org/local-version-number

That should normally output "document not found", but if it fails with SSL error, you'll know where the issue is.

Sinopia needs to reach npm registry to ensure that the name of the new package is available to avoid name collisions, but fails to do so because of an SSL error.

As a workaround, you can remove npm registry from config temporarily, or switch https to http.

@gywbd
Copy link
Author

gywbd commented Sep 19, 2014

thanks, rlidwka.

you are right, system time is wrong and it is off by a year.

@rlidwka rlidwka closed this as completed Sep 21, 2014
@alallier
Copy link

I am receiving this error when trying to publish a local npm package, system time is the correct year

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

3 participants