Upload RPM/DEB packages to NxRM repo ends up with http 500

That error may suggest that the binary you’re uploading is corrupt or in an unexpected format. The header here appears to be a reference to archive (compression) format.