Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Instructions on Debian 9 #21

Open
adchristodoulou opened this issue Nov 10, 2020 · 7 comments
Open

Error with Instructions on Debian 9 #21

adchristodoulou opened this issue Nov 10, 2020 · 7 comments

Comments

@adchristodoulou
Copy link

adchristodoulou commented Nov 10, 2020

> `root@ssb-room:~# cat > ./create-room <<EOF
> #!/bin/bash
> memory_limit=$(($(free -b --si | awk '/Mem\:/ { print $2 }') - 200*(10**6)))
> docker run -d --name room \
>    -v ~/ssb-room-data/:/home/node/.ssb/ \
>    --network host \
>    --restart unless-stopped \
>    --memory "\$memory_limit" \
>    staltz/ssb-room
> EOF
root@ssb-room:~# nano create-room
root@ssb-room:~# chmod +x ./create-room
root@ssb-room:~# ./create-room
WARNING: Your kernel does not support swap limit capabilities or the cgroup is n                                                                                                                               ot mounted. Memory limited without swap.
a386438bbf343109579a460580442aa9e177511dc84e78b2eef885e747553ed9
root@ssb-room:~# cat > ./room <<EOF
> #!/bin/sh
> docker exec -it room ssb-room \$@
> EOF
root@ssb-room:~# chmod +x ./room
root@ssb-room:~# ./room check
{ message: 'no async:whoami',
  name: 'Error',
  stack:
   'Error: no async:whoami\n    at Object.localCall (/home/node/.npm-global/lib/                                                                                                                               node_modules/ssb-room/node_modules/muxrpc/local-api.js:29:13)\n    at Object.<an                                                                                                                               onymous> (/home/node/.npm-global/lib/node_modules/ssb-room/node_modules/muxrpc/l                                                                                                                               ocal-api.js:37:22)\n    at Object.request (/home/node/.npm-global/lib/node_modul                                                                                                                               es/ssb-room/node_modules/muxrpc/stream.js:48:17)\n    at PacketStream._onrequest                                                                                                                                (/home/node/.npm-global/lib/node_modules/ssb-room/node_modules/packet-stream/in                                                                                                                               dex.js:161:17)\n    at PacketStream.write (/home/node/.npm-global/lib/node_modul                                                                                                                               es/ssb-room/node_modules/packet-stream/index.js:134:41)\n    at /home/node/.npm-                                                                                                                               global/lib/node_modules/ssb-room/node_modules/muxrpc/pull-weird.js:56:15\n    at                                                                                                                                /home/node/.npm-global/lib/node_modules/ssb-room/node_modules/pull-stream/sinks                                                                                                                               /drain.js:24:37\n    at /home/node/.npm-global/lib/node_modules/ssb-room/node_mo                                                                                                                               dules/pull-goodbye/node_modules/pull-stream/throughs/filter.js:17:11\n    at Obj                                                                                                                               ect.cb (/home/node/.npm-global/lib/node_modules/ssb-room/node_modules/packet-str                                                                                                                               eam-codec/index.js:111:11)\n    at drain (/home/node/.npm-global/lib/node_module                                                                                                                               s/ssb-room/node_modules/pull-reader/index.js:39:14)' }

`

I created a new DO $5 box on Debian 9 and followed the instructions in https://github.com/staltz/ssb-room/blob/master/manual-setup.md to the letter. No problems at all until I got to the ./room check step, where I got the above.

There was a warning in ./create-room, but I didn't follow what that meant.

@adchristodoulou
Copy link
Author

However, by visiting my room's IP address, it seems to be working OK.

@danmackinlay
Copy link

Oh, that error is the same as on OVH #19

@danmackinlay
Copy link

Hm. I am wondering if there is perhaps a problem with the instructions, since we are both getting similar weird errors in similar ways. To clarify, in install.md I am not always sure which directory the commands should be executed as, and as which user. on the default DO image there seem to be two options for user debian and root and two corresponding obvious directories to execute commands in, /home/debian and /root. Are we executing things in the wrong place or as the wrong user?

@danmackinlay
Copy link

BTW, docker is included in the package repo for Debian 10 which could save a few steps in those instructions.

@adchristodoulou
Copy link
Author

If it helps, I executed everything as the root user.

@danmackinlay
Copy link

Which directory are you in? ~root or ~debian?

Disclaimer: I'm no expert here. and this is possibly a distraction.

AFAICT the default DO login leaves you in /root which user debian does not have access to, but then the created directory /root/ssb-room-data is assigned to user debian, which seems weird. Maybe this is fine in docker land, though?

@adchristodoulou
Copy link
Author

I'm in /root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants