OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: saki22 on July 29, 2021, 08:30:05 am

Title: Having problem installing the installer is not working
Post by: saki22 on July 29, 2021, 08:30:05 am
I was trying to reinstall it from a fresh copy when I hit enter on a install ufs it just sat there did not change screen
Title: Re: Having problem installing the installer is not working
Post by: franco on July 29, 2021, 08:34:58 am
No movement at all possible? Have you tried CTRL+C?


Cheers,
Franco
Title: Re: Having problem installing the installer is not working
Post by: saki22 on July 29, 2021, 08:36:10 am
No I have not I'll go give that a try
Title: Re: Having problem installing the installer is not working
Post by: saki22 on July 29, 2021, 08:41:36 am
I have tried to control c I restarted the install but did not fix the problem
Title: Re: Having problem installing the installer is not working
Post by: franco on July 29, 2021, 08:59:01 am
And other menus aren't working either? What sort of console are you using? VM, Hardware?


Cheers,
Franco
Title: Re: Having problem installing the installer is not working
Post by: saki22 on July 29, 2021, 09:05:56 am
Vga setup
Title: Re: Having problem installing the installer is not working
Post by: franco on July 29, 2021, 09:23:22 am
But is this a VGA setup or serial. You could also try the SSH installer.


Cheers,
Franco
Title: Re: Having problem installing the installer is not working
Post by: saki22 on July 29, 2021, 09:24:21 am
VGA Setup
Title: Re: Having problem installing the installer is not working
Post by: franco on July 29, 2021, 09:43:37 am
It's likely waiting during disk probe, but it's really difficult to avoid that since we use standard tools to read disk information and the disk is not responding?


Cheers,
Franco
Title: Re: Having problem installing the installer is not working
Post by: saki22 on July 29, 2021, 09:45:37 am
I got a question why does this problem pop up it was not doing this on the last version of opnsense
Title: Re: Having problem installing the installer is not working
Post by: franco on July 29, 2021, 10:02:49 am
The installer was rewritten for 21.7.


Cheers,
Franco
Title: Re: Having problem installing the installer is not working
Post by: saki22 on July 29, 2021, 10:08:59 am
Okay
Title: Re: Having problem installing the installer is not working
Post by: franco on July 29, 2021, 10:37:24 am
As I said it's probably the disk probe hanging waiting for a system reply:

https://github.com/opnsense/installer/blob/ed87f04371376b75635d0832573879c3341b3e32/src/opnsense.subr.sh#L35-L80

Intentionally it only uses utilities from the operating system to get disk information...


Cheers,
Franco
Title: Re: Having problem installing the installer is not working
Post by: saki22 on July 29, 2021, 10:43:36 am
Okay I understand is there a workaround for this kind of issue
Title: Re: Having problem installing the installer is not working
Post by: cookiemonster on July 29, 2021, 10:59:41 am
can you boot with a live system on usb for example to diagnose the disks?
Title: Re: Having problem installing the installer is not working
Post by: franco on July 29, 2021, 11:06:18 am
Are you able to make these changes to /usr/libexec/bsdinstall/opnsense.subr

https://github.com/opnsense/installer/commit/4ca6b0976fe

And get the contents of /tmp/bsdinstall_log ?


Thanks,
Franco
Title: Re: Having problem installing the installer is not working
Post by: Meditux on July 29, 2021, 11:45:39 am
No problem,

same error pattern. Here is the log.

Greeting Meditux
Title: Re: Having problem installing the installer is not working
Post by: franco on July 29, 2021, 11:58:23 am
Thanks a lot! This will avoid touching tty devices:

https://github.com/opnsense/installer/commit/367d6c689

But does it work? :)


Cheers,
Franco
Title: Re: Having problem installing the installer is not working
Post by: Meditux on July 29, 2021, 12:01:51 pm
Moment Please
Title: Re: Having problem installing the installer is not working
Post by: franco on July 29, 2021, 12:07:27 pm
Need the logs...


Thanks,
Franco
Title: Re: Having problem installing the installer is not working
Post by: Meditux on July 29, 2021, 12:30:32 pm
With the customization it works, only unfortunately you can only choose the USB installation stick (souce) as destination. The installed SSD is only selectable as a target when you drag the installation stick.

Here are the current logs
Title: Re: Having problem installing the installer is not working
Post by: franco on July 29, 2021, 12:38:46 pm
Thanks, looks like a typo:

https://github.com/opnsense/installer/commit/cad5641c88b


Cheers,
Franco
Title: Re: Having problem installing the installer is not working
Post by: Meditux on July 29, 2021, 12:57:07 pm

The drive selection now works, however there is a new problem. (The partition editor run failed)

Again with new logs ;-)


Title: Re: Having problem installing the installer is not working
Post by: franco on July 29, 2021, 01:02:51 pm
> DEBUG: Running installation step: scriptedpart ada0 gpt { 209715200 efi, 524288 freebsd-boot, 29806419968 freebsd-ufs / }
> exec: /usr/libexec/bsdinstall/scriptedpart: Input/output error

Hmm, "scriptedpart" is a FreeBSD installer builtin. I suppose the disk already holds another GPT installation of some kind?

It's worth a try to completely clear the GPT area of the disk:

# gpart destroy -F ada0


Cheers,
Franco
Title: Re: Having problem installing the installer is not working
Post by: Meditux on July 29, 2021, 01:10:40 pm
This is actually a new SSD from Distributor.

Using SSH as root I get the following output:

