Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-21389 'Sun, 11 Jun 2023 17:51:29 GMT' could not be parsed at index 0 at java.time.format.DateTimeFormatter.parseResolved
  3. SAT-22480

[QE] 'Sun, 11 Jun 2023 17:51:29 GMT' could not be parsed at index 0 at java.time.format.DateTimeFormatter.parseResolved

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Candlepin
    • 0
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • Rocket

      +++ This bug was initially created as a clone of Bug #2242214 +++
      
      Description of problem:
      
      After upgrading to 6.13, this warning message started happening on Candlepin.
      
      The error.log has below traceback:
      
      2023-09-27 00:00:00,786 [thread=https-jsse-nio-127.0.0.1-23443-exec-93] [req=d8b0e463-dadc-4521-8da1-856ef5e22509, org=UBCITServices, csid=] ERROR org.candlepin.exceptions.mappers.CandlepinExceptionMapper - Runtime Error Text 'Sun, 11 Jun 2023 17:51:29 GMT' could not be parsed at index 0 at java.time.format.DateTimeFormatter.parseResolved0:2,046
      java.time.format.DateTimeParseException: Text 'Sun, 11 Jun 2023 17:51:29 GMT' could not be parsed at index 0
              at java.base/java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:2046)
              at java.base/java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1948)
              at java.base/java.time.ZonedDateTime.parse(ZonedDateTime.java:598)
              at org.candlepin.resource.ConsumerResource.getContentAccessBody(ConsumerResource.java:2137)
              at jdk.internal.reflect.GeneratedMethodAccessor212.invoke(Unknown Source)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:151)
              at org.jboss.resteasy.core.MethodInjectorImpl.lambda$invoke$3(MethodInjectorImpl.java:122)
              at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:680)
              at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:658)
              at java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2094)
              at java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:143)
       
      
      
      Version-Release number of selected component (if applicable):
      
      candlepin-4.2.15-1.el8sat.noarch
      
      How reproducible:
      
      Hard
      
      Steps to Reproduce:
      
      Only in some of the customer environments.
      
      Actual results:
      
      This warning message is filling up rhsm.log on the candlepin error.log as well as all the content hosts rhsm.log files.
      
      Expected results:
      
      Should have no such warning
      
      Additional info:
      
      --- Additional comment from  on 2023-10-05T01:17:49Z 
      
      Could be related to this commit?
      
      commit 96567c879d4b9309ea3634304eb046126349fee8
      Author: sbakaj <sbakaj@redhat.com>
      Date:   Tue Jul 12 15:34:47 2022 +0000
      
          ENT-4809: Enable bean validation.
      
          - Added reasteasy validator
          - Downgrade hibernate validator
          - Fix tests
      
      diff --git a/api/candlepin-api-spec.yaml b/api/candlepin-api-spec.yaml
      index 68ccdadf2..732b3a326 100644
      --- a/api/candlepin-api-spec.yaml
      +++ b/api/candlepin-api-spec.yaml
      @@ -1021,8 +1021,9 @@ paths:
                 description: Modified date. Accepted format EEE, dd MMM yyyy HH:mm:ss z
                 schema:
                   type: string
      -            format: date-time
      -            pattern: EEE, dd MMM yyyy HH:mm:ss z
      +#            FIXME It wont work on older version resteasy validation.
      +#            format: date-time
      +#            pattern: EEE, dd MMM yyyy HH:mm:ss z
      
      The weird part is that I can't reproduce it..
      
      --- Additional comment from  on 2023-10-05T11:51:06Z 
      
      The customer has shared the backup of his Satellite over support case 03627694 which can be downloaded from : https://access.redhat.com/support/cases/#/case/03627694
      
      --- Additional comment from  on 2023-10-05T14:07:49Z 
      
      I tried to build a reproducer and below are the machine details:
      
      IP Address: 10.74.195.69
      Root Password: redhat
      
      The backup shared by customer is copied into "/var/satellite_backup/satellite-backup-2023-10-05-12-17-51" directory. I tried to restore the backup but it is getting failed:
      
      ~~~~~~~~~~
      # satellite-maintain restore /var/satellite_backup/satellite-backup-2023-10-05-12-17-51
      Are you sure you want to continue? This will drop the databases, reset all configurations that you have made and bring all application data back to a fresh install. [y/n]
      Failed to start services: Job for postgresql.service failed because the control process exited with error code.
      See "systemctl status postgresql.service" and "journalctl -xe" for details.
      2023-10-05 18:49:41 [ERROR ] [root] Failed to start services: Job for postgresql.service failed because the control process exited with error code.
      See "systemctl status postgresql.service" and "journalctl -xe" for details.
      --------------------------------------------------------------------------------
      Scenario [Restore backup] failed.
      ~~~~~~~~~~~
      
      We will be further working on it to fix it.
      
      --- Additional comment from  on 2023-10-06T01:32:29Z 
      
      (In reply to Jayant Bhatia from comment #3)
      > I tried to build a reproducer and below are the machine details:
      > 
      > IP Address: 10.74.195.69
      > Root Password: redhat
      > 
      
      Hmm, I can't reproduce the issue here.
      
      --- Additional comment from  on 2023-10-06T06:23:21Z 
      
      This is also working:
      
      ~~~
      curl -k -u "admin:redhat" -H "If-Modified-Since: Wed, 04 Oct 2023 12:55:48 GMT" https://$(hostname)/rhsm/consumers/1d95fac6-e9cf-4574-8641-bc499ae1c791/accessible_content
      {"lastUpdate":"2023-10-06T06:17:09+0000","contentListing":{"6346998154475823378":["-----BEGIN CERTIFICATE-----\nMIIGGjCCBAKgAwIBAgIIWBURMZOXYRIwDQYJKoZIhvcNAQELBQAwfzELMAkGA1UE\nBhMCVVMxFzAVBgNVBAgMDk5vcnRoIENhcm9saW5hMRAwDgYDVQQHDAdSYWxlaWdo\nMRAwDgYDVQQKDAdLYXRlbGxvMRQwEgYDVQQLDAtTb21lT3JnVW5pdDEdMBsGA1UE\nAwwUY2FyZG9uLnF1YWxpZi5jZWEuZnIwHhcNMjMxMDA0MTE1NjA2WhcNMjQxMDA0\nMTE1NjA2WjA9MQwwCgYDVQQKDANEU0kxLTArBgNVBAMMJDFkOTVmYWM2LWU5Y2Yt\nNDU3NC04NjQxLWJjNDk5YWUxYzc5MTCCAiIwDQYJKoZ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AYISNqopCdZvdz4u08j8Fpjm0MEljZ6cv4rZLsJdeaOsLv\nc2MlpQx51eaFc6HEkdKotetvKwHSU92u1d0V9GdQMeOyxPnIG+Ph5ol0URkoksn6\nUmhcEQEr+LBZBqN7SrwB4+u66+Bfjp4GxZXf9QIS1riUnoWHQCiEYvdEq3H1i0GU\n2HPq7b3B6OBEZKT4G5VzPZdBK8dG3kPmEoQyFUIpdPaspFiTJaarf+46XvlQksnD\nsxSF6+u4/+PiFU9awh0vF8WDWkGs4XXpJMVhW3wYhFs=\n-----END RSA SIGNATURE-----\n"]}}
      `~~
      
      The cert includes the new custom repository too. So what could cause this error?
      
      ~~~
      Error Text 'Sun, 11 Jun 2023 17:51:29 GMT' could not be parsed at index 0 at java.time.format.DateTimeFormatter.parseResolved0:2,046
      ~~
      
      is system locale related?
      
      ~~~
      cat etc/locale.conf
      LANG="fr_FR.UTF-8"
      ~~~
      
      --- Additional comment from  on 2023-10-23T14:08:05Z 
      
      *** Bug 2244861 has been marked as a duplicate of this bug. ***
      
      --- Additional comment from  on 2023-10-24T14:28:03Z 
      
      Thanks for those release. Do you know the time required for the rpm to be available ? Or we need to do the upgrade to 6.13.5, 6.14 or 7 (both seems ok for me). No time pressure we have a workaround applied.

      QE Tracker for https://issues.redhat.com/browse/SAT-21389
      Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2250347

            rhn-support-sganar Shubham Ganar
            satellite-focaccia-bot Focaccia Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: