I recently installed YouTrack on a virtual server for doing issue tracking for a project of mine. The virtual server is hosted by Digital Ocean and is running Ubuntu server 12.04, YouTrack 5.1.2 and Nginx 1.1.19.
Every once in a while (between 10 minutes and a few hours), I get the following error in the youtrack error log:
ERROR [BaseUrlConfiguration] [request: /rest/agile/Progress-0/sprint/Unscheduled] [firstname.lastname@example.org
] Can't get local address
java.net.UnknownHostException: <hostname>: <hostname>
Full Stack Trace…
where <hostname> is the hostname of the server.
I've read around that this may be caused by a loss of internet connection, but I don't see why a loss of an internet connection would kill YouTrack. Once this error occurs, the server starts giving a 502 Bad Gateway error and I need to restart the YouTrack service.
Does anyone have any suggestions as to how I can fix this? I really want to use YouTrack but it's not really useable if I need to restart it constantly.