Discussion:
NTP unmanaged service in 4.4
Kurt Albershardt
2012-07-13 15:55:28 UTC
Permalink
I'm finishing up an OpenVZ template for sipx 4.4 and wondering how I should best address the lack of ntpd in the OS:

***@sipx ~]# sipxecs-setup

Executing:
/sbin/service sipxecs start

error reading information on service ntpd: No such file or directory
ntpd: unrecognized service
ntpd: unrecognized service
Checking bootstrap setup: [ OK ]
Checking TLS/SSL configuration: [ OK ]
Checking Per-process file descriptor limits: [ OK ]
Checking rpm configuration file updates: [ OK ]
Checking SELinux is not enforcing: [ OK ]
Checking Apache configuration: [ OK ]
Checking hostname is fully qualified: [ OK ]
Checking localhost address configured: [ OK ]
Checking localhost name is not shared: [ OK ]
Checking /tmp directory has correct permissions: [ OK ]

Starting sipXpbx:
Starting sipxsupervisor: [ OK ]
Starting httpd: [ OK ]
[***@sipx ~]#


Everything appears to be working in the GUI, with the exception of the "Date and Time" menu item, which produces the familiar
An internal error has occurred. Click here <https://sipx.domain.com:8443/sipxconfig/restart.svc> to continue.


page.



thanks~
Kurt Albershardt
2012-07-13 18:15:50 UTC
Permalink
Post by Kurt Albershardt
Everything appears to be working in the GUI, with the exception of the "Date and Time" menu item, which produces the familiar
An internal error has occurred. Click here <https://sipx.domain.com:8443/sipxconfig/restart.svc> to continue.
Installing ntp and rebooting the server did not change this behavior.

All of my phones (which I did finally manage to get registered) have USA-5 timezone set, and while I can manually update them I suspect that menu might allow me to set a system timezone?
Gerald Drouillard
2012-07-13 18:32:56 UTC
Permalink
Post by Kurt Albershardt
Post by Kurt Albershardt
Everything appears to be working in the GUI, with the exception of
the "Date and Time" menu item, which produces the familiar
An internal error has occurred. Click
here <https://sipx.domain.com:8443/sipxconfig/restart.svc> to continue.
Installing ntp and rebooting the server did not change this behavior.
All of my phones (which I did finally manage to get registered) have
USA-5 timezone set, and while I can manually update them I suspect
that menu might allow me to set a system timezone?
Is your ntp server a linux server...
*

some older versions of ubuntu have the ntp.conf file in
/var/lib/ntp/ntp.conf.dhcp, you may want to delete that one and use the
one in /etc

Polycom will not sync the time if on the linux server you run:

ntpdate -q localhost

and you get back: "no server suitable for synchronization found"

if so then:


*

rm /var/lib/ntp/ntp.conf.dhcp

*

service ntp stop

*

ntpdate us.pool.ntp.org

*

edit /etc/ntp.conf

*

service ntp start

you can tell if the ntp server is connected to other ntp servers with:

ntpq -p

After you make the changes, ntp server may take a few minutes before it
is synchronized.

*
--
Regards
--------------------------------------
Gerald Drouillard
Technology Architect
Drouillard & Associates, Inc.
http://www.Drouillard.biz
Kurt Albershardt
2012-07-13 20:07:03 UTC
Permalink
Post by Gerald Drouillard
older versions of ubuntu have the ntp.conf file in
/var/lib/ntp/ntp.conf.dhcp, you may want to delete that one
and use the one in /etc
This is a Centos 5 install, but it will not run ntpd because the system is in an OpenVZ container:

[***@sipx ~]# /etc/init.d/ntpd start
Starting ntpd: [ OK ]
[***@sipx ~]# /etc/init.d/ntpd status
ntpd dead but pid file exists
[***@sipx ~]#

Which brings me back to my original question:

How do I configure ntp to be an unmanaged service in 4.4? If this is not possible in the standard config, does anyone have suggestions for a work-around I can implement? Once I have this, I can release my OpenVZ appliance for testing.
Douglas Hubler
2012-07-13 20:24:56 UTC
Permalink
Post by Kurt Albershardt
How do I configure ntp to be an unmanaged service in 4.4?
what happened to you efforts on 4.6? It's almost released, why go thru
the effort on 4.4?
Kurt Albershardt
2012-07-13 20:51:36 UTC
Permalink
Post by Douglas Hubler
Post by Kurt Albershardt
How do I configure ntp to be an unmanaged service in 4.4?
what happened to you efforts on 4.6? It's almost released, why go thru
the effort on 4.4?
I'm working them in parallel, actually.

Wanted to test out my appliance-building skills on 4.4 first, then start tinkering with 4.6 once I get the build process down.
Tony Graziano
2012-07-13 22:29:27 UTC
Permalink
I'm not sure how much mileage you will get in 4.4 since it's about to
be upstaged.

In the meantime, creating a virtual appliance is trivial with the
exception of some specific platform note, like OpenVZ and getting time
from the host kernel (which is what vmware tools does in vmware
environments, except it will allow you to run ntp in the guest os).
There is no built-in way to configure ntp as unmanaged service
built-into sipxconfig in 4.4, which is why it was added to 4.6. The
sipxecs startup script actually checks to see if it is running and may
not likely play well if it is not. I don't see the point in backwards
retooling the scripts in 4.4 to get around this (IMO).

If I were you, and I'm not, I'd stick with 4.6 if you are insistent on
using OpenVZ.
Post by Kurt Albershardt
Post by Douglas Hubler
Post by Kurt Albershardt
How do I configure ntp to be an unmanaged service in 4.4?
what happened to you efforts on 4.6? It's almost released, why go thru
the effort on 4.4?
I'm working them in parallel, actually.
Wanted to test out my appliance-building skills on 4.4 first, then start tinkering with 4.6 once I get the build process down.
_______________________________________________
sipx-users mailing list
List Archive: http://list.sipfoundry.org/archive/sipx-users/
--
~~~~~~~~~~~~~~~~~~
Tony Graziano, Manager
Telephone: 434.984.8430
sip: ***@voice.myitdepartment.net
Fax: 434.465.6833
~~~~~~~~~~~~~~~~~~
Linked-In Profile:
http://www.linkedin.com/pub/tony-graziano/14/4a6/7a4
Ask about our Internet Fax services!
~~~~~~~~~~~~~~~~~~

Using or developing for sipXecs from SIPFoundry? Ask me about sipX-CoLab 2013!
--
LAN/Telephony/Security and Control Systems Helpdesk:
Telephone: 434.984.8426
sip: ***@voice.myitdepartment.net

Helpdesk Customers: http://myhelp.myitdepartment.net
Blog: http://blog.myitdepartment.net
Kurt Albershardt
2012-07-13 22:49:18 UTC
Permalink
Post by Tony Graziano
There is no built-in way to configure ntp as unmanaged service
built-into sipxconfig in 4.4, which is why it was added to 4.6. The
sipxecs startup script actually checks to see if it is running and may
not likely play well if it is not.
Gotcha - thanks.
Post by Tony Graziano
If I were you, and I'm not, I'd stick with 4.6 if you are insistent on
using OpenVZ.
Point taken - will keep updating and see how it goes.

Loading...