We observe quite a weird issue with Data Import Tool on an instance of ERP Next running in production mode.
The data import tool will freeze (with no further changes to the import progress bar and no error messages shown in UI) and hang indefinitely. At the same time we see the following in web.error.log
No other error messages detected in any of different error logs on the backend.
We tried increasing the worker timeout values (actually we doubled it) with no luck.
We were trying to upload csv files with about 5000 records for Address DocType as we observed this problem. The same csv file was processed successfully by Data Import Tool of another ERP Next instance configured to run in Developer Mode.
Has anyone observed the issues like this in past? What is the best way to address it?
Just for the record, both ERP Next instances referred above run the same configuration as follows
@nabinhait: thanks for the suggestion. We will try this approach the next time we are embarked on a massive data import activity.
P.S. For the specific case we had last night, we temporarily enabled Developer mode on the target ERP N instance, uploaded files in the batches of ~5k records and then switched the instance back to Production mode.
Just to follow up on what we did after @felix and @nabinhait shared their suggestions, here is the summary
we increased the session timeout on nginx up to 30 min
we increased the session timeout on gunicorn up to 30 min
we trippled the number of workers to start by gunicorn vs. its default value
The combination of those three configuration changes helped to cook our noodles, and we were able to load the batch import file with the size of about 5k records (for Address DocType) to an instance of ERP Next with Production mode set on.