[mythtv-users] find_orphans.py tries to connect to invalid host

Robin Gilks g8ecj at gilks.org
Sun Feb 22 10:40:45 UTC 2015


I've turned on logging after a gap of a couple of years and am tracking
down a few errors being reported - I'm on 0.27.4. One was what looks like
orphan files.

I grabbed find_orphans.py but when I run it I get the following error(s)


$ ./find_orphans.py
2015-02-22 23:36:37.574188 C [19654] Python Backend Connection Couldn't
connect to backend [192.168.1.33]:6543
Traceback (most recent call last):
  File "./find_orphans.py", line 313, in <module>
    main()
  File "./find_orphans.py", line 269, in main
    results = populate(host)
  File "./find_orphans.py", line 26, in __call__
    return self._instance()
  File "./find_orphans.py", line 137, in __call__
    self.refresh_content()
  File "./find_orphans.py", line 181, in refresh_content
    elif rec.doubleorphan:
  File "./find_orphans.py", line 62, in doubleorphan
    return self.deletepending and ((datetime.now - self.lastmodified).days
> 1)
TypeError: unsupported operand type(s) for -: 'instancemethod' and 'datetime'

What is particularly odd is that the IP address 192.168.1.33 was assigned
to my very first *front*end but hasn't been in use for some 3-4 years so
why is is the script try to connect to it?

The backend is on 192.168.1.10 but I can't find anything on the system
that actually defines that (config.xml defines the database *NOT* the
backend address).


-- 
Robin Gilks




More information about the mythtv-users mailing list