Flumotion does not start: AttributeError: 'EPollReactor' object has no attribute 'listenWith'

Bug #1200954 reported by Šarūnas Burdulis
64
This bug affects 12 people
Affects Status Importance Assigned to Milestone
flumotion (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Flumotion does not start on fresh install of Ubuntu 13.04 amd64 Server.

# cat /var/log/flumotion/service.log
INFO [ 1013] servicer Jul 13 11:43:22 Starting manager default (flumotion/service/service.py:409)
INFO [ 1013] servicer Jul 13 11:43:22 Loading planet /etc/flumotion/managers/default/planet.xml (flumotion/service/service.py:421)
INFO [ 1013] servicer Jul 13 11:43:22 Started manager default with pid 1020 (flumotion/service/service.py:457)
INFO [ 1048] servicer Jul 13 11:43:22 Starting worker default (flumotion/service/service.py:474)
INFO [ 1048] servicer Jul 13 11:43:22 Loading worker /etc/flumotion/workers/default.xml (flumotion/service/service.py:498)
INFO [ 1050] jelly Jul 13 11:43:23 GnomeVFS registered (flumotion/common/vfsgnome.py:122)
INFO [ 1050] jelly Jul 13 11:43:23 GIO registered (flumotion/common/vfsgio.py:137)
INFO [ 1050] jelly Jul 13 11:43:23 VFS registered (flumotion/common/vfs.py:92)
Traceback (most recent call last):
  File "/usr/bin/flumotion-worker", line 43, in <module>
    boot.boot(PROGRAM_PATH, gtk=False, gst=False, installReactor=False)
  File "/usr/lib/flumotion/python/flumotion/common/boot.py", line 305, in boot
    sys.exit(wrapped(sys.argv))
  File "/usr/lib/flumotion/python/flumotion/worker/main.py", line 229, in main
    if not brain.listen():
  File "/usr/lib/flumotion/python/flumotion/worker/worker.py", line 143, in listen
    self.feedServer = self._makeFeedServer()
  File "/usr/lib/flumotion/python/flumotion/worker/worker.py", line 176, in _makeFeedServer
    return feedserver.FeedServer(self, ProxyBouncer(self), port)
  File "/usr/lib/flumotion/python/flumotion/worker/feedserver.py", line 51, in __init__
    self.listen(bouncer, portNum)
  File "/usr/lib/flumotion/python/flumotion/worker/feedserver.py", line 64, in listen
    tport = reactor.listenWith(fdserver.PassableServerPort, portNum,
AttributeError: 'EPollReactor' object has no attribute 'listenWith'
WARN [ 1048] servicer Jul 13 11:43:23 worker default could not start (return value 1) (flumotion/service/service.py:518)

# lsb_release -rd
Description: Ubuntu 13.04
Release: 13.04

# apt-cache policy flumotion
flumotion:
  Installed: 0.10.0-3
  Candidate: 0.10.0-3
  Version table:
 *** 0.10.0-3 0
        500 http://euler/ubuntu.thayer.dartmouth.edu/ raring/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in flumotion (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Heath (devildoggodlived) wrote :

I ugraded to 13.04 and because of this bug, I had to move back to "Release 12.10 (quantal) 64-bit" on my on-demand video server.
I found this problem right when 13.04 was released!
I just now found this bug, and tested this again -- the log produced by running "cat /var/log/flumotion/service.log" was identical to what is reported above!!!!
..............
--> This software is very simple to use and configure -- however, it is very sophisticated in the video formats and methods it implements to the end user! It was refeshing in how easy it was to inplement of on-demand streaming or a web cam!
-- > please bump this up in priority -- Importance: "Undecided" is not good enough!!
..............
If I can help to debug this please advise on what you need.... Thanks.

Revision history for this message
Michael Heath (devildoggodlived) wrote :
Revision history for this message
Moses Moore (moses-mozai) wrote :

May be a disconnect between the flumotion.worker.feedsesrver code and twisted python.

`AttributeError: 'EPollReactor' object has no attribute 'listenWith'`
`tport = reactor.listenWith(...`
`from twisted.internet import reactor`
`python -c 'from twisted.internet import reactor; print repr(dir(reactor))'`
... I see 'listenMulticast', 'listenSSL', 'listenTCP', 'listenUDP', 'listenUNIX', 'listenUNIXDatagram', but no 'listenWith'.

Reading http://twistedmatrix.com/trac/ticket/367 , it seems the 'listenWith()' method was asked to be removed ten years ago, and was actually deprecated four years ago.

Revision history for this message
Michael Heath (devildoggodlived) wrote :

Just an FYI --> Tested on Ubuntu 13.10: same error.

Revision history for this message
Paweł Szubert (9-pqwel-0) wrote :

Just for confirmation: Ubuntu 13.10, package for precise (latest stable), same error.

Revision history for this message
Patrick Steiner (patrick-helmsdeep) wrote :

Latest version of Ubuntu 13.10 also crashes. It look like the listenWith method is not available with python-twisted anymore.

Revision history for this message
elbixente (vinlam) wrote :

Latest version Ubuntu 14.04 also have the same problem.

Revision history for this message
Kenji Noguchi (knoguchi) wrote :

There is a patch proposed at the upstream. I applied it, and worked nicely.
http://lists.fluendo.com/pipermail/flumotion-devel/2014-January/000698.html

Revision history for this message
Michael Heath (devildoggodlived) wrote :

I tested the above patch on Ubuntu 14.04 LTS--

a) I used the "Ubuntu Software Center" to install the Flumotion.
b) When I tried to setup a ondemand stream, it failed as documented in this bug. (e.g. start a new manager and connect to it)
c) then I applied the patch at http://lists.fluendo.com/pipermail/flumotion-devel/2014-January/000698.html
d) Now, I can:
--> Start a new manager and connect to it
--> I click the connect button, and get to the flumotion configuration assistant, click forward
--> select the create ondemand stream radio button, click forward
--> fill out my usual settings on the ondemand stream dialog, click forward, click finish

