[OPENHABIAN] Failed to set ntp: NTP not supported

System: Host: galactica Kernel: 5.4.0-42-generic x86_64 bits: 64 Console: tty 3 Distro: Ubuntu 20.04.1 LTS (Focal Fossa)
Machine: Type: Desktop Mobo: Intel model: D54250WYK v: H13922-305 serial: GEWY42800FUK UEFI: Intel
v: WYLPT10H.86A.0054.2019.0902.1752 date: 09/02/2019
CPU: Topology: Dual Core model: Intel Core i5-4250U bits: 64 type: MT MCP L2 cache: 3072 KiB
Speed: 970 MHz min/max: 800/1200 MHz Core speeds (MHz): 1: 798 2: 798 3: 798 4: 798
Graphics: Device-1: Intel Haswell-ULT Integrated Graphics driver: i915 v: kernel
Display: server: X.org 1.20.8 driver: i915 tty: 237x63
Message: Advanced graphics data unavailable in console for root.
Audio: Device-1: Intel Haswell-ULT HD Audio driver: snd_hda_intel
Device-2: Intel 8 Series HD Audio driver: snd_hda_intel
Sound Server: ALSA v: k5.4.0-42-generic
Network: Device-1: Intel Ethernet I218-V driver: e1000e
IF: eno1 state: up speed: 1000 Mbps duplex: full mac: c0:3f:d5:6b:56:41
Device-2: Intel Wireless 7260 driver: iwlwifi
IF: wlp2s0 state: down mac: 7c:5c:f8:59:ed:f9
Drives: Local Storage: total: 298.10 GiB used: 10.27 GiB (3.4%)
ID-1: /dev/sda vendor: Crucial model: CT256MX100SSD1 size: 238.47 GiB
ID-2: /dev/sdb vendor: Micron model: C400-MTFDDAT064MAM size: 59.63 GiB
Partition: ID-1: / size: 233.24 GiB used: 10.27 GiB (4.4%) fs: ext4 dev: /dev/sda2
Sensors: System Temperatures: cpu: 48.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info: Processes: 252 Uptime: 4h 00m Memory: 7.67 GiB used: 2.90 GiB (37.8%) Init: systemd runlevel: 5 Shell: bash
inxi: 3.0.38

During openhabian installation I’m getting:

2020-07-24_15:51:02_CEST [openHABian] Setting timezone based on openhabian.conf... OK (Europe/Warsaw)
Failed to set ntp: NTP not supported

I guess this is not normal?

IS that a valid timezone

Hmm, I have no idea, how to verify /change it?

menu 33 in openhabian-config should offer an option to change the time zone

Yes it is, however this error pop-ups in the earlier phase of the installation i.e. when I do command

openhabian-config unattended

following https://www.openhab.org/docs/installation/openhabian.html

Or I can just use openhabian-config instead?

I do not know the dependencies of the openhabian-config tool.
You may run

sudo dpkg-reconfigure tzdata

This is also the command that is being executed from within openhabian-config.


One more issue:

cp: cannot create regular file '/lib/dhcpcd/dhcpcd-hooks/': No such file or directory

is this important? What causes it? I’m on Ubuntu 20.04

openhabian-config tries to configure the NTP setup by copying a configuration file that comes with the software to directory /lib/dhcpcd/dhcpcd-hooks/.
As the directory does not exist the error message is being displayed.

You can try to install dhcpcd5. This package will create the directory.

The 2nd line is not a result of the 1st so please find out what’s the exact command to fail.
Set debugmode=maximum in /etc/openhabian.conf and run openhabian-config, try options in menu 33

1 Like

It should not do harm, but I changed the code to not mess with NTP on Ubuntu.
(why can’t you just use a RPi like everyone else ?)

Don’t install dhcpcd unless you know and want what it’s doing

1 Like

Thanks very much Markus :slight_smile: All is working well so far.

(why can’t you just use a RPi like everyone else ?)

Honesty, I bought NUC especially for OH because of having continuous issues of various nature with RPi 2 and 3 in the past. Don’t wan’t to go back to it even if there is promising RPi 4.

1 Like

Well the point is RPi/Raspbian is the development platform and we cannot test everything on Ubuntu so hiccups like this remain to be expectable.

1 Like