Troubleshooting - Uploading image asset on dotCms

Hi dotCMS community,

I recently deployed a dotCMS instance in a production-like environment with strict security restrictions. I’ve encountered an issue: whenever I try to add a new image, this part gets stuck in a loading state. This doesn’t happen in my other environments where the security is not configured.

I’ve checked the console and the response codes, but there are no errors—everything appears to be returning 200. I’m not sure where to start troubleshooting, but I suspect some requests might be silently rejected under the hood due to the security restrictions.

There is a wss://my-dotcms.fr/api/ws/v1/system/events in 101 which disconnect and reconnect. In my logs, I found this error:
09:18:13.630 ERROR websocket.SystemEventsWebSocketEndPoint - java.io.EOFException

I’ve tried adjusting the security settings, but I don’t have access to the configuration (another team handle this aspect) to investigate further. Has anyone experienced something similar or have any suggestions to what should I look for ?

Thanks in advance for your help!

EOFException would indicate a partially corrupt file (End of File). It might be the file, not the system. If I recall, there was a class of JPEGs the system hates- ones specifically for print productions that use a different color standard.
Also, did you check on the folder assigned that it has the correct file extensions as ‘allowed’? It is pretty particular and jpg and jpeg are different.

The EOFException from the websocket layer is probably a symptom of the connection being cut by your security posture rather than the root cause. Since everything returns 200 in the console, the upload likely completes but the UI never gets its completion event because the system events websocket keeps dropping, leaving it spinning. Also worth confirming the upload path is allowed through any proxy, not just the REST endpoints. On the file side, I’d still test a plain, small JPEG to rule out the file itself before blaming the security setup.

This is for an image? Does it upload but just not preview? If you can upload non-image files but are seeing this with images, it might be the new libvips image api - try setting DOT_IMAGE_API_USE_LIBVIPS=false in your environment and see if that works.