You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Moshe Kaplan <mo...@gmail.com> on 2010/03/21 23:55:22 UTC

Traffic Server Configuration

Hi,

I tried to configure Apache Traffic Server (ATS) as a reverse proxy on port
80.
The server but built from scratch from the SVN. I did not implement any
plug-ins.

1. I set a reverse proxy rule in
/usr/local/src/ats/proxy/config/remap.config:
map http://127.0.0.1/ http://www.globes.co.il/
Note: I created either a rule for port 8080 and using the server DNS name.

2. I verified that the proxy.config.reverse_proxy.enabled parameter was set
to 1 in /usr/local/src/ats/proxy/config/records.config

3. I changed the listening port from 8080 to 80 in
/usr/local/src/ats/proxy/config/records.config

4. I both restarted the ATS and run /usr/local/bin/traffic_line -x

However,
1. When I called netstat -na I found that no service was listening to port
80. Moreover, the ATS was listening to port 8080 and to several other 808X
ports.
2. When I surfed to port 8080, no response was received from server (neither
404, 5XX or 2XX).

Can you help me with these issues in order to enable ATS as reverse proxy,

Best Regards,
Moshe Kaplan

Re: Traffic Server Configuration

Posted by Leif Hedstrom <zw...@apache.org>.
On 03/23/2010 03:57 PM, Moshe Kaplan wrote:
> Basic Fedora Core 8 (AMI Id: ami-84db39ed)
> Minimal Fedora Core 8, 32-bit architecture, and Amazon EC2 AMI Tools.
>
> I placed it in the JIRA as well,

Fwiw, I tried a "stock" FC8 (with updates) at home, and it does not have 
this problem, but it's an entirely different kernel (2.6.28). Amazing 
that Amazon is stuck with 2.6.21, that's almost as bad as we got it here 
at the big Y :).

We still need to support that kernel though.

-- Leif


Re: Traffic Server Configuration

Posted by Moshe Kaplan <mo...@gmail.com>.
Basic Fedora Core 8 (AMI Id: ami-84db39ed)
Minimal Fedora Core 8, 32-bit architecture, and Amazon EC2 AMI Tools.

I placed it in the JIRA as well,

Best,
Moshe

On Tue, Mar 23, 2010 at 1:41 AM, Jason <ja...@gmail.com> wrote:

> Can you provide me with
> - AMI/AKI are you using?
> -Arch type? (i386/x64)?
>
> Thanks,
> Jason
>
>
> On Mon, Mar 22, 2010 at 6:51 PM, Moshe Kaplan <mo...@gmail.com> wrote:
>
>> Hi,
>>
>> 10x for the quick response, I indeed changed the wrong files.
>> After updating the right files under /usr/local/etc/trafficserver/ the
>> daemon started listening on port 80. However, I still did not had response
>> from the mapped server.
>>
>> When I tailed /var/log/messages, I receive the following error that is
>> mentioned in
>> http://mail-archives.apache.org/mod_mbox/incubator-trafficserver-dev/201003.mbox/%3C1537511414.394401269193047225.JavaMail.jira@brutus.apache.org%3E(I really use 2.6.21.7-2.ec2.v1.2.fc8xen)
>>
>> Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_server[31067]: {1082005552}
>> NOTE: cache clustering disabled
>> Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_server[31067]: {1082005552}
>> NOTE: clearing statistics
>> *Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_server[31067]: FATAL:
>> UnixEThread.cc:70: failed assert `(evfd = eventfd(0,0)) >= 0`
>> *Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_manager[27640]:
>> {3086059840} ERROR: [LocalManager::pollMgmtProcessServer] Server Process
>> terminated due to Sig 6: Aborted
>> Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_manager[27640]:
>> {3086059840} ERROR:  (last system error 2: No such file or directory)
>> Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_manager[27640]:
>> {3086059840} ERROR: [Alarms::signalAlarm] Server Process was reset
>> Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_manager[27640]:
>> {3086059840} ERROR:  (last system error 2: No such file or directory)
>> Mar 22 18:30:42 domU-12-31-39-09-25-24 traffic_manager[27640]:
>> {3086059840} NOTE: [LocalManager::startProxy] Launching ts process
>> Mar 22 18:30:42 domU-12-31-39-09-25-24 traffic_manager[27640]:
>> {3086059840} NOTE: [LocalManager::pollMgmtProcessServer] New process
>> connecting fd '9'
>> Mar 22 18:30:42 domU-12-31-39-09-25-24 traffic_manager[27640]:
>> {3086059840} NOTE: [Alarms::signalAlarm] Server Process born
>>
>> Please notice, that after I changed line 67 to the following code and
>> remaked the code
>> /*  evfd = eventfd(0, O_NONBLOCK | FD_CLOEXEC);*/
>>   evfd = eventfd(0, 0);
>>
>> I received the error:
>> FATAL: UnixEThread.cc:*71*: failed assert `(evfd = eventfd(0,0)) >= 0`
>> (The error moved from line 70 to 71 due to the commented line, which means
>> that server really runs the updated code)
>>
>> Do you have any recommendation how to handle the situation?
>>
>> Thanks in advance,
>> Moshe Kaplan
>>
>>
>> On Mon, Mar 22, 2010 at 2:35 AM, Leif Hedstrom <zw...@apache.org> wrote:
>>
>>> On 03/21/2010 04:55 PM, Moshe Kaplan wrote:
>>>
>>>> Hi,
>>>>
>>>> I tried to configure Apache Traffic Server (ATS) as a reverse proxy on
>>>> port 80.
>>>> The server but built from scratch from the SVN. I did not implement any
>>>> plug-ins.
>>>>
>>>> 1. I set a reverse proxy rule in
>>>> /usr/local/src/ats/proxy/config/remap.config:
>>>> map http://127.0.0.1/ http://www.globes.co.il/
>>>> Note: I created either a rule for port 8080 and using the server DNS
>>>> name.
>>>>
>>>> 2. I verified that the proxy.config.reverse_proxy.enabled parameter was
>>>> set to 1 in /usr/local/src/ats/proxy/config/records.config
>>>>
>>>> 3. I changed the listening port from 8080 to 80 in
>>>> /usr/local/src/ats/proxy/config/records.config
>>>>
>>>
>>> This is where you installed trafficserver? By default, it would be
>>> /usr/local/etc/trafficserver/records.config.
>>>
>>>
>>> Assuming you are editing the correct files, is there anything showing up
>>> in /var/log/messages, indicating a problem?
>>>
>>> -- Leif
>>>
>>>
>>
>

Re: Traffic Server Configuration

Posted by Jason <ja...@gmail.com>.
Can you provide me with
- AMI/AKI are you using?
-Arch type? (i386/x64)?

Thanks,
Jason


On Mon, Mar 22, 2010 at 6:51 PM, Moshe Kaplan <mo...@gmail.com> wrote:

> Hi,
>
> 10x for the quick response, I indeed changed the wrong files.
> After updating the right files under /usr/local/etc/trafficserver/ the
> daemon started listening on port 80. However, I still did not had response
> from the mapped server.
>
> When I tailed /var/log/messages, I receive the following error that is
> mentioned in
> http://mail-archives.apache.org/mod_mbox/incubator-trafficserver-dev/201003.mbox/%3C1537511414.394401269193047225.JavaMail.jira@brutus.apache.org%3E(I really use 2.6.21.7-2.ec2.v1.2.fc8xen)
>
> Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_server[31067]: {1082005552}
> NOTE: cache clustering disabled
> Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_server[31067]: {1082005552}
> NOTE: clearing statistics
> *Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_server[31067]: FATAL:
> UnixEThread.cc:70: failed assert `(evfd = eventfd(0,0)) >= 0`
> *Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_manager[27640]:
> {3086059840} ERROR: [LocalManager::pollMgmtProcessServer] Server Process
> terminated due to Sig 6: Aborted
> Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_manager[27640]: {3086059840}
> ERROR:  (last system error 2: No such file or directory)
> Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_manager[27640]: {3086059840}
> ERROR: [Alarms::signalAlarm] Server Process was reset
> Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_manager[27640]: {3086059840}
> ERROR:  (last system error 2: No such file or directory)
> Mar 22 18:30:42 domU-12-31-39-09-25-24 traffic_manager[27640]: {3086059840}
> NOTE: [LocalManager::startProxy] Launching ts process
> Mar 22 18:30:42 domU-12-31-39-09-25-24 traffic_manager[27640]: {3086059840}
> NOTE: [LocalManager::pollMgmtProcessServer] New process connecting fd '9'
> Mar 22 18:30:42 domU-12-31-39-09-25-24 traffic_manager[27640]: {3086059840}
> NOTE: [Alarms::signalAlarm] Server Process born
>
> Please notice, that after I changed line 67 to the following code and
> remaked the code
> /*  evfd = eventfd(0, O_NONBLOCK | FD_CLOEXEC);*/
>   evfd = eventfd(0, 0);
>
> I received the error:
> FATAL: UnixEThread.cc:*71*: failed assert `(evfd = eventfd(0,0)) >= 0`
> (The error moved from line 70 to 71 due to the commented line, which means
> that server really runs the updated code)
>
> Do you have any recommendation how to handle the situation?
>
> Thanks in advance,
> Moshe Kaplan
>
>
> On Mon, Mar 22, 2010 at 2:35 AM, Leif Hedstrom <zw...@apache.org> wrote:
>
>> On 03/21/2010 04:55 PM, Moshe Kaplan wrote:
>>
>>> Hi,
>>>
>>> I tried to configure Apache Traffic Server (ATS) as a reverse proxy on
>>> port 80.
>>> The server but built from scratch from the SVN. I did not implement any
>>> plug-ins.
>>>
>>> 1. I set a reverse proxy rule in
>>> /usr/local/src/ats/proxy/config/remap.config:
>>> map http://127.0.0.1/ http://www.globes.co.il/
>>> Note: I created either a rule for port 8080 and using the server DNS
>>> name.
>>>
>>> 2. I verified that the proxy.config.reverse_proxy.enabled parameter was
>>> set to 1 in /usr/local/src/ats/proxy/config/records.config
>>>
>>> 3. I changed the listening port from 8080 to 80 in
>>> /usr/local/src/ats/proxy/config/records.config
>>>
>>
>> This is where you installed trafficserver? By default, it would be
>> /usr/local/etc/trafficserver/records.config.
>>
>>
>> Assuming you are editing the correct files, is there anything showing up
>> in /var/log/messages, indicating a problem?
>>
>> -- Leif
>>
>>
>

Re: Traffic Server Configuration

Posted by Leif Hedstrom <zw...@apache.org>.
On 03/22/2010 05:21 PM, Moshe Kaplan wrote:
> Hi,
>
> I registered and placed a comment to this case.
> I'm using the Amazon EC2 default EBS based Fedora core 8 (If will use 
> another AMI, should it solve issues. Let me know if you need more 
> information),

It would be useful if the same configs etc. works on a newer kernel. Do 
they provide a later version of Fedora ?

-- Leif


Re: Traffic Server Configuration

Posted by Moshe Kaplan <mo...@gmail.com>.
Hi,

I registered and placed a comment to this case.
I'm using the Amazon EC2 default EBS based Fedora core 8 (If will use
another AMI, should it solve issues. Let me know if you need more
information),

10x,
Moshe

On Tue, Mar 23, 2010 at 1:06 AM, Leif Hedstrom <zw...@apache.org> wrote:

> On 03/22/2010 04:51 PM, Moshe Kaplan wrote:
>
>> Hi,
>>
>> 10x for the quick response, I indeed changed the wrong files.
>> After updating the right files under /usr/local/etc/trafficserver/ the
>> daemon started listening on port 80. However, I still did not had response
>> from the mapped server.
>>
>> When I tailed /var/log/messages, I receive the following error that is
>> mentioned in
>> http://mail-archives.apache.org/mod_mbox/incubator-trafficserver-dev/201003.mbox/%3C1537511414.394401269193047225.JavaMail.jira@brutus.apache.org%3E(I really use 2.6.21.7-2.ec2.v1.2.fc8xen)
>>
>
> Hmmm, looks like you have the same, or very similar issue? Can you comment
> on the Jira bug please
>
>     https://issues.apache.org/jira/browse/TS-263
>
>
> Or, if you don't want to register an account, I'll attach your email to it.
>
> Thanks!
>
> -- leif
>
>

Re: Traffic Server Configuration

Posted by Leif Hedstrom <zw...@apache.org>.
On 03/22/2010 04:51 PM, Moshe Kaplan wrote:
> Hi,
>
> 10x for the quick response, I indeed changed the wrong files.
> After updating the right files under /usr/local/etc/trafficserver/ the 
> daemon started listening on port 80. However, I still did not had 
> response from the mapped server.
>
> When I tailed /var/log/messages, I receive the following error that is 
> mentioned in 
> http://mail-archives.apache.org/mod_mbox/incubator-trafficserver-dev/201003.mbox/%3C1537511414.394401269193047225.JavaMail.jira@brutus.apache.org%3E 
> (I really use 2.6.21.7-2.ec2.v1.2.fc8xen)

Hmmm, looks like you have the same, or very similar issue? Can you 
comment on the Jira bug please

      https://issues.apache.org/jira/browse/TS-263


Or, if you don't want to register an account, I'll attach your email to it.

Thanks!

-- leif


Re: Traffic Server Configuration

Posted by Moshe Kaplan <mo...@gmail.com>.
Hi,

