You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Pranav Modi <pr...@lukup.com> on 2010/06/21 15:00:10 UTC

traffic line error

Hi,

After installing Traffic Server, I tried to run a Traffic Line command but
got the following error.

pranav@desktop:~$ traffic_line -r proxy.config.proxy_name
traffic_line: unable to connect to traffic_manager via
/usr/local/var/trafficserver/cli


What could be the reason for this error? Some installation problem maybe?
Would appreciate some help.

Thanks,
Pranav.

Re: traffic line error

Posted by Leif Hedstrom <zw...@apache.org>.
On 6/22/10 12:58 AM, Pranav Modi wrote:
> Traffic Server process starts when i try this command -
>
> pranav@desktop:~/trafficserver$ sudo traffic_server start

Yeah, but that's not the "right" command to start ATS. You want to do 
"sudo trafficserver start". If that is what you have done, and there is 
nothing in /var/log/messages as to why it wouldn't start, then I'm stumped.

Most likely, there's a file permission problem somewhere, but I'd really 
expect the startup to generate warnings / errors in /var/log/messages if 
that is the case. (That command you showed above could quite possible 
create files with the wrong ownership, which would be in the way for the 
proper "trafficserver start". If that is the case, you will need to fix 
file / directory ownership, and/or reinstall ATS).

-- leif


Re: traffic line error

Posted by Pranav Modi <pr...@lukup.com>.
I tried  - 'sudo trafficserver start' and now the process starts and traffic
line command works.
I guess initially I needed to use sudo which I didnt, so traffic server
process did not start. And later i used the wrong command to start traffic
server because of which traffic manager process did not start, so traffic
line was not working.

Thanks for the help!

Pranav.

On Tue, Jun 22, 2010 at 12:34 PM, Leif Hedstrom <zw...@apache.org> wrote:

> On 6/22/10 1:02 AM, Pranav Modi wrote:
>
>> Three files are present in /var/log/trafficserver -
>>
>> squid.blog
>> error.log
>> diags.log
>> \
>>
>
>
> Yes, but startup errors (and other "unrecoverable" errors) would show up in
> /var/log/messages (that is a file, that all Linux syslog daemons creates,
> and ATS syslog's to).
>
> -- leif
>
>
>

Re: traffic line error

Posted by Leif Hedstrom <zw...@apache.org>.
On 6/22/10 1:02 AM, Pranav Modi wrote:
> Three files are present in /var/log/trafficserver -
>
> squid.blog
> error.log
> diags.log
> \


Yes, but startup errors (and other "unrecoverable" errors) would show up 
in /var/log/messages (that is a file, that all Linux syslog daemons 
creates, and ATS syslog's to).

-- leif



Re: traffic line error

Posted by Pranav Modi <pr...@lukup.com>.
Three files are present in /var/log/trafficserver -

squid.blog
error.log
diags.log

The error.log file contains only multiple instances of the following line -

20100622.12h30m18s RESPONSE: sent 127.0.0.1 status 404 (Not Found on
Accelerator) for 'http:///'

On Tue, Jun 22, 2010 at 12:28 PM, Pranav Modi <pr...@lukup.com> wrote:

> Traffic Server process starts when i try this command -
>
> pranav@desktop:~/trafficserver$ sudo traffic_server start
>
> In the browser, on calling http://localhost:8080/ I get this
> message(because I have not configured it yet) -
> *Your requested URL was not found.*
> *
> *
> But the  traffic_line command still gives the same error.
>
>
> Pranav.
> *
> *
> *
> *
> *
> *
>
>
>
>
>
> On Tue, Jun 22, 2010 at 12:10 PM, Leif Hedstrom <zw...@apache.org> wrote:
>
>> On 6/22/10 12:12 AM, Pranav Modi wrote:
>>
>>> My OS is Ubuntu 10.4, the records.config can be found here -
>>> http://pastebin.com/1kiYKk0v
>>>
>>
>> And there are no messages about problems or errors in /var/log/messages?
>>
>> -- Leif
>>
>
>

Re: traffic line error

Posted by Pranav Modi <pr...@lukup.com>.
Traffic Server process starts when i try this command -

pranav@desktop:~/trafficserver$ sudo traffic_server start

In the browser, on calling http://localhost:8080/ I get this message(because
I have not configured it yet) -
*Your requested URL was not found.*
*
*
But the  traffic_line command still gives the same error.


Pranav.
*
*
*
*
*
*





On Tue, Jun 22, 2010 at 12:10 PM, Leif Hedstrom <zw...@apache.org> wrote:

> On 6/22/10 12:12 AM, Pranav Modi wrote:
>
>> My OS is Ubuntu 10.4, the records.config can be found here -
>> http://pastebin.com/1kiYKk0v
>>
>
> And there are no messages about problems or errors in /var/log/messages?
>
> -- Leif
>

Re: traffic line error

Posted by Leif Hedstrom <zw...@apache.org>.
On 6/22/10 12:12 AM, Pranav Modi wrote:
> My OS is Ubuntu 10.4, the records.config can be found here - 
> http://pastebin.com/1kiYKk0v

And there are no messages about problems or errors in /var/log/messages?

-- Leif

Re: traffic line error

Posted by Pranav Modi <pr...@lukup.com>.
My OS is Ubuntu 10.4, the records.config can be found here -
http://pastebin.com/1kiYKk0v

On Tue, Jun 22, 2010 at 10:42 AM, Pranav Modi <pr...@lukup.com> wrote:

> Yes, thats right. Traffic Server process itself is not running.
>
> However there are no errors when I execute the following command -
>
> pranav@desktop:/usr/local/bin$ trafficserver start
>
> What could be the problem here?
>
> Pranav.
>
>
>
>
> On Mon, Jun 21, 2010 at 8:34 PM, Jason <ja...@gmail.com> wrote:
>
>> As Leif has suggested,
>>
>> Check that TrafficServer is running:
>> if linux try: 'ps -A'
>>
>> (you could pipe, grep for traffic too)
>>
>> if it's not running, run 'trafficserver start'
>>
>> If still having issues, report back the OS, version, maybe pastebin your
>> records.config (without the delicates)
>>
>> On Mon, Jun 21, 2010 at 10:48 AM, Leif Hedstrom <zw...@apache.org> wrote:
>>
>>> On 6/21/10 7:00 AM, Pranav Modi wrote:
>>>
>>>> Hi,
>>>>
>>>> After installing Traffic Server, I tried to run a Traffic Line command
>>>> but got the following error.
>>>>
>>>> pranav@desktop:~$ traffic_line -r proxy.config.proxy_name
>>>> traffic_line: unable to connect to traffic_manager via
>>>> /usr/local/var/trafficserver/cli
>>>>
>>>
>>>
>>> Is the traffic_manager process running?
>>>
>>> -- Leif
>>>
>>>
>>
>

Re: traffic line error

Posted by Pranav Modi <pr...@lukup.com>.
Yes, thats right. Traffic Server process itself is not running.

However there are no errors when I execute the following command -

pranav@desktop:/usr/local/bin$ trafficserver start

What could be the problem here?

Pranav.




On Mon, Jun 21, 2010 at 8:34 PM, Jason <ja...@gmail.com> wrote:

> As Leif has suggested,
>
> Check that TrafficServer is running:
> if linux try: 'ps -A'
>
> (you could pipe, grep for traffic too)
>
> if it's not running, run 'trafficserver start'
>
> If still having issues, report back the OS, version, maybe pastebin your
> records.config (without the delicates)
>
> On Mon, Jun 21, 2010 at 10:48 AM, Leif Hedstrom <zw...@apache.org> wrote:
>
>> On 6/21/10 7:00 AM, Pranav Modi wrote:
>>
>>> Hi,
>>>
>>> After installing Traffic Server, I tried to run a Traffic Line command
>>> but got the following error.
>>>
>>> pranav@desktop:~$ traffic_line -r proxy.config.proxy_name
>>> traffic_line: unable to connect to traffic_manager via
>>> /usr/local/var/trafficserver/cli
>>>
>>
>>
>> Is the traffic_manager process running?
>>
>> -- Leif
>>
>>
>

Re: traffic line error

Posted by Jason <ja...@gmail.com>.
As Leif has suggested,

Check that TrafficServer is running:
if linux try: 'ps -A'

(you could pipe, grep for traffic too)

if it's not running, run 'trafficserver start'

If still having issues, report back the OS, version, maybe pastebin your
records.config (without the delicates)

On Mon, Jun 21, 2010 at 10:48 AM, Leif Hedstrom <zw...@apache.org> wrote:

> On 6/21/10 7:00 AM, Pranav Modi wrote:
>
>> Hi,
>>
>> After installing Traffic Server, I tried to run a Traffic Line command but
>> got the following error.
>>
>> pranav@desktop:~$ traffic_line -r proxy.config.proxy_name
>> traffic_line: unable to connect to traffic_manager via
>> /usr/local/var/trafficserver/cli
>>
>
>
> Is the traffic_manager process running?
>
> -- Leif
>
>

Re: traffic line error

Posted by Leif Hedstrom <zw...@apache.org>.
On 6/21/10 7:00 AM, Pranav Modi wrote:
> Hi,
>
> After installing Traffic Server, I tried to run a Traffic Line command 
> but got the following error.
>
> pranav@desktop:~$ traffic_line -r proxy.config.proxy_name
> traffic_line: unable to connect to traffic_manager via 
> /usr/local/var/trafficserver/cli


Is the traffic_manager process running?

-- Leif