[
https://issues.apache.org/jira/browse/TS-3511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14505268#comment-14505268
]
Bryan Call commented on TS-3511:
--------------------------------
It seems to have resloved itself. Here is a strace of the perl script trying to
open the file. It tries to open the passed in filename and then falls back to
opening the new one.
strace output:
{code}
[bcall@l1 ~]$ grep mgmt out
stat("/xxx/var/run/trafficserver/mgmtapisocket", 0x7f6c623646a0) = -1 ENOENT
(No such file or directory)
stat("/xxx/var/run/trafficserver/mgmtapisocket/mgmtapi.sock", 0x7f6c623646a0) =
-1 ENOENT (No such file or directory)
stat("/xxx/var/run/trafficserver/mgmtapi.sock", {st_mode=S_IFSOCK|0700,
st_size=0, ...}) = 0
stat("/xxx/var/run/trafficserver/mgmtapi.sock", {st_mode=S_IFSOCK|0700,
st_size=0, ...}) = 0
stat("/xxx/var/run/trafficserver/mgmtapi.sock", {st_mode=S_IFSOCK|0700,
st_size=0, ...}) = 0
stat("/xxx/var/run/trafficserver/mgmtapi.sock", {st_mode=S_IFSOCK|0700,
st_size=0, ...}) = 0
connect(3, {sa_family=AF_FILE, path="/xxx/var/run/trafficserver/mgmtapi.sock"},
110) = 0
[bcall@l1 ~]$ sudo traffic_line -m . | grep restrict
proxy.config.admin.api.restricted 1
{code}
> Perl API seems to have a permission issue
> -----------------------------------------
>
> Key: TS-3511
> URL: https://issues.apache.org/jira/browse/TS-3511
> Project: Traffic Server
> Issue Type: Bug
> Components: Management API
> Affects Versions: 5.3.0
> Reporter: Bryan Call
> Assignee: Mark Torluemke
> Priority: Blocker
> Fix For: 6.0.0
>
>
> Problems with the perl an grabbing stats:
> {code}
> [bcall@l1]$ sudo /xxx/ats_gather # also tried -u nobody
> Error opening socket - connect: Connection refused at /xxx/ats_gather line 77
> [bcall@l1]$ sudo traffic_line -m . | grep restrict
> proxy.config.admin.api.restricted 0 # tried with 0|1
> line 77:
> my $cli = new Apache::TS::AdminClient(socket_path =>
> "$xxx/trafficserver/mgmtapisocket");
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)