• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Wan periodic reset causes system reboot.

General pfSense Questions
6
152
29.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    AlexanderK
    last edited by Aug 10, 2023, 3:42 PM

    disabling ipv6 seems to fix the issue!

    R 1 Reply Last reply Aug 10, 2023, 3:44 PM Reply Quote 0
    • R
      RobbieTT @AlexanderK
      last edited by Aug 10, 2023, 3:44 PM

      @AlexanderK said in Wan periodic reset causes system reboot.:

      disabling ipv6 seems to fix the issue!

      Ok, seems like the issue I ran into at the redline link above.

      I need IPv6 so waiting on a fix is my only option.

      ☕️

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Aug 10, 2023, 3:46 PM

        No that shows you do have SWAP enabled so I'd expect to see a crash report if it suffered a kernel panic. And your description sounds like a kernel panic. It spews the full process backtrace and message buffer onto the console before rebooting.

        We need to see the initial backtrace and panic string when that happens really. Since you can trigger it on demand, can you hook up a serial console to log it?
        If not you should be able to stop the auto reboot and scroll back through the buffer with the scroll-lock key at a vga/keyboard console.

        A 1 Reply Last reply Aug 10, 2023, 3:50 PM Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Aug 10, 2023, 3:47 PM

          Are you running tailscale?

          A R 2 Replies Last reply Aug 10, 2023, 3:47 PM Reply Quote 0
          • A
            AlexanderK @stephenw10
            last edited by Aug 10, 2023, 3:47 PM

            @stephenw10 yes i am running tailscale

            S 1 Reply Last reply Aug 10, 2023, 3:49 PM Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by Aug 10, 2023, 3:48 PM

              I have IPv6 (from BT) over PPPoE which seems like it should be nearly identical to connections that are hitting this but I cannot trigger it.
              There any special trick I'm missing?

              1 Reply Last reply Reply Quote 0
              • S
                stephenw10 Netgate Administrator @AlexanderK
                last edited by Aug 10, 2023, 3:49 PM

                @AlexanderK said in Wan periodic reset causes system reboot.:

                @stephenw10 yes i am running tailscale

                Ooo, try disabling that and see if you can still trigger it.

                A 1 Reply Last reply Aug 10, 2023, 3:52 PM Reply Quote 0
                • R
                  RobbieTT @stephenw10
                  last edited by Aug 10, 2023, 3:49 PM

                  @stephenw10

                  But I am not running Tailscale.

                  ☕️

                  1 Reply Last reply Reply Quote 0
                  • A
                    AlexanderK @stephenw10
                    last edited by Aug 10, 2023, 3:50 PM

                    @stephenw10 how i can stop the auto reboot?

                    1 Reply Last reply Reply Quote 0
                    • A
                      AlexanderK @stephenw10
                      last edited by Aug 10, 2023, 3:52 PM

                      @stephenw10 my tailscale is not enabled

                      1 Reply Last reply Reply Quote 0
                      • A
                        AlexanderK
                        last edited by Aug 10, 2023, 4:08 PM

                        after enabling again ipv6 the problem seems to be solved. really strange situation

                        R 1 Reply Last reply Aug 10, 2023, 4:12 PM Reply Quote 0
                        • R
                          RobbieTT @AlexanderK
                          last edited by Aug 10, 2023, 4:12 PM

                          @AlexanderK said in Wan periodic reset causes system reboot.:

                          after enabling again ipv6 the problem seems to be solved. really strange situation

                          For me it is intermittent, with it rebooting 50-60% of the time.

                          ☕️

                          1 Reply Last reply Reply Quote 0
                          • S
                            stephenw10 Netgate Administrator
                            last edited by Aug 10, 2023, 5:25 PM

                            Edit /etc/pfSense-ddb.conf and remove or comment 'reset' from the script kdb.enter.default line.

                            Then after a panic the console will remain at the db prompt:

                            db:0:kdb.enter.default>  capture off
                            db:0:kdb.enter.default>  textdump dump
                            Textdump complete.
                            db> 
                            

                            You can then scroll back to see the backtrace shown after db:1:pfs> bt.

                            You will want to restore the reset command to the file after doing that though because otherwise it will not reboot after a panic at 3am which is probably not what you want!

                            Steve

                            A 1 Reply Last reply Aug 10, 2023, 5:55 PM Reply Quote 0
                            • A
                              AlexanderK @stephenw10
                              last edited by AlexanderK Aug 10, 2023, 6:06 PM Aug 10, 2023, 5:55 PM

                              @stephenw10
                              thanks steve made that change but now it has been resolved. let's see what will happen

                              #update reboot happened
                              the console didn't remain at the db prompt.
                              I suppose it is something different

                              login-to-view

                              1 Reply Last reply Reply Quote 0
                              • A
                                AlexanderK
                                last edited by AlexanderK Aug 10, 2023, 6:58 PM Aug 10, 2023, 6:16 PM

                                It happened....i will try to upload everything

                                crash log was huge.
                                i took some photos but couldn't upload here because the size is big
                                https://drive.google.com/drive/folders/17wDoVLqgRgBkQdTGhOVvMfkekIQMCg2Q?usp=sharing

                                1 Reply Last reply Reply Quote 0
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by stephenw10 Aug 10, 2023, 7:39 PM Aug 10, 2023, 7:39 PM

                                  Yes it's big! The interesting part is right at the beginning of the report. For example:

                                  debug.kdb.panic:panic: kdb_sysctl_panic
                                  cpuid = 3
                                  time = 1691688092
                                  KDB: enter: panic
                                  [ thread pid 30195 tid 100206 ]
                                  Stopped at      kdb_enter+0x32: movq    $0,0x2342e13(%rip)
                                  db:0:kdb.enter.default> textdump set
                                  textdump set
                                  db:0:kdb.enter.default>  capture on
                                  db:0:kdb.enter.default>  run pfs
                                  db:1:pfs> bt
                                  Tracing pid 30195 tid 100206 td 0xfffffe00c73a4900
                                  kdb_enter() at kdb_enter+0x32/frame 0xfffffe00c713baf0
                                  vpanic() at vpanic+0x183/frame 0xfffffe00c713bb40
                                  panic() at panic+0x43/frame 0xfffffe00c713bba0
                                  kdb_sysctl_panic() at kdb_sysctl_panic+0x61/frame 0xfffffe00c713bbd0
                                  sysctl_root_handler_locked() at sysctl_root_handler_locked+0x90/frame 0xfffffe00c713bc20
                                  sysctl_root() at sysctl_root+0x216/frame 0xfffffe00c713bca0
                                  userland_sysctl() at userland_sysctl+0x177/frame 0xfffffe00c713bd50
                                  sys___sysctl() at sys___sysctl+0x5c/frame 0xfffffe00c713be00
                                  amd64_syscall() at amd64_syscall+0x109/frame 0xfffffe00c713bf30
                                  fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe00c713bf30
                                  --- syscall (202, FreeBSD ELF64, __sysctl), rip = 0x3dada5b3892a, rsp = 0x3dada42e1158, rbp = 0x3dada42e1190 ---
                                  

                                  That was a crash I triggered manually. Yours will probably be similar to that shown in the bug report linked above.
                                  Unfortunately those pictures are all from after that part.

                                  A 1 Reply Last reply Aug 10, 2023, 8:04 PM Reply Quote 0
                                  • A
                                    AlexanderK @stephenw10
                                    last edited by Aug 10, 2023, 8:04 PM

                                    @stephenw10
                                    https://forums.freebsd.org/threads/tip-log-console-messages.10090/

                                    Tried to enable console logs with no result.
                                    What i can do to help ?

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      stephenw10 Netgate Administrator
                                      last edited by Aug 10, 2023, 8:13 PM

                                      Are you not able to scroll back far enough to see the initial backtrace?

                                      pfSense doesn't use the standard log conf file it uses: /var/etc/syslog.d/pfSense.conf
                                      So you'd have to try that there instead. I have never tried that.

                                      Steve

                                      A 1 Reply Last reply Aug 10, 2023, 8:29 PM Reply Quote 0
                                      • A
                                        AlexanderK @stephenw10
                                        last edited by Aug 10, 2023, 8:29 PM

                                        @stephenw10 the first picture was the highest i could go....
                                        So it is not possible.
                                        I will try the log

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          stephenw10 Netgate Administrator
                                          last edited by Aug 10, 2023, 8:43 PM

                                          Hmm, still odd that it doesn't save the panic as a crash report by default. The only reasons that wouldn't happen I can think of are if there's no SWAP configured (there is) or if the drive is failing and it's inaccessible at that point.

                                          1 Reply Last reply Reply Quote 0
                                          17 out of 152
                                          • First post
                                            17/152
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.