I had the same problem and after hours of debugging I found out that it is related to temporary files not able to be written.
Go to Admin ? Config ? File system. Set the correct temporary directory. Make sure your server has permission to write to that directory.