{"id":3368,"date":"2023-12-18T09:49:22","date_gmt":"2023-12-18T15:49:22","guid":{"rendered":"https:\/\/lab.rapternet.us\/?p=3368"},"modified":"2023-11-05T22:14:24","modified_gmt":"2023-11-06T04:14:24","slug":"unraid-api-causing-the-webui-to-fail-to-load","status":"publish","type":"post","link":"https:\/\/lab.rapternet.us\/?p=3368","title":{"rendered":"Unraid api causing the webui to fail to load"},"content":{"rendered":"\n<p>So recently my unraid webui has been running slowly, sometimes not showing the list of drives for a minute or two, or not at all. This finally culminated in an http 500 internal server error when I tried to load the main page. This isn&#8217;t good, and I was still able to access the server over ssh and via smb\/nfs, so it wasn&#8217;t completely dead.<\/p>\n\n\n\n<p>Time to debug over ssh. I first went to top and saw that shfs was at 100%+ CPU usage. This felt like an odd program to be using more than one CPU core of performance. I then went to the syslogs and saw lots of failed login attempts from a specific IP address. This wasn&#8217;t one I recognized, but I thought it might be a container I&#8217;m running (unraid api specifically).<\/p>\n\n\n\n<p>I then went and ran docker ps to get the list of containers, and more importantly, the name for my unraid API container. I then ran docker inspect on that container and found it had the IP in question. Finally I went and ran docker kill on the container and the unraid webui started responding again. I guess I had misconfigured the container so it was falling to login, and retrying aggressively enough to stall out the webui.<\/p>\n\n\n\n<p>Note to self, apps that scrape the webui should be configured correctly or else they may have some unintended consequences.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So recently my unraid webui has been running slowly, sometimes not showing the list of drives for a minute or two, or not at all. This finally culminated in an http 500 internal server error when I tried to load the main page. This isn&#8217;t good, and I was still able to access the server &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lab.rapternet.us\/?p=3368\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Unraid api causing the webui to fail to load&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[14,27],"class_list":["post-3368","post","type-post","status-publish","format-standard","hentry","category-rantop-ed","tag-quick-bites","tag-rant"],"_links":{"self":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/3368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3368"}],"version-history":[{"count":2,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/3368\/revisions"}],"predecessor-version":[{"id":3370,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/3368\/revisions\/3370"}],"wp:attachment":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}