Error 308 when running job or runner (OD-949)
Nathan opened 3 years ago

Everytime I run a runner I am getting this error.

Please help,

Please wait... Checking cluster access... Executing job (executor: runner-1, namespace: runner-1-executor-test)... Running job on node worker-1... Starting job containers... Connecting to server 'http://onedev.natedog95.loseyourip.com'... java.lang.RuntimeException: Http request failed (status code: 308, error message: 308 Permanent Redirect

308 Permanent Redirect


nginx ) at io.onedev.k8shelper.KubernetesHelper.checkStatus(KubernetesHelper.java:613) at io.onedev.k8shelper.KubernetesHelper.init(KubernetesHelper.java:341) at io.onedev.k8shelper.Init.main(Init.java:23)

init: Command failed with exit code 1

  • Nathan changed fields 3 years ago
    Name Previous Value Current Value
    Assignee
    robin
    empty
  • Robin Shen changed fields 3 years ago
    Name Previous Value Current Value
    Type
    Build Failure
    Support Request
  • Robin Shen commented 3 years ago

    Please specify ip address instead of dns name in system setting for server url property to see if it works. Please check OneDev k8s installation guide on how to get the ip address.

  • Nathan commented 3 years ago

    Thanks robin! upon looking at the settings to change it I got the notification: This is derived from ingress setting and cannot be changed. Should I try to change it another way ? Thank you for your helpticket-Capture.PNG

  • Robin Shen commented 3 years ago

    Looks like ingress.host value is specified incorrectly when deploy OneDev via helm: https://code.onedev.io/projects/162/files/main/pages/deploy-into-k8s.md#ingress-setup

    With a normal setup, no redirection should be happening.

  • Nathan commented 3 years ago

    Issue has been resolved. I was able to rerun and add --set commands in the link above to fix the issue. I think I may have manually set up the ingress instead of using the chart to do it. That is probably what messed it up. Thank you for your help!!

  • Nathan changed state to 'Closed' 3 years ago
    Previous Value Current Value
    Open
    Closed
  • Nathan commented 3 years ago

    Issue has been resolved

issue 1/1
Type
Question
Priority
Normal
Assignee
Not assigned
Issue Votes (0)
Watchers (3)
Reference
OD-949
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover