ssbc / ssb-blobs

blob gossiping ssb-subprotocol
MIT License
12 stars 11 forks source link

can't blobs.add anymore #43

Open cryptix opened 3 years ago

cryptix commented 3 years ago

I'm trying to re-add some files I used to share but when I do ssb-server blobs.add $file I just get a (wrong) hash and the server crashes with this error:

/home/cryptix/ssb/server/node_modules/multiblob/index.js:210%)
        if(err) throw explain(err, 'no callback provided')
                ^

Error: no callback provided
    at cb (/home/cryptix/ssb/server/node_modules/multiblob/index.js:210:23)
    at /home/cryptix/ssb/server/node_modules/multiblob/index.js:235:28
  Error: could not write to tmpfile
    at /home/cryptix/ssb/server/node_modules/multiblob/index.js:235:31
    at next (/home/cryptix/ssb/server/node_modules/pull-write-file/index.js:14:26)
    at /home/cryptix/ssb/server/node_modules/pull-stream/throughs/map.js:19:9
    at /home/cryptix/ssb/server/node_modules/pull-stream/throughs/through.js:19:9
    at source (/home/cryptix/ssb/server/node_modules/muxrpc/pull-weird.js:47:22)
    at /home/cryptix/ssb/server/node_modules/pull-stream/throughs/through.js:16:14
    at /home/cryptix/ssb/server/node_modules/pull-stream/throughs/map.js:11:7
    at /home/cryptix/ssb/server/node_modules/pull-write-file/index.js:19:35
    at FSReqCallback.wrapper [as oncomplete] (fs.js:638:5)
  Error: stream ended with:1423 but wanted:4096
    at drain (/home/cryptix/ssb/server/node_modules/pull-reader/index.js:43:26)
    at /home/cryptix/ssb/server/node_modules/pull-reader/index.js:63:18
    at /home/cryptix/ssb/server/node_modules/pull-reader/index.js:114:13
    at drain (/home/cryptix/ssb/server/node_modules/stream-to-pull-stream/index.js:126:18)
    at Socket.<anonymous> (/home/cryptix/ssb/server/node_modules/stream-to-pull-stream/index.js:143:5)

The hash isn't available after restart, so that's good but I don't know what to do about this error... I tried it with v16 and v15 of ssb-server, v14 sadly doesn't build anymore for me (some leveldb/v8 problem).