{"id":10374,"date":"2023-09-06T18:55:03","date_gmt":"2023-09-06T23:55:03","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=10374"},"modified":"2023-09-07T11:00:19","modified_gmt":"2023-09-07T16:00:19","slug":"redis-continually-receiving-sigterm","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=10374","title":{"rendered":"Redis Continually Receiving SIGTERM"},"content":{"rendered":"<p>I brought up a redis cluster &#8212; three servers which <em>all<\/em> logged basically nothing apart from the fact they were about to shut down. The service status showed as &#8220;Activating&#8221; &#8212; never started &#8212; and the server wasn&#8217;t doing anything useful.<\/p>\n<p>The redis log reads:<\/p>\n<pre>2920940:signal-handler (1694019281) Received SIGTERM scheduling shutdown...\r\n2921151:signal-handler (1694019374) Received SIGTERM scheduling shutdown...\r\n2921518:signal-handler (1694019468) Received SIGTERM scheduling shutdown...\r\n2921726:signal-handler (1694019561) Received SIGTERM scheduling shutdown...\r\n2922133:signal-handler (1694019655) Received SIGTERM scheduling shutdown...\r\n2922410:signal-handler (1694019748) Received SIGTERM scheduling shutdown...\r\n2923173:signal-handler (1694019842) Received SIGTERM scheduling shutdown...\r\n2923537:signal-handler (1694019935) Received SIGTERM scheduling shutdown...\r\n2923747:signal-handler (1694020029) Received SIGTERM scheduling shutdown...\r\n2924110:signal-handler (1694020122) Received SIGTERM scheduling shutdown...\r\n2924319:signal-handler (1694020216) Received SIGTERM scheduling shutdown...\r\n2924687:signal-handler (1694020309) Received SIGTERM scheduling shutdown...\r\n2924900:signal-handler (1694020403) Received SIGTERM scheduling shutdown...\r\n2925266:signal-handler (1694020496) Received SIGTERM scheduling shutdown...\r\n2925467:signal-handler (1694020590) Received SIGTERM scheduling shutdown...<\/pre>\n<p>Turns out this is a hazard of copy\/pasting a unit file from an older server &#8212; evidently redis cannot use a service type of &#8220;Forking&#8221; with systemd. To resolve the issue, edit <code>\/etc\/systemd\/system\/redis.service<\/code> and updating the type to &#8220;simple&#8221;. Use <code>systemctl daemon-reload<\/code> and then <code>systemctl restart redis<\/code> to launch redis with the new config &#8230; voila, I&#8217;ve got a cluster of three servers that are <em>started<\/em> and communicating.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I brought up a redis cluster &#8212; three servers which all logged basically nothing apart from the fact they were about to shut down. The service status showed as &#8220;Activating&#8221; &#8212; never started &#8212; and the server wasn&#8217;t doing anything useful. The redis log reads: 2920940:signal-handler (1694019281) Received SIGTERM scheduling shutdown&#8230; 2921151:signal-handler (1694019374) Received SIGTERM &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[427,586],"class_list":["post-10374","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-redis","tag-systemd"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10374"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10374\/revisions"}],"predecessor-version":[{"id":10375,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10374\/revisions\/10375"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}