Two more data points in addition to the 5 above:
-
Server has 96gb ram. So it can not be a issue with memory not being free as suggested by @codinghorror
-
Discourse runs behind a nginx proxy and I am able to upload a file to another software running behind the same nginx proxy.
If a dev wants to take a look at this error I can give access to my discourse instance, to help in troubleshooting.