General NAS-Central Forums

Welcome to the NAS community
It is currently Wed Aug 23, 2017 5:27 pm

All times are UTC




Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: FFP on the NSA-nnn
PostPosted: Wed Apr 11, 2012 10:56 am 
Offline

Joined: Wed Apr 04, 2012 10:00 am
Posts: 17
ffpboot.log indefinitely looping this error created by sshd.sh:

Code:
...
/ffp/bin/funpkg: line 17: diffutils: command not found
/ffp/bin/funpkg: line 18: e2fsprogs: command not found
/ffp/bin/funpkg: line 19: expat: command not found
/ffp/bin/funpkg: line 20: ffmpeg: command not found
/ffp/bin/funpkg: line 21: ffp-init: command not found
/ffp/bin/funpkg: line 23: findutils: command not found
/ffp/bin/funpkg: line 24: flex: command not found
/ffp/bin/funpkg: line 25: freetype: command not found
/ffp/bin/funpkg: line 1: autoconf: command not found
/ffp/bin/funpkg: line 2: automake: command not found
/ffp/bin/funpkg: line 3: avahi: command not found
bash: bash-4.1.011-oarm-2: No such file or directory
/ffp/bin/funpkg: line 5: binutils: command not found
/ffp/bin/funpkg: line 6: bison: command not found
/ffp/bin/funpkg: line 7: busybox-ash: command not found
/ffp/bin/funpkg: line 8: busybox-httpd: command not found
s:busybox-netutils-1.18.4-oarm-2.txz: applet not found
/ffp/bin/funpkg: line 10: busybox-sysklogd: command not found
bzip2: Can't open input file bzip2-1.0.6-oarm-2: No such file or directory.
bzip2: Can't open input file s:bzip2-1.0.6-oarm-2.txz: No such file or directory.
/ffp/bin/funpkg: line 12: cmake: command not found
/ffp/bin/funpkg: line 13: coreutils: command not found
/ffp/bin/funpkg: line 14: curl: command not found
/ffp/bin/funpkg: line 15: db5: command not found
...


Top
 Profile  
 
 Post subject: Re: FFP on the NSA-nnn
PostPosted: Wed Apr 11, 2012 11:37 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6023
Ehm.

On my system /ffp/bin/funpkg is a binary. Which isn't used by any startscript, by the way. I have no explanation for what is happening here.


Top
 Profile  
 
 Post subject: Re: FFP on the NSA-nnn
PostPosted: Wed Apr 11, 2012 11:59 am 
Offline

Joined: Wed Apr 04, 2012 10:00 am
Posts: 17
I completely wiped the stick again and started from scratch.
Now typing:
chmod a+x /ffp/start/sshd.sh
sh /ffp/start/sshd.sh start

instead of:
chmod a+x /ffp/start/sshd.sh
/ffp/start/sshd.sh start (like in the wiki)

The script now successfully generated keys for ssh and ssh is running! :)


Top
 Profile  
 
 Post subject: read-only file system
PostPosted: Wed Apr 11, 2012 12:31 pm 
Offline

Joined: Wed Apr 04, 2012 10:00 am
Posts: 17
Ok next obstacle:
slacker aborts cmds with errors like this:
Code:
/ffp/bin/slacker: line 31: /ffp/funpkg/cache/sites: Read-only file system
Updating package lists...
/ffp/bin/slacker: line 103: /ffp/funpkg/cache/available: Read-only file system
fetch: rsync -q 'rsync://ffp.inreto.de/ffp/0.7/oabi/packages/CHECKSUMS.md5' '/ff p/funpkg/cache/s'
rsync: mkstemp "/ffp/funpkg/cache/s/.CHECKSUMS.md5.4SP7A5" failed: Read-only fil e system (30)
rsync error: some files/attrs were not transferred (see previous errors) (code 2 3) at main.c(1518) [generator=3.0.9]
/ffp/bin/slacker: line 107: /ffp/funpkg/cache/s.index: Read-only file system
/ffp/bin/slacker: line 108: /ffp/funpkg/cache/available: Read-only file system
fetch: (cd '/ffp/funpkg/cache/z'; wget -Nnv 'http://downloads.zyxel.nas-central. org/Users/Mijzelf/FFP-Stick/packages/0.7/oabi/CHECKSUMS.md5')
/ffp/bin/slacker: line 107: /ffp/funpkg/cache/z.index: Read-only file system
/ffp/bin/slacker: line 108: /ffp/funpkg/cache/available: Read-only file system


Top
 Profile  
 
 Post subject: Re: FFP on the NSA-nnn
PostPosted: Wed Apr 11, 2012 1:14 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6023
I'm starting to think that you have serious hardware problems. All kinds of fuzzy problems, which shouldn't be possible.

Can you post (a part of) the output of dmesg?


