{"id":3702,"date":"2019-07-21T17:02:55","date_gmt":"2019-07-21T05:02:55","guid":{"rendered":"http:\/\/www.zoyinc.com\/?p=3702"},"modified":"2019-09-29T13:46:57","modified_gmt":"2019-09-29T00:46:57","slug":"two-mythtv-systems-on-the-same-lan","status":"publish","type":"post","link":"http:\/\/www.zoyinc.com\/?p=3702","title":{"rendered":"Two MythTV systems on the same LAN"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3720\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/TwoMythTVSystemsOneLan01.jpg\" alt=\"\" width=\"863\" height=\"100\" srcset=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/TwoMythTVSystemsOneLan01.jpg 863w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/TwoMythTVSystemsOneLan01-150x17.jpg 150w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/TwoMythTVSystemsOneLan01-300x35.jpg 300w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/TwoMythTVSystemsOneLan01-768x89.jpg 768w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/TwoMythTVSystemsOneLan01-500x58.jpg 500w\" sizes=\"auto, (max-width: 863px) 100vw, 863px\" \/>I have an aging MythTV frontend and separate backend that I need to upgrade. The plan of attack is to create a new system, get it running smoothly and work out a migration strategy. Then once the new system is working correctly switch over from old servers to new.<\/p>\n<p>All well and good except I am getting really strange behavior. The two systems seem to interact with each other in strange ways.<\/p>\n<p>It turns out the main thing is to turn off plug-n-play, uPnP.<\/p>\n<h2>Myth Backend<\/h2>\n<p>I am running Myth backend as a service, so first get the status by running:<\/p>\n<p style=\"padding-left: 30px;\">systemctl status mythbackend.service<\/p>\n<p>This gave:<\/p>\n<pre class=\"crayon:false;\">[root@mythsvr system]# systemctl status mythbackend.service\r\nmythbackend.service - MythTV backend service\r\n          Loaded: loaded (\/lib\/systemd\/system\/mythbackend.service; enabled)\r\n          Active: active (running) since Mon, 24 Jun 2019 21:02:00 +1200; 6s ago\r\n        Main PID: 19631 (mythbackend)\r\n          CGroup: name=systemd:\/system\/mythbackend.service\r\n                  \u2514 19631 \/usr\/bin\/mythbackend --logpath \/var\/log\/mythtv<\/pre>\n<p>While you could edit the service file directly this is not the correct, supported, approach. This is because if you do an update to the rpm it will wipe your changes.<\/p>\n<p>See:<\/p>\n<p style=\"padding-left: 30px;\"><strong>Red Hat: Chapter\u00a010.\u00a0Managing Services with systemd<\/strong><br \/>\n<a  href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/7\/html\/system_administrators_guide\/chap-Managing_Services_with_systemd#tabl-Managing_Services_with_systemd-Introduction-Units-Locations\">https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/7\/html\/system_administrators_guide\/chap-Managing_Services_with_systemd#tabl-Managing_Services_with_systemd-Introduction-Units-Locations<\/a><\/p>\n<p>Run the following:<\/p>\n<p style=\"padding-left: 30px;\">systemctl edit mythbackend.service<\/p>\n<p>This will open up nano with a blank document<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-3952\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/TwoMythTVSystemsOneLan02.jpg\" alt=\"\" width=\"463\" height=\"175\" \/><\/p>\n<p>Insert the following text:<\/p>\n<p style=\"padding-left: 30px;\">[Service]<br \/>\nExecStart=<br \/>\nExecStart=\/usr\/bin\/mythbackend &#8211;noupnp &#8211;logpath \/var\/log\/mythtv<\/p>\n<p>The first &#8220;ExecStart=&#8221; is important as it &#8220;clears&#8221; the ExecStart variable. If you don&#8217;t have it you will see errors like:<\/p>\n<pre class=\"crayon:false;\">mythbackend.service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.<\/pre>\n<p>Once you have done this run:<\/p>\n<p style=\"padding-left: 30px;\">systemctl daemon-reload<br \/>\nsystemctl restart mythbackend.service<\/p>\n<p>The daemon-reload is important to allow systemctl to reload all the configs from the files.<\/p>\n<p>Editing it this way will create a folder:<\/p>\n<p style=\"padding-left: 30px;\">\/etc\/systemd\/system\/mythbackend.service.d<\/p>\n<p>and the file:<\/p>\n<p style=\"padding-left: 30px;\">\/etc\/systemd\/system\/mythbackend.service.d\/override.conf<\/p>\n<p>If you get stuck and need to start again, delete the override.conf and run:<\/p>\n<p style=\"padding-left: 30px;\">systemctl daemon-reload<\/p>\n<p>If you look at the status now you should see &#8220;&#8211;noupnp&#8221;:<\/p>\n<pre class=\"crayon:false;\">[root@mythsvr system]# systemctl status mythbackend.service\r\nmythbackend.service - MythTV backend service\r\n          Loaded: loaded (\/lib\/systemd\/system\/mythbackend.service; enabled)\r\n          Active: active (running) since Mon, 24 Jun 2019 21:02:47 +1200; 2s ago\r\n        Main PID: 19806 (mythbackend)\r\n          CGroup: name=systemd:\/system\/mythbackend.service\r\n                  \u2514 19806 \/usr\/bin\/mythbackend <span style=\"background-color: #ffff00;\">--noupnp<\/span> --logpath \/var\/log\/mythtv\r\n<\/pre>\n<h2>MythTv FrontEnd<\/h2>\n<p>Just as you need to disable Universal Plug and Play on the backend you should also disable this on the frontend.<\/p>\n<p>This is what I did for my Fedora frontend. On a frontend you will likely run it from a shortcut on the desktop. So for me I ran:<\/p>\n<p style=\"padding-left: 30px;\">locate frontend | grep desktop<\/p>\n<p>This returned a location of:<\/p>\n<p style=\"padding-left: 30px;\">\/usr\/share\/applications\/RPMFusion-mythfrontend.desktop<\/p>\n<p>Open this up in your favorite editor and look for a line:<\/p>\n<p style=\"padding-left: 30px;\">Exec=mythfrontend<\/p>\n<p>Simply change this to:<\/p>\n<p style=\"padding-left: 30px;\">Exec=mythfrontend &#8211;noupnp<\/p>\n<p>and restart your frontend.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have an aging MythTV frontend and separate backend that I need to upgrade. The plan of attack is to create a new system, get it running smoothly and work out a migration strategy. Then once the new system is working correctly switch over from old servers to new. All well and good except I [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":3723,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[207,549,544,298,548,547,545,94,543,546],"class_list":["post-3702","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mythtv","tag-backend","tag-dual","tag-master","tag-mythtv","tag-plug-and-play","tag-pnp","tag-pvr","tag-setup","tag-two-masters","tag-upnp"],"_links":{"self":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts\/3702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3702"}],"version-history":[{"count":7,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts\/3702\/revisions"}],"predecessor-version":[{"id":3951,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts\/3702\/revisions\/3951"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/media\/3723"}],"wp:attachment":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3702"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}