Meteor::Socket bind: Cannot assign requested address

175 views
Skip to first unread message

Zeno Kugy

unread,
Aug 23, 2011, 5:34:00 AM8/23/11
to meteorserver
Whenever I try to start meteor I get the following error:

Meteor::Socket bind: Cannot assign requested address at Meteor/
Socket.pm line 115.
Meteor::Socket=HASH(0x8334278)->DESTROY caught unclosed socket at
Meteor/Socket.pm line 176.
Meteor::Socket=HASH(0x8334198)->DESTROY caught unclosed socket at
Meteor/Socket.pm line 176.

What's the reason?


This is the complete log:

>./meteord -d

-------------------------------------------------------------------------------
Meteor server v1.06 (release date: 2008-03-02)
Licensed under the terms of the GNU General Public Licence (2.0)
-------------------------------------------------------------------------------

Defaults:
Default ChannelInfoTemplate <script>ch("~name~", ~lastMsgID~);</
script>\r\n
Default ConfigFileLocation /etc/meteord.conf
Default ControllerIP
Default ControllerPort 4671
Default ControllerShutdownMsg
CmdLine Debug 1
Default DirectoryIndex index.html
Default HeaderTemplate HTTP/1.1 ~status~\r\nServer: ~server~\r
\nContent-Type: text/html; charset=utf-8\r\nPragma: no-cache\r\nCache-
Control: no-cache, no-store, must-revalidate\r\nExpires: Thu, 1 Jan
1970 00:00:00 GMT\r\n\r\n
Default LogTimeFormat human
Default MaxMessageAge 7200
Default MaxMessages 0
Default MaxMessagesPerChannel 250
CnfFile MaxTime 240
Default MessageTemplate <script>p(~id~,"~channel~","~text~");</script>
\r\n
CnfFile PingInterval 3
Default Persist 0
Default PingMessage <script>p(-1,"");</script>\r\n
CnfFile SubscriberIP 192.168.1.200
CnfFile SubscriberPort 80
Default SubscriberShutdownMsg <script>eof();</script>\r\n
Default SubscriberDocumentRoot /usr/local/meteor/public_html
Default SubscriberDynamicPageAddress /push
CnfFile SyslogFacility none
Default UDPIP
Default UDPPort 0

iframe:
CnfFile HeaderTemplate HTTP/1.1 ~status~\r\nServer: ~server~\r
\nContent-Type: text/html; charset=utf-8\r\nPragma: no-cache\r\nCache-
Control: no-cache, no-store, must-revalidate\r\nExpires: Thu, 1 Jan
1970 00:00:00 GMT\r\n\r\n<html><head><meta http-equiv="Content-Type"
content="text/html; charset=utf-8">\r\n<meta http-equiv="Cache-
Control" content="no-store">\r\n<meta http-equiv="Cache-Control"
content="no-cache">\r\n<meta http-equiv="Pragma" content="no-cache">\r
\n<meta http-equiv="Expires" content="Thu, 1 Jan 1970 00:00:00 GMT">\r
\n<script type="text/javascript">\r\nwindow.onError = null;\r\nvar
domainparts = document.domain.split(".");\r\ndocument.domain =
domainparts[domainparts.length-2]+"."+domainparts[domainparts.length-1];
\r\nparent.Meteor.register(this);\r\n</script>\r\n</head>\r\n<body
onload="try { parent.Meteor.reset(this) } catch (e) {}">\r
\n~channelinfo~\r\n
CnfFile Persist 1

xhrinteractive:
CnfFile HeaderTemplate HTTP/1.1 ~status~\r\nServer: ~server~\r
\nContent-Type: text/html; charset=utf-8\r\nPragma: no-cache\r\nCache-
Control: no-cache, no-store, must-revalidate\r\nExpires: Thu, 1 Jan
1970 00:00:00 GMT\r\n\r
\n.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
\r\n~channelinfo~\r\n
CnfFile Persist 1

smartpoll:
CnfFile HeaderTemplate HTTP/1.1 ~status~\r\nServer: ~server~\r
\nContent-Type: text/html; charset=utf-8\r\nPragma: no-cache\r\nCache-
Control: no-cache, no-store, must-revalidate\r\nExpires: Thu, 1 Jan
1970 00:00:00 GMT\r\n\r\n~channelinfo~

simplepoll:
CnfFile HeaderTemplate HTTP/1.1 ~status~\r\nServer: ~server~\r
\nContent-Type: text/html; charset=utf-8\r\nPragma: no-cache\r\nCache-
Control: no-cache, no-store, must-revalidate\r\nExpires: Thu, 1 Jan
1970 00:00:00 GMT\r\n\r\n~channelinfo~

flashloadvars:
CnfFile ChannelInfoTemplate CH/~name~/~lastMsgID~\n
CnfFile HeaderTemplate HTTP/1.1 ~status~\r\nServer: ~server~\r
\nContent-Type: text/html; charset=utf-8\r\nPragma: no-cache\r\nCache-
Control: no-cache, no-store, must-revalidate\r\nExpires: Thu, 1 Jan
1970 00:00:00 GMT\r\n\r\n~channelinfo~
CnfFile MaxMessages 1
CnfFile MessageTemplate ~id~/~channel~/~text~\n
CnfFile Persist 1
CnfFile PingMessage
CnfFile SubscriberShutdownMsg x\n

flash:
CnfFile ChannelInfoTemplate CH/~name~/~lastMsgID~\0
CnfFile HeaderTemplate ~channelinfo~
CnfFile MessageTemplate ~id~/~channel~/~text~\0
CnfFile Persist 1
CnfFile PingMessage .\0
CnfFile SubscriberShutdownMsg x\0

longpoll:
CnfFile HeaderTemplate HTTP/1.1 ~status~\r\nServer: ~server~\r
\nContent-Type: text/html; charset=utf-8\r\nPragma: no-cache\r\nCache-
Control: no-cache, no-store, must-revalidate\r\nExpires: Thu, 1 Jan
1970 00:00:00 GMT\r\n\r\n~channelinfo~
CnfFile MaxMessages 1
CnfFile Persist 1
-------------------------------------------------------------------------------
Tue Aug 23 11:31:55 2011 info meteord launched!
Tue Aug 23 11:31:55 2011 info PID 5367
Meteor::Socket bind: Cannot assign requested address at Meteor/
Socket.pm line 115.
Meteor::Socket=HASH(0x8334278)->DESTROY caught unclosed socket at
Meteor/Socket.pm line 176.
Meteor::Socket=HASH(0x8334198)->DESTROY caught unclosed socket at
Meteor/Socket.pm line 176.


Andrew Betts

unread,
Aug 23, 2011, 6:07:42 AM8/23/11
to meteor...@googlegroups.com
Almost certainly because something is already bound to the IP/port combination that you have assigned to Meteor's controller or subscriber interface.  Perhaps a web server, or another instance of Meteor.

Ramon Poca

unread,
Aug 23, 2011, 6:10:35 AM8/23/11
to meteorserver
Or (in UNIX) you are trying to bind to a port < 1024 using a non-root
user.

Masoud Yousefnejad

unread,
Sep 1, 2012, 12:59:16 PM9/1/12
to meteor...@googlegroups.com
I Have the exact same problem, I changed the default Meteor User to root and changed the ports to less than 1024 but still same problem, If you find the way to solve the problem please kindly share it. 

Masoud
Reply all
Reply to author
Forward
0 new messages