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

Publish fails but returns success #43

Open
ssandler opened this issue Mar 4, 2014 · 1 comment
Open

Publish fails but returns success #43

ssandler opened this issue Mar 4, 2014 · 1 comment

Comments

@ssandler
Copy link

ssandler commented Mar 4, 2014

On the client, I ran reggie publish:
%reggie -u http://127.0.0.1:8280 publish uid2-0.0.2.tgz successfully published version 0.0.2 of uid2: http://127.0.0.1:8125/package/uid2/0.0.2 done

On the server side, an error is written to stdout. So the package is not registered, but it still returns success and the client thinks it's been registered.
Cannot stat file /data/packages/uid2-0.0.2.tgz: Error: ENOENT, stat '/data/packages/uid2-0.0.2.tgz'

I'm not sure why it can't stat that file. When I try to publish again, it works fine and shows Registered package [email protected] on the server side (client side output is the same).

I've been publishing several things and I've found roughly a 50% error rate, retrying always works.

Any ideas on fixing the "cannot stat" error as well as making the server return an error if it fails to register the package?

@mengstr
Copy link

mengstr commented May 11, 2014

I'm having the same problem. Publishing is reported as a success at the client but reggie actually failed. Retrying usually makes it work.

Cannot stat file /home/reggie/packages/queueman-0.1.6.tgz: Error: ENOENT, stat '/home/reggie/packages/queueman-0.1.6.tgz'
Registered package [email protected]
MatsMac:queueman matseng$ ./publish.sh 
v0.1.6
queueman-0.1.6.tgz
successfully published version 0.1.6 of queueman: http://npm.example.com:42009/package/queueman/0.1.6
done
MatsMac:queueman matseng$ ./publish.sh 
v0.1.7
queueman-0.1.7.tgz
successfully published version 0.1.7 of queueman: http://npm.example.com:42009/package/queueman/0.1.7
done
MatsMac:queueman matseng$ cat publish.sh 
#!/bin/bash
npm version patch
reggie -u http://npm.example.com:42009 publish

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

2 participants