[mythtv-users] Frontend submits hardware profile every startup
Karl Newman
siliconfiend at gmail.com
Sat Jun 16 03:59:25 UTC 2012
On Fri, Jun 15, 2012 at 5:19 PM, Bill Meek <keemllib at gmail.com> wrote:
> On 06/15/2012 04:31 PM, Thomas Mashos wrote:
>>
>> On Fri, Jun 15, 2012 at 10:29 AM, Bill Meek<keemllib at gmail.com> wrote:
>>>
>>> On 06/15/2012 05:15 AM, John Veness wrote:
>
> ...
>>>>
>>>> 2012-06-13 07:55:13.646857 I [22447/22460] SystemManager
>>>> system-unix.cpp:342 (run) - Managed child (PID: 22471) has exited!
>>>> command=/usr/share/mythtv/hardwareprofile/sendProfile.py --submitOnly
>>>> -a,
>>>> status=256, result=1
>
> ...
>>>
>>> /usr/local/share/mythtv/hardwareprofile/sendProfile.py --submitOnly -a
>>> --debug,
>>>
>>> The following prints:
>>>
>>> Processing MythTV Data
>>> smoon server URL: http://smolt.mythtv.org/
>>> sendHostStr: {"default_runlevel": "2", "bogomips": "7233.01", much more
>>> data here ... }
>>> Sending Host
>>> Error contacting Server: HTTP Error 500: Internal error
>>> Could not send - Exiting
>
> ...
>>
>>
>> So I've been working with a user in our Mythbuntu IRC channel and we
>> resolved this issue for him. In mythtv-setup, he needed to set a PIN
>> (his was blank). Please try setting the PIN and seeing if that
>> resolves the 500 error for you and let me know.
>
>
> Hi;
>
> That fixed it for me too. My Master Backend PIN was blank and my
> Remote Frontend's PIN didn't exist. So, I added both (set to 0000)
> and now result=0. And, HardwareProfileLastUpdated now has today's
> date.
>
> Running from the command line still fails, so that looks like an
> invalid test.
>
> --
> Thanks,
>
> Bill
Well, the PIN on mine was blank (I assume you mean
mythtv-setup->General->Security PIN (required)), but setting it to
0000 did NOT fix the problem for me. I still have the delayed start of
the frontend, and every time I see "[mythfrontend] I CoreContext
hardwareprofile.cpp:164 (NeedsUpdate) Last hardware profile update was
> 30 days ago, update required..." in the log. This was after
restarting the backend a couple times and the frontend a few more
times. Running the command manually as above gives an error about
failing to connect to the backend as such:
2012-06-15 20:50:20.672719 C [12069] Python Backend Connection
Couldn't connect to backend [192.168.1.5]:6543
Traceback (most recent call last):
File "/usr/share/mythtv/hardwareprofile/sendProfile.py", line 420, in <module>
main()
File "/usr/share/mythtv/hardwareprofile/sendProfile.py", line 403, in main
profile = read_profile(gate, smolt.read_uuid())
File "/usr/share/mythtv/hardwareprofile/sendProfile.py", line 299,
in read_profile
profile = smolt.create_profile(gate, uuid)
File "/usr/share/mythtv/hardwareprofile/smolt.py", line 1251, in
create_profile
return create_profile_nocatch(gate, uuid)
File "/usr/share/mythtv/hardwareprofile/smolt.py", line 1243, in
create_profile_nocatch
return _HardwareProfile(gate, uuid)
File "/usr/share/mythtv/hardwareprofile/smolt.py", line 517, in __init__
self.distro_specific = self.get_distro_specific_data(gate)
File "/usr/share/mythtv/hardwareprofile/smolt.py", line 530, in
get_distro_specific_data
d.gather(gate, debug=True)
File "/usr/share/mythtv/hardwareprofile/distros/mythtv_data/main.py",
line 39, in gather
from data_mythtv import create_mythtv_data
File "/usr/share/mythtv/hardwareprofile/distros/mythtv_data/data_mythtv.py",
line 35, in <module>
_BE = MythTV.MythBE(db=_DB)
File "/usr/lib64/python2.7/site-packages/MythTV/mythproto.py", line
119, in __init__
self._conn.command = self._newcmdconn()
File "/usr/lib64/python2.7/site-packages/MythTV/mythproto.py", line
142, in _newcmdconn
self.blockshutdown)
File "/usr/lib64/python2.7/site-packages/MythTV/connections.py",
line 207, in __init__
raise MythBEError(MythError.PROTO_CONNECTION, self.host, self.port)
MythTV.exceptions.MythBEError: Failed to connect to backend at 192.168.1.5:6543
The address and port number are correct for the backend, and I ran the
test as the user that runs mythbackend and mythfrontend. Any other
ideas why this isn't working?
Karl
More information about the mythtv-users
mailing list