Knowledge Base
4.3.x
Search this version
Knowledge Base
Knowledge Base
CONFIGURATION & SETUP
Errors and Troubleshooting
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Why does a report fail to load with error "API took too long to respond"?
Copy Markdown
Open in ChatGPT
Open in Claude
This article applies to all MDSS versions
When opening a report in MDSS, the UI displays the following error:
API took too long to respond. Please try again later
The database queries are taking more than 60 seconds to return, triggering the default web server (nginx) timeout.
Increase the nginx proxy timeout and PostgreSQL query timeout values.
Both changes are required.
For Windows
- Stop MDSS services
- Increase Nginx Timeout
Create a backup of the nginx configuration file at
C:\Program Files\OPSWAT\MetaDefender Storage Security\webclient\default.conf, then edit the default.conf file Add or modify the following values in the appropriatelocationorhttpblock:
3
3
1
proxy_connect_timeout 300s;2
proxy_send_timeout 300s;3
proxy_read_timeout 300s;- Increase PostgreSQL Timeout
Edit the MDSS environment configuration file at
C:\Program Files\OPSWAT\MetaDefender Storage Security\config\customer.envModify thePOSTGRESQL_URLparameter to include increased timeout values. Example:
1
1
1
POSTGRESQL_URL=Host=postgres;Port=5432;Username=mdss;Password=<password>;Database=MDSS;Timeout=300;CommandTimeout=300- Start MDSS services
For Linux
- Stop MDSS service
1
1
1
sudo mdss -c stop- Increase Nginx Timeout Run the bellow command
1
1
sudo awk '/proxy_intercept_errors off;/{print; print " proxy_connect_timeout 300s;"; print " proxy_send_timeout 300s;"; print " proxy_read_timeout 300s;"; next}1' /etc/mdss/webclient/default.conf | sudo tee /etc/mdss/webclient/default.conf.tmp && sudo mv /etc/mdss/webclient/default.conf.tmp /etc/mdss/webclient/default.confThis will create a backup of the config file /etc/mdss/webclient/default.confand increase the nginx timeout to 300ms
- Increase the timeout for the PostgreSQL database by modifying the
POSTGRESQL_URLin the/etc/mdss/customer.envfile:- Set
Timeoutto 300. - Set
CommandTimeoutto 300.
- Set
Here's an example of how the POSTGRESQL_URL should look:
1
1
POSTGRESQL_URL=Host=postgres;Port=5432;Username=mdss;Password=a3ZPzF1VIN3RzCu5YWrl;Database=MDSS;Timeout=300;CommandTimeout=300- Start MDSS service
1
1
1
sudo mdss -c start- Increasing the timeout allows long-running report queries to complete successfully.
- If the issue occurs frequently, it may indicate:
- very large report datasets
- insufficient database resources
- missing database indexes
In those cases, further database performance tuning may be required.
If Further Assistance is required, please proceed to log a support case or chatting with our support engineer.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
