Projects onedev server Issues #949
#949  Error 308 when running job or runner
Closed
Nathan opened 2 months 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 2 months ago
Name Previous Value Current Value
Assignee
robin
empty
Robin Shen changed fields 2 months ago
Name Previous Value Current Value
Type
Build Failure
Support Request
Robin Shen commented 2 months 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 2 months 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 2 months 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 2 months 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' 2 months ago
Previous Value Current Value
Open
Closed
Nathan commented 2 months ago

Issue has been resolved

issue 1 of 1
Type
Support Request
Priority
Normal
Assignee
Not assigned
Issue Votes (0)
Watchers (3)
Reference
issue onedev/server#949
Please wait...
Page is in error, reload to recover