This category is for issues regarding specific apps, NOT general issues with YunoHost.
on
This form is written in English but feel free to write in French if you’re more comfortable!
on
What app is this about, and its version
Gancio 1.28.2~ynh2
What YunoHost version are you running
12.1.41.2
What type of hardware are you using
Raspberry Pi 3, 4+
Describe your issue
I currently am unable to log into Gancio with user I’ve referenced other posts about the same topic so far and still am unable to log in. Here’s what I’ve done so far:
Install via the Application tab on the admin panel with a email and password selected
Post install, unable to log in
Checked Gancio Users table in DB, no user is created.
Using other posts, create users, one ‘admin’ and one ‘user’ with emails of format [user]@[my domain] and a provided password using the gancio CLI via ./server/cli.js users create
Checked Users table in DB again, both users exist in the table, and are active (Note: the admin user has no value in the “is_admin” column)
Attempted to login with both users, error “Could not log in. Check your login info.”
Network tab shows “403” for /api/user. /api/login returns 200
Nginx logs show no errors
Tried logging in via incognito tab, same error
Tried changing the password via the CLI, same error with the new password
Forced-upgrade to see if new accounts got picked up, same login error
I haven’t edited the permission in the yunohost config. It has all_users and visitors permissions. I also tried it via incognito mode which has no existing cookies stored.
In the incognito browser window I tried:
accessing gancio via the dashboard after logging into yunohost
accessing gancio via the direct url while not logged in.
Both situations give the same could not log in error unfortunately.
As an experiment, I manually updated the “is_admin” column in the Users table to be set to true for my admin user (when I created my admin user via the CLI that column was not set). And that didn’t seem to work either
Mybe it’s a similar problem as it was in mobilizon.
Try if it works after first logging out of the yunohost sso.
Or potential workaround, if not able to fix the SSO, then maybe… yunohost app setting gancio main.auth_header -v false && yunohost app ssowatconf
Yes, the 403 led me to believe initially that maybe something in the DB was misconfigured and the app was unable to ID what permissions the user should have. The dead end on this for me was that a) I didn’t see any explicit 403 returns in the gancio source and b) couldn’t find if and/or how the yunohost SSO was integrated as the latest gancio source has dropped oauth support and I hadn’t picked through previous commits yet to see what the current YH version source could look like.
In hopes to get better understanding of the error, I went ahead and tried a few more scenarios only to get more odd behavior! Here’s what I tried:
Scenario 1: I created a user on gancio for a friend that does not have a user on the yunohost sso. They are able to log in (no header workaround run yet)
Scenario 2: I opened an incognito window (brave browser) and attempted to login, got the same 403. Ran tmb’s workaround and tried again but got the same error.
All of the following were tested after running Tmb’s workaround command:
Scenario 3: Tried logging in via brave browser (not logged into yunohost) and was able to do so successfully
Scenario 4: Tried logging in via duckduckgo browser and was able to do so successfully.
I wasn’t able to log in until I created the fake user, but I didn’t try in other browsers before creating it to see if that had any affect.