root@OPNsense:~ # gpart destroy -F ada0
gpart: Cannot access library: Device not configured
root@OPNsense:~ #
Title: Re: Having problem installing the installer is not working
Post by: Meditux on July 29, 2021, 01:18:20 pm
Here my modified opnsense.subr, not that I mistyped somewhere ;-)
Title: Re: Having problem installing the installer is not working
Post by: franco on July 29, 2021, 01:27:20 pm
Phew, unfortunately scriptedpart is a binary and debugging is not easy. :(

So does the ZFS install work instead? And if yes, does the UFS install work afterwards?


Cheers,
Franco
Title: Re: Having problem installing the installer is not working
Post by: Meditux on July 29, 2021, 01:50:35 pm
ZFS works. UFS in the connection also, however, I think that it was not on the SSD, but on the fact that is in between the USB stick for installation once pulled.

At the current attempt have rebooted from stick and then copied the customized file in the RAM disk.

When installing on UFS process runs visually from the menu. Does not look great but works ;-)

Greetings and thanks Meditux
Title: Re: Having problem installing the installer is not working
Post by: franco on July 30, 2021, 09:45:29 am
Would you mind sending me that in German... I think I am a bit lost in the translation. :)


Danke,
Franco
Title: Re: Having problem installing the installer is not working
Post by: hushcoden on July 30, 2021, 03:58:19 pm
I'm also stuck (1 hour and nothing happens) just after selecting UFS installation, what should I do?

Tia.
Title: Re: Having problem installing the installer is not working
Post by: franco on July 30, 2021, 07:44:21 pm
21.7.1 will release new images to fix these things. Hopefully by the end of next week.


Cheers,
Franco
Title: Re: Having problem installing the installer is not working
Post by: saki22 on July 31, 2021, 04:48:15 am
Pretty much I'm screwed to you least in the next update so I cannot use the new version right now I think you should make this a little more higher priority it get done little sooner
Title: Re: Having problem installing the installer is not working
Post by: joek on July 31, 2021, 07:27:18 am
Had the same issue yesterday and after several attempts used CTRL+C and restarted the installation with ZFS instead of UFS and it worked without any issues. The GUI does sort of freeze for a minute or so then so I would be patient then progress starts.
Title: Re: Having problem installing the installer is not working
Post by: dinguz on July 31, 2021, 08:05:48 am
I have seen this too, the ZFS installer doesn’t show any progress for the first minute or so, and longer on slower systems, giving the impression of a stall.
Both the UFS and ZFS install gave some text messages below in the screen.
Title: Re: Having problem installing the installer is not working
Post by: Meditux on July 31, 2021, 11:39:22 am
Would you mind sending me that in German... I think I am a bit lost in the translation. :)


Danke,
Franco

Hi Franco,

die Installation  funktioniert mit dem modifizierten File unter ZFS sowie auch unter UFS. Die funktionierende Version hatte ich Dir als Anhang gesendet.

Ich denke das es kein Problem mit der SSD gab, sondern das Problem war, dass ich zwischenzeitlich einmal den USB-Stick zur Installation abgezogen hatte. So kam es dann zum folgenden Fehler (The partition editor run failed).

Ich habe mittlerweile die VGA-ISO 21.7 mit dem angepassten File auf diverser Hardware installiert. Ich habe einfach das angepasste File nach dem Booten in die Ram-Disk geschoben. Mit dem angepassten File läuft bei der Installation unter UFS der Text aus dem Menü. Das schaut optisch etwas unschön aus aber funktioniert ;-)

Ich hoffe das ist jetzt besser zu verstehen  :)

Gruß Meditux


 
Title: Re: Having problem installing the installer is not working
Post by: franco on July 31, 2021, 02:29:04 pm
Pretty much I'm screwed to you least in the next update so I cannot use the new version right now I think you should make this a little more higher priority it get done little sooner

And you think 21.7.1 bundled with new images is NOT priority? What rock do you live under, pardon my wording...

The first couple of seconds in the install routine appear a bit sluggish, but having played with the responsiveness in this regard the current result is already improved especially regarding the last 50-80% which would appear as a block update during initial write.

@Meditux: aha, besten Dank. Das "set -e" braucht es dann nicht... das schreibt nur alles noch mal in den Hintergrund.  Danke für's Testen! :)


Cheers,
Franco
Title: Re: Having problem installing the installer is not working
Post by: hushcoden on July 31, 2021, 02:57:28 pm
21.7.1 will release new images to fix these things. Hopefully by the end of next week.


Cheers,
Franco
I ended up selecting ZFS and it worked...  ::)
Title: Re: Having problem installing the installer is not working
Post by: saki22 on July 31, 2021, 11:47:49 pm
Pretty much I'm screwed to you least in the next update so I cannot use the new version right now I think you should make this a little more higher priority it get done little sooner

And you think 21.7.1 bundled with new images is NOT priority? What rock do you live under, pardon my wording...

The first couple of seconds in the install routine appear a bit sluggish, but having played with the responsiveness in this regard the current result is already improved especially regarding the last 50-80% which would appear as a block update during initial write.

@Meditux: aha, besten Dank. Das "set -e" braucht es dann nicht... das schreibt nur alles noch mal in den Hintergrund.  Danke für's Testen! :)


Cheers,
Franco
I think thier is a miss understand i think 21.7.1 image should be high priority. I have to wait for new image so i can use this new version. I think should release the 21.7.1 little sooner
Title: Re: Having problem installing the installer is not working
Post by: franco on August 01, 2021, 09:22:14 am
Maybe a little patience would also help speed this up.  ;)


Franco
Title: Re: Having problem installing the installer is not working
Post by: saki22 on August 02, 2021, 05:57:06 am
I decided to risk it I update to the current copy of opnsense update work perfectly with no issues
Title: Re: Having problem installing the installer is not working
Post by: SleepIT on August 02, 2021, 07:18:02 pm
I had the same problem installing 21.7 (APU2 and APU4 boards), finally tried selecting "Other Modes," then "Auto (UFS)," and it works fine.