#1241  fatal: bad object refs/tags/[tag_name] & i.o.s.w.websocket.WebSocketProcessor An error occurred when using WebSocket
Etienne opened 1 year ago

Cant seem to narrow down what is happening here. I'm on baremetal 8.0.3. When trying to push a commit to a project via git, I get the following output:

git push origin master:master
remote: fatal: bad object refs/tags/Staging_Release:364        
fatal: bad object refs/tags/Staging_Release:364
To ssh://xx.xx.xx.xx:6611/xx-xx/xx
 ! [remote rejected] master -> master (missing necessary objects)
error: failed to push some refs to 'ssh://xx.xx.xx.xx:6611/xx-xx/xx'

When I try to view the Tag in the UI, I get a 404, and Revision/path not found: Staging_Release:364 Screenshot 2023-02-25 at 4.53.00 PM.png

There is really nothing in logs that looks special minus this websocket error:

2023-02-26 01:07:41,727 ERROR [qtp1333934353-37] i.o.s.w.websocket.WebSocketProcessor An error occurred when using WebSocket.
org.eclipse.jetty.io.EofException: null
	at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:279)
	at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:422)
	at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:277)
	at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:381)
	at org.eclipse.jetty.websocket.common.io.FrameFlusher.flush(FrameFlusher.java:264)
	at org.eclipse.jetty.websocket.common.io.FrameFlusher.process(FrameFlusher.java:193)
	at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241)
	at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:223)
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.outgoingFrame(AbstractWebSocketConnection.java:581)
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.close(AbstractWebSocketConnection.java:181)
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(AbstractWebSocketConnection.java:510)
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(AbstractWebSocketConnection.java:440)
	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.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:386)
	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: java.io.IOException: Broken pipe
	at java.base/sun.nio.ch.FileDispatcherImpl.writev0(Native Method)
	at java.base/sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)
	at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:182)
	at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:130)
	at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:493)
	at java.base/java.nio.channels.SocketChannel.write(SocketChannel.java:507)
	at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:273)
	... 22 common frames omitted

And additionally, I verified the file is in existences in the actual /sites/project folder and here are the permissions on root: Screenshot 2023-02-25 at 5.13.59 PM.png

If I delete the tag on the server itself, I am able to push successfully. I cant delete the tag from UI. A 500 on the /wicket/page?225= url. Could it be possible I dont have something set up correctly on proxy? I use HAProxy and my understanding is it it should be good enough to with pointing all traffic to the backend if it contains my host url. But open to feedback there too...

The Tags are built as part of a job that pushes this code to an application.

Screenshot 2023-02-25 at 5.16.11 PM.png

Any help greatly appreciated! Ty!

Etienne changed fields 1 year ago
Name Previous Value Current Value
Support Request
Etienne changed confidential 1 year ago
Previous Value Current Value
Etienne changed confidential 1 year ago
Previous Value Current Value
Robin Shen commented 1 year ago

The tag name Staging_Release:364 is invalid as it contains not allowed character :. The repository will work normally if you remove that tag.

I also filed an improvement request to avoid creating such tag in create tag step:

Issue #1242 - Validate tag name to avoid invalid chars in create tag step

Etienne commented 1 year ago

Thank you @robin ! 🙂 Also great feature to add the validation, sincerely appreciate it!

Etienne changed state to 'Closed' 1 year ago
Previous Value Current Value
issue 1 of 1
Issue Votes (0)
Watchers (4)
Please wait...
Page is in error, reload to recover