Fail to get an IP from DHCP server after installing fvdw-sl

Fail to get an IP from DHCP server after installing fvdw-sl

Postby fvdw » Mon Apr 22, 2019 7:14 pm

oke the 3 other boot scripts work normal

and udhcpc doesn't give output as we replace busybox by a static version.

also perform this command
Code: Select all
debugon

It will give us more output in boot.log

Please try these command
Code: Select all
busybox-org udhcpc --help
cd /bin
ldd busybox-org
cd /sbin
rm udhcpc
ln -s ../bin/busybox udhcpc
cd /


After that post the output here of these commands

Then reboot the nas and do not perform /rc.bootup3 but
Code: Select all
/etc/init.d/rc.bootup1

I know, this will hang the nas as we know but with the debugon it should show
us were the lan setup hangs
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Fail to get an IP from DHCP server after installing fvdw-sl

Postby Draftmancorp » Mon Apr 22, 2019 7:16 pm

Code: Select all
root@kirkwood-4:/sbin # debugon
root@kirkwood-4:/sbin # busybox-org udhcpc --help
BusyBox v1.21.0 (2015-03-21 21:32:07 CET) multi-call binary.

Usage: udhcpc [-fbnqvoCRB] [-i IFACE] [-r IP] [-s PROG] [-p PIDFILE]
        [-V VENDOR] [-x OPT:VAL]... [-O OPT]...

        -i,--interface IFACE    Interface to use (default eth0)
        -p,--pidfile FILE       Create pidfile
        -s,--script PROG        Run PROG at DHCP events (default /usr/share/udhcpc/default.script)
        -B,--broadcast          Request broadcast replies
        -t,--retries N          Send up to N discover packets
        -T,--timeout N          Pause between packets (default 3 seconds)
        -A,--tryagain N         Wait N seconds after failure (default 20)
        -f,--foreground         Run in foreground
        -b,--background         Background if lease is not obtained
        -n,--now                Exit if lease is not obtained
        -q,--quit               Exit after obtaining lease
        -R,--release            Release IP on exit
        -S,--syslog             Log to syslog too
        -a,--arping             Use arping to validate offered address
        -O,--request-option OPT Request option OPT from server (cumulative)
        -o,--no-default-options Don't request any options (unless -O is given)
        -r,--request IP         Request this IP address
        -x OPT:VAL              Include option OPT in sent packets (cumulative)
                                Examples of string, numeric, and hex byte opts:
                                -x hostname:bbox - option 12
                                -x lease:3600 - option 51 (lease time)
                                -x 0x3d:0100BEEFC0FFEE - option 61 (client id)
        -F,--fqdn NAME          Ask server to update DNS mapping for NAME
        -V,--vendorclass VENDOR Vendor identifier (default 'udhcp VERSION')
        -C,--clientid-none      Don't send MAC as client identifier
        -v                      Verbose
Signals:
        USR1    Renew lease
        USR2    Release lease

root@kirkwood-4:/sbin # cd /bin
root@kirkwood-4:/bin # ldd busybox-org
        libm.so.6 => /lib/libm.so.6 (0xb6e55000)
        libtirpc.so.1 => /usr/lib/libtirpc.so.1 (0xb6e31000)
        libc.so.6 => /lib/libc.so.6 (0xb6cf5000)
        /lib/ld-linux.so.3 (0xb6efd000)
        libnsl.so.1 => /lib/libnsl.so.1 (0xb6cd9000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb6cb9000)
root@kirkwood-4:/bin # cd /sbin
root@kirkwood-4:/sbin # rm udhcpc
root@kirkwood-4:/sbin # ln -s ../bin/busybox udhcpc
root@kirkwood-4:/sbin # cd /
root@kirkwood-4:/ #
Draftmancorp
Donator VIP
Donator VIP
 
Posts: 526
Joined: Thu May 02, 2013 1:55 pm

Fail to get an IP from DHCP server after installing fvdw-sl

Postby Draftmancorp » Mon Apr 22, 2019 7:19 pm

Code: Select all
root@kirkwood-4:/ # /etc/init.d/rc.bootup1
mwexec()[1970/01/01 00:02:35]: killall syslogd
 * Starting syslogd... mwexec()[1970/01/01 00:02:35]: /sbin/syslogd -b 5
                                         [ OK ]
 * Initialize the volatile db file...mwexec()[1970/01/01 00:02:35]: chown 99:99                 '/tmp/etc/nas_conf_vltl.xml'
mwexec()[1970/01/01 00:02:35]: chmod 666 '/tmp/etc/nas_conf_vltl.xml'
         [ OK ]
 * Starting udevd... mwexec()[1970/01/01 00:02:35]: /sbin/udevd --daemon
mwexec()[1970/01/01 00:02:35]: /sbin/udevadm trigger --action=add
mwexec()[1970/01/01 00:02:35]: /sbin/udevadm settle --timeout=5
                                         [ OK ]
 * Finishing restore RAID devices...     [ OK ]
 * Found database configuration file...  [ OK ]
