Update to 13.0.5 stuck

Upgrades are always a pain for me. When 13.0.5 hit stable, I entered the updater, and had to chmod a bunch of files to get it to work. When it got to “Delete old files”, it got stuck with an error message that says:

Parsing response failed. <html> <head><title>502 Bad Gateway</title></head>
<body bgcolor="white"> <center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.14.0</center> </body> </html> 

This is completely cryptic to me. Didn’t happen the last time I updated. (Last time, there was a different problem, and I had to manually copy the downloaded files from my data folder to my nextcloud folder.)

Eh, it was just a permissions thing, although it didn’t say what it was missing perms for. I just ran the script at https://docs.nextcloud.com/server/9/admin_manual/maintenance/update.html which set all permissions where they needed to be for the update to work, and it finished normally.