Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Installer issues #21

Closed
petererdos opened this issue Mar 11, 2018 · 32 comments
Closed

Installer issues #21

petererdos opened this issue Mar 11, 2018 · 32 comments

Comments

@petererdos
Copy link

I can't really provide logs for this, so I'll try to explain what happens.

Sources for this reporting:

  1. https://forum.opnsense.org/index.php?topic=7547
  2. This is not exactly the same as p1, but similar hardware and exactly the same outcome: https://forum.opnsense.org/index.php?topic=7329

I read many times what Franco was advising in similar cases, especially for p1, so I tried exactly that: install FreeBSD first and see if that works. And it did, FreeBSD installed quite nicely.

As you can see from the forum report, OPNsense 18.1 installer (amd64, vga) fails to install. It hangs right after formatting, right before partitioning the HDD.

I'll define what hang means here:

  1. Any visible progress stops after the HDD is formatted
  2. I think when trying to partition the HDD, the installer hangs
  3. There is no visible progress on the screen after this point
  4. CTRL+ALT+DELETE or the power button will display some logs, overlaying the blue screen of the installer with the installation progress
  5. There is absolutely nothing wrong hardware wise (professionally tested)

I'll have this hardware (from p1) for another 2 or 3 days, as it is not mine. It will be the main gateway of a client's network, deployed far away from where I live, so access will be difficult, the issue impossible to reproduce and confirm a fix once it's put in place. If anybody has the time to investigate before relocating the box, I'll try to be available.

Thank you all.

@fichtner
Copy link
Member

There should be a /tmp/installer.log in the system -- can it be salvaged?

@petererdos
Copy link
Author

Don't know, let me try and I'll report back.

@petererdos
Copy link
Author

petererdos commented Mar 11, 2018

No logs yet, but..
dcol mentioned that changing the font to vgarom-8x14.fnt worked for him a few times.
Just tried it. Worked for guided, did not for manual install (exactly the same symptoms with any other fonts for manual install).

/tmp/installer.log is kept in the memory or written on the hdd/usb flash drive? I guess, since the hdd is not yet partitioned (i think), in the memory.. can i set it's location somehow to the memstick?

@petererdos
Copy link
Author

petererdos commented Mar 11, 2018

I think it has something to do with the display indeed. Just attached a mouse as well, the mouse works even when the installer hangs. Choosing the gallant font freezes the installer instantly. I cannot access the console from this point in any way. I can restart with CTRL+ALT+DEL, shutdown (and i have some line of logs overlaying the blue screen) and move the mouse. That's it, nothing else works, no function keys, trying blindly some commands in the background, nothing..

@petererdos
Copy link
Author

petererdos commented Mar 11, 2018

img_20180311_124203
So i booted another memstick, the hdd looks like partially formatted (nothing seems to recognize the filesystem). But there are no other partitions. Also, when the installer hangs, the CPU cooler jumps to higher rpm (i can hear it), like there's some serious processing happening in the background or it gets into an infinite loop of something.. attached an image with how the hdd looks like after the installer hangs, but i no longer think it has something to do with anything else than the display. I replaced the Samsung 2.5 ssd with an m.2 WD Green ssd.

@fichtner
Copy link
Member

@petererdos I can build a new VGA image based on the latest code and development version. would it make sense to try this as a data point?

@petererdos
Copy link
Author

I can try as many images as you you want me too for two more days (this evening and the next one, as the whole thing got postponed because of a missing hardware which will arrive today or tomorrow). I have to finish configuring the system after that and test some stuff a little , then travel with it to its destination.

@fichtner
Copy link
Member

fichtner commented Mar 14, 2018

Here's one, but it's only for testing because I don't know which software state is on there. If it works I can build a reliable image on 18.1.4perhaps?

REDACTED

@fichtner
Copy link
Member

fichtner commented Mar 14, 2018

Sorry, second try: https://pkg.opnsense.org/FreeBSD:11:amd64/snapshots/OPNsense-201802100805-OpenSSL-vga-amd64.img.bz2

This image is ok, based on an updatable 18.1.x release. Particularly, it fixes the Unbound issue that causes the system to freeze up during install.

@petererdos
Copy link
Author

Sure Franco, i'll try this evening. Unfortunately it's the last night the system is available for testing, as i'm running out of time with the setup/testing part...

@fichtner
Copy link
Member

I understand and appreciate all your efforts. The installer is tricky and time consuming. The target to fix this is 18.7 anyway so we don't have to rush or be disappointed with unrealistic goals. I think that trouble with the installer may be a bit elevated with 18.1 on FreeBSD 11.1, but we don't know how many new people with new hardware run into this that have never previously given us data points / a proper baseline. :)

