/etc/init.d/asterisk restart ---unable

General discussions about AsteriskNOW.

Moderators: Moderator, Support

/etc/init.d/asterisk restart ---unable

Postby slashlinux » Mon Jul 22, 2013 4:02 am

Hello,

I have problem with my asterisk (), when I want to restart the service ( asterisk) is giving me the next output:


Code: Select all
[root@root ~]# /etc/init.d/asterisk restart
Stopping safe_asterisk:                                    [  OK  ]
Shutting down asterisk:                                    [  OK  ]
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
Starting asterisk: Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
                                                           [  OK  ]


And, when I am in CLI Mode and give the command "reload" it giving me:

Code: Select all
[9:57:34 AM EEST] ciocoiu petrisor: [2013-07-22 09:57:12] ERROR[4709]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("root", "(null)", ...): Name or service not known
[2013-07-22 09:57:12] WARNING[4709]: acl.c:590 resolve_first: Unable to lookup 'root'



What should I do?


Thank you
slashlinux
Newsterisk
 
Posts: 6
Joined: Mon Mar 12, 2012 10:35 am

Re: /etc/init.d/asterisk restart ---unable

Postby david55 » Mon Jul 22, 2013 4:25 am

I'm not absolutely sure that the first one is an error.

For the second one, make sure that your host name resolves. "root" is a strange host name.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: /etc/init.d/asterisk restart ---unable

Postby david55 » Mon Jul 22, 2013 4:28 am

If the first one is a real problem, you haven't provided enough information. In particularly, are you trying to run non-root, and what has been logged in /var/log/asterisk/*.log
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: /etc/init.d/asterisk restart ---unable

Postby slashlinux » Mon Jul 22, 2013 7:45 am

Tell me please what information can I provide you :

The asterisk is :


Code: Select all
# rasterisk -rvvv
Asterisk 1.8.21.0, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.8.21.0 currently running on morbilling (pid = 2135)
Verbosity is at least 11
soft*CLI>
slashlinux
Newsterisk
 
Posts: 6
Joined: Mon Mar 12, 2012 10:35 am

Re: /etc/init.d/asterisk restart ---unable

Postby david55 » Mon Jul 22, 2013 10:41 am

The server has started successfully if asterisk -r is able to connect to it.

Generally, if you don't already know what the problem is, you will need to provide a lot of information.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: /etc/init.d/asterisk restart ---unable

Postby slashlinux » Mon Jul 22, 2013 12:37 pm

ok, what do you meen by that?" lot of information, I am not expert on asterisk so that I posted here, because I have this problem.


Thank you @David
slashlinux
Newsterisk
 
Posts: 6
Joined: Mon Mar 12, 2012 10:35 am

Re: /etc/init.d/asterisk restart ---unable

Postby david55 » Mon Jul 22, 2013 3:26 pm

Start with asterisk.conf and the the contents of /var/log/asterisk/messages.

However, until one finds positive evidence of the caues, one won't really know what to look for.

Also try and think what is unusual about your system.

However note that the fact that you could connect the CLI indicates a successful start up of the server, i.e. it is evidence of the absence of a problem.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am


Return to AsteriskNOW General

Who is online

Users browsing this forum: No registered users and 1 guest