Skip to content

Error: ENOENT: no such file or directory, rename gossip.json~ -> gossip.json #745

Description

@hjacobs

I’m trying to set up a local pub server with Docker by following the blog post Setting up SSB-Pub Server. It all works and I could generate and redeem an invite, but the ssb-server process periodically is down (restarting) and I see the following error in the logs:

ssb-server 15.3.0 /root/.ssb logging.level:notice
... 
{ [Error: ENOENT: no such file or directory, rename '/root/.ssb/gossip.json~' -> '/root/.ssb/gossip.json']
  errno: -2,
  code: 'ENOENT',
  syscall: 'rename',
  path: '/root/.ssb/gossip.json~',
  dest: '/root/.ssb/gossip.json' }

Can someone help me with this gossip.json~ error and what it means? gossip.json exists btw, but not gossip.json~.
It looks like the same error as #597 (but #597 has no resolution?).

So while I haven’t found the reason for this ENOENT error, ssb-server generally works fine. Maybe it’s some race condition? If this is expected behavior for atomic file operations, it should at least not log an ERROR I guess?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions