agent crash and onedev git checkout timeout (OD-991)
Closed
difof opened 1 year ago

Hello. My job is failing at checkout step in order to deploy using onedev-agent. I have disabled firewall and still fails. This is the error output from agent:

07:51:22 ERROR io.onedev.agent.AgentSocket - Error handling websocket request
org.apache.commons.lang3.SerializationException: java.io.NotSerializableException: org.glassfish.jersey.client.InboundJaxrsResponse
        at org.apache.commons.lang3.SerializationUtils.serialize(SerializationUtils.java:140)
        at org.apache.commons.lang3.SerializationUtils.serialize(SerializationUtils.java:154)
        at io.onedev.agent.Message.<init>(Message.java:28)
        at io.onedev.agent.AgentSocket$1.run(AgentSocket.java:226)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.io.NotSerializableException: org.glassfish.jersey.client.InboundJaxrsResponse
        at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1187)
        at java.base/java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1572)
        at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1529)
        at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1438)
        at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1181)
        at java.base/java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1572)
        at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1529)
        at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1438)
        at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1181)
        at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:350)
        at org.apache.commons.lang3.SerializationUtils.serialize(SerializationUtils.java:138)
        ... 6 common frames omitted

I run the agent on any foreign server and it works just fine, but it crash and times out the git checkout on domestic servers.

difof commented 1 year ago

gnutls_handshake() failed: The TLS connection was non-properly terminated. is what I get when I try cloning the repo from agent's server

Onedev server is behind a Caddy reverse proxy with let's encrypt

Robin Shen commented 1 year ago

It will help a lot to find out and fix the issue if you can get me a detailed reproducing step.

Robin Shen commented 1 year ago

Just tested OneDev running behind Caddy server, and agent can checkout code fine. Make sure that you are specifying correct server url in OneDev system setting.

Robin Shen changed state to 'Closed' 1 year ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (4)
Reference
OD-991
Please wait...
Page is in error, reload to recover