mwexec()[1970/01/01 00:02:43]: /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.update /rw_fs/etc/nas_conf_db.xml
mwexec()[1970/01/01 00:02:43]: /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.try /rw_fs/etc/nas_conf_db.xml.bak
mwexec()[1970/01/01 00:02:43]: chown 99:99 /rw_fs/etc/nas_conf_db.xml
mwexec()[1970/01/01 00:02:43]: chmod 666 /rw_fs/etc/nas_conf_db.xml
 * Updating Disks database... mwexec()[1970/01/01 00:02:45]: unlink /direct-usb
mwexec()[1970/01/01 00:02:45]: ln -s /share/1000 /direct-usb
mwexec()[1970/01/01 00:02:45]: unlink /usr/local
mwexec()[1970/01/01 00:02:45]: /usr/bin/ln -s /share/1000/fvdw/addons /usr/local
mwexec()[1970/01/01 00:02:45]: /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.update /rw_fs/etc/nas_conf_db.xml
mwexec()[1970/01/01 00:02:45]: /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.try /rw_fs/etc/nas_conf_db.xml.bak
                         [ OK ]
 * Starting mount of volumes...
   - Mounting volume Vol-A: mwexec()[1970/01/01 00:02:45]: /bin/mkdir -p /share/1000
mwexec()[1970/01/01 00:02:45]: /bin/mount -o user_xattr,acl,noatime /dev/sda8 /share/1000
mwexec()[1970/01/01 00:02:45]: /usr/bin/chmod 777 '/share/1000'
 [ OK ]
 * Finishing mount of volumes...                 [ OK ]
 * Generating Hosts File... mwexec()[1970/01/01 00:02:46]: /usr/bin/unlink /etc/hosts
                         [ OK ]
 * Configuring System Hostname... mwexec()[1970/01/01 00:02:46]: /usr/bin/hostname 'fvdwsl-base.local'
                 [ OK ]
 * Configuring LAN interface... mwexec()[1970/01/01 00:02:46]: /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.update /rw_fs/etc/nas_conf_db.xml
mwexec()[1970/01/01 00:02:46]: /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.try /rw_fs/etc/nas_conf_db.xml.bak
mwexec()[1970/01/01 00:02:46]: /sbin/ifconfig -a 'eth0' 192.168.0.188 netmask 255.255.255.0
mwexec()[1970/01/01 00:02:46]: /sbin/ifconfig 'eth0' up
mwexec()[1970/01/01 00:02:46]: /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.update /rw_fs/etc/nas_conf_db.xml
mwexec()[1970/01/01 00:02:46]: /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.try /rw_fs/etc/nas_conf_db.xml.bak
                 [ OK ]
 * Initializing Timezone... mwexec()[1970/01/01 00:02:46]: ln -sf /usr/share/zoneinfo/UTC /etc/localtime
                         [ OK ]
 * Starting web server... mwexec()[1970/01/01 00:02:47]: rm /etc/webdav.conf
mwexec()[1970/01/01 00:02:47]: chmod 644 /etc/webdav.conf
mwexec()[1970/01/01 00:02:47]: unlink /etc/proxy.conf
mwexec()[1970/01/01 00:02:47]: touch /etc/proxy.conf
mwexec()[1970/01/01 00:02:47]: sh -c 'echo  > "/etc/SSL_fvdwsl.conf"'
mwexec()[1970/01/01 00:02:47]: /usr/bin/httpd -f httpd.conf -d /etc
                                 [ OK ]
 * Starting mount of internal USB ...
 * Finishing mount internal USB ...      [ OK ]
 * Configuring Disks... mwexec()[1970/01/01 00:02:48]: /usr/sbin/noflushd -n 15 /dev/sda
                                 [ OK ]
 * Configuring Samba...mwexec()[1970/01/01 00:02:48]: /bin/sh -c 'ismounted=`/usr/bin/mount|/usr/bin/grep -c " on /share/1000 "`;[ $ismounted -eq 0 ] && exit 0 || exit 1'
                                         [ OK ]
mwexec()[1970/01/01 00:02:48]: /usr/sbin/nmbd -D -l /var/log/samba
mwexec()[1970/01/01 00:02:48]: /usr/sbin/smbd -D -l /var/log/samba
 * Configuring System Users...
        Root password: use default password
        Set usersAPI[1970/01/01 00:02:50] userfunc_users_commit.finc(126)[1131]: userfunc_commit_user: failed changing unix user password!
, set users password     [ Fail ]
 * Starting Fvdw-sl Discovery Daemon...mwexec()[1970/01/01 00:02:50]: /usr/bin/killall  discoverd
mwexec_bg()[1970/01/01 00:02:50]: /bin/busybox setsid sh -c "sleep 30;/usr/bin/discoverd"
         [ OK ]
