You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Mark Torluemke (JIRA)" <ji...@apache.org> on 2015/04/21 06:16:59 UTC
[jira] [Commented] (TS-3511) Perl API seems to have a permission
issue
[ https://issues.apache.org/jira/browse/TS-3511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14504288#comment-14504288 ]
Mark Torluemke commented on TS-3511:
------------------------------------
Having trouble reproducing with RHEL 6.5, Perl 5.10.1, and tip of ATS 5.3.x branch -- I don't know the history on this, but is it plausible that a version difference is causing this? Either way, would be nice to get a Dumper output of $self right before " $self->{_socket} = IO::Socket::UNIX->new(" . (Add "use Data::Dumper;" to the module imports, and "print Dumper $self;" in the open_socket sub.)
Also, I noticed the socket file was "trafficserver/mgmtapi.sock", not "trafficserver/mgmtapisocket" -- I don't think that's it, as the name doesn't appear to be passed around correctly, but did catch my eye.
> 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)