Results 1 to 4 of 4

Thread: LSB/NTP fails

  1. #1
    Join Date
    Dec 2017
    Beans
    12

    LSB/NTP fails

    Hello everybody,

    I am facing an issue at Ubuntu MAAS, as my NTP is not booting up. You can find my whole setup (starting by making a bootable device) on my blog.



    Code:
    fabiansc@Nexus:~$ sudo systemctl status ntp.service
     ntp.service - LSB: Start NTP daemon
       Loaded: loaded (/etc/init.d/ntp; bad; vendor preset: enabled)
       Active: failed (Result: exit-code) since Di 2017-12-26 14:13:38 CET; 19s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 27073 ExecStart=/etc/init.d/ntp start (code=exited, status=5)
    
    
    Dez 26 14:13:38 Nexus systemd[1]: Starting LSB: Start NTP daemon...
    Dez 26 14:13:38 Nexus systemd[1]: ntp.service: Control process exited, code=exited status=5
    Dez 26 14:13:38 Nexus systemd[1]: Failed to start LSB: Start NTP daemon.
    Dez 26 14:13:38 Nexus systemd[1]: ntp.service: Unit entered failed state.
    Dez 26 14:13:38 Nexus systemd[1]: ntp.service: Failed with result 'exit-code'.
    
    
    fabiansc@Nexus:~$ journalctl -xe
    -- Subject: Unit ntp.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- 
    -- Unit ntp.service has failed.
    -- 
    -- The result is failed.
    Dez 26 14:14:05 Nexus systemd[1]: ntp.service: Unit entered failed state.
    Dez 26 14:14:05 Nexus systemd[1]: ntp.service: Failed with result 'exit-code'.
    Dez 26 14:14:05 Nexus sudo[27183]: pam_unix(sudo:session): session closed for user root
    Dez 26 14:14:06 Nexus maas.service_monitor[1577]: [error] Service 'ntp_region' failed to restart: Job for ntp.service failed because the control process exited with error code. 
    Dez 26 14:14:06 Nexus sh[1574]: 2017-12-26 14:14:06 maasserver.regiondservices.ntp: [critical] Failed to update NTP configuration.
    Dez 26 14:14:06 Nexus sh[1574]: Traceback (most recent call last):
    Dez 26 14:14:06 Nexus sh[1574]:   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 434, in errback
    Dez 26 14:14:06 Nexus sh[1574]:     self._startRunCallbacks(fail)
    Dez 26 14:14:06 Nexus sh[1574]:   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 501, in _startRunCallbacks
    Dez 26 14:14:06 Nexus sh[1574]:     self._runCallbacks()
    Dez 26 14:14:06 Nexus sh[1574]:   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 588, in _runCallbacks
    Dez 26 14:14:06 Nexus sh[1574]:     current.result = callback(current.result, *args, **kw)
    Dez 26 14:14:06 Nexus sh[1574]:   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1184, in gotResult
    Dez 26 14:14:06 Nexus sh[1574]:     _inlineCallbacks(r, g, deferred)
    Dez 26 14:14:06 Nexus sh[1574]: --- <exception caught here> ---
    Dez 26 14:14:06 Nexus sh[1574]:   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1126, in _inlineCallbacks
    Dez 26 14:14:06 Nexus sh[1574]:     result = result.throwExceptionIntoGenerator(g)
    Dez 26 14:14:06 Nexus sh[1574]:   File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
    Dez 26 14:14:06 Nexus sh[1574]:     return g.throw(self.type, self.value, self.tb)
    Dez 26 14:14:06 Nexus sh[1574]:   File "/usr/lib/python3/dist-packages/provisioningserver/utils/service_monitor.py", line 318, in restartService
    Dez 26 14:14:06 Nexus sh[1574]:     yield self._performServiceAction(service, "restart")
    Dez 26 14:14:06 Nexus sh[1574]:   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
    Dez 26 14:14:06 Nexus sh[1574]:     result = g.send(result)
    Dez 26 14:14:06 Nexus sh[1574]:   File "/usr/lib/python3/dist-packages/provisioningserver/utils/service_monitor.py", line 422, in _performServiceAction
    Dez 26 14:14:06 Nexus sh[1574]:     raise ServiceActionError(error_msg)
    Dez 26 14:14:06 Nexus sh[1574]: provisioningserver.utils.service_monitor.ServiceActionError: Service 'ntp_region' failed to restart: Job for ntp.service failed because the contr
    After setting up the Raspberry Pi I and updating the package I noticed an issue with APT-GET; the python libraries had issues. I removed them from the APT cache and re-installed them afterwards, which worked out. I would be very glad, if you could help me to get NTP back online.

    Thanks in advance!
    Last edited by fabiansc; December 26th, 2017 at 02:40 PM.

  2. #2
    Join Date
    Dec 2017
    Beans
    12

    Re: LSB/NTP fails

    Anyone has a hint?

  3. #3
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: LSB/NTP fails

    Moved here, as this is a better place to get your question answered.

  4. #4
    Join Date
    Dec 2017
    Beans
    12

    Re: LSB/NTP fails

    Any hint?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •