Skip to content

Publish fails but returns success #43

@ssandler

Description

@ssandler

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 uid2@0.0.2 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions