[mythtv-users] Brand new install - Mythbackend doesn't start

Ashu Desai ashu.desai at gmail.com
Mon Jul 31 23:28:09 UTC 2017


***FIXED***

What a rookie mistake! Figured out the reason the darn thing didn't like
taking an actual IP but 127.0.0.1

I had DHCP on my server! I was building VMs so never put a static (thinking
i would when i get this working...)

Make the IP static, and boom, it works.

(hope i am not celebrating too early, but i restarted the backend service a
few times and works)

Thank you all for the time and effort.



On Mon, Jul 31, 2017 at 4:39 PM, Ashu Desai <ashu.desai at gmail.com> wrote:

>
>
> On Mon, Jul 31, 2017 at 4:12 PM, Mark Perkins <perkins1724 at hotmail.com>
> wrote:
>
>> On 1 August 2017 1:55:27 am Ashu Desai <ashu.desai at gmail.com> wrote:
>>
>> > On Sun, Jul 30, 2017 at 11:34 AM, Hika van den Hoven <hikavdh at gmail.com
>> >
>> > wrote:
>> >
>> >> Hoi Ashu,
>> >>
>> >> Sunday, July 30, 2017, 6:21:24 PM, you wrote:
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> > On Sat, Jul 29, 2017 at 7:12 PM, DryHeat122 . <dryheat122 at gmail.com>
>> >> wrote:
>> >>
>> >> > IDK about a zero card backend, but I would investigate
>> >>
>> >
>> > i added the "test demo" card - didn't make a difference.
>> >
>> >
>> >>
>> >>
>> >> > 170729 15:51:26 [Note] Hostname 'mythmaster.localdomain' does not
>> >> resolve to '172.16.10.188'.
>> >> > 170729 15:51:26 [Note] Hostname 'mythmaster.localdomain' has the
>> >> following IP addresses:
>> >> > 170729 15:51:26 [Note]  - ::1%1
>> >>
>> >>
>> >> > Backend does not like IP address confusion.
>> >>
>> >>
>> >>
>> >> > That is exactly what I am trying to troubleshoot. I looked at the
>> >> database,
>> >>
>> >>
>> >> > Here's the output:
>> >>
>> >>
>> >> > -----------------------
>> >> > | ImageTransitionType               | 1
>> |
>> >> NULL                   |
>> >> > | ImageTransitionTime               | 1000
>> |
>> >> NULL                   |
>> >> > | BackendServerIP                   | 172.16.10.188
>> |
>> >> mythmaster.localdomain |
>> >> > | AllowLinkLocal                    | 1
>> |
>> >> mythmaster.localdomain |
>> >> > | BackendServerPort                 | 6543
>> |
>> >> mythmaster.localdomain |
>> >> > | BackendStatusPort                 | 6544
>> |
>> >> mythmaster.localdomain |
>> >> > | MasterServerIP                    | 172.16.10.188
>> |
>> >> NULL                   |
>> >> > | MasterServerPort                  | 6543
>> |
>> >> NULL                   |
>> >> > | MasterBackendOverride             | 1
>> |
>> >> NULL                   |
>> >> > | DeletesFollowLinks                | 0
>> |
>> >> NULL                   |
>> >> > | TruncateDeletesSlowly             | 0
>> |
>> >> mythmaster.localdomain |
>> >> > | HDRingbufferSize                  | 9400
>> |
>> >> NULL                   |
>> >> > | StorageScheduler                  | BalancedFreeSpace
>> |
>> >> NULL                   |
>> >> > | UPnP/WMPSource                    | 0
>> |
>> >> NULL                   |
>> >> > | DisableAutomaticBackup            | 0
>> |
>> >> NULL                   |
>> >> > | DisableFirewireReset              | 0
>> |
>> >> mythmaster.localdomain |
>> >> > | EITTransportTimeout               | 5
>> |
>> >> NULL                   |
>> >> > | EITCrawIdleStart                  | 60
>> |
>> >> NULL                   |
>> >>
>> >>
>> >> > -----------------------
>> >>
>> >> > I don't see anywhere during mythtv-setup or on frontend setup
>> >> > either where the IP is not given that would say 0.0.0.0
>> >>
>> >>
>> >> > Personally I think this is what is causing it - but can't seem to
>> figure
>> >> out where to look for it.
>> >>
>> >>
>> >>
>> >>
>> >> > Also check the log to find out which config.xml is being used. It
>> >> > can exist in like three different places, but only one is actually
>> >> > used. One on of my systems it's in /etc/mythtv and on another it's in
>> >> /home/[username]/.mythtv
>> >>
>> >>
>> >>
>> >> > the /var/log/messages say it's using
>> >>
>> >>
>> >> > ---------------------
>> >> > Jul 30 11:16:50 mythmaster systemd: Started MythTV backend service.
>> >> > Jul 30 11:16:50 mythmaster systemd: Starting MythTV backend
>> service...
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.924896
>> >> > C  mythbackend version: fixes/0.28 [v28.0-35-g812ec08]
>> www.mythtv.org
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.924912
>> >> > C  Qt version: compile: 5.6.1, runtime: 5.6.1
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.924914 N
>> >>  Enabled verbose msgs:  general
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.924968 N
>> >>  Setting Log Level to LOG_INFO
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.935825 I
>> >>  Added logging to the console
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.936057 I
>> >>  Setup Interrupt handler
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.936061 I
>> >>  Setup Terminated handler
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.936064
>> >> > I  Setup Segmentation fault handler
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.936066 I
>> >>  Setup Aborted handler
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.936069 I
>> >>  Setup Bus error handler
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.936073
>> >> > I  Setup Floating point exception handler
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.936075
>> >> > I  Setup Illegal instruction handler
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.936081
>> >> > I  Setup Real-time signal 0 handler
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.936084 I
>> >>  Setup Hangup handler
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.936107 N
>> >>  Read conf dir = /etc/mythtv
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.936131 N
>> >>  Using runtime prefix = /usr
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.936132
>> >> > N  Using configuration directory = /etc/mythtv
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.936175
>> >> > I  Assumed character encoding: en_US.UTF-8
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.936412 N
>> >>  Empty LocalHostName.
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.936417
>> >> > I  Using localhost value of mythmaster.localdomain
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.943621
>> >> > N  Setting QT default locale to en_US
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.943628 I
>> >>  Current locale en_US
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.943653
>> >> > N  Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.947643
>> >> > I  Loading en_us translation for module mythfrontend
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.953134
>> >> > I  Current MythTV Schema Version (DBSchemaVer): 1344
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.953377
>> >> > I  Loading en_us translation for module mythfrontend
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.954626
>> >> > N  MythBackend: Starting up as the master server.
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.955318
>> >> > W  MythBackend: No valid capture cards are defined in the database.
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:50.955618
>> >> > E  Scheduler: No capture cards are defined in the database.
>> >> > Jul 30 11:16:51 mythmaster mythbackend: Perhaps you should re-read
>> the
>> >> installation instructions?
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:51.036408
>> >> > I  Added logging to
>> >> > /var/log/mythtv/mythbackend.20170730161650.25258.log
>> >> > Jul 30 11:16:51 mythmaster mythbackend: 2017-07-30 11:16:51.128501
>> >> > I  Removed logging to
>> >> > /var/log/mythtv/mythbackend.20170730161650.25258.log
>> >> > Jul 30 11:16:51 mythmaster systemd: mythbackend.service: main
>> >> > process exited, code=exited, status=1/FAILURE
>> >> > Jul 30 11:16:51 mythmaster systemd: Unit mythbackend.service entered
>> >> failed state.
>> >> > Jul 30 11:16:51 mythmaster systemd: mythbackend.service failed.
>> >>
>> >>
>> >> > ----------------------
>> >>
>> >>
>> >>
>> >> > Not sure what seems to be causing it.
>> >>
>> >>
>> >> Try adding your ip-address/hostname to /etc/hosts.
>> >>
>> >> You probably there have:
>> >>
>> >> 127.0.0.1    localhost
>> >> ::1          localhost
>> >>
>> >> Try adding:
>> >>
>> >> 172.16.10.188      mythmaster       mythmaster.localdomain
>> >>
>> >
>> > Added this - failed again.
>> >
>> >
>> >
>> >>
>> >>
>> >> Tot mails,
>> >>   Hika                            mailto:hikavdh at gmail.com
>> >>
>> >> "Zonder hoop kun je niet leven
>> >> Zonder leven is er geen hoop
>> >> Het eeuwige dilemma
>> >> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>> >>
>> >> De lerende Mens
>> >>
>> >>
>> >
>> > Basically - mythbackend as a service is working when I reboot the
>> server.
>> > But after that - any changes in setup breaks it. Restarting doesn't
>> help.
>> >
>> >
>> >
>> > ----------
>> > _______________________________________________
>>
>> What does the status command show after a stop start:
>> systemctl stop mythbackend.service
>> systemctl start mythbackend.service
>> systemctl status mythbackend.service
>>
>
> [root at myth ~]# systemctl status mythbackend
> ● mythbackend.service - MythTV backend service
>    Loaded: loaded (/usr/lib/systemd/system/mythbackend.service; disabled;
> vendor preset: disabled)
>    Active: failed (Result: exit-code) since Mon 2017-07-31 16:30:12 CDT;
> 2s ago
>   Process: 7213 ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv
> (code=exited, status=1/FAILURE)
>  Main PID: 7213 (code=exited, status=1/FAILURE)
>
> Jul 31 16:30:11 myth mythbackend[7213]: 2017-07-31 16:30:11.872348 I
> Loadin...d
> Jul 31 16:30:11 myth mythbackend[7213]: 2017-07-31 16:30:11.873311 N
> MythBa....
> Jul 31 16:30:11 myth mythbackend[7213]: 2017-07-31 16:30:11.874517 E
> TVRec[....
> Jul 31 16:30:11 myth mythbackend[7213]: 2017-07-31 16:30:11.883072 E
> Schedu...e
> Jul 31 16:30:11 myth mythbackend[7213]: 2017-07-31 16:30:11.883175 E
> Error ...1
> Jul 31 16:30:11 myth mythbackend[7213]: 2017-07-31 16:30:11.883176 E
> Error ...e
> Jul 31 16:30:11 myth mythbackend[7213]: 2017-07-31 16:30:11.967232 I
> Added ...g
> Jul 31 16:30:12 myth systemd[1]: mythbackend.service: main process exited,
> ...RE
> Jul 31 16:30:12 myth systemd[1]: Unit mythbackend.service entered failed
> state.
> Jul 31 16:30:12 myth systemd[1]: mythbackend.service failed.
> Hint: Some lines were ellipsized, use -l to show in full.
>
>
>
>> Otherwise journalctl should show something.
>>
>
> So this is what i found out. It works IF:
>
> mythtv-setup --> general --> I put in 127.0.0.1 as the backend
> Doesn't matter if I have the actual IP under mythfrontend/setup
>
> I tried it multiple times - only works if mythtv-setup shows 127.0.0.1
>
> (also - it seems when i try to scan my video folder it keeps saying
> "localhost.localdomain" even though my /etc/hosts is the following:
>
> 172.16.10.188  myth myth.localdomain
> 127.0.0.1   localhost localhost.localdomain localhost4
> localhost4.localdomain4 myth
> ::1         localhost localhost.localdomain localhost6
> localhost6.localdomain6
>
>


-- 
http://about.me/adesai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20170731/c680645f/attachment.html>


More information about the mythtv-users mailing list