Top
 Profile  
 
 Post subject: Re: FFP on the NSA-nnn
PostPosted: Wed Apr 11, 2012 1:20 pm 
Offline

Joined: Wed Apr 04, 2012 10:00 am
Posts: 17
like this?

Code:
 sdb: sdb1 sdb2
sd 1:0:0:0: Attached scsi disk sdb
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: Attached scsi generic sg1 type 0
----cmdline parser init---
physmap platform flash device: 01000000 at f8000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
erase region 0: offset=0x0,size=0x20000,blocks=128
4 cmdlinepart partitions found on MTD device physmap-flash.0
Creating 4 MTD partitions on "physmap-flash.0":
0x00000000-0x00220000 : "kernel"
mtd: Giving out device 0 to kernel
0x00220000-0x00f00000 : "initrd"
mtd: Giving out device 1 to initrd
0x00f00000-0x00fe0000 : "etc"
mtd: Giving out device 2 to etc
0x00fe0000-0x01000000 : "bootbase"
mtd: Giving out device 3 to bootbase
ehci_platform ehci_platform.4523: EHCI Host Controller
ehci_platform ehci_platform.4523: new USB bus registered, assigned bus number 1
ehci_platform ehci_platform.4523: irq 17, io mem 0x00000000
ehci_platform ehci_platform.4523: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci_platform ehci_platform.16781: EHCI Host Controller
ehci_platform ehci_platform.16781: new USB bus registered, assigned bus number 2
ehci_platform ehci_platform.16781: irq 12, io mem 0x00000000
ehci_platform ehci_platform.16781: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
USB Universal Host Controller Interface driver v3.0
sl811: driver sl811-hcd, 19 May 2005
usb 1-1: new high speed USB device using ehci_platform and address 2
usb 1-1: configuration #1 chosen from 1 choice
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
scsi2 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@redhat.com
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
VFP support v0.3: not present
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
VFS: Mounted root (squashfs filesystem) readonly.
Freeing init memory: 120K
  Vendor: Flash di  Model: USB 2.0           Rev: 3.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sdc: 4034560 512-byte hdwr sectors (2066 MB)
sdc: Write Protect is off
sdc: Mode Sense: 0b 00 00 08
sdc: assuming drive cache: write through
SCSI device sdc: 4034560 512-byte hdwr sectors (2066 MB)
sdc: Write Protect is off
sdc: Mode Sense: 0b 00 00 08
sdc: assuming drive cache: write through
 sdc: sdc1 sdc2
sd 2:0:0:0: Attached scsi removable disk sdc
sd 2:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
MTD_open
MTD_read
MTD_read
MTD_read
MTD_read
MTD_read
MTD_read
MTD_read
MTD_read
MTD_read
MTD_read
MTD_read
MTD_read
MTD_read
MTD_read
MTD_read
MTD_read
MTD_read
MTD_close
egiga0: mac address changed
~~~~egiga_start
~~~GPIODOR1 egiga_start F1010100=00820473
egiga0: link down
libata version 2.00 loaded.
NTFS driver 2.1.27 [Flags: R/O MODULE].
fuse init (API version 7.8)
fuse distribution version: 2.7.0
hwmon-vid: Unknown VRM version of your CPU
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
PPP MPPE Compression module registered
PPP Deflate Compression module registered
NET: Registered protocol family 24
PPP BSD Compression module registered
egiga0: link up<5>, full duplex<5>, speed 1 Gbps<5>
flow control disabled<5>MRU 1522 bytes<5>user-defined mtu is 1500 (rounded)
zyklog_nl_data_ready: received process id: 1389
md: md0 stopped.
md: bind<sdb2>
md: bind<sda2>
raid1: raid set md0 active with 2 out of 2 mirrors
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md0, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding 514040k swap on /dev/sdb1.  Priority:-1 extents:1 across:514040k
Adding 524280k swap on /i-data/.zyxel/swap_ul6545p.  Priority:-2 extents:133 across:533116k
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning (device sdc2): ext3_clear_journal_err: Filesystem error recorded from previous mount: IO failure
EXT3-fs warning (device sdc2): ext3_clear_journal_err: Marking fs in need of filesystem check.
EXT3-fs warning: mounting fs with errors, running e2fsck is recommended
EXT3 FS on sdc2, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: mounting fs with errors, running e2fsck is recommended
EXT3 FS on sdc2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
EXT3-fs: Unrecognized mount option "relatime" or missing value
Hard 0, counter 1
Hard 1, counter 1
Hard 0, counter 2
Hard 1, counter 2
Hard 0, counter 1
Hard 1, counter 1
Hard 0, counter 2
Hard 1, counter 2
Hard 0, counter 3
Hard 1, counter 3
Hard 0, counter 4
Hard 1, counter 4
Hard 0, counter 1
Hard 1, counter 1
Hard 0, counter 2
Hard 1, counter 2
Hard 0, counter 3
Hard 1, counter 3
Hard 0, counter 4
Hard 1, counter 4
Hard 0, counter 1
Hard 1, counter 1
Hard 0, counter 2
Hard 1, counter 2
Hard 0, counter 3
Hard 1, counter 3
Hard 0, counter 4
Hard 1, counter 4
Hard 0, counter 5
Hard 1, counter 5
Hard 0, counter 6
Hard 1, counter 6
Hard 0, counter 7
Hard 1, counter 7
Hard 0, counter 8
Hard 1, counter 8
Hard 0, counter 1
Hard 1, counter 1
Hard 0, counter 2
Hard 1, counter 2
Hard 0, counter 3
Hard 1, counter 3
Hard 1, counter 1
usb 1-1: reset high speed USB device using ehci_platform and address 2
usb 1-1: reset high speed USB device using ehci_platform and address 2
Hard 0, counter 1
Hard 1, counter 2
EXT3-fs error (device sdc2): ext3_new_block: Allocating block in system zone - blocks from 164330, length 1
Aborting journal on device sdc2.
ext3_abort called.
EXT3-fs error (device sdc2): ext3_journal_start_sb: Detected aborted journal
Remounting filesystem read-only
EXT3-fs error (device sdc2) in ext3_reserve_inode_write: Journal has aborted
usb 1-1: reset high speed USB device using ehci_platform and address 2
__journal_remove_journal_head: freeing b_committed_data
__journal_remove_journal_head: freeing b_committed_data
__journal_remove_journal_head: freeing b_committed_data
Hard 0, counter 2
Hard 1, counter 3
Hard 0, counter 3
Hard 1, counter 4
Hard 0, counter 1
Hard 1, counter 1
Hard 0, counter 2
Hard 1, counter 2
Hard 0, counter 3
Hard 1, counter 3
Hard 0, counter 1
Hard 1, counter 1
Hard 0, counter 2
Hard 1, counter 2


