I am getting >504 Gateway Time-out on forget password call.
i have migrated to latest version 3.2.5 of strapi.
this was not working in the earlier version too
UBUNTU 18
I have attached the error, and the admin panel of strapi subdomain configuration in NGINX
Alright a few things that I need and a few suggestions.
Things to remove:
The 3rd server block that is doing some redirection, that shouldn’t be needed
Remove the include /etc.... line
Remove the ssl_dhparam .... line
Things I need:
The tail end of your Nginx error logs that show what request it was trying to make and why it failed, these should be located in /var/log/nginx/error.log, I don’t need the whole file just the lines around the error.
Your server.js file removing any personal information, either this is located in ./config/server.js or you may have an environment configured ./config/env/*/server.js
the config/server.js (I dont have any environment configured)
module.exports = ({ env }) => ({
host: env(‘HOST’, ‘0.0.0.0’),
port: env.int(‘PORT’, 1337),
url: ‘https://admin.exerche.com’,
admin: {
auth: {
secret: env(‘ADMIN_JWT_SECRET’,‘THE_LONG_SECRET_KEY’),
},
},
});
I didnt change the email provider. i didnt do any settings. i tried sendgrid, but that didnt work so i reverted back. i have no complex task. just need the forget password to work via api.
Thanks.
PS: I did as you asked be removing those lines etc from the config file. didnt work
Ah yeah that’s quite odd, it even stalls when using the http:1337 as well, can you check your Strapi server logs, it seems like it’s locking up for some reason and I’m wondering if it’s dumping any information to the Strapi console. (Assuming you are using pm2, those logs should be in ~/.pm2/logs, of the user running strapi, if you are using pm2)
Do you use ecosystem file for pm2 (pm2 start ecosystem.config.js) ?
Or you running it using server.js file (pm2 start server.js)?
Or you run it using packege.json script (pm2 start npm – run start)?