OPNsense Forum

Archive => 15.1 Legacy Series => Topic started by: Pulsar on April 11, 2015, 03:52:43 am

Title: [WONTFIX] Boot media for 15.1.9 : error 1 at installation.
Post by: Pulsar on April 11, 2015, 03:52:43 am
The installation ends in the middle with an error 1 at around 32% :

Quote
/usr/local/bin/cpdup -vvv -I -o /usr/include /mnt/usr/include

FAILED with a return code of 1

Trying to skip but I get the same error for the rest...

Perfectly reproducible inside VirtualBox with settings for a FreeBSD machine.
Title: Re: Boot media for 15.1.9 : error 1 at installation.
Post by: franco on April 11, 2015, 06:05:27 am
Which file? Did you verify the checksum?
Title: Re: Boot media for 15.1.9 : error 1 at installation.
Post by: Pulsar on April 11, 2015, 01:33:01 pm
Yes the checksum is correct. This is the message I have in the BSD Installer log with no more details, is there a way to have access to a shell? I could try by hand and see what happens.

Steps to reproduce:  create a VirtualBox  machine VM with 512 MB of RAM and 10 GB of hard disk, try to install opnsense.



Title: Re: Boot media for 15.1.9 : error 1 at installation.
Post by: franco on April 11, 2015, 03:19:05 pm
cdrom? amd64? i386?

I cannot help without knowing more details. The virtual box settings are ok. I test all images for a working install. I am not sure why this happens for you.
Title: Re: Boot media for 15.1.9 : error 1 at installation.
Post by: Pulsar on April 11, 2015, 06:16:10 pm
I use OPNsense-15.1.9-cdrom-amd64.iso, I will be able to test it on a real machine not a VM. Will also try a compete reboot of my own host in case of. Using OPNsense-15.1.8-cdrom-amd64.iso brings absolutely no troubles.
Title: Re: Boot media for 15.1.9 : error 1 at installation.
Post by: franco on April 11, 2015, 08:09:59 pm
Bump your VM memory to 1 GB and it will install fine. In the meantime I'll try to find out more about why that is. It shouldn't hog so much memory.
Title: Re: Boot media for 15.1.9 : error 1 at installation.
Post by: Pulsar on April 11, 2015, 11:02:45 pm
Confirmed, the installation went fine at 1G. Thank you franco! :)  I would suspect something that reserves RAM or something that uses more RAM (file decompression ? Archive size ?) at first glance. Has the kernel configuration changed between versions?

Title: Re: Boot media for 15.1.9 : error 1 at installation.
Post by: franco on April 12, 2015, 09:14:32 am
cpdup(1) may be allocating too much RAM or it is part of the new async write we have pushed into the BSD installer. None of those issues are unsolvable, even though they shouldn't materialise in this out of memory kill sort of way. We'll find out why, no worries. :)
Title: Re: Boot media for 15.1.9 : error 1 at installation.
Post by: franco on May 22, 2015, 05:53:25 pm
I just tested this with the upcoming 15.1.11 images: cpdup(1) has been replaced by the traditional tar(1) utility and now installs with only 512MB of RAM, but not all files land on the disk. I expect this is a serious issue without tar(1) noticing... Might as well have something to do with the images being larger installations now. Will debug this further...
Title: Re: Boot media for 15.1.9 : error 1 at installation.
Post by: jschellevis on June 01, 2015, 09:10:36 am
@Franco did not notice this until now..is this still an issue? as I use tar all the time for automated installers..
Sample to copy bin directory with the flags I use:

Code: [Select]
tar -cpf /dev/stdout bin | tar -xpf /dev/stdin -C /mnt >/dev/null 2>&1
Title: Re: Boot media for 15.1.9 : error 1 at installation.
Post by: franco on June 01, 2015, 10:44:51 am
It seems so, but I really do not know what is happening. It looks like low RAM is the "culprit", but this seems like kernel pipe magic to be honest. At least cpdup(1) realised there was something going wrong, bailing accordingly.
As long as you have 1GB of RAM you won't have to worry.
Title: Re: Boot media for 15.1.9 : error 1 at installation.
Post by: franco on June 26, 2015, 08:33:30 am
Last update on this, yeah, so it turns out you need RAM to copy a file. When doing batch copies, you need the size of the directory in actual RAM, amounting to hundreds of MB in the case of /usr/local. None of the UNIX tools seem to care and silently fail, which makes me go full circle on this issue and put cpdup back, because that's the only one that actually fails in said case.

Workarounds exist that require swap partitions to be written and activated prior to install, but:

(a) the swap could still be too small, and
(b) some systems have CF cards where there is no point in adding a swap partition to the installation medium.

Remember, we are talking about a live CD or memstick here and that is why we don't own a swap partition.

Lastly, the only time we see these issues is when users try OPNsense in a VM, assigining too little memory to it.

If you run into this error on 15.7, add more RAM.