Timeout error while trying to download Guest Data

This error could be caused when Spotipo application takes a bit longer time to process data, typically due trying to export large number of guests.

Check the reason for error

Open an SSH shell to your spotipo server and try to see the last log lines.

sudo tail /usr/share/nginx/spotipo/logs/spotipo.log -n 400

If you see messages like 

SIGPIPE: writing to a closed pipe/socket/fd and uwsgi_response_writev_headers_and_body_do(): Broken pipe

Increase the nginx timeout

First create a backup of the original nginx.conf file:

cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf_old

Open the file /etc/nginx/nginx.conf in any text editor and add the following directives inside the http {} section:

uwsgi_read_timeout 1200s;
uwsgi_send_timeout 1200s;


Restart the nginx service by issuing the below command:

service nginx restart

Once done, you should be able to download guest data from Spotipo without any errors.


How did we do?