Unable to upload file on the server

Hey,

I am trying to upload files to the KNIME Server. One worked one didn’t.

I tried it via drag’n’drop and writing the file with a node. The file is kinda big ~400mb, if I activate compression ín the node, it works without any issues. The same file worked on another knime server.
KNIME Server version 4.10.3

Error from log:

!ENTRY org.eclipse.core.jobs 4 2 2020-06-17 15:47:14.178
!MESSAGE An internal error occurred during: "Upload of xxx.xml to 123-server:/456/xxx.xml".
!STACK 0
java.lang.RuntimeException: java.io.IOException: Error writing request body to server
	at com.knime.explorer.server.internal.view.actions.WorkflowUpload.runSync(WorkflowUpload.java:157)
	at com.knime.explorer.server.internal.view.actions.WorkflowUpload$2.run(WorkflowUpload.java:331)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: java.io.IOException: Error writing request body to server
	at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.checkError(HttpURLConnection.java:3587)
	at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.write(HttpURLConnection.java:3570)
	at java.io.BufferedOutputStream.write(BufferedOutputStream.java:122)
	at com.knime.explorer.server.rest.RestUploadStream.write(RestUploadStream.java:188)
	at com.knime.explorer.server.internal.view.actions.WorkflowUpload.uploadWorkflow(WorkflowUpload.java:298)
	at com.knime.explorer.server.internal.view.actions.WorkflowUpload.runSyncInternal(WorkflowUpload.java:241)
	at com.knime.explorer.server.internal.view.actions.WorkflowUpload.runSync(WorkflowUpload.java:148)
	... 2 more
	Suppressed: java.lang.NullPointerException
		at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.close(HttpURLConnection.java:3618)
		at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
		at com.knime.explorer.server.rest.RestUploadStream.close(RestUploadStream.java:222)
		at com.knime.explorer.server.internal.view.actions.WorkflowUpload.uploadWorkflow(WorkflowUpload.java:316)
		... 4 more

Thanks!

Hello,

Would you mind sharing with us your full server logs, including this time frame when the issue occurred?

Also if I understand this correctly, you are getting this error on one Knime Server version 4.10.3, but on another identical server of 4.10.3 you are not seeing the error? And the error only occurs when you don’t use compression?

Which node are you using to write to a file? Could you also send us the workflow?

Thanks,
Zack