Agent doesn't connect anymore (OD-1896)
Andreas Mack opened 2 years ago

I get the following error, even after pull/restart of agent and delete/ add new agent with new token 09:50:35 INFO io.onedev.agent.Agent - Connecting to http://10.5.x.xxx:6610... 09:50:35 ERROR io.onedev.agent.AgentSocket - Websocket error org.eclipse.jetty.websocket.api.UpgradeException: 401 Unauthorized at org.eclipse.jetty.websocket.client.WebSocketUpgradeRequest.onComplete(WebSocketUpgradeRequest.java:529) at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:218) at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:210) at org.eclipse.jetty.client.AuthenticationProtocolHandler$AuthenticationListener.forwardFailureComplete(AuthenticationProtocolHandler.java:297) at org.eclipse.jetty.client.AuthenticationProtocolHandler$AuthenticationListener.onComplete(AuthenticationProtocolHandler.java:164) at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:218) at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:210) at org.eclipse.jetty.client.HttpReceiver.terminateResponse(HttpReceiver.java:481) at org.eclipse.jetty.client.HttpReceiver.terminateResponse(HttpReceiver.java:461) at org.eclipse.jetty.client.HttpReceiver.responseSuccess(HttpReceiver.java:424) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.messageComplete(HttpReceiverOverHTTP.java:374) at org.eclipse.jetty.http.HttpParser.handleContentMessage(HttpParser.java:596) at org.eclipse.jetty.http.HttpParser.parseContent(HttpParser.java:1723) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1552) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.parse(HttpReceiverOverHTTP.java:208) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:148) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive(HttpReceiverOverHTTP.java:80) at org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive(HttpChannelOverHTTP.java:131) at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable(HttpConnectionOverHTTP.java:172) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header

  • Andreas Mack commented 2 years ago

    Tried docker and baremetal, direct connection to 6610 and via nginx, still the same problem. What am I doing wrong?

  • Robin Shen commented 2 years ago

    This is a bug, and will be fixed soon.

  • Robin Shen changed fields 2 years ago
    Name Previous Value Current Value
    Priority
    Major
    Critical
  • Andreas Mack commented 2 years ago

    Thank you!

  • Andreas Mack commented 2 years ago

    Can I downgrade to 10.6.0?

  • Robin Shen commented 2 years ago

    Only possible if you have 10.6.0 database backup.

  • Andreas Mack commented 2 years ago

    I'll wait for the fix.

  • OneDev changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 2 years ago

    State changed as code fixing the issue is committed (77e871a9)

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

    State changed as build OD-5067 is successful

  • Andreas Mack commented 2 years ago

    Works! Thank you so much for that quick help.

issue 1/1
Type
Bug
Priority
Critical
Assignee
Affected Versions
10.7.0
Labels
No labels
Issue Votes (0)
Watchers (4)
Reference
OD-1896
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover