Is nanobsd web-based upgrade supposed to be working now?
-
Every time I attempt to upgrade (2gig nano file) I get a message after a bit I get a failure due to the upgrade image being larger than the partition. I remember reading earlier someone have the same issue but could not find it after searching the term. I started the tail but all I got was:
pfsense:~# tail -f /cf/conf/upgrade_log.txtWARNING: Expected rawoffset 0, found
63NanoBSD Firmware upgrade in progress…
Installing /root/firmware.tgz.
Installing /root/firmware.tgz.
SLICE 1
OLDSLICE 2
TOFLASH ad0s1
COMPLETE_PATH ad0s1a
GLABEL_SLICE pfsense0
NanoBSD Firmware upgrade in progress...Broadcast Message from root@pfsense.local
(no tty) at 12:40 EDT...NanoBSD Firmware upgrade in progress...
Installing /root/firmware.tgz.
Installing /root/firmware.tgz.
SLICE 1
OLDSLICE 2
TOFLASH ad0s1
COMPLETE_PATH ad0s1a
GLABEL_SLICE pfsense0Broadcast Message from root@pfsense.local
(no tty) at 12:40 EDT...thanks,
Jim -
As you can see in this thread, my first successful upgrade attempt was August 9th. Prior to that, I was just reflashing every time a new snap appeared on the server. Perhaps at some point the size of the disk images changed and I never noticed it because I was reflashing the whole CF card. This is all speculation of course, but it might be useful to reflash (this is where multiple CF cards come in handy) and wait for the next snap, attempt an update and see what happens. I haven't had any issues since 8/9 and I have updated with every new update on the snapshot server.
-
10-4 Gloomrider. I have multiple CFs and reflash regularly when an update comes out and I am unable to update via the gui or the console. I just have not had any luck with this yet. I settled on the 2gig image since it looked middle of the road and that my cf card is 4gigs. It formats just under that size so I was worried that the 4 gig image/dual partitions would not exactly fit. I thought things were looking up when you and the other gentleman were successful in upgrading but no, I am still reflashing:(
-
When was the last time/snapshot you reflashed? It would seem only manual update is working. I think auto-update is still trying to use the old embedded (AKA broken) paradigm.
Nanobsd images that I download from http://snapshots.pfsense.org/FreeBSD_RELENG_7_2/pfSense_RELENG_1_2/updates are updating fine for me.
EDIT: I wonder if the fact you're using a different size card has anything to do with it? Why don't you try a 4GB image on your 4GB card?
-
10-4 Gloomrider. I have multiple CFs and reflash regularly when an update comes out and I am unable to update via the gui or the console. I just have not had any luck with this yet. I settled on the 2gig image since it looked middle of the road and that my cf card is 4gigs. It formats just under that size so I was worried that the 4 gig image/dual partitions would not exactly fit. I thought things were looking up when you and the other gentleman were successful in upgrading but no, I am still reflashing:(
Check out this thread: http://forum.pfsense.org/index.php/topic,18805.0.html
This looks an awful lot like what you and others are reporting. I have been using "dd" under both Linux and FreeBSD to flash my 2GB Sandisk cards and I've not had any of these problems.
EDIT: It appears there are subtly different sizes of CF cards. See this post: http://forum.pfsense.org/index.php/topic,18805.msg96698.html#msg96698
-
Hi,
running embedded since longtime. Now I wanted to switch from embedded to nanobsd, because reflashing, resizing and move rrd's from time to time sucks. First, what I learned: no more WRAP. No problem have ALIX'es too. Also read about bigger Memory nedded. No problem, have plenty of 1GB CF.
But I spent hours to test the Update mechanism. Not one success. Fails anytime. Manual, Auto, Console. I thought I have FreeBSD experience since Years. But no Idea what is going on here.
at the moment I test from pfSense-1.2.3-1g-20090824-1854-nanobsd
Option 13
Enter the URL to the .tgz update file:tgz?
It is http://snapshots.pfsense.org/FreeBSD_RELENG_7_2/pfSense_RELENG_1_2/updates/pfSense-1.2.3-1g-20090828-0527-nanobsd-upgrade.img.gz
nope is img.gz…
Anyway, whatever I do: ad0s2x get shot...
assuming it dd's not really the right format/file?pfSense:~# tail -f /cf/conf/upgrade_log.txt
NanoBSD upgrade starting
dd if=/dev/zero of=/dev/ad0s2 bs=1m count=1
1+0 records in
1+0 records out
1048576 bytes transferred in 0.226607 secs (4627287 bytes/sec)/usr/bin/gzip -dc /root/firmware.tgz | /bin/dd of=/dev/ad0s2 obs=64k
949467+8 records in
7417+1 records out
486130176 bytes transferred in 116.117005 secs (4186555 bytes/sec)
After upgrade fdisk/bsdlabel/sbin/fsck_ufs -y /dev/ad0s2a
Can't stat /dev/ad0s2a: No such file or directory
Can't stat /dev/ad0s2a: No such file or directory/sbin/tunefs -L pfsense1 /dev/ad0s2a
tunefs: /dev/ad0s2a: could not find special device<quote>Embedded has historically been a second class citizen</quote>
<ironic>Now it's third class...?</ironic>No, to be honest, there seems to be a lack of testing. Even the the graphical part "firmware upgrade in Progress" is off the Center. And stays also after failing. I can not find out if I test alpha or beta?
With over 1000 reads, this topic seems to be well watched...
-
Just a note, I was able to successfully upgrade a pfsense 512MB cf to the latest snapshot, using manual firmware upgrade. went flawlessly, which is good, because its a remote location (non critical, just for testing).
-
this means:
Download from URL or local File? Or maybe WebInterface?
From pfSense-1.2.3-512mb-20090827-1405 ?and the File was pfSense-1.2.3-512mb-20090829-0427-nanobsd-upgrade.img.gz?
I think i will try this with another size than 1gb.
-
Download file appropriate to your system from here:
http://snapshots.pfsense.org/FreeBSD_RELENG_7_2/pfSense_RELENG_1_2/updates
File is now on your hard drive.
Now update the pfSense instance using the Manual Update web interface. "System:Firmware:Manual Update"
-
I have been attempting the manual updates. I am using the Sandisk ultra II 4gig cf card and chose the the 2gig image mainly because for the longest time the 4gig image was not being updated. Now it looks like the 512 and the 4gig image are the favorites to get updated. My understanding from placing the 2gig image and a 4gig cf card was that the card was formated with 2 1gig partitions and that anything else was wasted. It would seem that the fault lies somewhere in the formatting process that the nano image uses. I will try out the 4 gig image and see how that manually updates.
thanks,
Jim -
Okay, my 4gig CF card is only showing 1.88 gig capacity and will not reformat to original size. Is this due to the nano image and windows only seeing one partition? Is there any way to restore the card to the original size or is it permanently smaller? This probably has something to do with my updating problem.
jim