The porter-http component starts no problem with a smiley face.

The http-server-ondemand component fails with a sad face with a tear. (haha!)

Here is the error
--------------------------
The component could not be started.
Posted on Sat 06 Dec 2014 09:43:08 PM EST.
Debug information:
failure flumotion.common.errors.ComponentCreateError: module flumotion.component.misc.httpserver.httpserver could not be imported (exception ImportError at flumotion/common/package.py:54: import_module(): cannot import name md5)

So close, but no cigar!
Thanks.
(Note: if anyone can help with that one I would be grateful, and I can move from Ubuntu 12.04 to the latest!!!)

Revision history for this message
Thomas Vander Stichele (thomasvs) wrote : Re: [Bug 1200954] Re: Flumotion does not start: AttributeError: 'EPollReactor' object has no attribute 'listenWith'

For that last error, it says it's unable to import md5.

Check if that module is missing. I vaguely recall it may have moved or
been deprecated, so depending on your python version that could be an issue.

T

On 12/06/2014 09:48 PM, Michael Heath wrote:
> I tested the above patch on Ubuntu 14.04 LTS--
>
> a) I used the "Ubuntu Software Center" to install the Flumotion.
> b) When I tried to setup a ondemand stream, it failed as documented in this bug. (e.g. start a new manager and connect to it)
> c) then I applied the patch at http://lists.fluendo.com/pipermail/flumotion-devel/2014-January/000698.html
> d) Now, I can:
> --> Start a new manager and connect to it
> --> I click the connect button, and get to the flumotion configuration assistant, click forward
> --> select the create ondemand stream radio button, click forward
> --> fill out my usual settings on the ondemand stream dialog, click forward, click finish
>
> The porter-http component starts no problem with a smiley face.
>
> The http-server-ondemand component fails with a sad face with a tear.
> (haha!)
>
> Here is the error
> --------------------------
> The component could not be started.
> Posted on Sat 06 Dec 2014 09:43:08 PM EST.
> Debug information:
> failure flumotion.common.errors.ComponentCreateError: module flumotion.component.misc.httpserver.httpserver could not be imported (exception ImportError at flumotion/common/package.py:54: import_module(): cannot import name md5)
>
> So close, but no cigar!
> Thanks.
> (Note: if anyone can help with that one I would be grateful, and I can move from Ubuntu 12.04 to the latest!!!)
>

--

Baby you cry too much I'm tired of the sound
You're such a baby

MOAP - Maintaining your projects since 2006
https://apestaart.org/moap/trac/

Revision history for this message
Michael Heath (devildoggodlived) wrote :

This workaround worked on 14.10! -- finally!!-->
http://www.serenux.com/2014/08/howto-install-flumotion-streaming-server-on-ubuntu-14-04/
(This update in the bug (e.g 2014-11-28) was so close - Thanks Thomas for trying to help.)

--> As this page states:
"This issue will be resolved once Flumotion is updated to no longer use the deprecated network-related functions in Twisted Python." -- OhYeah, sure: have been waiting for that since 13.04 - I think flumotion is deprecated, and open source now, and no one is updating the code found in the Ubuntu repositories :(

--> Warning: Ubuntu Software updater is broken after this however! -- So, as the page states: "I would recommend that you dedicate a PC to be used as your Flumotion server so you don’t have to install other applications or regularly have to perform updates."

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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