Update to Firefox 30.0 breaks MozRepl?

139 views
Skip to first unread message

Brandon Brown

unread,
Jun 21, 2014, 2:27:36 PM6/21/14
to moz...@googlegroups.com
Hi. I've recently upgraded to firefox 30 and immediately started having problems with MozRepl and my perl programs using it through WWW::Mechanize::Firefox. I've tried reinstalling the add on to no avail. I've also tried changing ports to no avail as well. Thanks for any help.

Here is the error:

I, MOZREPL : Listening : 0.0.0.0:4242

E, MOZREPL : Error : [Exception... "Component returned failure code: 0x804b0036 (NS_ERROR_SOCKET_ADDRESS_IN_USE) [nsIServerSocket.init]"  nsresult: "0x804b0036 (NS_ERROR_SOCKET_ADDRESS_IN_USE)"  location: "JS frame :: chrome://mozrepl/content/server.js :: start :: line 101"  data: no]

Failed to connect to , unknown remote host: localhost at /opt/local/lib/perl5/site_perl/5.16.3/MozRepl/Client.pm line 144

Brandon Brown

unread,
Jun 29, 2014, 11:03:45 AM6/29/14
to moz...@googlegroups.com
Still having the issue, but here's some more info from lsof:

port 4242 is in use by lsof | grep 4242

Dock        280 bbrown  txt      REG                1,4      4096 37354242 /private/var/folders/_s/vqpvk8f88xj4cs0059bk57rh0000gn/C/com.apple.IconServices/69F0D8FD25F296A93D2E91D9436B0716.iscachebmp

so i switch to 4240 which seems ok: lsof | grep 4240

firefox   30930 bbrown   11u    IPv4 0x860e029e49587b79       0t0      TCP *:4240 (LISTEN)

telnet localhost 4240

Trying ::1...

telnet: connect to address ::1: Connection refused

Trying fe80::1...

telnet: connect to address fe80::1: Connection refused

telnet: Unable to connect to remote host


Any more ideas to try? I was running an apache web server that i thought might be causing problems but i've stopped with 

sudo apachectl stop


thanks in advance.



Luca Greco

unread,
Jul 1, 2014, 9:34:42 AM7/1/14
to moz...@googlegroups.com
On Sun, Jun 29, 2014 at 5:03 PM, Brandon Brown <brando...@gmail.com> wrote:
Still having the issue, but here's some more info from lsof:

port 4242 is in use by lsof | grep 4242

Dock        280 bbrown  txt      REG                1,4      4096 37354242 /private/var/folders/_s/vqpvk8f88xj4cs0059bk57rh0000gn/C/com.apple.IconServices/69F0D8FD25F296A93D2E91D9436B0716.iscachebmp

so i switch to 4240 which seems ok: lsof | grep 4240

firefox   30930 bbrown   11u    IPv4 0x860e029e49587b79       0t0      TCP *:4240 (LISTEN)

telnet localhost 4240

Trying ::1...

telnet: connect to address ::1: Connection refused

Trying fe80::1...

telnet: connect to address fe80::1: Connection refused

telnet: Unable to connect to remote host


Any more ideas to try? I was running an apache web server that i thought might be causing problems but i've stopped with 

sudo apachectl stop


thanks in advance.



It seems that localhost is resolved as an ipv6 address (and mozrepl is listening on an ipv4 address).

have you already tried to telnet using the ipv4 address?, e.g.:

   telnet 127.0.0.1 4240

--
Luca Greco @ Alca Società Cooperativa
Follow me on http://twitter.com/lucagreco

Brandon Brown

unread,
Oct 18, 2014, 12:13:37 PM10/18/14
to moz...@googlegroups.com, luca....@alcacoop.it
this was in fact the issue. my /etc/hosts file was incorrect! restoring to default localhost fixed the error. thanks so much.
Reply all
Reply to author
Forward
0 new messages