Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

recently i have created a new ec2 instances (quick launch ) and i tried to deploy my Play! application the security group gives access to port 80 and port 22 (SSH) but when i run :

play start 80

it gives me this

[error] org.jboss.netty.channel.ChannelException: Failed to bind to: /0.0.0.0:80
[error] Use 'last' for the full log.

which means that the 80 port is used when i run

netstat -tlnp 

i get

    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      3692/sendmail       
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      3653/sshd           
tcp        0      0 :::22                       :::*                        LISTEN      3653/sshd 

i've searched all the web but i didn't figure it out, help me please !

NOTE : i just solve this all i have to do is start it with sudo.

share|improve this question
1  
Are you trying to start the Play! application as root (i.e. with sudo)? You need superuser privileges to bind to ports below 1024. Also, the second line of the error says to 'use last for the full log'. What is displayed in the 'full log'? –  cyberx86 Feb 11 '13 at 1:23
    
i just figured out, i'm dumb actually i just have to run with sudo. thank you! –  daoud Feb 11 '13 at 1:23
1  
@user1585227 - please post a proper answer and accept it. –  EEAA Feb 11 '13 at 1:53
add comment

1 Answer

Since you're binding to a port below 1024, it must be started with root privileges.

Try something like:

sudo play start 80
share|improve this answer
    
Is it safe to do that? –  cdmckay Aug 25 '13 at 18:31
    
I wouldn't think so. –  Michael Hampton Aug 25 '13 at 22:20
    
So what's a safe way to bind to port 80? –  cdmckay Aug 25 '13 at 22:24
    
That's a whole other question entirely. –  Michael Hampton Aug 25 '13 at 22:25
    
@MichaelHampton not helpfull, i got error sudo: play: command not found, –  Govind Singh Nagarkoti Jun 10 at 14:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.