Top
 Profile  
 
 Post subject: Re: FFP on the NSA-nnn
PostPosted: Wed Apr 11, 2012 1:37 pm 
Offline

Joined: Wed Apr 11, 2012 1:25 pm
Posts: 3
Dear Mijzelf, could you please also help me.
I've reinstalled ffp-stick already several times and always getting no telnet and ssh access just after transmission 2.42 being installed and my NSA-220 with FW 3.24 has rebooted.
ffpboot.log showes the following:

Code:
Start execute_outside_chroot Helper...
Starting /e-data/8bd2e12d-e622-4916-be1d-9da4f7bc6ad2/ffproot/after_booting.sh version 20120306 at Wed Apr 11 20:05:08 GMT 2012...
Apr 11 20:04:08: Helper script: started with pid 3952
Apr 11 20:04:09: Helper script: No more jobs to do; Sleeping
done
CopySymlink /i-data/md0 /e-data/8bd2e12d-e622-4916-be1d-9da4f7bc6ad2/ffproot/mnt/HD_a2
ln -s /etc/zyxel/storage/sysvol /e-data/8bd2e12d-e622-4916-be1d-9da4f7bc6ad2/ffproot/mnt/HD_a2
ln: /e-data/8bd2e12d-e622-4916-be1d-9da4f7bc6ad2/ffproot/mnt/HD_a2/sysvol: File exists
* /ffp/start/transmission.sh ...
Starting transmission-daemon
transmission-daemon: can't load library 'libevent-2.0.so.5'
FAILED. Does user nobody have a shell?
* /ffp/start/SERVERS.sh inactive
* /ffp/start/portmap.sh inactive
* /ffp/start/nfsd.sh inactive
* /ffp/start/LOGIN.sh inactive
* /ffp/start/telnetd.sh ...
tr: can't resolve symbol 'posix_fadvise64'
Starting /ffp/sbin/telnetd

/ffp/sbin/telnetd: symbol '_res': can't resolve symbol
* /ffp/start/sshd.sh ...
tr: can't resolve symbol 'posix_fadvise64'
Starting /ffp/sbin/sshd

/ffp/sbin/sshd: symbol '__stack_chk_guard': can't resolve symbol
* /ffp/start/rsyncd.sh inactive
* /ffp/start/kickwebs.sh inactive
* /ffp/start/lighttpd.sh inactive
* /ffp/start/inetd.sh inactive
* /ffp/start/fp_master.sh inactive

Any ideas?
P.S. Sorry for bad english, it's not my native language.


Top
 Profile  
 
 Post subject: Re: FFP on the NSA-nnn
