Gotosocial: Admin interface no authentication

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.9.1 (stable)
What app is this about: GoToSocial

Describe your issue

I have read these (among others mentioning GoToSocial):

I added 2 tags, but could use one for “GoToSocial” in particular, which doesnt exist at the moment.

Context:

  • Installed clean OS on VPS (Debian 12 64bit)
  • Installed Yunohost
  • Installed GTS as first app with first GTS user (different username / pw, so its not a Yunohost user)
  • Changed nothing in config panel
  • Browsed to t.joeldebruijn.nl - GoToSocial and entered the user credentials which gave:

Unauthorized: password/email combination was incorrect: If you arrived at this error during a sign in/oauth flow, please try clearing your session cookies and signing in again; if problems persist, make sure you’re using the correct credentials

  • Did the same from a private browser session, same result.

  • Browsed to SuperSeriousBusiness GoToSocial - GoToSocial and got a “FETCH_ERROR: TypeError: NetworkError when attempting to fetch resource.Dismiss” when entering the instance url

  • SSH to server and tried to look at config.yaml in /var/www and got “access denied”

Sidenote:
I worked with a broken Pleroma package for nearly two years and with Debian 12 I just took the ‘scorched earth’ route, erase server and install something else from scratch.
Any help greatly appreciated.

Share relevant logs or error messages

Lets Encrypt in the domain: https://paste.yunohost.org/raw/aduhogoxud

Updated config for the domain (turned of email): https://paste.yunohost.org/raw/udinutarep

Installing GoToSocial: https://paste.yunohost.org/raw/vufesitezo

There I saw this line:
2024-12-28 09:43:45,628: DEBUG - + ynh_app_setting_set --key=admin --value=me
2024-12-28 09:43:45,716: DEBUG - + ynh_app_setting_set --key=email --value=gotosocial@domain2.tld

Is this domain2.tld wrong or a ‘pointer’ to the used one in reality to make this a pseudonym?

domain2.tld is a pseudonym.

my suggestion is, as you’re just installing, delete everything and start from scratch. You already have domain and certficate correctly installed, so it would take two minutes.

to access /var/www/gotosocial/ as root (ssh login in your ynh and then sudo su - )

then use CLI to promote your user as admin (just in case)

have you read gts-ynh package documentation? gotosocial_ynh/doc/ADMIN.md at master · YunoHost-Apps/gotosocial_ynh · GitHub (also available in ynh admin interface for this application)

manually delete all cookies in browser and review any browser add-on is not blocking token storage.

can you access as user to domain2.tld/user? so might be that user is not an admin so could not access domain2.tld/admin?

just my thoughts.

blow the thing and start again :smiley:

I could not be more specific as this “unautorized credentials” usually happens (me) in mobile browser as I have very aggressive restrictions on its config.

Thnx, got it working!

  • Used sudo su to get to /var/www/gotosocial/
  • Used CLI to promote to admin

Then searched for more usermanagement options, found them here:
https://www.knthost.com/gotosocial/manage-gotosocial-users-on-the-command-line
Had to use the config flag also so started every command with:
./gotosocial --config-path config.yaml

  • Changed the password to something else
  • Confirmed mail so skipping email confirmation (I dont run mail via YH).
  • Checked again et voila.

Thanks very much!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.