@petererdos
Copy link
Author

petererdos commented Mar 14, 2018

Nope.. same thing. Only with the 8x14 font and guided install works.. On the positive side, the import of settings was successful 👍

@fichtner
Copy link
Member

if you do select "3" during boot menu and use the following:

set kern.vty=sc
boot

Does it work more reliably or worse? Is this an UEFI system?

@petererdos
Copy link
Author

UEFI. If i have some time tomorrow I'll check this out. Unfortunately I'm passed the time to test installs, unless i get everything up and running very quickly..

@douglasg14b
Copy link

@fichtner tried

set kern.vty=sc
boot

and it froze here: https://i.imgur.com/OGbuVYw.jpg

Changed the font to garom and the guided install worked, however the UI was shoved to the lower right. https://i.imgur.com/ckaNuCe.jpg

@comnam90
Copy link

Changing the font size also resolved the issue for me on Hyper-V Gen2 VM

@fichtner
Copy link
Member

18.7 won't be better since we will keep FreeBSD 11.1, but we can try an installer based on FreeBSD 11.2 in a few weeks to see if this has gotten better or not.

@SergioRius
Copy link

The issue still reproduces with the latest vga image.

@fichtner
Copy link
Member

fichtner commented Sep 6, 2018

Yes, that's why I said "18.7 won't be better" :)

@eugene-chow
Copy link

I used the same amd64/vga image on 2x Dell R440 servers and encountered a similar issue. In my case, the installer always became unresponsive at menu for creating the swap partition. The mouse could move but the keyboard was stuck. I discovered the solution by sheer luck:

  1. Press Ctrl+C to exit the installer, which returns you to the login screen.
  2. Relogin as the installer user and resume the installation.

I hope this helps someone who encountered the same issue!

@Alphaprot
Copy link

Alphaprot commented Feb 15, 2019

It helped to change the font in the GUI.. I'm really sorry that I don't know which one anymore, but you can really do some trial and error - at least it worked for me with the Guided Install Option.

EDIT: I took vgarom-thin 8x16... As far as I remember :)

@fredskis
Copy link

I used the same amd64/vga image on 2x Dell R440 servers and encountered a similar issue. In my case, the installer always became unresponsive at menu for creating the swap partition. The mouse could move but the keyboard was stuck. I discovered the solution by sheer luck:

  1. Press Ctrl+C to exit the installer, which returns you to the login screen.
  2. Relogin as the installer user and resume the installation.

I hope this helps someone who encountered the same issue!

This helped me! Thanks. I had also changed the font to 8x14 on this test (where it froze) but CTRL+C and re-logging in brought it back to life!

@celsolom
Copy link

celsolom commented Oct 2, 2019

That help me too in 19.7 and Hyper-V 2012 R2!

@dpieski
Copy link

dpieski commented Oct 8, 2019

Thanks! The CTRL+C and re-login worked for me too. Hyper-V on Win 10 pro, Gen2 VM, opnsense 19.7.
Locked up at the Guided - Manual Install menu, locked up again on the SWAP confirm dialog.

@MBiesma
Copy link

MBiesma commented Oct 29, 2019

Thanks! The CTRL+C and re-login worked for me too. Hyper-V on Win 10 pro, Gen2 VM, opnsense 19.7.
Locked up at the Guided - Manual Install menu, locked up again on the SWAP confirm dialog.

I got exactly the same problem and configuration. The CTRL+C and re-login worked for me too.

@kevin-j-morse
Copy link

kevin-j-morse commented Nov 5, 2019

CTRL+C and re-login worked on Windows Server 2019 with a lock up right after choosing to continue with default keymap.

Also locked up at SWAP dialog... Again CTRL + C and re-login worked.

@Bilal-io
Copy link

Issues still happening with latest version 20.1 VGA.
CTRL+C and re-login resolves the issue for me as well.

@manualdidact
Copy link

Confirmed, 20.1 vga, freeze at the swap dialog. Ctrl-C and re-login worked.

Really glad I found this page.

@bimmerdriver
Copy link

Bumping this issue to see if the problem has been fixed or if it fell off the radar...

@cameronkollwitz
Copy link

Bumping this issue to see if the problem has been fixed or if it fell off the radar...

Still happening. It happened multiple times to me during the same install (the second time was at the swap partition prompt) but the Ctrl-C workaround still worked for the second one.

@fichtner fichtner transferred this issue from opnsense/core Apr 11, 2021
@marjohn56
Copy link
Member

I believe it's very much on @fichtner's radar,

@fichtner
Copy link
Member

Sure, work for opnsense/installer#1 currently in progress in time for 21.7.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests