MID server auto upgrade issue

Mahesh23
Mega Sage

Hello all,

During servicenow upgrades MID server failed to upgrade stating "Interactive authentication required" error because of missing permission(s)." in the wrapper log. Concerned with this, is my query below 

In order to access MID server host from servicenow mid_server role is necessary similarly is there any necessary role that a user needs to have at the host to connect with servicenow.

Thanks in advance

 

9 REPLIES 9

have the same problem 😥

haojie zhang
Tera Contributor

have the same problem 😥

Preston_83
Tera Contributor

We discovered that the application was trying to start before our LDAP connections were established and systemd wasn't able to find our application user.  We ended up putting the user in the /etc/passwd file to get around this issue. 

Per Kristian1
Tera Expert

We have created a PolicyKit Rule to mitigate this error. The mid server user is given access to stop and start the systemctl service:

 

cd /etc/polkit-1/rules.d
vim 10-service-auth.rules
 
polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.systemd1.manage-units" &&
            subject.user == "servicenow") {
            var serviceName = action.lookup("unit");
            if (serviceName.indexOf("mid") == 0) {
                    return polkit.Result.YES;
            }
    }
});

 

dickhirsch
Giga Guru

see this KB