OPNsense Forum

International Forums => German - Deutsch => Topic started by: Anfaenger on February 13, 2021, 10:21:18 AM

Title: OPNsense startet nicht mehr
Post by: Anfaenger on February 13, 2021, 10:21:18 AM
Hallo zusammen,
ich bin echter OPNsense-Anfänger !
Meine OPNsense (APU4D4 Board) startet nich mehr

Mit Putty habe ich folgendes:


                  ______  _____  _____
                 /  __  |/ ___ |/ __  |
                 | |  | | |__/ | |  | |___  ___ _ __  ___  ___
                 | |  | |  ___/| |  | / __|/ _ \ '_ \/ __|/ _ \
                 | |__| | |    | |  | \__ \  __/ | | \__ \  __/
                 |_____/|_|    |_| /__|___/\___|_| |_|___/\___|

+=========================================+     @@@@@@@@@@@@@@@@@@@@@@@@@@@@
|                                         |   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|  1. Boot Multi User [Enter]             |   @@@@@                    @@@@@
|  2. Boot [S]ingle User                  |       @@@@@            @@@@@
|  3. [Esc]ape to loader prompt           |    @@@@@@@@@@@       @@@@@@@@@@@
|  4. Reboot                              |         \\\\\         /////
|                                         |   ))))))))))))       (((((((((((
|  Options:                               |         /////         \\\\\
|  5. [K]ernel: kernel (1 of 2)           |    @@@@@@@@@@@       @@@@@@@@@@@
|  6. Configure Boot [O]ptions...         |       @@@@@            @@@@@
|                                         |   @@@@@                    @@@@@
|                                         |   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|                                         |   @@@@@@@@@@@@@@@@@@@@@@@@@@@@
+=========================================+
                                                  20.1 ``Keen Kingfisher''
-
/boot/kernel/kernel text=0x1825189 data=0x1e3428+0x76ed40 syms=[0x8+0x18e508+0x8+0x1ac9d9]
/boot/entropy size=0x1000
/boot/kernel/carp.ko size 0x10250 at 0x288f000
/boot/kernel/if_bridge.ko size 0xf998 at 0x28a0000
loading required module 'bridgestp'
/boot/kernel/bridgestp.ko size 0x72a8 at 0x28b0000
/boot/kernel/if_enc.ko size 0x3e78 at 0x28b8000
/boot/kernel/if_gre.ko size 0xb1c0 at 0x28bc000
/boot/kernel/if_lagg.ko size 0x16008 at 0x28c8000
/boot/kernel/if_tap.ko size 0x8b60 at 0x28df000
/boot/kernel/pf.ko size 0x582f0 at 0x28e8000
/boot/kernel/pflog.ko size 0x2af8 at 0x2941000
/boot/kernel/pfsync.ko size 0xebd0 at 0x2944000
Booting...
KDB: debugger backends: ddb
KDB: current backend: ddb
---<<BOOT>>---
Copyright (c) 2013-2019 The HardenedBSD Project.
Copyright (c) 1992-2019 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 12.1-RELEASE-p10-HBSD #0  6e16e28f1bf(stable/20.7)-dirty: Tue Oct 20 13:30:19 CEST 2020
    root@sensey64:/usr/obj/usr/src/amd64.amd64/sys/SMP amd64
FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1)
VT(vga): resolution 640x480
HardenedBSD: initialize and check features (__HardenedBSD_version 1200059 __FreeBSD_version 1201000).
CPU: AMD GX-412TC SOC                                (998.15-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x730f01  Family=0x16  Model=0x30  Stepping=1
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x3ed8220b<SSE3,PCLMULQDQ,MON,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C>
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD Features2=0x1d4037ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT,Topology,PNXC,DBE,PTSC,PL2I>
  Structured Extended Features=0x8<BMI1>
  XSAVE Features=0x1<XSAVEOPT>
  SVM: NP,NRIP,AFlush,DAssist,NAsids=8
  TSC: P-state invariant, performance statistics
real memory  = 4294967296 (4096 MB)
avail memory = 4092891136 (3903 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <COREv4 COREBOOT>
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s)
random: unblocking device.
ioapic1: Changing APIC ID to 5
ioapic0 <Version 2.1> irqs 0-23 on motherboard
ioapic1 <Version 2.1> irqs 24-55 on motherboard
Launching APs: 1 2 3
Timecounter "TSC" frequency 998149538 Hz quality 1000
wlan: mac acl policy registered
random: entropy device external interface
kbd0 at kbdmux0
module_register_init: MOD_LOAD (vesa, 0xffffffff8128e7c0, 0) error 19
000.000054 [4335] netmap_init               netmap: loaded module
[ath_hal] loaded
nexus0
vtvga0: <VT VGA driver> on motherboard
cryptosoft0: <software crypto> on motherboard
acpi0: <COREv4 COREBOOT> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x818-0x81b on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pcib0: could not evaluate _ADR - AE_NOT_FOUND
pci0: <ACPI PCI bus> on pcib0
pci0: <base peripheral, IOMMU> at device 0.2 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> irq 24 at device 2.1 on pci0
pcib1: failed to allocate initial I/O port window: 0x1000-0x1fff
pci1: <ACPI PCI bus> on pcib1
igb0: <Intel(R) PRO/1000 PCI-Express Network Driver> mem 0xf7900000-0xf791ffff,0xf7920000-0xf7923fff irq 24 at device 0.0 on pci1
igb0: Using 1024 TX descriptors and 1024 RX descriptors
igb0: Using 2 RX queues 2 TX queues
igb0: Using MSI-X interrupts with 3 vectors
igb0: Ethernet address: 00:0d:b9:56:93:dc
igb0: netmap queues/slots: TX 2/1024, RX 2/1024
pcib2: <ACPI PCI-PCI bridge> irq 25 at device 2.2 on pci0
pci2: <ACPI PCI bus> on pcib2
igb1: <Intel(R) PRO/1000 PCI-Express Network Driver> port 0x2000-0x201f mem 0xf7a00000-0xf7a1ffff,0xf7a20000-0xf7a23fff irq 28 at device 0.0 on pci2
igb1: Using 1024 TX descriptors and 1024 RX descriptors
igb1: Using 2 RX queues 2 TX queues
igb1: Using MSI-X interrupts with 3 vectors
igb1: Ethernet address: 00:0d:b9:56:93:dd
igb1: netmap queues/slots: TX 2/1024, RX 2/1024
pcib3: <ACPI PCI-PCI bridge> irq 26 at device 2.3 on pci0
pci3: <ACPI PCI bus> on pcib3
igb2: <Intel(R) PRO/1000 PCI-Express Network Driver> port 0x3000-0x301f mem 0xf7b00000-0xf7b1ffff,0xf7b20000-0xf7b23fff irq 32 at device 0.0 on pci3
igb2: Using 1024 TX descriptors and 1024 RX descriptors
igb2: Using 2 RX queues 2 TX queues
igb2: Using MSI-X interrupts with 3 vectors
igb2: Ethernet address: 00:0d:b9:56:93:de
igb2: netmap queues/slots: TX 2/1024, RX 2/1024
pcib4: <ACPI PCI-PCI bridge> irq 27 at device 2.4 on pci0
pci4: <ACPI PCI bus> on pcib4
igb3: <Intel(R) PRO/1000 PCI-Express Network Driver> port 0x4000-0x401f mem 0xf7c00000-0xf7c1ffff,0xf7c20000-0xf7c23fff irq 36 at device 0.0 on pci4
igb3: Using 1024 TX descriptors and 1024 RX descriptors
igb3: Using 2 RX queues 2 TX queues
igb3: Using MSI-X interrupts with 3 vectors
igb3: Ethernet address: 00:0d:b9:56:93:df
igb3: netmap queues/slots: TX 2/1024, RX 2/1024
pci0: <encrypt/decrypt> at device 8.0 (no driver attached)
xhci0: <AMD FCH USB 3.0 controller> mem 0xf7f22000-0xf7f23fff irq 18 at device 16.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
xhci0: Unable to map MSI-X table
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
ahci0: <AMD Hudson-2 AHCI SATA controller> port 0x5010-0x5017,0x5020-0x5023,0x5018-0x501f,0x5024-0x5027,0x5000-0x500f mem 0xf7f25000-0xf7f253ff at d0
ahci0: AHCI v1.30 with 2 6Gbps ports, Port Multiplier supported with FBS
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ehci0: <AMD FCH USB 2.0 controller> mem 0xf7f26000-0xf7f260ff irq 18 at device 19.0 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
usbus1: 480Mbps High Speed USB v2.0
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
sdhci_pci0: <Generic SD HCI> mem 0xf7f27000-0xf7f270ff at device 20.7 on pci0
sdhci_pci0: 1 slot(s) allocated
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: console (115200,n,8,1)
uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
orm0: <ISA Option ROM> at iomem 0xee800-0xeffff pnpid ORM0000 on isa0
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
Timecounters tick every 1.000 msec
ugen1.1: <AMD EHCI root HUB> at usbus1
ugen0.1: <0x1022 XHCI root HUB> at usbus0
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <SATA SSD SBFM01.3> ACS-4 ATA SATA 3.x device
ada0: Serial Number 22C707070EAE00040278
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 28626MB (58626288 512 byte sectors)
uhub0: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
Trying to mount root from ufs:/dev/gpt/rootfs [rw,noatime]...
uhub1: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
WARNING: /mnt was not properly dismounted
WARNING: /mnt: mount pending error: blocks 0 files 29

FreeBSD/amd64 (Amnesiac) (ttyu0)

login: uhub1: 4 ports with 4 removable, self powered
uhub0: 2 ports with 2 removable, self powered
ugen1.2: <vendor 0x0438 product 0x7900> at usbus1
uhub2 on uhub0
uhub2: <vendor 0x0438 product 0x7900, class 9/0, rev 2.00/0.18, addr 2> on usbus1
uhub2: 4 ports with 4 removable, self powered


                             

-----------------------------
Was kann ich machen ?
Kann ich jetzt noch ein Backup der Konfiguration ziehen (wie?) und nach einer Neuinstallation das Backup einspielen ?
Vielen Dank für die Hilfe

Title: Re: OPNsense startet nicht mehr
Post by: Gauss23 on February 13, 2021, 10:30:02 AM
Grundsätzlich ist das Konzept vom Backup, dass man welche anlegt, bevor man sie braucht. Das kann man auch wunderbar automatisieren.

So wie sich das liest gibt es einen Dateisystemfehler.

Kommst Du noch in den Single User Mode? Dann könnte man einen fsck versuchen.
Title: Re: OPNsense startet nicht mehr
Post by: Anfaenger on February 13, 2021, 11:17:37 AM
Hallo Gauss23,
da hast du nastürlich völlig recht ! Mit dem automatisierten Basckup werde ichj mir ansehen

In den Single User Mode komme ich rein
Title: Re: OPNsense startet nicht mehr
Post by: Gauss23 on February 13, 2021, 11:28:06 AM
Dann versuche es mal hiermit:
https://forum.opnsense.org/index.php?topic=20093.msg92986#msg92986

Aus dem Bild ganz unten
fsck -yf /dev/gpt/rootfs
Title: Re: OPNsense startet nicht mehr
Post by: Anfaenger on February 13, 2021, 11:47:36 AM
Hat leider nicht funktioniert .... bleibt wieder an der selben stelle hängen
Komme ich noch irgendwie an meine Konfig Datei ?
Title: Re: OPNsense startet nicht mehr
Post by: Gauss23 on February 13, 2021, 12:04:07 PM
Wenn das Dateisystem so kaputt ist, dass fsck nichts mehr reparieren kann, sieht das aus meiner Sicht schlecht aus.

Vielleicht hat ja jemand anderes eine Idee.
Title: Re: OPNsense startet nicht mehr
Post by: micneu on February 13, 2021, 10:37:43 PM
meine empfehlung, neu installation und die ganz alte config nach nach dem du über den browser auf die kiste kommst einlesen. solltest du garkein backu der config haben, leider von vorne anfangen (aus fehlern lernt man)
Title: Re: OPNsense startet nicht mehr
Post by: Anfaenger on February 14, 2021, 08:59:43 AM
Hallo micneu,
da gebe ich dir voll und ganz recht. Ich habe die OPNsense jetzt wieder neu aufgesetzt, Backup eingespielt und ie letzten Änderungen angepasst.
Mit geht es vorallem um den Lehrneffekt .... was kann man in diesem Fall machen .....
Ich hatte mir erhofft dass man an das Konfigfile noch "irgendwie" drankommt.

Vielen Dank
Title: Re: OPNsense startet nicht mehr
Post by: micneu on February 14, 2021, 12:38:51 PM
Hatte diesen Fall noch nicht, deshalb habe ich mir keine Gedanken dazu gemacht. Muss ich auch nicht, mache Regelmäßig Backups von meiner config (jedesmal wenn ich was ändern will mache ich vorher ein Backup) habe ca. 250 Backup Dateien also mehrere Möglichkeiten auf ältere Stände zu springen


Gesendet von iPad mit Tapatalk Pro
Title: Re: OPNsense startet nicht mehr
Post by: Gauss23 on February 14, 2021, 01:09:58 PM
Quote from: micneu on February 14, 2021, 12:38:51 PM
Hatte diesen Fall noch nicht, deshalb habe ich mir keine Gedanken dazu gemacht. Muss ich auch nicht, mache Regelmäßig Backups von meiner config (jedesmal wenn ich was ändern will mache ich vorher ein Backup) habe ca. 250 Backup Dateien also mehrere Möglichkeiten auf ältere Stände zu springen


Gesendet von iPad mit Tapatalk Pro

Das wäre mir aber zu doof. Nextcloud Backup jede Nacht, automatisch nach 30 Tagen gesäubert. Klar, wenn man innerhalb eines Tages mehrere kritische Änderungen macht, kann man das ausnahmsweise machen, wie Du es handhabst.
Ich habe einige OPNsense Instanzen laufen, auch für Kunden, da muss das Backup automatisch jede Nacht an einen Ort abgelegt werden, wo jeder, der sie braucht, sie schnell wiederfindet.
Title: OPNsense startet nicht mehr
Post by: micneu on February 15, 2021, 08:27:21 AM
Du hattest in deinem ersten Post nichts von mehreren Systemen geschrieben, deshalb bin ich davon ausgegangen das es sich um 1 System bei dir privat zuhause handelt, und da KANN man es so machen


Gesendet von iPhone mit Tapatalk Pro
Title: Re: OPNsense startet nicht mehr
Post by: JeGr on February 15, 2021, 07:29:12 PM
> Ich hatte mir erhofft dass man an das Konfigfile noch "irgendwie" drankommt.

wärst du vielleicht auch. Je nachdem ob du es geschafft hättest, das Gerät noch in single-user mode zu bekommen und an der Konsole dann einen fsck machen kannst, der dich danach wenigstens die Partition noch mounten lässt.
Alternativ auf einem externen FreeBSD anklemmen und versuchen zu mounten wäre die andere Möglichkeit gewesen. Wenn das alles nichts bringt und die Partition so vermurkst wurde von einem Powerloss o.ä. dass da nichts mehr geht - nope, dann kommt man an die Config nicht mehr ran.
Title: Re: OPNsense startet nicht mehr
Post by: Gauss23 on February 15, 2021, 08:03:37 PM
Quote from: JeGr on February 15, 2021, 07:29:12 PM
> Ich hatte mir erhofft dass man an das Konfigfile noch "irgendwie" drankommt.

wärst du vielleicht auch. Je nachdem ob du es geschafft hättest, das Gerät noch in single-user mode zu bekommen und an der Konsole dann einen fsck machen kannst, der dich danach wenigstens die Partition noch mounten lässt.
Alternativ auf einem externen FreeBSD anklemmen und versuchen zu mounten wäre die andere Möglichkeit gewesen. Wenn das alles nichts bringt und die Partition so vermurkst wurde von einem Powerloss o.ä. dass da nichts mehr geht - nope, dann kommt man an die Config nicht mehr ran.

Ich habe ihn in den Single-User Mode gelotst und einen fsck machen lassen. Hat nix geholfen, daher war ich dann auch raus :)
Title: Re: OPNsense startet nicht mehr
Post by: JeGr on February 17, 2021, 03:09:59 PM
Ah, nein, dann ist da wirklich nicht mehr viel zu machen  :-\