RPi 2(RTC module): from unruly Stepchild to Wunderkind

  • Yes i did it before, see here:


    ______________________________________________________________________________________________________________
    OMV 1: Asrock Q1900M - 8 GB Ram - 320 GB Boot Disk - 3 * 3 TB WD RED Data
    OMV 4.1.6 - Kernel 4.16.0.0 | Plugins: n.n.

  • Yes it will not start the ntp server abnd yes i did this


    I rebooted it again:




    Here you can see the kernel messages:


    ______________________________________________________________________________________________________________
    OMV 1: Asrock Q1900M - 8 GB Ram - 320 GB Boot Disk - 3 * 3 TB WD RED Data
    OMV 4.1.6 - Kernel 4.16.0.0 | Plugins: n.n.

    2 Mal editiert, zuletzt von Elluminatus ()

  • I think the key to your problem is in this message...


    May 21 17:12:42 Hermes ntpd[2983]: Cannot find user ID 101


    I look at something...


    I wonder why your module fails to register 2 times and the it succeeds.
    I checked my kernel log and mine registers the first try.

  • Unfortunatly not:


    Zitat

    root@Hermes:~# date
    Sa 21. Mai 18:02:38 CEST 2016
    root@Hermes:~# service ntp restart
    Stopping NTP server: ntpdstart-stop-daemon: warning: failed to kill 2201: No such process
    .
    Starting NTP server: ntpd.





    ;(


    I think you where right, it is not the problem with the RTC it has something to do with "Cannot find user ID 101"


    And meanwhile thank you so much for your time and help... where is the forum button to send someone the price of a (2,3,4,5...) beer(s) via paypal?

    ______________________________________________________________________________________________________________
    OMV 1: Asrock Q1900M - 8 GB Ram - 320 GB Boot Disk - 3 * 3 TB WD RED Data
    OMV 4.1.6 - Kernel 4.16.0.0 | Plugins: n.n.

    2 Mal editiert, zuletzt von Elluminatus ()

  • Give me output of these:


    getent passwd 101


    getent passwd ntp


    BTW, I think this will solve your problem.
    mkdir /home/ntp
    chown -R ntp:ntp /home/ntp


    After creating this home see if the ntp server will start.


    Also, I think the hwclock.sh and the RTC module are working fine. You can check with this.
    hwclock -r


    It is just home issue with ntp user I think.

  • Zitat

    root@Hermes:~# getent passwd 101
    ntp:x:101:103::/home/ntp:/bin/false
    root@Hermes:~# getent passwd ntp
    ntp:x:101:103::/home/ntp:/bin/false


    hwclock -r is okay


    Zitat

    root@Hermes:~# hwclock -r
    Sa 21 Mai 2016 21:00:25 CEST -1.599067 seconds


    But still


    Zitat

    Cannot find user ID 101

    ______________________________________________________________________________________________________________
    OMV 1: Asrock Q1900M - 8 GB Ram - 320 GB Boot Disk - 3 * 3 TB WD RED Data
    OMV 4.1.6 - Kernel 4.16.0.0 | Plugins: n.n.

    2 Mal editiert, zuletzt von Elluminatus ()

  • okay, so it is still the issue that rtc is working but is not synced by the ntp clock...


    Maybe this will help, i will try it:


    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=793745#45

    ______________________________________________________________________________________________________________
    OMV 1: Asrock Q1900M - 8 GB Ram - 320 GB Boot Disk - 3 * 3 TB WD RED Data
    OMV 4.1.6 - Kernel 4.16.0.0 | Plugins: n.n.

    Einmal editiert, zuletzt von Elluminatus ()

  • It is just a matter of the ntp server not starting. And why it is not reading the user in the init script.


    In the start function of /etc/init.d/ntp try changing this line


    start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --startas $DAEMON -- -p $PIDFILE $NTPD_OPTS


    To this and see if it starts:
    start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --startas $DAEMON -- -p $PIDFILE -c ntp:ntp

  • Good news!


    The ID 101 is gone



    But what is getconfig: Couldn't open <ntp:ntp>?


    Zitat

    root@Hermes:~# service ntp restart
    Stopping NTP server: ntpd.
    Starting NTP server: ntpd.


    Greetings Elluminatus

    ______________________________________________________________________________________________________________
    OMV 1: Asrock Q1900M - 8 GB Ram - 320 GB Boot Disk - 3 * 3 TB WD RED Data
    OMV 4.1.6 - Kernel 4.16.0.0 | Plugins: n.n.

  • Here we are... Fileserver was shutdown until today and the time was correct!


    ______________________________________________________________________________________________________________
    OMV 1: Asrock Q1900M - 8 GB Ram - 320 GB Boot Disk - 3 * 3 TB WD RED Data
    OMV 4.1.6 - Kernel 4.16.0.0 | Plugins: n.n.

  • Not a USB Stick but a new SD-Card... 8GB brand new...

    ______________________________________________________________________________________________________________
    OMV 1: Asrock Q1900M - 8 GB Ram - 320 GB Boot Disk - 3 * 3 TB WD RED Data
    OMV 4.1.6 - Kernel 4.16.0.0 | Plugins: n.n.

  • Sorry for interrupting this thread.


    I added a weekly cron job to reboot. Now the most data I can lose on the graphs is 7 days or less.


    Would you please be so kind and post the content of the files you changed for doing the weekly reboot? Thank you.
    I was thinking of something similar, as I had a power outtake recently and due to the use of the folder2ram plugin i also lost some graphs.

    OMV 1.19 (OMV-Extras.org 1.34) | BanaNAS | 16GB microSD (using FlashMemory plugin) | 1TB SATA WD Blue Mobile

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!