[mythtv-users] remote ssh to run mythtv-setup ( ssh -X mythtv at server mythtv-setup ) hangs on exit

Bill Meek keemllib at gmail.com
Sat Jul 14 23:22:50 UTC 2018


On 07/14/2018 06:01 PM, Greg Oliver wrote:
> On Sat, Jul 14, 2018 at 4:33 PM, Brent Bolin <brent.bolin at gmail.com> wrote:
> 
>> Issue I've seen lately is it just hangs after changes are made on a
>> headless mythtv install
>>
>> Get the dialog box that says: If you added or altered channels please run
>> mythfilldatabase on the master backend to populate the database with guide
>> information
>>
>> At that point I need to open another screen and kill the mythtv-setup
>> process.  Thought it has something to do with systemd not enabled but
>> appears to be something more
>>
>> NAME="Ubuntu"
>> VERSION="16.04.4 LTS (Xenial Xerus)"
>> mythtv-backend-master                2:0.28.2+fixes
>>
>> sudo systemctl stop mythtv-backend.service (works fine)
>> Also edited /etc/sudoers
>> mythtv ALL=(ALL) NOPASSWD: ALL
>>
>> Input would be appreciated hate crashing all the time
>> Brent Bolin
>>
>>> Some distro environments are not properly setup for -X and -Y
> 
> When I encounter them, adding a -t to the ssh cmdline usually fixes it.
> 
> ssh -X -t mythtv at host mythtv-setup
> 
> -Greg​

Might be worth checking the BackendStartCommand and BackendStopCommand:

  curl -H Accept:application/json yourBackend:6544/Myth/GetSetting?Key=BackendStartCommand\&HostName=_GLOBAL_

The response from mine is:

   {"String": "sudo \/bin\/systemctl start mythtv-backend.service"}

(the backslashes aren't really there)

-- 
Bill


More information about the mythtv-users mailing list