MIDAS Knowledge Base MIDAS Knowledge Base

How to fix "502.2 Bad Gateway" errors when updating MIDAS

If you encounter a "CGI Error" or an "HTTP Error 502.2 - Bad Gateway" error, along with an accompanying message "The specified application misbehaved by not returning a complete set of headers" when updating a self hosted MIDAS booking system, this may indicate a permissions issue on your web server.

502 - The specified application misbehaved by not returning a complete set of headers

In order to successfully update your MIDAS booking software, the update process needs to download and extract the update to your server. This data and extraction takes place in the existing directory on your server where your MIDAS installation resides.

If your server is configured to deny write access to this location to your web server/Perl (and therefore in turn, also MIDAS), the update will not be able to complete successfully, and may result in the error described above.

To resolve this, please ensure that your web server is able to write to the location where your booking system is installed.

Once you've verified folder permissions, try updating again (via MIDAS Admin Options → Manage MIDAS → Update).


You might also be interested in...


MIDAS » KB » Support » Article 00093

← Return to the Knowledge Base