If you want to run PB on port 80, you need to start twistd with root privileges.<br><br>Do you really want to serve PB on port 80? <br>You probably want to serve it on an un-privileged port (&gt; 1023). I think the spread source suggests 8787 as the port to use for a PBServer.<br>
<br>-Dorian<br><br><div class="gmail_quote">On Wed, Jun 17, 2009 at 1:32 PM, hbd <span dir="ltr">&lt;<a href="mailto:happybrowndog@hotmail.com">happybrowndog@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is there any reason why I am getting this error when I try to get<br>
perspective broker to be on port 80?<br>
<br>
twisted.internet.error.CannotListenError: Couldn&#39;t listen on any:80:<br>
(13, &#39;Permission denied&#39;).<br>
<br>
I made sure port 80 was not used by Apache or anything else by checking<br>
with netstat.<br>
<br>
Here is the relevant pieces of twisted code:<br>
<br>
application = twisted.application.service.Application(&quot;eventserver&quot;)<br>
<br>
rpcservice = TheService()<br>
flashservice = XMLSocket(FlashReceiver)<br>
<br>
myServiceCollection =<br>
twisted.application.service.IServiceCollection(application)<br>
<br>
portalmonitor = portal.Portal(DefaultRealm())<br>
dbu=twisted.cred.checkers.InMemoryUsernamePasswordDatabaseDontUse()<br>
dbu.addUser(&quot;user1&quot;,&quot;pass1&quot;)<br>
portalmonitor.registerChecker(dbu)<br>
<br>
internet.TCPServer(5002,<br>
server.Site(rpcservice.getResource())).setServiceParent(myServiceCollection)<br>
<br>
internet.SSLServer(80,<br>
pb.PBServerFactory(portalmonitor),ssl.DefaultOpenSSLContextFactory(&#39;privkey.pem&#39;,&#39;cacert.pem&#39;)).setServiceParent(myServiceCollection)<br>
<br>
internet.TCPServer(5001, flashservice).setServiceParent(myServiceCollection)<br>
<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</blockquote></div><br>