You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Subbu Allamaraju <su...@subbu.org> on 2011/05/25 00:27:00 UTC
Question on TS running as a reverse proxy on port 80
I'm trying to run TS on port 80 on Ubuntu as via
sudo traffic_server start
[TrafficServer] using root directory '/usr/local'
[May 24 07:11:56.760] {140707280910144} STATUS: opened /usr/local/var/log/trafficserver/diags.log
[May 24 07:11:56.760] {140707280910144} NOTE: updated diags config
[May 24 07:11:56.763] Server {140707280910144} NOTE: cache clustering disabled
[May 24 07:11:56.794] Server {140707280910144} NOTE: cache clustering disabled
[May 24 07:11:56.826] Server {140707280910144} NOTE: logging initialized[7], logging_mode = 3
[May 24 07:11:56.828] Server {140707280910144} ERROR: Could not bind or listen to port 80 (error: -1)
[May 24 07:11:56.828] Server {140707280910144} WARNING: unable to listen on port 80: -1 13, Permission denied
[May 24 07:11:56.832] Server {140707280910144} NOTE: traffic server running
[May 24 07:11:56.882] Server {140707191547648} NOTE: cache enabled
I can confirm that port 80 is open as I was able to run another server on port 80 (via sudo). Is there some TS specific config about 80 that needs to be enabled?
Thanks
Subbu
Re: Question on TS running as a reverse proxy on port 80
Posted by "Alan M. Carroll" <am...@network-geographics.com>.
I created a problem with running traffic_server standalone (not via
traffic_manager) by moving the change user id logic. However, that change was
required in order to get transparency to work. Currently it works for both on
Linux if you have libcap-devel installed (that is, ATS can link with libcap).
We're looking in to a better fix.
Re: Question on TS running as a reverse proxy on port 80
Posted by Leif Hedstrom <zw...@apache.org>.
On 05/24/2011 05:45 PM, Subbu Allamaraju wrote:
> Thanks. Newbie mistake.
Actually, Bryan looked into this, and I think we have a regression. Alan
and Bryan are looking into it, it needs to be fixed for v2.1.9.
Thanks!
-- leif
Re: Question on TS running as a reverse proxy on port 80
Posted by Subbu Allamaraju <su...@subbu.org>.
Thanks. Newbie mistake.
Subbu
On May 24, 2011, at 3:35 PM, Leif Hedstrom wrote:
> On 05/24/2011 04:27 PM, Subbu Allamaraju wrote:
>> I'm trying to run TS on port 80 on Ubuntu as via
>>
>> sudo traffic_server start
>
> Hi Subbu :),
>
> first, traffic_server is not an RC script, it's actually the binary that will (eventually) run. If you wish to use the RC script, it's
>
> sudo trafficserver start
>
>
> The fact that you ran traffic_server might now have screwed up your permissions, since it probably created some files owned by root, which needs to be owned by nobody or whatever user you configured it to run as. The best way to fix that is to simply uninstall and reinstall ATS again (nuke all remnants of /usr/local/var/trafficserver etc.).
>
> That much said, it should work to just run 'sudo traffic_server", so not sure why that is failing. Perhaps it's the "start" argument, I'm not sure what we'd do with that ;). Also, what version of ATS are you trying to install?
>
> Cheers,
>
> -- Leif
>
Re: Question on TS running as a reverse proxy on port 80
Posted by Leif Hedstrom <zw...@apache.org>.
On 05/24/2011 04:27 PM, Subbu Allamaraju wrote:
> I'm trying to run TS on port 80 on Ubuntu as via
>
> sudo traffic_server start
Hi Subbu :),
first, traffic_server is not an RC script, it's actually the binary that
will (eventually) run. If you wish to use the RC script, it's
sudo trafficserver start
The fact that you ran traffic_server might now have screwed up your
permissions, since it probably created some files owned by root, which
needs to be owned by nobody or whatever user you configured it to run
as. The best way to fix that is to simply uninstall and reinstall ATS
again (nuke all remnants of /usr/local/var/trafficserver etc.).
That much said, it should work to just run 'sudo traffic_server", so not
sure why that is failing. Perhaps it's the "start" argument, I'm not
sure what we'd do with that ;). Also, what version of ATS are you
trying to install?
Cheers,
-- Leif