You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by "Jay Li (jianli)" <ji...@cisco.com> on 2014/09/28 16:40:45 UTC

The config error of records.config

Hi, guys

When I tried to config full transparent (both inbound and outbound) for my ATS setup,  I used the line in records.config (CONFIG proxy.config.http.server_ports STRING 8080:ipv4:tr-full, ipv6:8080:tr-full) ,  but I got an error and  only trafficcop was running and trafficmanager and traffic_server were both stopped.

[ats@ats2n trafficserver]$ ps -aux | grep traffic
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
ats        910  0.0  0.0 103300   840 pts/3    S+   12:14   0:00 grep traffic
ats      32652  0.0  0.0  78712  2952 ?        Ssl  12:02   0:00 /home/ats/local/trafficserver-5.0.1/bin/traffic_cop
ats      32755  0.0  0.0 112384  1300 pts/3    T    12:06   0:00 find / -name traffic.out


If I change the config  to CONFIG proxy.config.http.server_ports STRING 8080, then all three processes are executed well.
[ats@ats2n trafficserver]$ ps -aux | grep traffic
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
ats       1395  0.0  0.0  77684  2908 ?        Ss   12:20   0:00 /home/ats/local/trafficserver-5.0.1/bin/traffic_cop
ats       1397  0.4  0.0 421988 17264 ?        Sl   12:20   0:00 /home/ats/local/trafficserver-5.0.1/bin/traffic_manager
ats       1405  1.0  0.0 422456 43640 ?        Sl   12:20   0:00 /home/ats/local/trafficserver-5.0.1/bin/traffic_server -M --httpport 8080:fd=7
ats       1428  0.0  0.0 103272   804 pts/4    S+   12:21   0:00 grep traffic
ats      32755  0.0  0.0 112384  1300 pts/3    T    12:06   0:00 find / -name traffic.out
[ats@ats2n trafficserver]$

So, what’s wrong with my config (CONFIG proxy.config.http.server_ports STRING 8080:ipv4:tr-full, ipv6:8080:td-full)?  I can't find the error.log file to analyse the error?  Thanks !
[root@ats2n trafficserver]# ls -l
total 1388
-rw-r--r--. 1 ats ats    4191 Sep 28 12:21 diags.log
-rw-r--r--. 1 ats ats   32660 Sep 28 12:21 manager.log
-rw-r-----. 1 ats ats 1372493 Sep 28 12:31 traffic.out
-rw-r--r--. 1 ats ats       0 Sep 24 04:53 traffic_server.stderr
-rw-r--r--. 1 ats ats       0 Sep 24 04:53 traffic_server.stdout
[root@ats2n trafficserver]#



Re: The config error of records.config

Posted by "Jay Li (jianli)" <ji...@cisco.com>.
Hi, guys

The issue is fixed when I configure it with non-root user and run it with
root user.

Jay



On 9/29/14, 6:01 PM, "Jay Li (jianli)" <ji...@cisco.com> wrote:

>Hi, guys
>
>When I rebuilt it with root permission, I found the traffic_server process
>was restarted frequently when I enabled tr-full,   and the output of
>manager.log was
>
>3250 [Sep 29 07:45:57.772] Manager {0x7fc44cb037e0} NOTE:
>[Alarms::signalAlarm] Server Process born
>3251 [Sep 29 07:45:59.829] Manager {0x7fc44cb037e0} ERROR:
>[LocalManager::pollMgmtProcessServer] Server Process terminated due to Sig
>6: Aborted
>3252 [Sep 29 07:45:59.829] Manager {0x7fc44cb037e0} ERROR:
>[Alarms::signalAlarm] Server Process was reset
>3253 [Sep 29 07:46:00.832] Manager {0x7fc44cb037e0} NOTE:
>[LocalManager::startProxy] Launching ts process
>3254 [Sep 29 07:46:00.850] Manager {0x7fc44cb037e0} NOTE:
>[LocalManager::pollMgmtProcessServer] New process connecting fd '11'
>3255 [Sep 29 07:46:00.850] Manager {0x7fc44cb037e0} NOTE:
>[Alarms::signalAlarm] Server Process born
>
>
>I only edited the following two lines , is there anything config I am
>missing? 
>
>CONFIG proxy.config.http.server_ports STRING 8080:ipv4:tr-full
>CONFIG proxy.config.reverse_proxy.enabled  INT 1
>
>
>BTW: I didn¹t see the error.log as Alan mentioned under this folder, how
>can I make it show up?
>[root@ats2n trafficserver]# ls -l
>total 1160
>-rw-r--r--. 1 root root 456690 Sep 29 07:54 manager.log
>-rw-r-----. 1 root root 719464 Sep 29 07:54 traffic.out
>-rw-r--r--. 1 root root      0 Sep 29 06:41 traffic_server.stderr
>-rw-r--r--. 1 root root      0 Sep 29 06:41 traffic_server.stdout
>[root@ats2n trafficserver]#
>
>
>Jay
>
>
>
>
>On 9/29/14, 3:57 PM, "Jay Li (jianli)" <ji...@cisco.com> wrote:
>
>>Hi, Ruca
>>
>>I am using CentOS, and I checked with the below output. I think the
>>kernel
>>is supported, right?
>>
>>[root@ats2n trafficserver-5.0.1]# uname -r
>>2.6.32-220.el6.x86_64
>>
>>
>>[root@ats2n ~]# grep "TPROXY" /boot/config-2.6.32-220.el6.x86_64
>>CONFIG_NETFILTER_TPROXY=m
>>CONFIG_NETFILTER_XT_TARGET_TPROXY=m
>>
>>
>>
>>
>>
>>
>>Jay Li
>>VDS-TC Architect , VideoScape Engineer, SPVSS
>>Work Phone: +86 21 2405 7863
>>
>>
>>
>>
>>On 9/29/14, 3:37 PM, "Luca Rea" <lu...@contactlab.com> wrote:
>>
>>>Hi Jay Li,
>>>did you check SELinux?
>>
>


Re: The config error of records.config

Posted by "Jay Li (jianli)" <ji...@cisco.com>.
Hi, guys

The issue is fixed when I configure it with non-root user and run it with
root user.

Jay



On 9/29/14, 6:01 PM, "Jay Li (jianli)" <ji...@cisco.com> wrote:

>Hi, guys
>
>When I rebuilt it with root permission, I found the traffic_server process
>was restarted frequently when I enabled tr-full,   and the output of
>manager.log was
>
>3250 [Sep 29 07:45:57.772] Manager {0x7fc44cb037e0} NOTE:
>[Alarms::signalAlarm] Server Process born
>3251 [Sep 29 07:45:59.829] Manager {0x7fc44cb037e0} ERROR:
>[LocalManager::pollMgmtProcessServer] Server Process terminated due to Sig
>6: Aborted
>3252 [Sep 29 07:45:59.829] Manager {0x7fc44cb037e0} ERROR:
>[Alarms::signalAlarm] Server Process was reset
>3253 [Sep 29 07:46:00.832] Manager {0x7fc44cb037e0} NOTE:
>[LocalManager::startProxy] Launching ts process
>3254 [Sep 29 07:46:00.850] Manager {0x7fc44cb037e0} NOTE:
>[LocalManager::pollMgmtProcessServer] New process connecting fd '11'
>3255 [Sep 29 07:46:00.850] Manager {0x7fc44cb037e0} NOTE:
>[Alarms::signalAlarm] Server Process born
>
>
>I only edited the following two lines , is there anything config I am
>missing? 
>
>CONFIG proxy.config.http.server_ports STRING 8080:ipv4:tr-full
>CONFIG proxy.config.reverse_proxy.enabled  INT 1
>
>
>BTW: I didn¹t see the error.log as Alan mentioned under this folder, how
>can I make it show up?
>[root@ats2n trafficserver]# ls -l
>total 1160
>-rw-r--r--. 1 root root 456690 Sep 29 07:54 manager.log
>-rw-r-----. 1 root root 719464 Sep 29 07:54 traffic.out
>-rw-r--r--. 1 root root      0 Sep 29 06:41 traffic_server.stderr
>-rw-r--r--. 1 root root      0 Sep 29 06:41 traffic_server.stdout
>[root@ats2n trafficserver]#
>
>
>Jay
>
>
>
>
>On 9/29/14, 3:57 PM, "Jay Li (jianli)" <ji...@cisco.com> wrote:
>
>>Hi, Ruca
>>
>>I am using CentOS, and I checked with the below output. I think the
>>kernel
>>is supported, right?
>>
>>[root@ats2n trafficserver-5.0.1]# uname -r
>>2.6.32-220.el6.x86_64
>>
>>
>>[root@ats2n ~]# grep "TPROXY" /boot/config-2.6.32-220.el6.x86_64
>>CONFIG_NETFILTER_TPROXY=m
>>CONFIG_NETFILTER_XT_TARGET_TPROXY=m
>>
>>
>>
>>
>>
>>
>>Jay Li
>>VDS-TC Architect , VideoScape Engineer, SPVSS
>>Work Phone: +86 21 2405 7863
>>
>>
>>
>>
>>On 9/29/14, 3:37 PM, "Luca Rea" <lu...@contactlab.com> wrote:
>>
>>>Hi Jay Li,
>>>did you check SELinux?
>>
>


Re: The config error of records.config

Posted by "Jay Li (jianli)" <ji...@cisco.com>.
Hi, guys

When I rebuilt it with root permission, I found the traffic_server process
was restarted frequently when I enabled tr-full,   and the output of
manager.log was

3250 [Sep 29 07:45:57.772] Manager {0x7fc44cb037e0} NOTE:
[Alarms::signalAlarm] Server Process born
3251 [Sep 29 07:45:59.829] Manager {0x7fc44cb037e0} ERROR:
[LocalManager::pollMgmtProcessServer] Server Process terminated due to Sig
6: Aborted
3252 [Sep 29 07:45:59.829] Manager {0x7fc44cb037e0} ERROR:
[Alarms::signalAlarm] Server Process was reset
3253 [Sep 29 07:46:00.832] Manager {0x7fc44cb037e0} NOTE:
[LocalManager::startProxy] Launching ts process
3254 [Sep 29 07:46:00.850] Manager {0x7fc44cb037e0} NOTE:
[LocalManager::pollMgmtProcessServer] New process connecting fd '11'
3255 [Sep 29 07:46:00.850] Manager {0x7fc44cb037e0} NOTE:
[Alarms::signalAlarm] Server Process born


I only edited the following two lines , is there anything config I am
missing? 

CONFIG proxy.config.http.server_ports STRING 8080:ipv4:tr-full
CONFIG proxy.config.reverse_proxy.enabled  INT 1


BTW: I didn¹t see the error.log as Alan mentioned under this folder, how
can I make it show up?
[root@ats2n trafficserver]# ls -l
total 1160
-rw-r--r--. 1 root root 456690 Sep 29 07:54 manager.log
-rw-r-----. 1 root root 719464 Sep 29 07:54 traffic.out
-rw-r--r--. 1 root root      0 Sep 29 06:41 traffic_server.stderr
-rw-r--r--. 1 root root      0 Sep 29 06:41 traffic_server.stdout
[root@ats2n trafficserver]#


Jay




On 9/29/14, 3:57 PM, "Jay Li (jianli)" <ji...@cisco.com> wrote:

>Hi, Ruca
>
>I am using CentOS, and I checked with the below output. I think the kernel
>is supported, right?
>
>[root@ats2n trafficserver-5.0.1]# uname -r
>2.6.32-220.el6.x86_64
>
>
>[root@ats2n ~]# grep "TPROXY" /boot/config-2.6.32-220.el6.x86_64
>CONFIG_NETFILTER_TPROXY=m
>CONFIG_NETFILTER_XT_TARGET_TPROXY=m
>
>
>
>
>
>
>Jay Li
>VDS-TC Architect , VideoScape Engineer, SPVSS
>Work Phone: +86 21 2405 7863
>
>
>
>
>On 9/29/14, 3:37 PM, "Luca Rea" <lu...@contactlab.com> wrote:
>
>>Hi Jay Li,
>>did you check SELinux?
>


Re: The config error of records.config

Posted by "Jay Li (jianli)" <ji...@cisco.com>.
Hi, guys

When I rebuilt it with root permission, I found the traffic_server process
was restarted frequently when I enabled tr-full,   and the output of
manager.log was

3250 [Sep 29 07:45:57.772] Manager {0x7fc44cb037e0} NOTE:
[Alarms::signalAlarm] Server Process born
3251 [Sep 29 07:45:59.829] Manager {0x7fc44cb037e0} ERROR:
[LocalManager::pollMgmtProcessServer] Server Process terminated due to Sig
6: Aborted
3252 [Sep 29 07:45:59.829] Manager {0x7fc44cb037e0} ERROR:
[Alarms::signalAlarm] Server Process was reset
3253 [Sep 29 07:46:00.832] Manager {0x7fc44cb037e0} NOTE:
[LocalManager::startProxy] Launching ts process
3254 [Sep 29 07:46:00.850] Manager {0x7fc44cb037e0} NOTE:
[LocalManager::pollMgmtProcessServer] New process connecting fd '11'
3255 [Sep 29 07:46:00.850] Manager {0x7fc44cb037e0} NOTE:
[Alarms::signalAlarm] Server Process born


I only edited the following two lines , is there anything config I am
missing? 

CONFIG proxy.config.http.server_ports STRING 8080:ipv4:tr-full
CONFIG proxy.config.reverse_proxy.enabled  INT 1


BTW: I didn¹t see the error.log as Alan mentioned under this folder, how
can I make it show up?
[root@ats2n trafficserver]# ls -l
total 1160
-rw-r--r--. 1 root root 456690 Sep 29 07:54 manager.log
-rw-r-----. 1 root root 719464 Sep 29 07:54 traffic.out
-rw-r--r--. 1 root root      0 Sep 29 06:41 traffic_server.stderr
-rw-r--r--. 1 root root      0 Sep 29 06:41 traffic_server.stdout
[root@ats2n trafficserver]#


Jay




On 9/29/14, 3:57 PM, "Jay Li (jianli)" <ji...@cisco.com> wrote:

>Hi, Ruca
>
>I am using CentOS, and I checked with the below output. I think the kernel
>is supported, right?
>
>[root@ats2n trafficserver-5.0.1]# uname -r
>2.6.32-220.el6.x86_64
>
>
>[root@ats2n ~]# grep "TPROXY" /boot/config-2.6.32-220.el6.x86_64
>CONFIG_NETFILTER_TPROXY=m
>CONFIG_NETFILTER_XT_TARGET_TPROXY=m
>
>
>
>
>
>
>Jay Li
>VDS-TC Architect , VideoScape Engineer, SPVSS
>Work Phone: +86 21 2405 7863
>
>
>
>
>On 9/29/14, 3:37 PM, "Luca Rea" <lu...@contactlab.com> wrote:
>
>>Hi Jay Li,
>>did you check SELinux?
>


Re: The config error of records.config

Posted by "Jay Li (jianli)" <ji...@cisco.com>.
Hi, Ruca

I am using CentOS, and I checked with the below output. I think the kernel
is supported, right?

[root@ats2n trafficserver-5.0.1]# uname -r
2.6.32-220.el6.x86_64


[root@ats2n ~]# grep "TPROXY" /boot/config-2.6.32-220.el6.x86_64
CONFIG_NETFILTER_TPROXY=m
CONFIG_NETFILTER_XT_TARGET_TPROXY=m






Jay Li
VDS-TC Architect , VideoScape Engineer, SPVSS
Work Phone: +86 21 2405 7863




On 9/29/14, 3:37 PM, "Luca Rea" <lu...@contactlab.com> wrote:

>Hi Jay Li,
>did you check SELinux?


RE: The config error of records.config

Posted by Luca Rea <lu...@contactlab.com>.
Hi Jay Li,
did you check SELinux?

Re: The config error of records.config

Posted by "Jay Li (jianli)" <ji...@cisco.com>.
And I built the ATS with config option “ --enable-tproxy=19
--enable-posix-cap”. My kernel version is 2.6.32-220.el6.x86_64.  Even if
I run the trafficserver as root, still reported the below error. Who can
help me out? thanks

Jay 



On 9/29/14, 2:18 PM, "Jay Li (jianli)" <ji...@cisco.com> wrote:

>Hi, Alan
>
>Thank you for your reply.  I checked the config.log and found the
>
>configure:4874: checking whether to enable TPROXY based transparency
>configure:4884: result: 19
>
>So I think transparent is built, but I found error in manager.log, should
>I run it as ³root² for transparent?
>
>
>[Sep 29 04:10:55.221] Manager {0x7fbfa10227e0} NOTE: [appendDefaultDomain]
>Unable to determine default domain name. Nodes will be know by their
>unqualified host name
>[Sep 29 04:10:55.222] Manager {0x7fbfa10227e0} NOTE:
>[ClusterCom::ClusterCom] Node running on OS: 'Linux' Release:
>'2.6.32-220.el6.x86_64'
>[Sep 29 04:10:55.225] Manager {0x7fbfa10227e0} ERROR: [bindProxyPort]
>Unable to set transparent socket option [1] Operation not permitted
>[Sep 29 04:10:55.242] {0x7fa72273b7e0} STATUS: opened
>/home/ats/local3/trafficserver-5.0.1/var/log/trafficserver/manager.log
>[Sep 29 04:10:55.242] {0x7fa72273b7e0} NOTE: updated diags config
>[Sep 29 04:10:55.243] Manager {0x7fa72273b7e0} NOTE: [appendDefaultDomain]
>Unable to determine default domain name. Nodes will be know by their
>unqualified host name
>[Sep 29 04:10:55.245] Manager {0x7fa72273b7e0} NOTE:
>[ClusterCom::ClusterCom] Node running on OS: 'Linux' Release:
>'2.6.32-220.el6.x86_64'
>[Sep 29 04:10:55.246] Manager {0x7fa72273b7e0} ERROR: [bindProxyPort]
>Unable to set transparent socket option [1] Operation not permitted
>[Sep 29 04:10:55.265] {0x7ff34c9687e0} STATUS: opened
>/home/ats/local3/trafficserver-5.0.1/var/log/trafficserver/manager.log
>[Sep 29 04:10:55.265] {0x7ff34c9687e0} NOTE: updated diags config
>[Sep 29 04:10:55.265] Manager {0x7ff34c9687e0} NOTE: [appendDefaultDomain]
>Unable to determine default domain name. Nodes will be know by their
>unqualified host name
>[Sep 29 04:10:55.267] Manager {0x7ff34c9687e0} NOTE:
>[ClusterCom::ClusterCom] Node running on OS: 'Linux' Release:
>'2.6.32-220.el6.x86_64'
>[Sep 29 04:10:55.267] Manager {0x7ff34c9687e0} ERROR: [bindProxyPort]
>Unable to set transparent socket option [1] Operation not permitted
>
>
>Jay 
>
>
>
>
>On 9/29/14, 10:57 AM, "Alan M. Carroll" <am...@network-geographics.com>
>wrote:
>
>>Sunday, September 28, 2014, 8:10:04 PM, you wrote:
>>
>>> Hi,
>>
>>> The problem is not the delimiter (space or comma) and it is the keyword
>>> tr-full.
>>
>>In addition to traffic.out, there are the files "diags.log" and
>>"error.log" in the same directory. You should check them for errors.
>>
>>The most likely case is that ATS did not build with transparency support.
>>You can check that by looking at config.log in your build directory. Look
>>for a line like "checking whether to enable TPROXY based transparency".
>>
>


Re: The config error of records.config

Posted by "Jay Li (jianli)" <ji...@cisco.com>.
And I built the ATS with config option “ --enable-tproxy=19
--enable-posix-cap”. My kernel version is 2.6.32-220.el6.x86_64.  Even if
I run the trafficserver as root, still reported the below error. Who can
help me out? thanks

Jay 



On 9/29/14, 2:18 PM, "Jay Li (jianli)" <ji...@cisco.com> wrote:

>Hi, Alan
>
>Thank you for your reply.  I checked the config.log and found the
>
>configure:4874: checking whether to enable TPROXY based transparency
>configure:4884: result: 19
>
>So I think transparent is built, but I found error in manager.log, should
>I run it as ³root² for transparent?
>
>
>[Sep 29 04:10:55.221] Manager {0x7fbfa10227e0} NOTE: [appendDefaultDomain]
>Unable to determine default domain name. Nodes will be know by their
>unqualified host name
>[Sep 29 04:10:55.222] Manager {0x7fbfa10227e0} NOTE:
>[ClusterCom::ClusterCom] Node running on OS: 'Linux' Release:
>'2.6.32-220.el6.x86_64'
>[Sep 29 04:10:55.225] Manager {0x7fbfa10227e0} ERROR: [bindProxyPort]
>Unable to set transparent socket option [1] Operation not permitted
>[Sep 29 04:10:55.242] {0x7fa72273b7e0} STATUS: opened
>/home/ats/local3/trafficserver-5.0.1/var/log/trafficserver/manager.log
>[Sep 29 04:10:55.242] {0x7fa72273b7e0} NOTE: updated diags config
>[Sep 29 04:10:55.243] Manager {0x7fa72273b7e0} NOTE: [appendDefaultDomain]
>Unable to determine default domain name. Nodes will be know by their
>unqualified host name
>[Sep 29 04:10:55.245] Manager {0x7fa72273b7e0} NOTE:
>[ClusterCom::ClusterCom] Node running on OS: 'Linux' Release:
>'2.6.32-220.el6.x86_64'
>[Sep 29 04:10:55.246] Manager {0x7fa72273b7e0} ERROR: [bindProxyPort]
>Unable to set transparent socket option [1] Operation not permitted
>[Sep 29 04:10:55.265] {0x7ff34c9687e0} STATUS: opened
>/home/ats/local3/trafficserver-5.0.1/var/log/trafficserver/manager.log
>[Sep 29 04:10:55.265] {0x7ff34c9687e0} NOTE: updated diags config
>[Sep 29 04:10:55.265] Manager {0x7ff34c9687e0} NOTE: [appendDefaultDomain]
>Unable to determine default domain name. Nodes will be know by their
>unqualified host name
>[Sep 29 04:10:55.267] Manager {0x7ff34c9687e0} NOTE:
>[ClusterCom::ClusterCom] Node running on OS: 'Linux' Release:
>'2.6.32-220.el6.x86_64'
>[Sep 29 04:10:55.267] Manager {0x7ff34c9687e0} ERROR: [bindProxyPort]
>Unable to set transparent socket option [1] Operation not permitted
>
>
>Jay 
>
>
>
>
>On 9/29/14, 10:57 AM, "Alan M. Carroll" <am...@network-geographics.com>
>wrote:
>
>>Sunday, September 28, 2014, 8:10:04 PM, you wrote:
>>
>>> Hi,
>>
>>> The problem is not the delimiter (space or comma) and it is the keyword
>>> tr-full.
>>
>>In addition to traffic.out, there are the files "diags.log" and
>>"error.log" in the same directory. You should check them for errors.
>>
>>The most likely case is that ATS did not build with transparency support.
>>You can check that by looking at config.log in your build directory. Look
>>for a line like "checking whether to enable TPROXY based transparency".
>>
>


Re: The config error of records.config

Posted by "Jay Li (jianli)" <ji...@cisco.com>.
Hi, Alan

Thank you for your reply.  I checked the config.log and found the

configure:4874: checking whether to enable TPROXY based transparency
configure:4884: result: 19

So I think transparent is built, but I found error in manager.log, should
I run it as ³root² for transparent?


[Sep 29 04:10:55.221] Manager {0x7fbfa10227e0} NOTE: [appendDefaultDomain]
Unable to determine default domain name. Nodes will be know by their
unqualified host name
[Sep 29 04:10:55.222] Manager {0x7fbfa10227e0} NOTE:
[ClusterCom::ClusterCom] Node running on OS: 'Linux' Release:
'2.6.32-220.el6.x86_64'
[Sep 29 04:10:55.225] Manager {0x7fbfa10227e0} ERROR: [bindProxyPort]
Unable to set transparent socket option [1] Operation not permitted
[Sep 29 04:10:55.242] {0x7fa72273b7e0} STATUS: opened
/home/ats/local3/trafficserver-5.0.1/var/log/trafficserver/manager.log
[Sep 29 04:10:55.242] {0x7fa72273b7e0} NOTE: updated diags config
[Sep 29 04:10:55.243] Manager {0x7fa72273b7e0} NOTE: [appendDefaultDomain]
Unable to determine default domain name. Nodes will be know by their
unqualified host name
[Sep 29 04:10:55.245] Manager {0x7fa72273b7e0} NOTE:
[ClusterCom::ClusterCom] Node running on OS: 'Linux' Release:
'2.6.32-220.el6.x86_64'
[Sep 29 04:10:55.246] Manager {0x7fa72273b7e0} ERROR: [bindProxyPort]
Unable to set transparent socket option [1] Operation not permitted
[Sep 29 04:10:55.265] {0x7ff34c9687e0} STATUS: opened
/home/ats/local3/trafficserver-5.0.1/var/log/trafficserver/manager.log
[Sep 29 04:10:55.265] {0x7ff34c9687e0} NOTE: updated diags config
[Sep 29 04:10:55.265] Manager {0x7ff34c9687e0} NOTE: [appendDefaultDomain]
Unable to determine default domain name. Nodes will be know by their
unqualified host name
[Sep 29 04:10:55.267] Manager {0x7ff34c9687e0} NOTE:
[ClusterCom::ClusterCom] Node running on OS: 'Linux' Release:
'2.6.32-220.el6.x86_64'
[Sep 29 04:10:55.267] Manager {0x7ff34c9687e0} ERROR: [bindProxyPort]
Unable to set transparent socket option [1] Operation not permitted


