Error 500 after login in local network

:uk:/:us: Message template (english)

My YunoHost server

Hardware: HP-T630
YunoHost version: 11.2.4
I have access to my server : Through SSH & through the webadmin & direct access via keyboard / screen
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

today I updated yunohost to 11.2.4 using web-panel on my local home network. After rebooting machine I get 500 error after login. All the services are accessible and working, but I don’t have access to sso panel.

Nginx shows following error:

2023/09/03 13:22:01 [error] 1010#1010: *160 lua entry thread aborted: runtime error: /usr/share/ssowat/helpers.lua:684: bad argument #2 to 'gsub' (string expected, got nil)
stack traceback:
coroutine 0:
	[C]: in function 'gsub'
	/usr/share/ssowat/helpers.lua:684: in function 'get_data_for'
	/usr/share/ssowat/helpers.lua:593: in function </usr/share/ssowat/helpers.lua:528>, client: 192.168.1.XXX, server: yunohost.local, request: "GET /yunohost/sso/ HTTP/2.0", host: "yunohost.local", referrer: "https://yunohost.local/yunohost/sso/"

#2 argument in gsub function in helpers.lua file is “original_portal_domain” but my config.lua default conf is exactly this:

    -- Default configuration values
    default_conf = {
        portal_scheme             = "https",
        portal_path               = "/ssowat/",
        local_portal_domain       = "yunohost.local",
        domains                   = { conf["portal_domain"], "yunohost.local" },
        session_timeout           = 60 * 60 * 24,     -- one day
        session_max_timeout       = 60 * 60 * 24 * 7, -- one week
        login_arg                 = "sso_login",
        ldap_host                 = "localhost",
        ldap_group                = "ou=users,dc=yunohost,dc=org",
        ldap_identifier           = "uid",
        ldap_enforce_crypt        = true,
        skipped_urls              = {},
        ldap_attributes           = {"uid", "givenname", "sn", "cn", "homedirectory", "mail", "maildrop"},
        allow_mail_authentication = true,
        default_language          = "en",
        theme                     = "default",
        logging                   = "fatal", -- Only log fatal messages by default (so apriori nothing)
        permissions               = {}

the following part is also present:

    -- If you access the SSO by a local domain, change the portal domain to
    -- avoid unwanted redirections.
    if == conf["local_portal_domain"] then
        conf["original_portal_domain"] = conf["portal_domain"]
        conf["portal_domain"] = conf["local_portal_domain"]

and /etc/nginx/conf.d/ssowat.conf doesn’t overwrite any of these.

I tried also:
systemctl restart nginx
systemctl restart slapd

Is there anything else I missed?

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