ssb-server icon indicating copy to clipboard operation
ssb-server copied to clipboard

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

Open hjacobs opened this issue 4 years ago • 2 comments

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?

hjacobs avatar Dec 11 '20 13:12 hjacobs

https://github.com/flumedb/atomic-file

staltz avatar Dec 11 '20 14:12 staltz

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

stale[bot] avatar Jun 02 '21 17:06 stale[bot]