Jay 




On 9/29/14, 10:57 AM, "Alan M. Carroll" <am...@network-geographics.com>
wrote:

>Sunday, September 28, 2014, 8:10:04 PM, you wrote:
>
>> Hi,
>
>> The problem is not the delimiter (space or comma) and it is the keyword
>> tr-full.
>
>In addition to traffic.out, there are the files "diags.log" and
>"error.log" in the same directory. You should check them for errors.
>
>The most likely case is that ATS did not build with transparency support.
>You can check that by looking at config.log in your build directory. Look
>for a line like "checking whether to enable TPROXY based transparency".
>


Re: The config error of records.config

Posted by "Jay Li (jianli)" <ji...@cisco.com>.
Hi, Alan

Thank you for your reply.  I checked the config.log and found the

configure:4874: checking whether to enable TPROXY based transparency
configure:4884: result: 19

So I think transparent is built, but I found error in manager.log, should
I run it as ³root² for transparent?


[Sep 29 04:10:55.221] Manager {0x7fbfa10227e0} NOTE: [appendDefaultDomain]
Unable to determine default domain name. Nodes will be know by their
unqualified host name
[Sep 29 04:10:55.222] Manager {0x7fbfa10227e0} NOTE:
[ClusterCom::ClusterCom] Node running on OS: 'Linux' Release:
'2.6.32-220.el6.x86_64'
[Sep 29 04:10:55.225] Manager {0x7fbfa10227e0} ERROR: [bindProxyPort]
Unable to set transparent socket option [1] Operation not permitted
[Sep 29 04:10:55.242] {0x7fa72273b7e0} STATUS: opened
/home/ats/local3/trafficserver-5.0.1/var/log/trafficserver/manager.log
[Sep 29 04:10:55.242] {0x7fa72273b7e0} NOTE: updated diags config
[Sep 29 04:10:55.243] Manager {0x7fa72273b7e0} NOTE: [appendDefaultDomain]
Unable to determine default domain name. Nodes will be know by their
unqualified host name
[Sep 29 04:10:55.245] Manager {0x7fa72273b7e0} NOTE:
[ClusterCom::ClusterCom] Node running on OS: 'Linux' Release:
'2.6.32-220.el6.x86_64'
[Sep 29 04:10:55.246] Manager {0x7fa72273b7e0} ERROR: [bindProxyPort]
Unable to set transparent socket option [1] Operation not permitted
[Sep 29 04:10:55.265] {0x7ff34c9687e0} STATUS: opened
/home/ats/local3/trafficserver-5.0.1/var/log/trafficserver/manager.log
[Sep 29 04:10:55.265] {0x7ff34c9687e0} NOTE: updated diags config
[Sep 29 04:10:55.265] Manager {0x7ff34c9687e0} NOTE: [appendDefaultDomain]
Unable to determine default domain name. Nodes will be know by their
unqualified host name
[Sep 29 04:10:55.267] Manager {0x7ff34c9687e0} NOTE:
[ClusterCom::ClusterCom] Node running on OS: 'Linux' Release:
'2.6.32-220.el6.x86_64'
[Sep 29 04:10:55.267] Manager {0x7ff34c9687e0} ERROR: [bindProxyPort]
Unable to set transparent socket option [1] Operation not permitted


Jay 




On 9/29/14, 10:57 AM, "Alan M. Carroll" <am...@network-geographics.com>
wrote:

>Sunday, September 28, 2014, 8:10:04 PM, you wrote:
>
>> Hi,
>
>> The problem is not the delimiter (space or comma) and it is the keyword
>> tr-full.
>
>In addition to traffic.out, there are the files "diags.log" and
>"error.log" in the same directory. You should check them for errors.
>
>The most likely case is that ATS did not build with transparency support.
>You can check that by looking at config.log in your build directory. Look
>for a line like "checking whether to enable TPROXY based transparency".
>


Re: The config error of records.config

Posted by "Alan M. Carroll" <am...@network-geographics.com>.
Sunday, September 28, 2014, 8:10:04 PM, you wrote:

> Hi,

> The problem is not the delimiter (space or comma) and it is the keyword
> tr-full.

In addition to traffic.out, there are the files "diags.log" and "error.log" in the same directory. You should check them for errors.

The most likely case is that ATS did not build with transparency support. You can check that by looking at config.log in your build directory. Look for a line like "checking whether to enable TPROXY based transparency".


Re: The config error of records.config

Posted by "Alan M. Carroll" <am...@network-geographics.com>.
Sunday, September 28, 2014, 8:10:04 PM, you wrote:

> Hi,

> The problem is not the delimiter (space or comma) and it is the keyword
> tr-full.

In addition to traffic.out, there are the files "diags.log" and "error.log" in the same directory. You should check them for errors.

The most likely case is that ATS did not build with transparency support. You can check that by looking at config.log in your build directory. Look for a line like "checking whether to enable TPROXY based transparency".


Re: The config error of records.config

Posted by "Jay Li (jianli)" <ji...@cisco.com>.
Hi,

The problem is not the delimiter (space or comma) and it is the keyword
tr-full. when I use the following with tr-full CONFIG
proxy.config.http.server_ports STRING 8080:ipv4:tr-full, only traffic_cop
process can work.  After I remove the keyword tr-full (CONFIG
proxy.config.http.server_ports STRING 8080:ipv4), all three process are
working.  Is tr-full supported by default? How can I verify it?