PostPosted: Wed Apr 11, 2012 2:16 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6023
Hm. The filesystem on the stick is problematic.
Code:
EXT3-fs warning (device sdc2): ext3_clear_journal_err: Filesystem error recorded from previous mount: IO failure
EXT3-fs warning (device sdc2): ext3_clear_journal_err: Marking fs in need of filesystem check.
EXT3-fs warning: mounting fs with errors, running e2fsck is recommended
EXT3 FS on sdc2, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: mounting fs with errors, running e2fsck is recommended
The journal wasn't clean on boot, and the reason 'IO failure' points to low-level write problem.

This is the direct reason for your slacker problem:
Code:
EXT3-fs error (device sdc2): ext3_new_block: Allocating block in system zone - blocks from 164330, length 1
Aborting journal on device sdc2.
ext3_abort called.
EXT3-fs error (device sdc2): ext3_journal_start_sb: Detected aborted journal
Remounting filesystem read-only
Somehow the journal got aborted, and to prevent data-loss the filesystem is remounted read-only.

Unfortunately no clue of the underlying problem. Except maybe
Code:
usb 1-1: reset high speed USB device using ehci_platform and address 2
usb 1-1: reset high speed USB device using ehci_platform and address 2
The USB stick is reset about 20 minutes after the original mount, and 1~2 minutes later the journal aborts. (The Hard n, counter m messages are counting the idle times for both disks, in minutes. That gives a timebase) But I don't know if that is strange. On my box (which fortunately isn't poisoned by junk messages) I cannot find any such messages. And looking at the messages I think I can look 3 months back.

I hope the problem is your stick. That can easily be exchanged. But you told you had fuzzy problems with 3 different sticks. So maybe it's the USB bus. Are you using an external hub, or a extension cable? Skip it. Try the other port. Remove all other usb devices, if any.


Top
 Profile  
 
 Post subject: Re: FFP on the NSA-nnn
PostPosted: Wed Apr 11, 2012 2:19 pm 
Offline

Joined: Wed Apr 04, 2012 10:00 am
Posts: 17
Thanks Mijzelf! Will look into this...


Top
 Profile  
 
 Post subject: Re: FFP on the NSA-nnn
PostPosted: Wed Apr 11, 2012 2:21 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6023
@Lector: It looks like a library is exchanged by an incompatible one. Where did your transmission come from?


Top
 Profile  
 
 Post subject: Re: FFP on the NSA-nnn
PostPosted: Wed Apr 11, 2012 2:35 pm 
Offline

Joined: Wed Apr 11, 2012 1:25 pm
Posts: 3
Mijzelf wrote:
@Lector: It looks like a library is exchanged by an incompatible one. Where did your transmission come from?

I took it here http://downloads.zyxel.nas-central.org/Users/Mijzelf/FFP-Stick/packages/0.7/oarm/
This is from http://zyxel.nas-central.org/wiki/FFP-stick:

"Other packages
0.7
Fonz' packages for 0.7 can be found here. There are also 3th party packages here and here."


Top
 Profile  
 
 Post subject: Re: FFP on the NSA-nnn
PostPosted: Wed Apr 11, 2012 2:47 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6023
I see. At the moment there are two incompatible versions of ffp0.7/oarm, and by default the other one is installed by the FFP-Stick. (Long story. I'm waiting for Fonz to flush one). You should use the oabi packages.

BTW, it's easier to use slacker for installation. Try 'slacker -Ui'. And for transmission you'll also need libevent.


Top
 Profile  
 
 Post subject: Re: FFP on the NSA-nnn
PostPosted: Wed Apr 11, 2012 3:30 pm 
Offline

Joined: Wed Apr 11, 2012 1:25 pm
Posts: 3
Yes, slacker is nice. But it's package list has the same 'transmission-2.50-oarm-1.txz'
Is this relevant? As you proposed, it should be OABI version. I've checked this in the OABI package direcory and it looks the same.
Am I right?


Top
 Profile  
 
 Post subject: Re: FFP on the NSA-nnn
PostPosted: Wed Apr 11, 2012 4:00 pm 
Offline

Joined: Wed Apr 04, 2012 10:00 am
Posts: 17
update: Went for a short run in the meantime to clear my head. ;) So far so good. Used another USB stick and usb port2 instead. dmesg is free of ext3 fs errors and slacker is working as expected. :D
Thx Mijzelf - awesome work and support! :)


Top
 Profile  
 
 Post subject: Re: FFP on the NSA-nnn
PostPosted: Wed Apr 11, 2012 5:48 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6023
@Lector: No, it's a different one. The oabi version comes from http://downloads.zyxel.nas-central.org/ ... /0.7/oabi/ (and is 2.50) while the oarm version comes from http://downloads.zyxel.nas-central.org/ ... /0.7/oarm/ (and is 2.42). And yes, both have oarm in their names, for clarity.
The actual difference it that they are linked against a different version of uClibc.

@goldlocke: You're welcome.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: barmalej2 and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group