Hello,

When replicating my CouchDB I get a 502 Bad Gateway nginx/1.10.3 error.  This seems to be coming from a heavier than normal traffic load but certainly not a heavy load.  How can I fix this?

Thank you.

Dean

Forum: 
Jeremy Davis's picture

First up, assuming this is a TurnKey appliance, it would be useful to know which TurnKey version it is. If you are unsure, please run the following from the commandline:

turnkey-version

The most common cause of a 502 from an appliance that uses a reverse proxy (such as CouchDB) is a crash of the backend system (CouchDB in this case). So hopefully the CouchDB log entries from around the time of the crash might shed some light? You should find the CouchDB log here: /usr/local/var/log/couchdb/

It might also be worth checking the Nginx logs, too? It will probably only have the 502 error recorded, but possibly worth a look anyway. You'll find that here: /var/log/nginx/

Add new comment