You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Noam Schiff <no...@gmail.com> on 2013/08/07 10:04:08 UTC

error: the requested command failed when trying to run /usr/bin/traffic_line -x

Hi list,

I'm new to TrafficServer and I read that for every change I made on the
configuration I need to run traffic_line -x to apply the changes.
Problem is that I'm getting the following error message when I'm trying to
do so:

/usr/bin/traffic_line -x
error: the requested command failed

Any thoughts?

Does killing the process and running the command /usr/bin/traffic_server
start & does the trick?

Thanks,
-Noam

Re: error: the requested command failed when trying to run /usr/bin/traffic_line -x

Posted by Reindl Harald <h....@thelounge.net>.
Am 07.08.2013 19:04, schrieb Alan M. Carroll:
> Wednesday, August 7, 2013, 7:33:13 AM, you wrote:
> 
>> So when I'm saying some progress I meant that when I typed "service trafficserver start" I got the prompt "* Not starting Apache Traffic Server"
> 
> 'trafficserver' is a script, not a service description

wrong, it contains the following comments which are clearly sysvinit/lsb-headers
you need to install it in the correct folder aka /etc/init.d/

### BEGIN INIT INFO
# Provides:          Traffic Server
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      S 0 1 6
# Short-Description: Startup/shutdown script for the Apache Traffic Server
# Description:       Apache Traffic Server is fast, scalable and extensible
#                    HTTP/1.1 compliant caching proxy server.
### END INIT INFO

# Fedora:
#  When this file is installed as /etc/rc.d/init.d/trafficserver
#  and added to the chkconfig system with `chkconfig --add trafficserver`
#  then the default values of these variables can be overridden
#  in the /etc/sysconfig/trafficserver file
# Ubuntu:
#  Values read from /etc/default/trafficserver

> I install in '/opt/ats' and use the command
> 
> 'sudo /opt/ats/bin/trafficserver start'
> 
> to bring up Traffic Server. In your case, I think 'sudo /usr/bin/trafficserver start' should work

on Fedora clearly "/usr/bin/traffic_cop" is started which *is* a
binary resulting in 3 processes and traffic_cop is also repsonsible
to restart "/usr/bin/traffic_server" which is *alo* a binary

so if you have a chance to use systemd ignore the shellscript
________________________________________________

[root@proxy:~]$ cat /usr/lib/systemd/system/trafficserver.service
[Unit]
Description=Apache Traffic Server
After=network.service dnsmasq.service

[Service]
Type=simple
ExecStart=/usr/bin/traffic_cop
ExecReload=/usr/bin/traffic_line -x
________________________________________________

[root@proxsystemctl status trafficserver.service
trafficserver.service - Apache Traffic Server
   Loaded: loaded (/usr/lib/systemd/system/trafficserver.service; enabled)
   Active: active (running) since Mo 2013-08-05 16:39:01 CEST; 2 days ago
 Main PID: 19689 (traffic_cop)
   CGroup: name=systemd:/system/trafficserver.service
           ├─19689 /usr/bin/traffic_cop
           ├─19690 /usr/bin/traffic_manager
           └─19710 /usr/bin/traffic_server -M --httpport 80:fd=7


Re: error: the requested command failed when trying to run /usr/bin/traffic_line -x

Posted by "Alan M. Carroll" <am...@network-geographics.com>.
Wednesday, August 7, 2013, 7:33:13 AM, you wrote:

> So when I'm saying some progress I meant that when I typed "service trafficserver start" I got the prompt "* Not starting Apache Traffic Server"

'trafficserver' is a script, not a service description. I install in '/opt/ats' and use the command

'sudo /opt/ats/bin/trafficserver start'

to bring up Traffic Server. In your case, I think 'sudo /usr/bin/trafficserver start' should work.



Re: error: the requested command failed when trying to run /usr/bin/traffic_line -x

Posted by ma...@gmail.com.
Thanks for explaining. I am new to trafficserver too. I never tried to run it as a service. I run trafficserver as root and the trafficserver executables are in that user's PATH. It seems like it cannot find the executable at all. Try "which trafficserver" command and check your path.
FYI the trafficserver logs: /usr/local/var/log/trafficserver
-----Original Message-----
From: Noam Schiff <no...@gmail.com>
Date: Wed, 7 Aug 2013 15:33:13 
To: <us...@trafficserver.apache.org>; <ma...@gmail.com>
Subject: Re: error: the requested command failed when trying to run
 /usr/bin/traffic_line -x

My executable trafficserver file are under /usr/bin, but when I'm trying to
run the trafficserver start command it says command not found.
So when I'm saying some progress I meant that when I typed "service
trafficserver start" I got the prompt "* Not starting Apache Traffic Server"

On Wed, Aug 7, 2013 at 3:21 PM, <ma...@gmail.com> wrote:

> **
> It helps if you give background on your setup. /usr/local/bin is the
> default location for installation of executables for trafficserver. This
> should be in the default PATH for the user running trafficserver. As thar
> user "which trafficserver" might show your location.
>
> By progress do you mean your original question is answered and the command
> line works now?
> ------------------------------
> *From: * Noam Schiff <no...@gmail.com>
> *Date: *Wed, 7 Aug 2013 12:39:07 +0300
> *To: *<us...@trafficserver.apache.org>
> *ReplyTo: * users@trafficserver.apache.org
> *Subject: *Re: error: the requested command failed when trying to run
> /usr/bin/traffic_line -x
>
> There is some progress...
> But, when I'm running
> /usr/bin# sudo service trafficserver start
>  * Not starting Apache Traffic Server
>
> I'm getting this message. Does anyone know why I'm getting this message?
>
>
> On Wed, Aug 7, 2013 at 12:05 PM, Noam Schiff <no...@gmail.com> wrote:
>
>> Could you please send me the path to this command?
>>
>>
>> On Wed, Aug 7, 2013 at 11:17 AM, Nick Kew <ni...@apache.org> wrote:
>>
>>> On 7 Aug 2013, at 09:04, Noam Schiff wrote:
>>>
>>> > Does killing the process and running the command
>>> /usr/bin/traffic_server start & does the trick?
>>>
>>> Is that a typo?
>>>
>>> traffic_server (with the underscore) is the main daemon process.
>>> trafficserver (no underscore) is the command to use with arguments like
>>> "start"
>>>
>>> The latter also starts the manager that responds to traffic_line !
>>>
>>> --
>>> Nick Kew
>>
>>
>>
>


Re: error: the requested command failed when trying to run /usr/bin/traffic_line -x

Posted by Noam Schiff <no...@gmail.com>.
My executable trafficserver file are under /usr/bin, but when I'm trying to
run the trafficserver start command it says command not found.
So when I'm saying some progress I meant that when I typed "service
trafficserver start" I got the prompt "* Not starting Apache Traffic Server"

On Wed, Aug 7, 2013 at 3:21 PM, <ma...@gmail.com> wrote:

> **
> It helps if you give background on your setup. /usr/local/bin is the
> default location for installation of executables for trafficserver. This
> should be in the default PATH for the user running trafficserver. As thar
> user "which trafficserver" might show your location.
>
> By progress do you mean your original question is answered and the command
> line works now?
> ------------------------------
> *From: * Noam Schiff <no...@gmail.com>
> *Date: *Wed, 7 Aug 2013 12:39:07 +0300
> *To: *<us...@trafficserver.apache.org>
> *ReplyTo: * users@trafficserver.apache.org
> *Subject: *Re: error: the requested command failed when trying to run
> /usr/bin/traffic_line -x
>
> There is some progress...
> But, when I'm running
> /usr/bin# sudo service trafficserver start
>  * Not starting Apache Traffic Server
>
> I'm getting this message. Does anyone know why I'm getting this message?
>
>
> On Wed, Aug 7, 2013 at 12:05 PM, Noam Schiff <no...@gmail.com> wrote:
>
>> Could you please send me the path to this command?
>>
>>
>> On Wed, Aug 7, 2013 at 11:17 AM, Nick Kew <ni...@apache.org> wrote:
>>
>>> On 7 Aug 2013, at 09:04, Noam Schiff wrote:
>>>
>>> > Does killing the process and running the command
>>> /usr/bin/traffic_server start & does the trick?
>>>
>>> Is that a typo?
>>>
>>> traffic_server (with the underscore) is the main daemon process.
>>> trafficserver (no underscore) is the command to use with arguments like
>>> "start"
>>>
>>> The latter also starts the manager that responds to traffic_line !
>>>
>>> --
>>> Nick Kew
>>
>>
>>
>

Re: error: the requested command failed when trying to run /usr/bin/traffic_line -x

Posted by ma...@gmail.com.
It helps if you give background on your setup. /usr/local/bin is the default location for installation of executables for trafficserver. This should be in the default PATH for the user running trafficserver. As thar user "which trafficserver" might show your location.

By progress do you mean your original question is answered and the command line works now?
-----Original Message-----
From: Noam Schiff <no...@gmail.com>
Date: Wed, 7 Aug 2013 12:39:07 
To: <us...@trafficserver.apache.org>
Reply-To: users@trafficserver.apache.org
Subject: Re: error: the requested command failed when trying to run
 /usr/bin/traffic_line -x

There is some progress...
But, when I'm running
/usr/bin# sudo service trafficserver start
 * Not starting Apache Traffic Server

I'm getting this message. Does anyone know why I'm getting this message?


On Wed, Aug 7, 2013 at 12:05 PM, Noam Schiff <no...@gmail.com> wrote:

> Could you please send me the path to this command?
>
>
> On Wed, Aug 7, 2013 at 11:17 AM, Nick Kew <ni...@apache.org> wrote:
>
>> On 7 Aug 2013, at 09:04, Noam Schiff wrote:
>>
>> > Does killing the process and running the command
>> /usr/bin/traffic_server start & does the trick?
>>
>> Is that a typo?
>>
>> traffic_server (with the underscore) is the main daemon process.
>> trafficserver (no underscore) is the command to use with arguments like
>> "start"
>>
>> The latter also starts the manager that responds to traffic_line !
>>
>> --
>> Nick Kew
>
>
>


Re: error: the requested command failed when trying to run /usr/bin/traffic_line -x

Posted by Noam Schiff <no...@gmail.com>.
There is some progress...
But, when I'm running
/usr/bin# sudo service trafficserver start
 * Not starting Apache Traffic Server

I'm getting this message. Does anyone know why I'm getting this message?


On Wed, Aug 7, 2013 at 12:05 PM, Noam Schiff <no...@gmail.com> wrote:

> Could you please send me the path to this command?
>
>
> On Wed, Aug 7, 2013 at 11:17 AM, Nick Kew <ni...@apache.org> wrote:
>
>> On 7 Aug 2013, at 09:04, Noam Schiff wrote:
>>
>> > Does killing the process and running the command
>> /usr/bin/traffic_server start & does the trick?
>>
>> Is that a typo?
>>
>> traffic_server (with the underscore) is the main daemon process.
>> trafficserver (no underscore) is the command to use with arguments like
>> "start"
>>
>> The latter also starts the manager that responds to traffic_line !
>>
>> --
>> Nick Kew
>
>
>

Re: error: the requested command failed when trying to run /usr/bin/traffic_line -x

Posted by Noam Schiff <no...@gmail.com>.
Could you please send me the path to this command?

On Wed, Aug 7, 2013 at 11:17 AM, Nick Kew <ni...@apache.org> wrote:

> On 7 Aug 2013, at 09:04, Noam Schiff wrote:
>
> > Does killing the process and running the command /usr/bin/traffic_server
> start & does the trick?
>
> Is that a typo?
>
> traffic_server (with the underscore) is the main daemon process.
> trafficserver (no underscore) is the command to use with arguments like
> "start"
>
> The latter also starts the manager that responds to traffic_line !
>
> --
> Nick Kew

Re: error: the requested command failed when trying to run /usr/bin/traffic_line -x

Posted by Nick Kew <ni...@apache.org>.
On 7 Aug 2013, at 09:04, Noam Schiff wrote:

> Does killing the process and running the command /usr/bin/traffic_server start & does the trick?

Is that a typo?

traffic_server (with the underscore) is the main daemon process.
trafficserver (no underscore) is the command to use with arguments like "start"

The latter also starts the manager that responds to traffic_line !

-- 
Nick Kew