root@kirkwood-4:/ #
Draftmancorp
Donator VIP
Donator VIP
 
Posts: 526
Joined: Thu May 02, 2013 1:55 pm

Fail to get an IP from DHCP server after installing fvdw-sl

Postby fvdw » Mon Apr 22, 2019 7:20 pm

:thumbup
ok proceed
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Fail to get an IP from DHCP server after installing fvdw-sl

Postby Draftmancorp » Mon Apr 22, 2019 7:21 pm

fvdw wrote::thumbup
ok proceed

see up, second reply.
Draftmancorp
Donator VIP
Donator VIP
 
Posts: 526
Joined: Thu May 02, 2013 1:55 pm

Fail to get an IP from DHCP server after installing fvdw-sl

Postby fvdw » Mon Apr 22, 2019 7:24 pm

tsss... now it proceeds after configuring lan

please look in webinterface if it is set static
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Fail to get an IP from DHCP server after installing fvdw-sl

Postby Draftmancorp » Mon Apr 22, 2019 7:25 pm

fvdw wrote:tsss... now it proceeds after configuring lan
please look in webinterface if it is set static


yes is in "Manually assign IP settings"

192.168.0.188
Draftmancorp
Donator VIP
Donator VIP
 
Posts: 526
Joined: Thu May 02, 2013 1:55 pm

Fail to get an IP from DHCP server after installing fvdw-sl

Postby fvdw » Mon Apr 22, 2019 7:29 pm

now lets try what happens if we restore original rcS boot script as I do not see reason why that shouldn't work while the nas is setup to have a static IP

To restore orginal rcS
Code: Select all
mv /etc/init.d/rcS /etc/init.d/rcS-new3
mv /etc/init.d/rcS-org /etc/init.d/rcS
chmod 755 /etc/init.d/rcS


Before reboot post output of
Code: Select all
ls -l /etc/init.d
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Fail to get an IP from DHCP server after installing fvdw-sl

Postby Draftmancorp » Mon Apr 22, 2019 7:30 pm

I don't know if it restored really.
Code: Select all
root@kirkwood-4:/ # mv /etc/init.d/rcS /etc/init.d/rcS-new3
root@kirkwood-4:/ # mv /etc/init.d/rcS-org /etc/init.d/rcS
mv: cannot stat `/etc/init.d/rcS-org': No such file or directory
root@kirkwood-4:/ # chmod 755 /etc/init.d/rcS
chmod: cannot access `/etc/init.d/rcS': No such file or directory
root@kirkwood-4:/ # ls -l /etc/init.d
total 140
-rwxr-xr-x  1 root root  1893 2013-03-28 08:45 fuse
-rwxr-xr-x  1 root root   299 2014-04-05 21:25 insert-modules.2big2
-rwxr-xr-x  1 root root   299 2014-04-05 21:25 insert-modules.5big2
-rwxr-xr-x  1 root root   193 2014-01-27 22:18 insert-modules.cloudbox
-rwxr-xr-x  1 root root   299 2014-04-05 21:25 insert-modules.d2nw2
-rwxr-xr-x  1 root root   299 2014-04-05 21:25 insert-modules.isp2
-rwxr-xr-x  1 root root   299 2014-04-05 21:25 insert-modules.nwsp2
-rwxr-xr-x  1 root root   299 2014-04-05 21:25 insert-modules.nwspmax
-rwxr-xr-x  1 root root   299 2014-04-05 21:25 insert-modules.wsp2
-rw-r--r--  1 root root    46 2011-11-16 12:00 postupgrade.jobs
-rwxr-xr-x  1 root root  3983 2016-02-10 18:55 rc.banner
-rwxr-xr-x  1 root root  6537 2017-01-28 14:47 rc.bootup1
-rwxr-xr-x  1 root root   316 2013-08-12 21:43 rc.bootup2
-rwxr-xr-x  1 root root  5024 2017-01-28 14:47 rc.bootup3
-rwxr-xr-x  1 root root  9304 2017-01-04 17:13 rc.postupgrade
-rwxr-xr-x  1 root root  5077 2017-03-02 20:07 rc.setup
-rwxrwxrwx  1 root root  8643 1970-01-01 00:49 rcS-new-2-old
-rwxrwxrwx  1 root root  8160 1970-01-01 00:07 rcS-new3
-rwxrwxrwx  1 root root  8587 1970-01-01 00:06 rcS-new-old
-rwxr-xr-x  1 root root 20339 2017-04-07 16:45 rcS-original
-rw-r--r--  1 root root   190 2016-06-01 21:47 WARNING.txt
root@kirkwood-4:/ #
Draftmancorp
Donator VIP
Donator VIP
 
Posts: 526
Joined: Thu May 02, 2013 1:55 pm

Fail to get an IP from DHCP server after installing fvdw-sl

Postby fvdw » Mon Apr 22, 2019 7:31 pm

Remark

if we reboot after restoring rcS original the ssh server will use again port 22 !!
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 12 guests