OpenWrt Forum Archive

Topic: Connection to ubus failed

The content of this topic has been archived on 2 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi All,
I downloaded Openwrt trunk from  svn co svn://svn.openwrt.org/openwrt/trunk which is barrier breaker.I gave a build for my hardware.when the device is booting with this latest image,i am getting the following error.
I could able to enter into fail safe mode by pressing [f] and [enter].


procd: Console is alive
procd: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
4
mount_root: mounting /dev/root
procd: procd_state_next(90): Change state 0 -> 1
procd: - early -
procd: procd_coldplug(65): Launched coldplug instance, pid=266
procd: udevtrigger_complete(36): Finished udevtrigger
procd: coldplug_complete(29): Coldplug complete
procd: procd_state_next(90): Change state 1 -> 2
procd: - ubus -
procd: - init -
procd: service_handle_set(236): Create service ubus
procd: service_instance_update(65): Create instance ubus::instance1
procd: instance_start(174): Started instance ubus::instance1
procd: _rc(132): running /etc/init.d/ubus running
procd: _rc(135): glob failed on /etc/init.d/ubus
procd: procd_inittab(268): Parsing inittab - ::sysinit:/etc/init.d/rcS S boot
procd: procd_inittab(268): Parsing inittab - ::shutdown:/etc/init.d/rcS K shutdown
procd: procd_inittab(268): Parsing inittab - ::askconsole:/bin/ash --login
procd: askconsole(159): skipping ttyS0
procd: _rc(132): running /etc/rc.d/S* boot
open: No such file or directory
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: q_initd_run(69): start /etc/rc.d/S00sysfixtime boot
procd: q_initd_complete(99): stop /etc/rc.d/S00sysfixtime boot
procd: q_initd_run(69): start /etc/rc.d/S10boot boot
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
open: No such file or directory
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: q_initd_complete(99): stop /etc/rc.d/S10boot boot
procd: q_initd_run(69): start /etc/rc.d/S11sysctl boot
procd: q_initd_complete(99): stop /etc/rc.d/S11sysctl boot
procd: q_initd_run(69): start /etc/rc.d/S12log boot
procd: q_initd_complete(99): stop /etc/rc.d/S12log boot
procd: q_initd_run(69): start /etc/rc.d/S20network boot
procd: q_initd_complete(99): stop /etc/rc.d/S20network boot
procd: q_initd_run(69): start /etc/rc.d/S50cron boot
procd: q_initd_complete(99): stop /etc/rc.d/S50cron boot
procd: q_initd_run(69): start /etc/rc.d/S50dropbear boot
procd: q_initd_complete(99): stop /etc/rc.d/S50dropbear boot
procd: q_initd_run(69): start /etc/rc.d/S50telnet boot
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: q_initd_complete(99): stop /etc/rc.d/S50telnet boot
procd: q_initd_run(69): start /etc/rc.d/S85ubifs_remount boot
procd: q_initd_complete(99): stop /etc/rc.d/S85ubifs_remount boot
procd: q_initd_run(69): start /etc/rc.d/S95done boot
procd: q_initd_complete(99): stop /etc/rc.d/S95done boot
procd: q_initd_run(69): start /etc/rc.d/S96led boot
procd: q_initd_complete(99): stop /etc/rc.d/S96led boot
procd: q_initd_run(69): start /etc/rc.d/S98sysntpd boot
procd: q_initd_complete(99): stop /etc/rc.d/S98sysntpd boot
procd: procd_state_next(90): Change state 2 -> 3
procd: - init complete -
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds

what arch?

Arch is MIPS

a full boot log output up-to the procd: messages will be more informative/enlightening.

Starting kernel ...

[    0.000000] Linux version 3.10.14-dirty (common@localhost) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r39454) ) #54 SMP PREEMPT Fri Feb 7 17:01:39 IST 2014
[    0.000000] argc 8 arg (null) env memsize=256
[    0.000000] memsize  board_memsize = 256
[    0.000000] env memsize=256
[    0.000000] initrd_start 80000000
[    0.000000] env initrd_start=0xA0000000
[    0.000000] initrd_size start 80000000 end 80000000
[    0.000000] env initrd_size=0x0
[    0.000000] flash_start 0
[    0.000000] env flash_start=0x00000000
[    0.000000] board_flash_size b0fd69bf
[    0.000000] env flash_size=0xB0FD69BF
[    0.000000] env ethaddr=00:01:02:03:04:05
[    0.000000] arg[1] ubi.mtd=1,4096
[    0.000000] arg[2] root=ubi0:rootfs
[    0.000000] arg[3] rootfstype=ubifs
[    0.000000] arg[4] rw
[    0.000000] arg[5] rootflags=sync
[    0.000000] arg[6] console=ttyS0
[    0.000000] arg[7] init=/etc/preinit
[    0.000000] Fusiv MIPS Clock = 500000000 System Clock = 250000000

