Uploaded image for project: 'Red Hat Insights Engineering'
  1. Red Hat Insights Engineering
  2. RHINENG-8442

Satellite client failing with 500 Internal Server error while running insights-client comand, which completes even with the error.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Satellite Integration
    • None
    • Important
    • False
    • False
    • Hide

      None

      Show
      None

      ** Note that this is a public ticket, please refrain from adding any sensitive data. **

      System connected to satellite is failing with 500 Internal server error while running insights command. However, system seems to register correctly and even upload the data fine
      -------

      1. insights-client
        Unable to fetch egg url https://satellite.example.com:443/redhat_access/r/insights/platform/module-update-router/v1/channel?module=insights-core: 500: Internal Server Error. Defaulting to /release
        Starting to collect Insights data for client.example.com
        Uploading Insights data.
        Successfully uploaded report from client.example.com to account 724476.
        --------

      On checking the logs, I can see nil class error on satellite production logs. Can please someone help on this issue on debugging nil class error
      ------
      ==> /var/log/foreman/production.log <==
      2024-02-02T13:24:40 [I|app|0f916b5f] Processing by InsightsCloud::Api::MachineTelemetriesController#branch_info as JSON
      2024-02-02T13:24:40 [I|app|0f916b5f] Completed 200 OK in 15ms (Views: 0.1ms | ActiveRecord: 3.2ms | Allocations: 5777)
      2024-02-02T13:24:40 [I|app|264e38c3] Started GET "/redhat_access/r/insights/platform/module-update-router/v1/channel?module=insights-core" for 10.x.x.x at 2024-02-02 13:24:40 -0500
      2024-02-02T13:24:40 [I|app|264e38c3] Processing by InsightsCloud::Api::MachineTelemetriesController#forward_request as JSON
      2024-02-02T13:24:40 [I|app|264e38c3] Parameters:

      {"module"=>"insights-core", "path"=>"platform/module-update-router/v1/channel"}

      2024-02-02T13:24:41 [W|app|264e38c3] Action failed
      2024-02-02T13:24:41 [I|app|264e38c3] Backtrace for 'Action failed' error (NoMethodError): undefined method `code' for nil:NilClass
      --------

            Unassigned Unassigned
            rhn-support-achadha Arvinder Singh Chadha
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: