Skip to content

Voyager crash after UnexpectedEOFError: unexpected end of input #94

Open

Description

@NiKrause

Environment:

This morning, I found Voyager in a situation where an error was thrown and obviously NodeJS then ended the execution as usual.
Watching the stack trace, the issue arised during an:

OrbitDB sync operation (sync.js:201) where a stream (it-byte-stream) suddenly ends.

The interesting situation is now, when ever I restart Voyager, it appears to happen again after a few seconds. Voyager loads all pinned OrbitDBs. Closing all browsers which might have interacted with Voyager pauses the behavior. Probably there is again an inconsistency in a db.

 voyager:host:error 200 user is not authorized to add +0ms
file:///root/voyager/node_modules/.pnpm/[email protected]/node_modules/it-byte-stream/dist/src/index.js:94
                        throw new UnexpectedEOFError('unexpected end of input');
                              ^

UnexpectedEOFError: unexpected end of input
    at Object.read (file:///root/voyager/node_modules/.pnpm/[email protected]/node_modules/it-byte-stream/dist/src/index.js:94:31)
    at async Object.read (file:///root/voyager/node_modules/.pnpm/[email protected]/node_modules/it-length-prefixed-stream/dist/src/index.js:45:37)
    at async read (file:///root/voyager/node_modules/.pnpm/@[email protected]/node_modules/@libp2p/multistream-select/dist/src/multistream.js:22:17)
    at async Module.readString (file:///root/voyager/node_modules/.pnpm/@[email protected]/node_modules/@libp2p/multistream-select/dist/src/multistream.js:33:17)
    at async Module.select (file:///root/voyager/node_modules/.pnpm/@[email protected]/node_modules/@libp2p/multistream-select/dist/src/select.js:72:20)
    at async ConnectionImpl.newStream [as _newStream] (file:///root/voyager/node_modules/.pnpm/[email protected]/node_modules/libp2p/dist/src/upgrader.js:331:50)
    at async ConnectionImpl.newStream (file:///root/voyager/node_modules/.pnpm/[email protected]/node_modules/libp2p/dist/src/connection/index.js:94:24)
    at async task (file:///root/voyager/node_modules/.pnpm/@[email protected]/node_modules/@orbitdb/core/src/sync.js:194:26)
    at async file:///root/voyager/node_modules/.pnpm/[email protected]/node_modules/p-queue/dist/index.js:230:36
Emitted 'error' event at:
    at task (file:///root/voyager/node_modules/.pnpm/@[email protected]/node_modules/@orbitdb/core/src/sync.js:201:20)
    at async file:///root/voyager/node_modules/.pnpm/[email protected]/node_modules/p-queue/dist/index.js:230:36 {
  code: 'ERR_UNEXPECTED_EOF'
}

Node.js v20.18.3

Activity

  1. changed the title [-]Voyager Crash after UnexpectedEOFError: unexpected end of input[/-] [+]Voyager crash after UnexpectedEOFError: unexpected end of input[/+] on Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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