[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019554 (MIPS 34Kc)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 0f800000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x0f7fffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x0f7fffff]
[    0.000000] Detected 1 available secondary CPU(s)
[    0.000000] Primary instruction cache 64kB, 4-way, VIPT, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] PERCPU: Embedded 7 pages/cpu @811f3000 s6880 r8192 d13600 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 62992
[    0.000000] Kernel command line: ubi.mtd=1,4096 root=ubi0:rootfs rootfstype=ubifs rw rootflags=sync console=ttyS0 init=/etc/preinit
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=0005f770
[    0.000000] Readback ErrCtl register=0005f770
[    0.000000] Memory: 246064k/253952k available (3615k kernel code, 7888k reserved, 1032k data, 276k init, 0k highmem)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:128
[    0.000000] Initializing IPC..
[    0.000000] Fusiv IPC INIT COMPLETe
Configuring IPC for VPE1 Timer
Installed VI handler for MIPS Timer...
[    0.000000] console [ttyS0] enabled, bootconsole disabled
[    0.000000] console [ttyS0] enabled, bootconsole disabled
[    0.010000] Calibrating delay loop... 331.77 BogoMIPS (lpj=1658880)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 512
[    0.080000] CPU1 revision is: 00019554 (MIPS 34Kc)
[    0.080000] Primary instruction cache 64kB, 4-way, VIPT, linesize 32 bytes.
[    0.090000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.180000] Brought up 2 CPUs
[    0.180000] NET: Registered protocol family 16
[    0.200000] PCIE Block Reset 1
[    1.300000] PCIE Block Reset 2
[    1.400000] Changing the MPLL Prescale Value for External Clock Mode
[    1.510000] GPIO25 Peripheral Reset
[    1.910000] Fusiv PCIe RC0 Starting ...
[    2.410000] No PCIe device found on RC0
[    2.420000] Fusiv PCIe RC1 Starting ...
[    2.420000] PCIe RC1 Link Up !!!!
[    2.420000] registering PCI controller with io_map_base unset
[    2.460000] bio: create slab <bio-0> at 0
[    2.470000] SCSI subsystem initialized
[    2.470000] usbcore: registered new interface driver usbfs
[    2.480000] usbcore: registered new interface driver hub
[    2.480000] usbcore: registered new device driver usb
[    2.490000] PCI host bridge to bus 0001:00
[    2.490000] pci_bus 0001:00: root bus resource [mem 0x1b000000-0x1bffffff]
[    2.500000] pci_bus 0001:00: root bus resource [??? 0x00008000-0x0000ffff flags 0x10000000]
[    2.510000] pci_bus 0001:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.520000] pci 0001:00:00.0: BAR 0: assigned [mem 0x1b000000-0x1b01ffff 64bit]
[    2.520000] pci 0001:00:00.0: BAR 6: assigned [mem 0x1b020000-0x1b02ffff pref]
[    2.530000] NET: Registered protocol family 8
[    2.530000] NET: Registered protocol family 20
[    2.540000] Switching to clocksource MIPS
[    2.550000] NET: Registered protocol family 2
[    2.550000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    2.560000] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.570000] TCP: Hash tables configured (established 2048 bind 2048)
[    2.570000] TCP: reno registered
[    2.580000] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.580000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.590000] NET: Registered protocol family 1
[    2.600000] msgmni has been set to 480
[    2.610000] alg: No test for stdrng (krng)
[    2.620000] io scheduler noop registered (default)
[    2.620000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    2.630000] serial8250: ttyS0 at MMIO 0xb9010000 (irq = 2) is a 16450
[    2.660000] brd: module loaded
[    2.670000] VX185 On-Chip NAND FLash Controller Driver, Version 1.2 (c) 2010 Ikanos, Inc.
[    2.680000] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron NAND 1GiB 3,3V 8-bit), 1024MiB, page size: 4096, OOB size: 224
[    2.690000] Scanning device for bad blocks
[    3.900000] Creating 2 MTD partitions on "NAND 1GiB 3,3V 8-bit":
[    3.900000] 0x000000000000-0x000000080000 : "Bootloader-stage-1(nand)"
[    3.910000] 0x000000080000-0x000040000000 : "FusivMTD(nand)"
[    3.930000] PPP generic driver version 2.4.2
[    3.930000] NET: Registered protocol family 24
[    3.940000] nf_conntrack version 0.5.0 (3844 buckets, 15376 max)
[    3.950000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    3.950000] TCP: cubic registered
[    3.960000] Initializing XFRM netlink socket
[    3.960000] NET: Registered protocol family 10
[    3.970000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    3.980000] sit: IPv6 over IPv4 tunneling driver
[    3.990000] NET: Registered protocol family 17
[    3.990000] NET: Registered protocol family 15
[    4.000000] Bridge firewalling registered
[    4.000000] 8021q: 802.1Q VLAN Support v1.8
[    4.010000] UBI: attaching mtd1 to ubi0
[    7.890000] UBI: scanning is finished
[    7.910000] UBI: attached mtd1 (name "FusivMTD(nand)", size 1023 MiB) to ubi0
[    7.920000] UBI: PEB size: 524288 bytes (512 KiB), LEB size: 516096 bytes
[    7.930000] UBI: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[    7.940000] UBI: VID header offset: 4096 (aligned 4096), data offset: 8192
[    7.950000] UBI: good PEBs: 2047, bad PEBs: 0, corrupted PEBs: 0
[    7.950000] UBI: user volume: 5, internal volumes: 1, max. volumes count: 128
[    7.960000] UBI: max/mean erase counter: 12/1, WL threshold: 256, image sequence number: 0
[    7.970000] UBI: available PEBs: 1389, total reserved PEBs: 658, PEBs reserved for bad PEB handling: 40
[    7.980000] UBI: background thread "ubi_bgt0d" started, PID 242
[    7.990000]
[    7.990000] The devId registered is serial ipc_src: 28
[    8.000000] UBIFS: parse sync
[    8.010000] UBIFS: background thread "ubifs_bgt0_3" started, PID 244
[    8.320000] UBIFS: recovery needed
[    8.870000] UBIFS: recovery completed
[    8.870000] UBIFS: mounted UBI device 0, volume 3, name "rootfs"
[    8.880000] UBIFS: LEB size: 516096 bytes (504 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
[    8.890000] UBIFS: FS size: 297271296 bytes (283 MiB, 576 LEBs), journal size 10452992 bytes (9 MiB, 21 LEBs)
[    8.900000] UBIFS: reserved for root: 0 bytes (0 KiB)
[    8.910000] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 6ED39280-06FC-4B27-8295-DBFEE5734A91, small LPT model
[    8.920000] VFS: Mounted root (ubifs filesystem) on device 0:10.
[    8.930000] Freeing unused kernel memory: 276K (8049b000 - 804e0000)
procd: Console is alive
procd: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
4
mount_root: mounting /dev/root
procd: procd_state_next(90): Change state 0 -> 1
procd: - early -
procd: procd_coldplug(65): Launched coldplug instance, pid=266
procd: udevtrigger_complete(36): Finished udevtrigger
procd: coldplug_complete(29): Coldplug complete
procd: procd_state_next(90): Change state 1 -> 2
procd: - ubus -
procd: - init -
procd: service_handle_set(236): Create service ubus
procd: service_instance_update(65): Create instance ubus::instance1
procd: instance_start(174): Started instance ubus::instance1
procd: _rc(132): running /etc/init.d/ubus running
procd: _rc(135): glob failed on /etc/init.d/ubus
procd: procd_inittab(268): Parsing inittab - ::sysinit:/etc/init.d/rcS S boot
procd: procd_inittab(268): Parsing inittab - ::shutdown:/etc/init.d/rcS K shutdown
procd: procd_inittab(268): Parsing inittab - ::askconsole:/bin/ash --login
procd: askconsole(159): skipping ttyS0
procd: _rc(132): running /etc/rc.d/S* openboot:
No such file or directory
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: q_initd_run(69): start /etc/rc.d/S00sysfixtime boot
procd: q_initd_complete(99): stop /etc/rc.d/S00sysfixtime boot
procd: q_initd_run(69): start /etc/rc.d/S10boot boot
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
open: No such file or directory
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: q_initd_complete(99): stop /etc/rc.d/S10boot boot
procd: q_initd_run(69): start /etc/rc.d/S11sysctl boot
procd: q_initd_complete(99): stop /etc/rc.d/S11sysctl boot
procd: q_initd_run(69): start /etc/rc.d/S12log boot
procd: q_initd_complete(99): stop /etc/rc.d/S12log boot
procd: q_initd_run(69): start /etc/rc.d/S20network boot
procd: q_initd_complete(99): stop /etc/rc.d/S20network boot
procd: q_initd_run(69): start /etc/rc.d/S50cron boot
procd: q_initd_complete(99): stop /etc/rc.d/S50cron boot
procd: q_initd_run(69): start /etc/rc.d/S50dropbear boot
procd: q_initd_complete(99): stop /etc/rc.d/S50dropbear boot
procd: q_initd_run(69): start /etc/rc.d/S50telnet boot
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: q_initd_complete(99): stop /etc/rc.d/S50telnet boot
procd: q_initd_run(69): start /etc/rc.d/S85ubifs_remount boot
procd: q_initd_complete(99): stop /etc/rc.d/S85ubifs_remount boot
procd: q_initd_run(69): start /etc/rc.d/S95done boot
procd: q_initd_complete(99): stop /etc/rc.d/S95done boot
procd: q_initd_run(69): start /etc/rc.d/S96led boot
procd: q_initd_complete(99): stop /etc/rc.d/S96led boot
procd: q_initd_run(69): start /etc/rc.d/S98sysntpd boot
procd: q_initd_complete(99): stop /etc/rc.d/S98sysntpd boot
procd: procd_state_next(90): Change state 2 -> 3
procd: - init complete -
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seconds
procd: ubus_connect_cb(48): Connection to ubus failed
procd: instance_start(174): Started instance ubus::instance1
procd: instance_exit(203): Instance ubus::instance1 exit with error code 256 after 0 seco

The discussion might have continued from here.