Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-21994

After satellite installation login page respond with "Invalid Timezone: Etc/Unknown"

XMLWordPrintable

    • Moderate
    • No

      Description of problem:

      After installing Satellite , upon attempting to login, an error is displayed referring to Invalid Timezone: Etc/Unknown

      Version-Release number of selected component (if applicable):

      Satellite 6.15.0 - snap 3.0.

      How reproducible:

      Install Satellite and try to login using Chrome.

      Actual results:

      Login page reply with :

      "Oops, we're sorry but something went wrong Invalid Timezone: Etc/Unknown"

      Expected results:

      Receive the correct login page and enter the correct information to log into Satellite.

      Additional info:

      Checking the /var/log/foreman/production.log

      2023-12-18T12:00:04 [I|app|06ffc943] Started GET "/users/login" for 10.45.225.10 at 2023-12-18 12:00:04 +0100
      2023-12-18T12:00:04 [I|app|06ffc943] Processing by UsersController#login as HTML
      2023-12-18T12:00:04 [W|app|06ffc943] Invalid Timezone: Etc/Unknown
      2023-12-18T12:00:04 [I|app|06ffc943] Backtrace for 'Invalid Timezone: Etc/Unknown' error (ArgumentError): Invalid Timezone: Etc/Unknown
      06ffc943 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/core_ext/time/zones.rb:100:in `rescue in find_zone!'
      06ffc943 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/core_ext/time/zones.rb:82:in `find_zone!'
      06ffc943 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/core_ext/time/zones.rb:42:in `zone='
      06ffc943 | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:9:in `set_timezone'
      06ffc943 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
      06ffc943 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
      06ffc943 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
      06ffc943 | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
      06ffc943 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:126:in `block in run_callbacks'

      Checking on

      /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:9:in set_timezone'

      def set_timezone
      default_timezone = Time.zone
      client_timezone = User.current.try(:timezone) || cookies[:timezone]
      Time.zone = client_timezone if client_timezone.present?

      so the "Etc/Unknown" is either coming from User.current.timezone or cookies[:timezone]

      this had been recently discussed in https://redhat-internal.slack.com/archives/C04KQHS01B5/p1702481481277929

      I have tried to clean my coockies on Chrome but didn't works. Using Firefox I can login properly .

              ofedoren@redhat.com Oleh Fedorenko
              rhn-support-gformisa Giovanni Formisano
              Adam Ruzicka Adam Ruzicka
              Pavel Novotny Pavel Novotny
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: