Troubleshooting Login Timeouts

By default, the Uyuni Web UI requires users to log in again after 30 minutes. Depending on your environment, you might want to adjust the login timeout value.

To adjust the value, you need to make the change in both rhn.conf and web.xml. Ensure you set the value in seconds in /etc/rhn/rhn.conf, and in minutes in web.xml. The two values must equal the same amount of time.

For example, to change the timeout value to one hour, set the value in rhn.conf to 3600 seconds, and the value in web.xml to 60 minutes.

Procedure: Adjusting the Web UI Login Timeout Value
  1. On the container host, open a command line inside the server container:

    mgrctl term
    1. Open /etc/rhn/rhn.conf and add or edit this line to include the new timeout value in seconds:

      web.session_database_lifetime = <Timeout_Value_in_Seconds>
    2. Save and close the file.

    3. Open /etc/tomcat/web.xml and add or edit this line to include the new timeout value in minutes:

      <session-timeout>Timeout_Value_in_Minutes</session-timeout>
    4. Save and close the file.

  2. On the container host, restart the server to enforce the new configuration:

    systemctl restart uyuni-server.service