Sometimes you may observe the following behavior, where you are uploading a large file using REST or UI when running Artifactory behind Nginx, but it fails with a 500 Internal Server error:
Taking a look at the request within the artifactory-request.log files, the request seems to be received by the node. The status code might be 200, 201, or 202:
*****|user|PATCH|/api/docker/docker-local/v2/Path/To/Artifact/111111111111111111|202|xxxxxxx|0|xxx|xxxxx
First we need to confirm if the issue is actually from the Nginx,by bypassing Nginx and uploading the same file directly through Artifactory’s node IP.
If this works, we can conclude that the issue is happening at Nginx’s end.
As a next step, we need to look into the logs and configuration of Nginx.