There can be multiple reasons for an installation or upgrade failure. You will be presented with a status code upon failure (“Request failed with status code XXX”). Please check the table below to find a solution for the relevant code:
What were you doing? | What is the code? |
Installing | 408 |
Installing | 504 |
Installing | 500 |
Upgrading | 408 |
Upgrading | 504 |
Upgrading | 500 |
Request failed with status code 408
We have seen this error primarily on Windows systems running XAMPP. It is caused by migrations being unable to run fully within the defined PHP execution time limit.
You need to increase the max_execution_time for your XAMPP installation to solve this issue. Check out the steps given below:
- Open XAMPP and make sure the Apache server is stopped. (Screenshot for reference)
- In the row of buttons corresponding to Apache, click on "Config".
- Select "PHP (php.ini)"
- This will open up Notepad. Click on Notepad and search for a line with the text "max_execution_time"
- It should be equal to 120 by default. Increase the number to a higher value. Make sure to save the file.
- Now, restart the Apache server (and MySQL if it's not already started) and try installing OrangeHRM. If it still doesn't work, try increasing the timeout to a higher value.
Request failed with status code 504
This error may occur due to the timeout settings on your Apache/NGINX server. You can try increasing the timeout and installing OrangeHRM again. Please check the following references:
Apache
- https://httpd.apache.org/docs/2.4/mod/core.html#timeout
- https://httpd.apache.org/docs/2.4/mod/core.html#keepalivetimeout
NGINX
- https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_timeout
- https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_read_timeout
Or, you can use our command line installer. Please see: How can I install/upgrade if I’m facing issues with the web installer/upgrader
Request failed with status code 500 (Installer)
This error may occur for various reasons. Please email us at ossupport@orangehrm.com and attach your log files (See: Where are my log files?)
Request failed with status code 500 (Upgrader)
You may get this error if you select the wrong “Current Version” when upgrading. Please ensure that you have selected the correct version.
If you are on OrangeHRM 4.10.1 or below, you can confirm your current version by either looking at the copyright footer or viewing your Conf.php file (located in your-orangehrm-folder/lib/confs).
If you are on OrangeHRM 5.0 or above, the current version will be automatically selected.
If this does not fix the issue, please email us at ossupport@orangehrm.com and attach your log file (See: Where are my log files?)
Comments
0 comments
Please sign in to leave a comment.