Nanobsd strange things happen



  • Yesterday i had to update an alix2 fron 1.2.3 to 2.0. I used the most recent nanobsd-image (2g-20101226-0239).

    First thing i encountered when updating that the original config.xml was completely ignored. Then via Backup/restore it was rejected too.
    So i had to manually enter all infos. Ok, was not so heavy, but would be interesting to know about.

    Second thing was the installation of packages, here squid and squidguard.

    When installed squid, installation stopped somnewhere in the middle. Restarted the installation, now it installed completely without any problems.
    Same happened with squidguard and when i tried to install the shallalist.
    So i looked into the system and found out that /var - mounted as md1, was at 109%. I tested more and saw that on every package-install the var-partition was "overfilled". Then after the respective packages didn't work right or as seen with squidguard and the shallalist this list never was right installed.

    The same config worked fine with 1.2.3.

    At last, doing a reboot ended with a complete failure of the whole system:
    dmesg.boot not found, no network-interfaces available, lot more…

    Here is the last reboot from the whole system:

    Rebooting...
    PC Engines ALIX.2 v0.99h
    640 KB Base Memory
    261120 KB Extended Memory
    
    01F0 Master 044A SMI MODEL
    Phys C/H/S 3884/16/63 Log C/H/S 971/64/63
    
    1  pfSense
    2  pfSense
    
    F6 PXE
    Boot:  1
    /boot.config: -h
    Consoles: serial port
    BIOS drive C: is disk0
    BIOS 640kB/261120kB available memory
    
    FreeBSD/i386 bootstrap loader, Revision 1.1
    (sullrich@FreeBSD_8.0_pfSense_2.0-snaps.pfsense.org, Sun Dec 26 02:12:32 EST 2010)
    Loading /boot/defaults/loader.conf
    /boot/kernel/kernel text=0x89052c data=0x3c9934+0x9b6a0 |
    \
    Hit [Enter] to boot immediately, or any other key for command prompt.
    Booting [/boot/kernel/kernel]...
    Copyright (c) 1992-2010 The FreeBSD Project.
    Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
            The Regents of the University of California. All rights reserved.
    FreeBSD is a registered trademark of The FreeBSD Foundation.
    FreeBSD 8.1-RELEASE-p2 #0: Sun Dec 26 02:38:48 EST 2010
        sullrich@FreeBSD_8.0_pfSense_2.0-snaps.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_wrap.8.i386 i386
    Timecounter "i8254" frequency 1193182 Hz quality 0
    CPU: Geode(TM) Integrated Processor by AMD PCS (498.05-MHz 586-class CPU)
      Origin = "AuthenticAMD"  Id = 0x5a2  Family = 5  Model = a  Stepping = 2
      Features=0x88a93d <fpu,de,pse,tsc,msr,cx8,sep,pge,cmov,clflush,mmx>AMD Features=0xc0400000 <mmx+,3dnow!+,3dnow!>real memory  = 268435456 (256 MB)
    avail memory = 243433472 (232 MB)
    pnpbios: Bad PnP BIOS data checksum
    wlan: mac acl policy registered
    ipw_bss: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw/.
    ipw_bss: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
    module_register_init: MOD_LOAD (ipw_bss_fw, 0xc06ff940, 0) error 1
    ipw_ibss: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw/.
    ipw_ibss: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
    module_register_init: MOD_LOAD (ipw_ibss_fw, 0xc06ff9e0, 0) error 1
    wpi: You need to read the LICENSE file in /usr/share/doc/legal/intel_wpi/.
    wpi: If you agree with the license, set legal.intel_wpi.license_ack=1 in /boot/loader.conf.
    module_register_init: MOD_LOAD (wpi_fw, 0xc08726c0, 0) error 1
    ipw_monitor: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw/.
    ipw_monitor: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
    module_register_init: MOD_LOAD (ipw_monitor_fw, 0xc06ffa80, 0) error 1
    K6-family MTRR support enabled (2 registers)
    ACPI Error: A valid RSDP was not found (20100331/tbxfroot-309)
    ACPI: Table initialisation failed: AE_NOT_FOUND
    ACPI: Try disabling either ACPI or apic support.
    cryptosoft0: <software crypto=""> on motherboard
    padlock0: No ACE support.
    pcib0: <host to="" pci="" bridge=""> pcibus 0 on motherboard
    pci0: <pci bus=""> on pcib0
    Geode LX: PC Engines ALIX.2 v0.99h tinyBIOS V1.4a (C)1997-2007
    pci0: <encrypt decrypt,="" entertainment="" crypto=""> at device 1.2 (no driver attached)
    vr0: <via 10="" vt6105m="" rhine="" iii="" 100basetx=""> port 0x1000-0x10ff mem 0xe0000000-0xe00000ff irq 10 at device 9.0 on pci0
    vr0: Quirks: 0x2
    vr0: Revision: 0x96
    miibus0: <mii bus=""> on vr0
    ukphy0: <generic ieee="" 802.3u="" media="" interface=""> PHY 1 on miibus0
    ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    vr0: [ITHREAD]
    vr1: <via 10="" vt6105m="" rhine="" iii="" 100basetx=""> port 0x1400-0x14ff mem 0xe0040000-0xe00400ff irq 15 at device 11.0 on pci0
    vr1: Quirks: 0x2
    vr1: Revision: 0x96
    miibus1: <mii bus=""> on vr1
    ukphy1: <generic ieee="" 802.3u="" media="" interface=""> PHY 1 on miibus1
    ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    vr1: [ITHREAD]
    ath0: <atheros 5413=""> mem 0xe0080000-0xe008ffff irq 9 at device 12.0 on pci0
    ath0: [ITHREAD]
    ath0: AR5413 mac 10.5 RF5413 phy 6.1
    isab0: <pci-isa bridge=""> port 0x6000-0x6007,0x6100-0x61ff,0x6200-0x623f,0x9d00-0x9d7f,0x9c00-0x9c3f at device 15.0 on pci0
    isa0: <isa bus=""> on isab0
    atapci0: <amd cs5536="" udma100="" controller=""> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 15.2 on pci0
    ata0: <ata 0="" channel=""> on atapci0
    ata0: [ITHREAD]
    ata1: <ata 1="" channel=""> on atapci0
    ata1: [ITHREAD]
    ohci0: <ohci (generic)="" usb="" controller=""> mem 0xefffe000-0xefffefff irq 12 at device 15.4 on pci0
    ohci0: [ITHREAD]
    usbus0: <ohci (generic)="" usb="" controller=""> on ohci0
    ehci0: <amd cs5536="" (geode)="" usb="" 2.0="" controller=""> mem 0xefffd000-0xefffdfff irq 12 at device 15.5 on pci0
    ehci0: [ITHREAD]
    usbus1: EHCI version 1.0
    usbus1: <amd cs5536="" (geode)="" usb="" 2.0="" controller=""> on ehci0
    cpu0 on motherboard
    orm0: <isa option="" rom=""> at iomem 0xe0000-0xea7ff pnpid ORM0000 on isa0
    atrtc0: <at real="" time="" clock=""> at port 0x70 irq 8 on isa0
    ppc0: parallel port not found.
    uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
    uart0: [FILTER]
    uart0: console (9600,n,8,1)
    uart1: <16550 or compatible> at port 0x2f8-0x2ff irq 3 on isa0
    uart1: [FILTER]
    Timecounter "TSC" frequency 498053494 Hz quality 800
    Timecounters tick every 10.000 msec
    IPsec: Initialized Security Association Processing.
    usbus0: 12Mbps Full Speed USB v1.0
    usbus1: 480Mbps High Speed USB v2.0
    ugen0.1: <amd> at usbus0
    uhub0: <amd 1="" 9="" ohci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr=""> on usbus0
    ugen1.1: <amd> at usbus1
    uhub1: <amd 1="" 9="" ehci="" root="" hub,="" class="" 0,="" rev="" 2.00="" 1.00,="" addr=""> on usbus1
    ad0: 1911MB <smi 20071016="" model=""> at ata0-master PIO4
    uhub0: 4 ports with 4 removable, self powered
    uhub1: 4 ports with 4 removable, self powered
    Trying to mount root from ufs:/dev/ufs/pfsense0
    Mounting filesystems...
    Setting up embedded specific environment... done.
    
         ___
     ___/ f \
    / p \___/ Sense
    \___/   \
        \___/
    
    Welcome to pfSense 2.0-BETA5  ...
    
    Creating symlinks......done.
    
    Fatal error: Cannot create references to/from string offsets nor overloaded objects in /etc/inc/xmlparse.inc on line 69
    appending output to nohup.out
    Launching the init system... done.
    Initializing................
    Fatal error: Cannot create references to/from string offsets nor overloaded objects in /etc/inc/xmlparse.inc on line 69
    Starting CRON... done.
    
    Fatal error: Cannot create references to/from string offsets nor overloaded objects in /etc/inc/xmlparse.inc on line 69
    Executing rc.d items...
     Starting /usr/local/etc/rc.d/cron.sh...done.
     Starting /usr/local/etc/rc.d/proxy_monitor.sh...done.
     Starting /usr/local/etc/rc.d/squid.sh...done.
    Bootup complete
    grep: /var/log/dmesg.boot: No such file or directory
    [: -gt: unexpected operator
    Dec 27 04:20:52 squid[272]: Squid Parent: child process 274 started
    pid 274 (squid), uid 62: exited on signal 6
    Dec 27 04:20:52 squid[272]: Squid Parent: child process 274 exited due to signal 6
    rm: /tmp/config.cache: No such file or directory
    
    Fatal error: Cannot create references to/from string offsets nor overloaded objects in /etc/inc/xmlparse.inc on line 69
    
    FreeBSD/i386 (Amnesiac) (console)
    
    login: Dec 27 04:20:56 squid[272]: Squid Parent: child process 283 starpid 283 (squid), uid 62: exited on signal 6
    ted
    Dec 27 04:20:56 squid[272]: Squid Parent: child process 283 exited due to signal 6
    Dec 27 04:20:59 squid[272]: Squid Parent: child process 298 starpid 298 (squid), uid 62: exited on signal 6
    ted
    Dec 27 04:20:59 squid[272]: Squid Parent: child process 298 exited due to signal 6
    Dec 27 04:21:02 squid[272]: Squid Parent: child process 300 starpid 300 (squid), uid 62: exited on signal 6
    ted
    Dec 27 04:21:02 squid[272]: Squid Parent: child process 300 exited due to signal 6
    Dec 27 04:21:05 squid[272]: Squid Parent: child process 302 starpid 302 (squid), uid 62: exited on signal 6
    ted
    Dec 27 04:21:05 squid[272]: Squid Parent: child process 302 exited due to signal 6
    Dec 27 04:21:05 squid[272]: Exiting due to repeated, frequent failures
    
    FreeBSD/i386 (Amnesiac) (console)
    
    login: root
    Password:
    c
    Fatal error: Cannot create references to/from string offsets nor overloaded objects in /etc/inc/xmlparse.inc on line 69
    d
    
     0) Logout (SSH only)                  8) Shell
     1) Assign Interfaces                  9) pfTop
     2) Set interface(s) IP address       10) Filter Logs
     3) Reset webConfigurator password    11) Restart webConfigurator
     4) Reset to factory defaults         12) pfSense Developer Shell
     5) Reboot system                     13) Upgrade from console
     6) Halt system                       14) Enable Secure Shell (sshd)
     7) Ping host</smi></amd></amd></amd></amd></at></isa></amd></amd></ohci></ohci></ata></ata></amd></isa></pci-isa></atheros></generic></mii></via></generic></mii></via></encrypt></pci></host></software></mmx+,3dnow!+,3dnow!></fpu,de,pse,tsc,msr,cx8,sep,pge,cmov,clflush,mmx>
    

    hope that helps!



  • Please post your config!


  • Rebel Alliance Developer Netgate

    The pre-upgrade config.xml would be good to have. Either post it here or e-mail it to one of us, my e-mail is jimp (at) pfsense [dot] org.

    You may have something in that config that is causing it to not be valid XML, but usually that would cause problems in the 1.2.3 GUI as well. Be especially careful if you have any international characters in description fields.



  • Due to the fact that my original config was rejected, i had to enter the relevant infos manually. So no change happened to the "new" config. The whole config is a bit strange, but i will send it.

    Done.


  • Rebel Alliance Developer Netgate

    The one you sent was after the 2.0 upgrade, but you are right it is a bit strange. There are some invalid characters in it, even in tag names.  This section is especially weird:

    
    		 )<tunable>net.inet.ip.sandom_id</tunable>
    			<value>default</value>
    
    		 <tunable>net.inet.tgp.drop_synfin</tunable>
    			<valwe>default</valwe> 
    

    The first item's closing tag is corrupted, and It doesn't show here but there is an odd symbol before the opening <descr>tag on the second item. And the <value>tag on the second item is corrupt as well.

    I would seriously suspect your device's storage medium or RAM. Single character corruption in that way is almost always hardware related.

    I'd have to see the pre-upgrade 1.2.3 config to offer any more insight.</value></descr>


Locked