fatal: could not read Username when Checking out code (OD-1980)
Released
narandill opened 2 weeks ago

Hi Robin,

Just after updating to the latest 10.9.3 I got a problem where previously working deployment scripts stopped to work unexpectedly:

10:27:24 Pending resource allocation...
10:27:24 Executing job (executor: agx-orin-remote-shell-executor, agent: agent-agx-orin-remote-shell)...
10:27:24 Downloading job dependencies...
10:27:24 Running step "Build -> Checkout Code"...
10:27:24 Checking out code...
10:27:24 fatal: could not read Username for 'http://192.168.0.182:6610': No such device or address
10:27:24 Command execution failed (command: git fetch http://192.168.0.182:6610/home-lab/ai-projects/jetson-containers --force --quiet dd3eea597c53fe836087847474a40483e75fa589, exit code: 128)
10:27:24 Step "Build -> Build Container" is skipped
10:27:24 Running step "Build -> Publish Build Logs -> Publish Logs"...
10:27:24 Step "Build -> Publish Build Logs -> Publish Logs" is successful (0 seconds)
10:27:25 Job finished
Robin Shen commented 2 weeks ago

Can you please demonstrate this issue by creating a sample project at code.onedev.io?

narandill commented 2 weeks ago

Hi @robin

I'm using similar approach as shown here: https://code.onedev.io/code-checkout-OD-1980/~files/main/.onedev-buildspec.yml

I'm trying to run it on external host using remote shell agent - agent-agx-orin-remote-shell, the http://192.168.0.182:6610 is the ip:port pair of host running OneDev server:

  1. Run Checkout Code Job
  2. It runs under the hood the Checkout Code template

My assumption is that maybe this remote shell needs an manual update after updating to 10.9.3?

agent-agx-orin-remote-shell logs:

2024-07-03 14:08:43,170 INFO  [Thread-0] io.onedev.agent.Agent Waiting for running jobs to finish...
2024-07-03 14:09:26,590 INFO  [WrapperSimpleAppMain] io.onedev.agent.Agent Cleaning temp directory...
2024-07-03 14:09:26,603 INFO  [WrapperSimpleAppMain] io.onedev.agent.Agent Connecting to http://192.168.0.182:6610...
2024-07-03 14:09:26,604 ERROR [WrapperSimpleAppMain] io.onedev.agent.Agent Error connecting to server
java.net.SocketException: Network is unreachable
	at java.base/sun.nio.ch.Net.connect0(Native Method)
	at java.base/sun.nio.ch.Net.connect(Net.java:579)
	at java.base/sun.nio.ch.Net.connect(Net.java:568)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:593)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:633)
	at java.base/java.net.Socket.connect(Socket.java:583)
	at io.onedev.agent.Agent.main(Agent.java:265)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:349)
	at java.base/java.lang.Thread.run(Thread.java:840)
2024-07-03 14:09:31,607 INFO  [WrapperSimpleAppMain] io.onedev.agent.Agent Connecting to http://192.168.0.182:6610...
2024-07-03 14:09:31,608 ERROR [WrapperSimpleAppMain] io.onedev.agent.Agent Error connecting to server
java.net.SocketException: Network is unreachable
	at java.base/sun.nio.ch.Net.connect0(Native Method)
	at java.base/sun.nio.ch.Net.connect(Net.java:579)
	at java.base/sun.nio.ch.Net.connect(Net.java:568)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:593)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:633)
	at java.base/java.net.Socket.connect(Socket.java:583)
	at io.onedev.agent.Agent.main(Agent.java:265)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:349)
	at java.base/java.lang.Thread.run(Thread.java:840)
2024-07-03 14:09:36,608 INFO  [WrapperSimpleAppMain] io.onedev.agent.Agent Connecting to http://192.168.0.182:6610...
2024-07-03 14:09:36,956 INFO  [WrapperSimpleAppMain] io.onedev.agent.Agent Connecting to http://192.168.0.182:6610...
2024-07-03 14:09:37,158 INFO  [HttpClient@5552060c-38] io.onedev.agent.AgentSocket Connected to server
OneDev changed state to 'Closed' 2 weeks ago
Previous Value Current Value
Open
Closed
OneDev commented 2 weeks ago

State changed as code fixing the issue is committed (ecf0293d)

OneDev changed state to 'Released' 2 weeks ago
Previous Value Current Value
Closed
Released
OneDev commented 2 weeks ago

State changed as build OD-5236 (10.9.4) is successful

narandill commented 2 weeks ago

@robin 👏 Thank you for fast debug & fixing! I appreciate that :) Please ping me when it's published.

Robin Shen commented 2 weeks ago

@narandill the fix is already released in build OD-5236 (10.9.4)

narandill commented 2 weeks ago

Thank you. Thaw was fast! 👏

issue 1 of 1
Type
Bug
Priority
Critical
Assignee
Affected Versions
10.9.3
Labels
No labels
Issue Votes (2)
Watchers (4)
Reference
OD-1980
Please wait...
Page is in error, reload to recover