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

Question/Bug: roomdb: the item (<pubkey>) is already on the list #282

Open
geoah opened this issue Dec 24, 2021 · 4 comments
Open

Question/Bug: roomdb: the item (<pubkey>) is already on the list #282

geoah opened this issue Dec 24, 2021 · 4 comments
Labels
Needs investigation Unsure what kind of issue this is

Comments

@geoah
Copy link

geoah commented Dec 24, 2021

Hey there,

I've been trying to play around with ssb and rooms and I'm still trying to wrap my head around some stuff so I'm not really sure if what I'm seeing is an feature or a bug.

I deployed a new go-ssb-room server from e3cea25 using the docker-compose provided and put an nginx with let's encrypt infront of it.

I added my user and used the password method to log in the admin dashboard. So far so good.

I couldn't figure out how to invite myself, and a previous issue (#280 (comment)) mentioned just creating an invite and using it. I tried on both ios and android (0.2112.3) and in both cases, clicking on the link opens the app, I see the request reaches the server (just logs handling json body), but nothing else happens. No error messages on the app or server.

Trying to debug this further, I added some additional logging, and the issue seems to be that the consume method fails around here:
https://github.com/ssb-ngi-pointer/go-ssb-room/blob/e3cea25e25c9173f6a9c878ed71f81454556dbf0/web/handlers/invites.go#L254-L262

The error seems to be the following:

transaction failed, rolling back: roomdb: the item (@<mypubkey>.ed25519) is already on the list

I've also tried to invite a friend as well, at first they seemed to manage to register, but manyverse did nothing (same version on android). After that, they are getting the same error.


Question: Is the constraint that a user can only consume an invite once a bug, a feature, or user error?


ps. Thank you for your hard work at this, both manyverse and rooms sound amazing! :D

@Count042
Copy link

I'm also experiencing this issue. I'm using my own custom docker-compose w/ caddy as a reverse proxy.

@rmdes
Copy link

rmdes commented Feb 18, 2022

I think the origin of this is that roomdb cannot be found/not writeable in the current dockerfiles.
I have double checked and roomdb is writable but it seems it cannot be found, it's like the code expect it to be in a place it is not, since the .env clearly define the REPO, I'm still trying to get this working !

@staltz
Copy link
Member

staltz commented Feb 18, 2022

@HendrikPetertje Could you help these folks with Docker?

@decentral1se
Copy link
Member

Hey, some thoughts to push this along...

I deployed a new go-ssb-room server from e3cea25 using the docker-compose provided and put an nginx with let's encrypt infront of it.

Have you tried updating to the latest release / HEAD? We're running with traefik as proxy and not seeing these issues.

Question: Is the constraint that a user can only consume an invite once a bug, a feature, or user error?

As I understand it, invites are issued on a per-user basis. One invite, one user. There was a bug with rejecting users from being invited who had already been invited but that was hopefully fixed with 49aaff9.

@decentral1se decentral1se added the Needs investigation Unsure what kind of issue this is label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs investigation Unsure what kind of issue this is
Projects
None yet
Development

No branches or pull requests

5 participants