10x for the quick response, I indeed changed the wrong files.
After updating the right files under /usr/local/etc/trafficserver/ the
daemon started listening on port 80. However, I still did not had response
from the mapped server.

When I tailed /var/log/messages, I receive the following error that is
mentioned in
http://mail-archives.apache.org/mod_mbox/incubator-trafficserver-dev/201003.mbox/%3C1537511414.394401269193047225.JavaMail.jira@brutus.apache.org%3E(I
really use 2.6.21.7-2.ec2.v1.2.fc8xen)

Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_server[31067]: {1082005552}
NOTE: cache clustering disabled
Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_server[31067]: {1082005552}
NOTE: clearing statistics
*Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_server[31067]: FATAL:
UnixEThread.cc:70: failed assert `(evfd = eventfd(0,0)) >= 0`
*Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_manager[27640]: {3086059840}
ERROR: [LocalManager::pollMgmtProcessServer] Server Process terminated due
to Sig 6: Aborted
Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_manager[27640]: {3086059840}
ERROR:  (last system error 2: No such file or directory)
Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_manager[27640]: {3086059840}
ERROR: [Alarms::signalAlarm] Server Process was reset
Mar 22 18:30:41 domU-12-31-39-09-25-24 traffic_manager[27640]: {3086059840}
ERROR:  (last system error 2: No such file or directory)
Mar 22 18:30:42 domU-12-31-39-09-25-24 traffic_manager[27640]: {3086059840}
NOTE: [LocalManager::startProxy] Launching ts process
Mar 22 18:30:42 domU-12-31-39-09-25-24 traffic_manager[27640]: {3086059840}
NOTE: [LocalManager::pollMgmtProcessServer] New process connecting fd '9'
Mar 22 18:30:42 domU-12-31-39-09-25-24 traffic_manager[27640]: {3086059840}
NOTE: [Alarms::signalAlarm] Server Process born

Please notice, that after I changed line 67 to the following code and
remaked the code
/*  evfd = eventfd(0, O_NONBLOCK | FD_CLOEXEC);*/
  evfd = eventfd(0, 0);

I received the error:
FATAL: UnixEThread.cc:*71*: failed assert `(evfd = eventfd(0,0)) >= 0`
(The error moved from line 70 to 71 due to the commented line, which means
that server really runs the updated code)

Do you have any recommendation how to handle the situation?

Thanks in advance,
Moshe Kaplan

On Mon, Mar 22, 2010 at 2:35 AM, Leif Hedstrom <zw...@apache.org> wrote:

> On 03/21/2010 04:55 PM, Moshe Kaplan wrote:
>
>> Hi,
>>
>> I tried to configure Apache Traffic Server (ATS) as a reverse proxy on
>> port 80.
>> The server but built from scratch from the SVN. I did not implement any
>> plug-ins.
>>
>> 1. I set a reverse proxy rule in
>> /usr/local/src/ats/proxy/config/remap.config:
>> map http://127.0.0.1/ http://www.globes.co.il/
>> Note: I created either a rule for port 8080 and using the server DNS name.
>>
>> 2. I verified that the proxy.config.reverse_proxy.enabled parameter was
>> set to 1 in /usr/local/src/ats/proxy/config/records.config
>>
>> 3. I changed the listening port from 8080 to 80 in
>> /usr/local/src/ats/proxy/config/records.config
>>
>
> This is where you installed trafficserver? By default, it would be
> /usr/local/etc/trafficserver/records.config.
>
>
> Assuming you are editing the correct files, is there anything showing up in
> /var/log/messages, indicating a problem?
>
> -- Leif
>
>

Re: Traffic Server Configuration

Posted by Leif Hedstrom <zw...@apache.org>.
On 03/21/2010 04:55 PM, Moshe Kaplan wrote:
> Hi,
>
> I tried to configure Apache Traffic Server (ATS) as a reverse proxy on 
> port 80.
> The server but built from scratch from the SVN. I did not implement 
> any plug-ins.
>
> 1. I set a reverse proxy rule in 
> /usr/local/src/ats/proxy/config/remap.config:
> map http://127.0.0.1/ http://www.globes.co.il/
> Note: I created either a rule for port 8080 and using the server DNS name.
>
> 2. I verified that the proxy.config.reverse_proxy.enabled parameter 
> was set to 1 in /usr/local/src/ats/proxy/config/records.config
>
> 3. I changed the listening port from 8080 to 80 in 
> /usr/local/src/ats/proxy/config/records.config

This is where you installed trafficserver? By default, it would be 
/usr/local/etc/trafficserver/records.config.


Assuming you are editing the correct files, is there anything showing up 
in /var/log/messages, indicating a problem?

-- Leif