Home Forums Hue Can't make HUE listen on port 80

This topic contains 3 replies, has 2 voices, and was last updated by  Dave 7 months, 1 week ago.

  • Creator
    Topic
  • #50485

    Rodulfo
    Participant

    I have a single node installation on an RHEL EC2 instance in AWS and everything works fine excpet that I want to acces HUE on port 80 since the network I work is behind a proxy that only allows connection to port 80.

    I changed the configuration in hue.ini file:
    http_port=80
    and restarted HUE but it doesnt work

    The server had an Apache HTTPD server installed on port 80 but I stoped it and even changed the port to 78.

    If I run “netstat -an |grep 80″ I see a lot of connections to other ports like if it were a proxy, but IPTABLES is off and stopped
    tcp 0 0 10.0.0.180:50090 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:8010 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:41806 0.0.0.0:* LISTEN
    tcp 0 0 10.0.0.180:19888 0.0.0.0:* LISTEN
    tcp 0 0 10.0.0.180:8020 0.0.0.0:* LISTEN
    tcp 0 0 10.0.0.180:8660 0.0.0.0:* LISTEN
    tcp 0 0 10.0.0.180:8661 0.0.0.0:* LISTEN
    tcp 0 0 10.0.0.180:50070 0.0.0.0:* LISTEN
    tcp 0 0 10.0.0.180:8663 0.0.0.0:* LISTEN
    tcp 0 0 10.0.0.180:8664 0.0.0.0:* LISTEN
    tcp 0 0 10.0.0.180:8666 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:8002 0.0.0.0:* LISTEN

    Any idea wht I can’t make HUE to listen on port 80?

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #50523

    Dave
    Moderator

    Hi Rodulfo,

    You would need to either give hue sudo permissions to run on port 80, or use a 3rd party tool to configure it – such as authbind.
    Unfortunately I haven’t had a chance to look at this, but trying to get hue to run as root instead of hue seems pretty messy and not relatively straight forward.

    I’d suggest using authbind (there’s a man page for it and lots of information on the web) as this should provide you with the functionality you desire.

    Thanks

    Dave

    Collapse
    #50499

    Rodulfo
    Participant

    I understand. Thanks Dave.

    So what is the best way to give HUE these permission. I have seen some suggestions to use IPTABLES to route por 80 to 8000 but I have IPTABLES off. Sorry but Im not expert on linux administration. Can you sugest some way to HUE the right permissions?

    Greetings,
    Rodulfo

    Collapse
    #50498

    Dave
    Moderator

    Hi Rodulfo,

    In your runcpserver.log what do you see?
    I see:

    Could not bind port 80: [Errno 13] Permission denied. Exiting

    Although this is because hue runs as hue and not root – and this is a UNIX error when trying to bind to a reserved system port (80)
    If I give hue permissions then this will work

    Thanks

    Dave

    Collapse
Viewing 3 replies - 1 through 3 (of 3 total)