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

How to join my own server? #297

Open
dillfrescott opened this issue Feb 14, 2022 · 9 comments
Open

How to join my own server? #297

dillfrescott opened this issue Feb 14, 2022 · 9 comments
Labels
Documentation Improvements or additions to documentation

Comments

@dillfrescott
Copy link

Got everything set up and created an invite code. But it does nothing in the manyverse app on both desktop and iPhone. What am I doing wrong?

@staltz
Copy link
Member

staltz commented Feb 14, 2022

Have you created an invite link and clicked it?

@dillfrescott
Copy link
Author

Yup. I've tried the button that opens the Manyverse app, that doesn't work, I tried the same on iPhone, doesn't work either.

I tried pasting the direct link into Manyverse and it says it was rejected for some reason.

I tried just the token part of the link too.

Really confusing lol. 😭

@staltz
Copy link
Member

staltz commented Feb 14, 2022

Can you give (lots) more details? Like the version of go-ssb-room used, the version of Manyverse, your operating system and its version, and anything else "unusual" about your setup which may affect this issue.

@rmdes
Copy link

rmdes commented Feb 14, 2022

I managed to get my server running, I managed to identify myself to the server with Manyverse, I see my server in the connection list, but I can't sign-in to it,
image

image
this is what I get when I click on the sign-in to website from Manyverse...

so to clarify, I joined the server using the browser, signed-in using Manyverse client, I'm now connected to my own pub (no idea how to generate invite tho) and then I wanted to the callback to work, so I signed in to the pub from Manyverse (sign in to website) that opened a browser tab with the error above.

using the docker-compose from this very repository

@rmdes
Copy link

rmdes commented Feb 14, 2022

When joining the server from Manyverse :
Nginx log
image

inside the go-ssb-server log :
image

@staltz
Copy link
Member

staltz commented Feb 14, 2022

@rmdes Perhaps what you're experiencing is a chmod permission problem on the SQLite file. Also, note that the Docker in this repo is not maintained by the maintainers, it was contributed by some community member, and we cannot guarantee it works flawlessly.

@rmdes
Copy link

rmdes commented Feb 14, 2022

No worries, maybe I can report feedback upstream, i'm going to look at the permission on the sqlite file
edit : from what I can see inside the container, the user root is the owner of everything.
I saw there is a dockerfile in the issues from someone improving it on the security side (go-ssb-room should run as its own user and not root ideally ?)

@rmdes
Copy link

rmdes commented Feb 14, 2022

Have you created an invite link and clicked it?

How do you even do that if not logged in ? you can't, hence since the callback from the ssb server to manyverse/client does not go through the server even disconnect from manyverse on it's own..that's what I observed.

edit : alright, is there a cli command I can do inside the container to generate an invitation ?

this log show the login in a docker context, I'm going to run this locally outside of docker and see how file permission work
image

this is the file permission inside the container :
image

I'm rebuilding it with some changes to make it run with a non-sudo/root user

@rmdes
Copy link

rmdes commented Feb 14, 2022

Posting this here if anyone need help with the last step from a deb release context :

Are you on a DEB based release install ?
if so I just went through the steps and when the package is installed, the best is to simply
git clone this https://github.com/ssb-ngi-pointer/go-ssb-room or download the source code https://github.com/ssb-ngi-pointer/go-ssb-room/releases/tag/v2.0.6 and unzip it, go inside the directory from your terminal
you need to have Go properly installed (go env and go version should work)
and then
follow the instruction from here https://github.com/ssb-ngi-pointer/go-ssb-room/blob/master/docs/deployment.md#first-admin-user

you will have to go inside the cmd/ directory and do "go build" inside the insert-user directory.
once that is done simply copy paste the last command instruction ./add-user from ith your own SSB profile
and you will have your first admin user.

./insert-user -repo "/var/lib/go-ssb-room" "@YourSSBKEY"

You can repeat that command with other @ ssb ID for friends that you want to put as admin or moderator.

@decentral1se decentral1se added the Documentation Improvements or additions to documentation label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants