Page 1 of 1

1.9.x OpenWRT package problems

Posted: Fri Oct 02, 2015 7:45 pm
by ispyisail
hi all

I'm trying to install a "time server" as per http://wiki.openwrt.org/doc/howto/ntp.client

But I get errors?

Full Gargoyle log

Code: Select all

Device Name:Gargoyle
Gargoyle Version:1.9.X (Built 20150930-0717 git@fb6fec4)
Model:TP-Link Archer C7 v2 



root@Gargoyle:~# opkg update
Downloading package list for chaos_calmer_base source...
Package list for chaos_calmer_base downloaded successfully.

Downloading package list for gargoyle source...
Package list for gargoyle downloaded successfully.

Downloading package list for chaos_calmer_packages source...
Package list for chaos_calmer_packages downloaded successfully.

Downloading package list for chaos_calmer_telephony source...
Package list for chaos_calmer_telephony downloaded successfully.

Downloading package list for chaos_calmer_routing source...
Package list for chaos_calmer_routing downloaded successfully.

Downloading package list for chaos_calmer_management source...
Package list for chaos_calmer_management downloaded successfully.


root@Gargoyle:~# opkg install ntpd
Preparing to install the following packages, which will require 199615 bytes:
        libcap, ntpd

Preparing to install package libcap...
        Downloading...
        Downloaded libcap successfully.
        Installing libcap...
        Successfully installed libcap.
Preparing to install package ntpd...
        Downloading...
        Downloaded ntpd successfully.
        Installing ntpd...
        Successfully installed ntpd.
Installation of packages successful.

root@Gargoyle:~#

root@Gargoyle:~# /etc/init.d/sysntpd disable
root@Gargoyle:~# /etc/init.d/ntpd enable
root@Gargoyle:~# /etc/init.d/ntpd start
chown: unknown user/group ntp:ntp
root@Gargoyle:~#
Full Openwrt log

Code: Select all

Hostname	OpenWrt
Model	TP-Link Archer C7 v2
Firmware Version	OpenWrt Chaos Calmer 15.05 / LuCI (git-15.248.30277-3836b45)



root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_base.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/luci/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_luci.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/luci/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_packages.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/routing/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_routing.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/routing/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/telephony/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_telephony.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/telephony/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/management/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_management.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/management/Packages.sig.
Signature check passed.
root@OpenWrt:~#


root@OpenWrt:~# opkg install ntpd
Installing ntpd (4.2.8p2-2) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/ntpd_4.2.8p2-2_ar71xx.ipk.
Installing libopenssl (1.0.2d-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/libopenssl_1.0.2d-1_ar71xx.ipk.
Installing zlib (1.2.8-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/zlib_1.2.8-1_ar71xx.ipk.
Installing libpthread (0.9.33.2-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/libpthread_0.9.33.2-1_ar71xx.ipk.
Installing libcap (2.24-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/libcap_2.24-1_ar71xx.ipk.
Configuring libpthread.
Configuring libcap.
Configuring zlib.
Configuring libopenssl.
Configuring ntpd.
root@OpenWrt:~#


root@OpenWrt:~# /etc/init.d/sysntpd disable
root@OpenWrt:~# /etc/init.d/ntpd enable
root@OpenWrt:~# /etc/init.d/ntpd start
root@OpenWrt:~# netstat -l | grep ntp
udp        0      0 OpenWrt.lan:ntp         0.0.0.0:*
udp        0      0 192.168.25.231:ntp      0.0.0.0:*
udp        0      0 localhost:ntp           0.0.0.0:*
udp        0      0 0.0.0.0:ntp             0.0.0.0:*
udp        0      0 fe80::32b5:c2ff:fe08:47e2:ntp :::*                          
udp        0      0 fd3c:da90:6f6a::1:ntp   :::*
udp        0      0 fe80::32b5:c2ff:fe08:47e3:ntp :::*                          
udp        0      0 ::1:ntp                 :::*
udp        0      0 :::ntp                  :::*
root@OpenWrt:~#

Re: 1.9.x OpenWRT package problems

Posted: Fri Oct 02, 2015 8:33 pm
by Lantis
Ok so this looks related to the default scripts that happen when you install a package. They setup new users for the package and automatically start the init.d scripts.

Have you checked to see if it started itself?

Re: 1.9.x OpenWRT package problems

Posted: Fri Oct 02, 2015 11:38 pm
by ispyisail
unsure but I suspect not

the nest step came up with an error as well

Code: Select all

root@Gargoyle:~# /etc/init.d/sysntpd disable
root@Gargoyle:~# /etc/init.d/ntpd enable
root@Gargoyle:~# /etc/init.d/ntpd start
chown: unknown user/group ntp:ntp
root@Gargoyle:~# netstat -l | grep ntp
netstat: /proc/net/tcp6: No such file or directory
netstat: /proc/net/udp6: No such file or directory
netstat: /proc/net/raw6: No such file or directory
udp        0      0 0.0.0.0:ntp             0.0.0.0:*
root@Gargoyle:~#

Re: 1.9.x OpenWRT package problems

Posted: Sat Oct 03, 2015 4:38 am
by RomanHK
Hi,
add line "ntp:x:555:" insert a row into /etc/group

Code: Select all

root:x:0:
daemon:x:1:
adm:x:4:
mail:x:8:
audio:x:29:
www-data:x:33:
ftp:x:55:
users:x:100:
network:x:101:
ntp:x:555:
nogroup:x:65534:
and add line "ntp:*:555:555:ntp:/var:/bin/false" insert a row into /etc/passwd

Code: Select all

root:x:0:0:root:/root:/bin/ash
daemon:*:1:1:daemon:/var:/bin/false
ftp:*:55:55:ftp:/home/ftp:/bin/false
network:*:101:101:network:/var:/bin/false
ntp:*:555:555:ntp:/var:/bin/false
nobody:*:65534:65534:nobody:/var:/bin/false
root@Gargoyle:~# killall ntpd
root@Gargoyle:~# /etc/init.d/ntpd start

command ok

Code: Select all

5733 ntp       5104 S    /sbin/ntpd -g -u ntp:ntp -p /var/run/ntpd.pid -n

Re: 1.9.x OpenWRT package problems

Posted: Sun Oct 04, 2015 2:39 am
by ispyisail
thanks, it better but there are still problems


Code: Select all

root@Gargoyle:~# /etc/init.d/sysntpd disable
root@Gargoyle:~# /etc/init.d/ntpd enable
root@Gargoyle:~# /etc/init.d/ntpd start
root@Gargoyle:~# netstat -l | grep ntp
netstat: /proc/net/tcp6: No such file or directory
udp        0      0 Gargoyle:ntp            0.0.0.0:*
udp        0      0 192.168.25.231:ntp      0.0.0.0:*
udp        0      0 localhost:ntp           0.0.0.0:*
udp        0      0 0.0.0.0:ntp             0.0.0.0:*
netstat: /proc/net/udp6: No such file or directory
netstat: /proc/net/raw6: No such file or directory
root@Gargoyle:~#

Re: 1.9.x OpenWRT package problems

Posted: Sun Oct 04, 2015 4:18 am
by Lantis
Those files are related to IPv6 which we don't build in the images.

Re: 1.9.x OpenWRT package problems

Posted: Mon Oct 05, 2015 4:01 am
by ispyisail
Thanks