Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70412

Unable to connect to gitea server

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Blocker Blocker
    • gitea-plugin
    • None
    • Gitea server 1.18.0
      Jenkins 2.375.1
      gitea plugin 1.4.5

      Have this exception. How to fix or debug it?

       

      [Wed Jan 11 16:35:17 UTC 2023] Starting organization scan...
      [Wed Jan 11 16:35:17 UTC 2023] Updating actions...
      ERROR: [Wed Jan 11 16:35:17 UTC 2023] Could not refresh actions for navigator org.jenkinsci.plugin.gitea.GiteaSCMNavigator@58bb0a0c
      org.jenkinsci.plugin.gitea.client.api.GiteaHttpStatusException: HTTP 404/Not Found
      	at org.jenkinsci.plugin.gitea.client.impl.DefaultGiteaConnection.getObject(DefaultGiteaConnection.java:867)
      	at org.jenkinsci.plugin.gitea.client.impl.DefaultGiteaConnection.fetchUser(DefaultGiteaConnection.java:176)
      	at org.jenkinsci.plugin.gitea.GiteaSCMNavigator.retrieveActions(GiteaSCMNavigator.java:223)
      	at jenkins.scm.api.SCMNavigator.fetchActions(SCMNavigator.java:332)
      	at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:487)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:278)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:166)
      	at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:918)
      	at hudson.model.ResourceController.execute(ResourceController.java:107)
      	at hudson.model.Executor.run(Executor.java:449)
      [Wed Jan 11 16:35:17 UTC 2023] Consulting Gitea Organization
      ERROR: [Wed Jan 11 16:35:17 UTC 2023] Could not fetch sources from navigator org.jenkinsci.plugin.gitea.GiteaSCMNavigator@58bb0a0c
      [Wed Jan 11 16:35:17 UTC 2023] Finished organization scan. Scan took 69 ms
      FATAL: Failed to recompute children of Your-Hike
      com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `org.jenkinsci.plugin.gitea.client.api.GiteaOrganization` from Array value (token `JsonToken.START_ARRAY`)
       at [Source: (sun.net.www.protocol.http.HttpURLConnection$HttpInputStream); line: 1, column: 1]
      	at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
      	at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1746)
      	at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1520)
      	at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1467)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeFromArray(BeanDeserializer.java:650)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:211)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:187)
      	at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:323)
      	at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:2105)
      	at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1481)
      	at org.jenkinsci.plugin.gitea.client.impl.DefaultGiteaConnection.getObject(DefaultGiteaConnection.java:864)
      	at org.jenkinsci.plugin.gitea.client.impl.DefaultGiteaConnection.fetchOrganization(DefaultGiteaConnection.java:188)
      	at org.jenkinsci.plugin.gitea.client.impl.DefaultGiteaConnection.fetchOwner(DefaultGiteaConnection.java:160)
      	at org.jenkinsci.plugin.gitea.GiteaSCMNavigator.visitSources(GiteaSCMNavigator.java:155)
      	at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:536)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:278)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:166)
      	at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:918)
      	at hudson.model.ResourceController.execute(ResourceController.java:107)
      	at hudson.model.Executor.run(Executor.java:449)
      Finished: FAILURE 

       

            Unassigned Unassigned
            bvn13 Cheslav
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: