No Internet Connection - No Entertainer

Bug #243309 reported by Andrew
2
Affects Status Importance Assigned to Milestone
Entertainer Media Center
Fix Released
High
Samuel Buffet

Bug Description

I don't know whether this is just me, but if you disconnect your pc from the internet (right click on the nm-applet in ubuntu and untick Enable Networking) then the Entertainer Backend says it starts, however it must crash as it does not then show up in task list.

Related branches

Revision history for this message
Joshua Scotton (joshuascotton) wrote :

I can't test this atm, although I think you're probably right.

You can run the entertainer-backend in the frontend by the following command:
./entertainer-backend.py --foreground

this should give you some more info on the problem

Revision history for this message
Andrew (and471) wrote :
Download full text (3.6 KiB)

Okay, here is the output I get when I run the command mentioned above. (It seems to be to do with Album Art)

Exception in thread AlbumArt Downloader:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/home/rugby471/Software/entertainer/src/utils/albumart_downloader.py", line 62, in run
    self.search()
  File "/home/rugby471/Software/entertainer/src/utils/albumart_downloader.py", line 175, in search
    self.search_next ()
  File "/home/rugby471/Software/entertainer/src/utils/albumart_downloader.py", line 204, in search_next
    temp = urllib.urlopen(url)
  File "/usr/lib/python2.5/urllib.py", line 82, in urlopen
    return opener.open(url)
  File "/usr/lib/python2.5/urllib.py", line 190, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.5/urllib.py", line 325, in open_http
    h.endheaders()
  File "/usr/lib/python2.5/httplib.py", line 860, in endheaders
    self._send_output()
  File "/usr/lib/python2.5/httplib.py", line 732, in _send_output
    self.send(msg)
  File "/usr/lib/python2.5/httplib.py", line 699, in send
    self.connect()
  File "/usr/lib/python2.5/httplib.py", line 667, in connect
    socket.SOCK_STREAM):
IOError: [Errno socket error] (-2, 'Name or service not known')

Exception in thread AlbumArt Downloader:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/home/rugby471/Software/entertainer/src/utils/albumart_downloader.py", line 62, in run
    self.search()
  File "/home/rugby471/Software/entertainer/src/utils/albumart_downloader.py", line 175, in search
    self.search_next ()
  File "/home/rugby471/Software/entertainer/src/utils/albumart_downloader.py", line 204, in search_next
    temp = urllib.urlopen(url)
  File "/usr/lib/python2.5/urllib.py", line 82, in urlopen
    return opener.open(url)
  File "/usr/lib/python2.5/urllib.py", line 190, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.5/urllib.py", line 325, in open_http
    h.endheaders()
  File "/usr/lib/python2.5/httplib.py", line 860, in endheaders
    self._send_output()
  File "/usr/lib/python2.5/httplib.py", line 732, in _send_output
    self.send(msg)
  File "/usr/lib/python2.5/httplib.py", line 699, in send
    self.connect()
  File "/usr/lib/python2.5/httplib.py", line 667, in connect
    socket.SOCK_STREAM):
IOError: [Errno socket error] (-2, 'Name or service not known')

Exception in thread AlbumArt Downloader:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/home/rugby471/Software/entertainer/src/utils/albumart_downloader.py", line 62, in run
    self.search()
  File "/home/rugby471/Software/entertainer/src/utils/albumart_downloader.py", line 175, in search
    self.search_next ()
  File "/home/rugby471/Software/entertainer/src/utils/albumart_downloader.py", line 204, in search_next
    temp = urllib.urlopen(url)
  File "/usr/lib/python2.5/urllib.py", line 82, in urlopen
    return opener.open(url)
  File "/usr/lib/python2.5/urllib.py", line 190, in open
    return getat...

Read more...

Revision history for this message
Paul Hummer (rockstar) wrote :

First of all, I'm not surprised that this bug exists. Today, my internet has sucked, and I'm experiencing this problem firsthand. I would like to see EVERYWHERE there is a request to go out to the internet wrapped in a try/except block with proper error handling.

To find where the issues are, turn off your network and run the tests. There are a few places that need to be looked at.

Once these fixes are ready, I'd like to merge this into the 0.1 branch for a 0.1.1 point release

Changed in entertainer:
importance: Undecided → High
milestone: none → entertainer-0.1.1
status: New → Triaged
Paul Hummer (rockstar)
Changed in entertainer:
assignee: nobody → rockstar
Paul Hummer (rockstar)
Changed in entertainer:
milestone: entertainer-0.1.1 → entertainer-0.2
Paul Hummer (rockstar)
Changed in entertainer:
milestone: entertainer-0.2 → none
Paul Hummer (rockstar)
Changed in entertainer:
assignee: rockstar → nobody
Revision history for this message
Samuel Buffet (samuel-buffet) wrote :

This is not a bug anymore since Paul fixed the backend to not automatically rebuild the cache.

I've made tests without internet connection. Trunk and latest released package are running fine.

Of course it may be a problem to rebuild cache offline but this is really another issue.

So I close that bug.

Samuel-

Changed in entertainer:
status: Triaged → Fix Released
Revision history for this message
Samuel Buffet (samuel-buffet) wrote :

I was wrong...

The weather screen is broken without Internet connection.

Bug reopened.

Changed in entertainer:
assignee: nobody → Samuel Buffet (samuel-buffet)
milestone: none → entertainer-0.5
status: Fix Released → In Progress
Revision history for this message
Samuel Buffet (samuel-buffet) wrote :

The lyrics download is also crashing.

But not the feeds update.

Revision history for this message
Samuel Buffet (samuel-buffet) wrote :

I've found nothing failing with a dead Internet connection.

So I set this bug status to "Fix committed" but I'll reopen it if I find something wrong later.

Changed in entertainer:
status: In Progress → Fix Committed
Matt Layman (mblayman)
Changed in entertainer:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.