Title: Error 504 &#8211; Gateway timeout while import
Last modified: December 11, 2021

---

# Error 504 – Gateway timeout while import

 *  Resolved [unimawb](https://wordpress.org/support/users/unimawb/)
 * (@unimawb)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-504-gateway-timeout-while-import/)
 * Hi,
 * In an attempt to import 1000 users, only 65 users were imported, and the process
   was terminated with the error “Error 504 – Gateway Timeout”.
 * PHP Version 7.4.3
    Server FPM/FastCGI max_execution_time is set to 1200 memory_limit
   to 512
 * What can be done to make the whole import without problems?
 * Thanks in advance

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-504-gateway-timeout-while-import/#post-15154997)
 * [@unimawb](https://wordpress.org/support/users/unimawb/),
 * The problem is that you are using some kind of proxy, like nginx, and the import
   is being stopped because of it.
 * Ask your hosting to increase max execution time not only in PHP, also in other
   componentes.
 *  [mahyulan](https://wordpress.org/support/users/mahyulan/)
 * (@mahyulan)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-504-gateway-timeout-while-import/#post-15231207)
 * Hello,
 * I have same problem.
    502 or 503 errors on nginx. My provider changed all kind
   of settings to no avail. Can you be more speficied what settings to change?
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-504-gateway-timeout-while-import/#post-15232483)
 * The plugin makes an import that is a very long task. So you have to increase 
   all execution time.
 * Anyway, we are working on a new version that will prepare a batch importer to
   prevent these problems of limits.
 *  [mahyulan](https://wordpress.org/support/users/mahyulan/)
 * (@mahyulan)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-504-gateway-timeout-while-import/#post-15232624)
 * Hi Javier,
 * My provider CloudWays has set all settings to almost limitless, but when starting
   an import of a small 21kB file with 20 users, the back-end keeps waiting and 
   is never coming back. Strangely enough though by forcing the browser to reload
   it seems that the users have been imported. But I don’t know if all is complete.
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-504-gateway-timeout-while-import/#post-15234631)
 * The problem as I told is how the plugin works. We are improving it by making 
   a JS call but now, only the export works in this way.
 * The import works in the old style trying to do it in a very long step.
 * If you have a proxy… you can have those problems you are telling me.
 * We have not much time but this is important so we expect to have it ready soon.
 *  [wanderer0621](https://wordpress.org/support/users/wanderer0621/)
 * (@wanderer0621)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/error-504-gateway-timeout-while-import/#post-15707514)
 * Hi.. would uploading the user import file to the server and run it that way help
   in the process of creating users?
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-504-gateway-timeout-while-import/#post-15715995)
 * No, the time would be the same. The bottle neck here is the database insertions.
 * Anyway, I hope soon to have the async import done. Sorry for all the incoveniences.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Error 504 – Gateway timeout while import’ is closed to new replies.

 * ![](https://ps.w.org/import-users-from-csv-with-meta/assets/icon-256x256.png?
   rev=1174343)
 * [Import and export users and customers](https://wordpress.org/plugins/import-users-from-csv-with-meta/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/import-users-from-csv-with-meta/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/)
 * [Active Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/error-504-gateway-timeout-while-import/#post-15715995)
 * Status: resolved