Thanks






On 9/29/14, 8:09 AM, "James Peach" <jp...@apache.org> wrote:

>On Sep 28, 2014, at 7:40 AM, Jay Li (jianli) <ji...@cisco.com> wrote
>> Hi, guys
>> 
>> When I tried to config full transparent (both inbound and outbound) for
>>my ATS setup,  I used the line in records.config (CONFIG
>>proxy.config.http.server_ports STRING 8080:ipv4:tr-full,
>>ipv6:8080:tr-full)
>
>space-separated, not comma-separated
>
>
>https://trafficserver.readthedocs.org/en/latest/reference/configuration/re
>cords.config.en.html#proxy-config-http-server-ports
>
>>  ,  but I got an error and  only trafficcop was running and
>>trafficmanager and traffic_server were both stopped.
>> 
>> [ats@ats2n trafficserver]$ ps -aux | grep traffic
>> Warning: bad syntax, perhaps a bogus '-'? See
>>/usr/share/doc/procps-3.2.8/FAQ
>> ats        910  0.0  0.0 103300   840 pts/3    S+   12:14   0:00 grep
>>traffic
>> ats      32652  0.0  0.0  78712  2952 ?        Ssl  12:02   0:00
>>/home/ats/local/trafficserver-5.0.1/bin/traffic_cop
>> ats      32755  0.0  0.0 112384  1300 pts/3    T    12:06   0:00 find /
>>-name traffic.out
>> 
>> 
>> If I change the config  to CONFIG proxy.config.http.server_ports STRING
>>8080, then all three processes are executed well.
>> [ats@ats2n trafficserver]$ ps -aux | grep traffic
>> Warning: bad syntax, perhaps a bogus '-'? See
>>/usr/share/doc/procps-3.2.8/FAQ
>> ats       1395  0.0  0.0  77684  2908 ?        Ss   12:20   0:00
>>/home/ats/local/trafficserver-5.0.1/bin/traffic_cop
>> ats       1397  0.4  0.0 421988 17264 ?        Sl   12:20   0:00
>>/home/ats/local/trafficserver-5.0.1/bin/traffic_manager
>> ats       1405  1.0  0.0 422456 43640 ?        Sl   12:20   0:00
>>/home/ats/local/trafficserver-5.0.1/bin/traffic_server -M --httpport
>>8080:fd=7
>> ats       1428  0.0  0.0 103272   804 pts/4    S+   12:21   0:00 grep
>>traffic
>> ats      32755  0.0  0.0 112384  1300 pts/3    T    12:06   0:00 find /
>>-name traffic.out
>> [ats@ats2n trafficserver]$
>> 
>> So, what¹s wrong with my config (CONFIG proxy.config.http.server_ports
>>STRING 8080:ipv4:tr-full, ipv6:8080:td-full)?  I can't find the
>>error.log file to analyse the error?  Thanks !
>> [root@ats2n trafficserver]# ls -l
>> total 1388
>> -rw-r--r--. 1 ats ats    4191 Sep 28 12:21 diags.log
>> -rw-r--r--. 1 ats ats   32660 Sep 28 12:21 manager.log
>> -rw-r-----. 1 ats ats 1372493 Sep 28 12:31 traffic.out
>> -rw-r--r--. 1 ats ats       0 Sep 24 04:53 traffic_server.stderr
>> -rw-r--r--. 1 ats ats       0 Sep 24 04:53 traffic_server.stdout
>> [root@ats2n trafficserver]#
>> 
>> 
>


Re: The config error of records.config

Posted by "Jay Li (jianli)" <ji...@cisco.com>.
Hi,

The problem is not the delimiter (space or comma) and it is the keyword
tr-full. when I use the following with tr-full CONFIG
proxy.config.http.server_ports STRING 8080:ipv4:tr-full, only traffic_cop
process can work.  After I remove the keyword tr-full (CONFIG
proxy.config.http.server_ports STRING 8080:ipv4), all three process are
working.  Is tr-full supported by default? How can I verify it?

Thanks






On 9/29/14, 8:09 AM, "James Peach" <jp...@apache.org> wrote:

>On Sep 28, 2014, at 7:40 AM, Jay Li (jianli) <ji...@cisco.com> wrote
>> Hi, guys
>> 
>> When I tried to config full transparent (both inbound and outbound) for
>>my ATS setup,  I used the line in records.config (CONFIG
>>proxy.config.http.server_ports STRING 8080:ipv4:tr-full,
>>ipv6:8080:tr-full)
>
>space-separated, not comma-separated
>
>
>https://trafficserver.readthedocs.org/en/latest/reference/configuration/re
>cords.config.en.html#proxy-config-http-server-ports
>
>>  ,  but I got an error and  only trafficcop was running and
>>trafficmanager and traffic_server were both stopped.
>> 
>> [ats@ats2n trafficserver]$ ps -aux | grep traffic
>> Warning: bad syntax, perhaps a bogus '-'? See
>>/usr/share/doc/procps-3.2.8/FAQ
>> ats        910  0.0  0.0 103300   840 pts/3    S+   12:14   0:00 grep
>>traffic
>> ats      32652  0.0  0.0  78712  2952 ?        Ssl  12:02   0:00
>>/home/ats/local/trafficserver-5.0.1/bin/traffic_cop
>> ats      32755  0.0  0.0 112384  1300 pts/3    T    12:06   0:00 find /
>>-name traffic.out
>> 
>> 
>> If I change the config  to CONFIG proxy.config.http.server_ports STRING
>>8080, then all three processes are executed well.
>> [ats@ats2n trafficserver]$ ps -aux | grep traffic
>> Warning: bad syntax, perhaps a bogus '-'? See
>>/usr/share/doc/procps-3.2.8/FAQ
>> ats       1395  0.0  0.0  77684  2908 ?        Ss   12:20   0:00
>>/home/ats/local/trafficserver-5.0.1/bin/traffic_cop
>> ats       1397  0.4  0.0 421988 17264 ?        Sl   12:20   0:00
>>/home/ats/local/trafficserver-5.0.1/bin/traffic_manager
>> ats       1405  1.0  0.0 422456 43640 ?        Sl   12:20   0:00
>>/home/ats/local/trafficserver-5.0.1/bin/traffic_server -M --httpport
>>8080:fd=7
>> ats       1428  0.0  0.0 103272   804 pts/4    S+   12:21   0:00 grep
>>traffic
>> ats      32755  0.0  0.0 112384  1300 pts/3    T    12:06   0:00 find /
>>-name traffic.out
>> [ats@ats2n trafficserver]$
>> 
>> So, what¹s wrong with my config (CONFIG proxy.config.http.server_ports
>>STRING 8080:ipv4:tr-full, ipv6:8080:td-full)?  I can't find the
>>error.log file to analyse the error?  Thanks !
>> [root@ats2n trafficserver]# ls -l
>> total 1388
>> -rw-r--r--. 1 ats ats    4191 Sep 28 12:21 diags.log
>> -rw-r--r--. 1 ats ats   32660 Sep 28 12:21 manager.log
>> -rw-r-----. 1 ats ats 1372493 Sep 28 12:31 traffic.out
>> -rw-r--r--. 1 ats ats       0 Sep 24 04:53 traffic_server.stderr
>> -rw-r--r--. 1 ats ats       0 Sep 24 04:53 traffic_server.stdout
>> [root@ats2n trafficserver]#
>> 
>> 
>


Re: The config error of records.config

Posted by James Peach <jp...@apache.org>.
On Sep 28, 2014, at 7:40 AM, Jay Li (jianli) <ji...@cisco.com> wrote:

> Hi, guys
> 
> When I tried to config full transparent (both inbound and outbound) for my ATS setup,  I used the line in records.config (CONFIG proxy.config.http.server_ports STRING 8080:ipv4:tr-full, ipv6:8080:tr-full)

space-separated, not comma-separated


https://trafficserver.readthedocs.org/en/latest/reference/configuration/records.config.en.html#proxy-config-http-server-ports

>  ,  but I got an error and  only trafficcop was running and trafficmanager and traffic_server were both stopped.     
> 
> [ats@ats2n trafficserver]$ ps -aux | grep traffic
> Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
> ats        910  0.0  0.0 103300   840 pts/3    S+   12:14   0:00 grep traffic
> ats      32652  0.0  0.0  78712  2952 ?        Ssl  12:02   0:00 /home/ats/local/trafficserver-5.0.1/bin/traffic_cop
> ats      32755  0.0  0.0 112384  1300 pts/3    T    12:06   0:00 find / -name traffic.out
> 
> 
> If I change the config  to CONFIG proxy.config.http.server_ports STRING 8080, then all three processes are executed well.
> [ats@ats2n trafficserver]$ ps -aux | grep traffic
> Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
> ats       1395  0.0  0.0  77684  2908 ?        Ss   12:20   0:00 /home/ats/local/trafficserver-5.0.1/bin/traffic_cop
> ats       1397  0.4  0.0 421988 17264 ?        Sl   12:20   0:00 /home/ats/local/trafficserver-5.0.1/bin/traffic_manager
> ats       1405  1.0  0.0 422456 43640 ?        Sl   12:20   0:00 /home/ats/local/trafficserver-5.0.1/bin/traffic_server -M --httpport 8080:fd=7
> ats       1428  0.0  0.0 103272   804 pts/4    S+   12:21   0:00 grep traffic
> ats      32755  0.0  0.0 112384  1300 pts/3    T    12:06   0:00 find / -name traffic.out
> [ats@ats2n trafficserver]$
> 
> So, what’s wrong with my config (CONFIG proxy.config.http.server_ports STRING 8080:ipv4:tr-full, ipv6:8080:td-full)?  I can't find the error.log file to analyse the error?  Thanks !
> [root@ats2n trafficserver]# ls -l
> total 1388
> -rw-r--r--. 1 ats ats    4191 Sep 28 12:21 diags.log
> -rw-r--r--. 1 ats ats   32660 Sep 28 12:21 manager.log
> -rw-r-----. 1 ats ats 1372493 Sep 28 12:31 traffic.out
> -rw-r--r--. 1 ats ats       0 Sep 24 04:53 traffic_server.stderr
> -rw-r--r--. 1 ats ats       0 Sep 24 04:53 traffic_server.stdout
> [root@ats2n trafficserver]#
> 
>