Replies: 6 comments 5 replies
-
|
Mmmmm shit, okay, that’s not supposed to happen. The first account created on an empty TypeType database should become the admin automatically, even when normal registrations are disabled. If Before deleting anything again, can u run these from the TypeType install directory and send me the output? docker compose exec postgres sh -lc \
'psql -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "SELECT id, email, role, created_at FROM users;"'
docker compose ls
docker volume ls --filter name=postgres_dataAnd can u also open this URL with your TypeType address? On an empty install it should return Don’t delete anything else for now, once I see the output I should be able to tell exactly what TypeType is detecting and how to fix it safely. Also yeah, TypeType should directly send a fresh install to the admin account creation page. I’ll fix that part too :p |
Beta Was this translation helpful? Give feedback.
-
|
Ahhh okay, that’s actually good news :p Your database is empty and the API returns: {"allowRegistration":true,"bootstrapAvailable":true,"localLoginEnabled":true}So the backend is ready to create the first account, and that account will automatically become the admin. Can u open this URL directly? You should get the account creation form there. If it still says registrations are closed, try one hard refresh on that page and send me a screenshot of exactly what it shows, because with the status response above it should not block registration. The missing automatic redirect is definitely a frontend bug though. I already have the hot patch ready so fresh installs will directly open the admin registration page instead of leaving u on the normal UI. |
Beta Was this translation helpful? Give feedback.
-
|
Well, we found the bouncer. The registration route itself is fine; Ktor is rejecting the browser origin before the request reaches it. Your frontend is opened from ALLOWED_ORIGINS=http://xxx:32110If you already have other origins there, keep them and add this one separated by a comma. Then recreate the backend service so it receives the updated environment: docker compose up -d --force-recreate typetype-serverAfter that, retry the form at I'll also make this error more explicit from now on. Thanks for the detailed report. |
Beta Was this translation helpful? Give feedback.
-
|
Now I have a new issue. After logging out, I cannot login again. The backend responds with a 401 "invalid credentials". |
Beta Was this translation helpful? Give feedback.
-
|
One quick check: are you trying to sign in with your email address or with your username? |
Beta Was this translation helpful? Give feedback.
-
|
Ah, mystery solved. For now, use the email address you registered with to sign in. Username login is sneaking into the next version :) |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
I just installed TypeType with the install script, following the documentation. When docker compose up started all the containers, I opened the URL, but TypeType did not ask me to create an admin account.
Then I shut down TypeType and removed all docker volumes assigned to it.
After the restart, which recreated DB etc, the UI loads but still does not ask me to create an admin account.
I tried to create an account manually from the login screen but TypeType tells me that registrations are currently closed.
How can I create one now?
Beta Was this translation helpful? Give feedback.
All reactions