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

WAN periodically Rebooting

General pfSense Questions
5
184
16.5k
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.
  • S
    stephenw10 Netgate Administrator
    last edited by Aug 16, 2024, 5:52 PM

    Yeah +all is probably more than you need. You should be able to enable those things individually. Though I'm not sure which one you would need.

    1 Reply Last reply Reply Quote 0
    • G
      Gertjan @diyhouse
      last edited by Aug 17, 2024, 8:53 AM

      @diyhouse said in WAN periodically Rebooting:

      and this still only takes me back 15 mins

      IF you have some disk space left, you could goto Status > System Logs > Settings and make the log files (way) bigger :

      login-to-view

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      D 1 Reply Last reply Aug 17, 2024, 12:18 PM Reply Quote 0
      • D
        diyhouse @Gertjan
        last edited by diyhouse Aug 17, 2024, 12:20 PM Aug 17, 2024, 12:18 PM

        @Gertjan Yes many tx,.. I wondered if there was a parameter to limit log file size.
        Although I had created at listing limit of 100000lines... it didn't seem that big.
        One thing I might add the the wonderful pfsense dev. boys/girls,... is it would be nice to set the size limit in some more appro. units,.. eg meg bytes, or gig bytes,... pls
        thankyou
        BTW gone as big as system lets me,.. 2000000000bytes,.. or 2gigs as I recokon.. I have 99G free,.. but guess system is considering all log files,..

        G 1 Reply Last reply Aug 17, 2024, 12:44 PM Reply Quote 0
        • G
          Gertjan @diyhouse
          last edited by Aug 17, 2024, 12:44 PM

          @diyhouse said in WAN periodically Rebooting:

          Although I had created at listing limit of 100000lines...

          That a GUI setting.
          100000 lines in a GUI is ... 'bad' as PHP is very low with 'thoudands' and things go downhill after hundreds of thousands. Until PHP breaks trying to show it.
          Big log files are meant to be show 'on the command line'. Or use SSH+FTP = SFTP, which supports stuf like this in the blink of an eye.

          @diyhouse said in WAN periodically Rebooting:

          some more appro. units,.. eg meg bytes, or gig bytes,... pls
          thankyou

          Would be nice for the ones who are asking ... but never looked / found the log files.
          The ones who 'know', don't bother, they go straight to the source, as things down there are the same dor the last several decades already ^^

          Btw : huge log files are 'nice', because it gives you a big overview of what heppens.
          But then pfSense has to rotate them, and that takes a lot of resource (CPU power etc) and not every pfSense has big drives, and endless write cycles, etc.
          Running out of disk space is a known issue also.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          D 1 Reply Last reply Aug 17, 2024, 1:45 PM Reply Quote 1
          • D
            diyhouse @Gertjan
            last edited by Aug 17, 2024, 1:45 PM

            @Gertjan Tx for the comments,..
            I will drop the GUI max lines down though,...
            BTW,.. Log files,.. where are they stored in the file structure?
            this is my current file system

            Filesystem                          Size    Used   Avail Capacity  Mounted on
            zroot/ROOT/default                  100G    1.2G     99G     1%    /
            devfs                               1.0K      0B    1.0K     0%    /dev
            zroot/tmp                            99G    356K     99G     0%    /tmp
            zroot/var                            99G    413M     99G     0%    /var
            zroot                                99G     88K     99G     0%    /zroot
            zroot/reservation                   110G     96K    110G     0%    /zroot/reservation
            zroot/ROOT/default/var_cache_pkg     99G    177M     99G     0%    /var/cache/pkg
            zroot/ROOT/default/var_db_pkg        99G    5.4M     99G     0%    /var/db/pkg
            tmpfs                               4.0M    152K    3.9M     4%    /var/run
            
            
            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by Aug 17, 2024, 2:08 PM

              They are in /var/log. For the purposes of testing here I wouldn't worry about having larger log files but I would probably set them back when you're done.

              D 1 Reply Last reply Aug 18, 2024, 6:46 AM Reply Quote 0
              • D
                diyhouse @stephenw10
                last edited by Aug 18, 2024, 6:46 AM

                @stephenw10
                Just a quick up date,.. still waiting for a failure event,.. had been running for 15hrs+ then hit midnight Sunday forced WAN reset,.. 7.5hrs on the clock and counting,..
                disk space still good,.. although I have used / lost 1gig of available storage..
                But looking in /var/log I have this now as the big hitters on files,
                I guess as folks have commented,. we'll see how much horsepower my cpu has to cope with the compression etc,.. when the file get rotated..

                -rw-------  1 root wheel 68420964 Aug 18 07:42 system.log
                -rw-------  1 root wheel 68386081 Aug 18 07:42 ppp.log
                -rw-------  1 root wheel 10161552 Aug 18 07:42 filter.log
                -rw-------  1 root wheel  4329357 Aug 18 07:42 nginx.log
                -rw-------  1 root wheel  1226791 Aug 18 07:42 dhcpd.log
                -rw-------  1 root wheel   511488 Sep  6  2020 relayd.log
                -rw-r--r--  1 root wheel   135309 Sep  6  2020 bsdinstall_log
                -rw-------  1 root wheel    99799 Aug 18 07:37 gateways.log
                -rw-------  1 root wheel    66259 Aug 13 22:12 dhcpd.log.1.bz2
                
                
                D 1 Reply Last reply Aug 18, 2024, 1:23 PM Reply Quote 0
                • D
                  diyhouse @diyhouse
                  last edited by diyhouse Aug 18, 2024, 4:31 PM Aug 18, 2024, 1:23 PM

                  @diyhouse
                  PPP_Log Failure.zip
                  WAN has just fallen over @14:10
                  My the 'force' be with you,... ( hope this is the bits you need )
                  EDIT: replace txt file with compressed zip file

                  D 1 Reply Last reply Aug 18, 2024, 1:25 PM Reply Quote 0
                  • D
                    diyhouse @diyhouse
                    last edited by Aug 18, 2024, 1:25 PM

                    @diyhouse
                    Had to save file as attachment,.. as broke the 32K char. submission limit
                    Thanks...

                    D 1 Reply Last reply Aug 18, 2024, 2:03 PM Reply Quote 0
                    • D
                      diyhouse @diyhouse
                      last edited by diyhouse Aug 18, 2024, 4:29 PM Aug 18, 2024, 2:03 PM

                      @diyhouse
                      Just realised these statements entries are the indicators that things have failed, I think... IMHO,..

                      Aug 18 14:32:14	ppp	67004	[wan] OUT util: total 81% 10% 67% 109% 4% 39% 255%
                      Aug 18 14:32:14	ppp	67004	[wan] IN util: total 5511% 8% 8374% 0% 5% 7560% 17117%
                      

                      So have gone back trough the logs pre 14:10...
                      PPP_PreFailog.zip
                      compressed Log file attached
                      As background,.. Netflix was in full HD stream,.. as well as streaming some YouTube,.. and there was an Alexa sound streaming going on as well...
                      And its just died again...
                      EDIT: changed file to compressed version

                      D 1 Reply Last reply Aug 18, 2024, 2:11 PM Reply Quote 0
                      • D
                        diyhouse @diyhouse
                        last edited by Aug 18, 2024, 2:11 PM

                        @diyhouse
                        PPP_FullFAILlog.zip

                        Hope this helps some more,.. 2nd event will full events before and after

                        1 Reply Last reply Reply Quote 0
                        • S
                          stephenw10 Netgate Administrator
                          last edited by Aug 18, 2024, 6:28 PM

                          Hmm, that first disconnect looks different. It logged an LCP timeout which is more like what I expect:

                          [wan_link0] LCP: no reply to 5 echo request(s)
                          Aug 18 14:10:15
                          ppp
                          67004
                          EVENT: Processing timer "FsmKeepAlive" FsmEchoTimeout()
                          Aug 18 14:10:15
                          ppp
                          67004
                          

                          It then reconnects 9s later.

                          [wan_link0] PPPoE: connection successful
                          Aug 18 14:10:24
                          

                          Same thing happened on that last disconnect:

                          Aug 18 15:02:13	ppp	67004	[wan_link0] LCP: no reply to 5 echo request(s)
                          

                          So both those are a reaction to the upstream server failing to respond to the LCP echos.
                          However I would expect to see those logged with the default logging settings and we did not see that previously.

                          D 1 Reply Last reply Aug 18, 2024, 7:19 PM Reply Quote 0
                          • D
                            diyhouse @stephenw10
                            last edited by Aug 18, 2024, 7:19 PM

                            @stephenw10 Many Tx for the feedback Stephen,..
                            I have tried to do some more 'searching',.. for events,.. have tried 'vi ppp.log' in ssh window,.. but not enough privs.. and using the file edit function, causes a php crash,..
                            So all I can probably do for now is wait for some more events,. and pull the associated logs as and when,. unless you have any other suggestions..
                            Also thinking,.. I did notice the re-connection stuff happens a while after the actual WAN looses connectivity ( obviously.. ) ,.. could it be I did not go back far enough in the logs initially?
                            I have tried to go back to these logs,. but I guess they are archived now.. is there any way to pull these logs,.. USB stick and copy files,..
                            I can see this would blow holes in any security,.. so I'm guessing that's a no no...

                            1 Reply Last reply Reply Quote 0
                            • S
                              stephenw10 Netgate Administrator
                              last edited by Aug 18, 2024, 8:32 PM

                              You can copy off or download the compressed log files if they still exist. You have to be logged in to do that so there's no real security issue IMO.

                              I would have expected to see that LCP echo reply error in the logs we looked at earlier. That's usually pretty close in the logs. But I guess it's possible.

                              D 1 Reply Last reply Aug 19, 2024, 7:52 AM Reply Quote 0
                              • D
                                diyhouse @stephenw10
                                last edited by Aug 19, 2024, 7:52 AM

                                @stephenw10 Just looking at getting the log files off pfsense,.. and noticed log files are all the same date,.. so old logs have been cycled out,..
                                Only after the point when I increased log file size do I have events,...
                                Just waiting for the next log rotation,...

                                -rw-------  1 root wheel 161270661 Aug 19 08:39 ppp.log
                                -rw-------  1 root wheel      4599 Aug 17 13:06 ppp.log.0.bz2
                                
                                D 1 Reply Last reply Aug 20, 2024, 10:24 PM Reply Quote 1
                                • D
                                  diyhouse @diyhouse
                                  last edited by Aug 20, 2024, 10:24 PM

                                  @diyhouse :update---
                                  Nearly 2.5days of continuous running since last WAN reboot..

                                  But did get this crash log today..

                                  Crash report begins.  Anonymous machine information:
                                  
                                  amd64
                                  14.0-CURRENT
                                  FreeBSD 14.0-CURRENT amd64 1400094 #1 RELENG_2_7_2-n255948-8d2b56da39c: Wed Dec  6 20:45:47 UTC 2023     root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-2_7_2-main/obj/amd64/StdASW5b/var/jenkins/workspace/pfSense-CE-snapshots-2_7_2-main/sources/F
                                  
                                  Crash report details:
                                  
                                  PHP Errors:
                                  [20-Aug-2024 13:52:51 Europe/London] PHP Fatal error:  Uncaught ValueError: date_create_from_format(): Argument #2 ($datetime) must not contain any null bytes in /usr/local/www/widgets/widgets/suricata_alerts.widget.php:188
                                  Stack trace:
                                  #0 /usr/local/www/widgets/widgets/suricata_alerts.widget.php(188): date_create_from_format('m/d/Y-H:i:s.u', '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...')
                                  #1 /usr/local/www/widgets/widgets/suricata_alerts.widget.php(78): suricata_widget_get_alerts()
                                  #2 {main}
                                    thrown in /usr/local/www/widgets/widgets/suricata_alerts.widget.php on line 188
                                  
                                  No FreeBSD crash data found.
                                  

                                  Unrelated,.. ( I assume ) but just in case for info..
                                  Tx

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    stephenw10 Netgate Administrator
                                    last edited by Aug 20, 2024, 11:41 PM

                                    Hmm, yes that seems unrelated. Though odd, I've not seen that before. Is that the first time you've seen that.

                                    D 1 Reply Last reply Aug 21, 2024, 8:43 AM Reply Quote 0
                                    • D
                                      diyhouse @stephenw10
                                      last edited by diyhouse Aug 23, 2024, 4:42 PM Aug 21, 2024, 8:43 AM

                                      @stephenw10
                                      yes... (And now 2days 18hrs 44Mins...)
                                      Edit 5pm 22nd Aug: Uptime: 4d 01:52:12...
                                      Edit 5pm 23rd Aug: Uptime: 5d 02:32:21

                                      and the log files sizes as follows,.. I would have hoped they would have been rotated by now... as they are getting quite large, even for a text file..

                                      -rw-------  1 root wheel     67068 Aug 22 04:13 dhcpd.log.0.bz2
                                      -rw-------  1 root wheel     69926 Aug 23 16:57 ntpd.log
                                      -rw-------  1 root wheel    118511 Aug 23 00:24 gateways.log
                                      -rw-r--r--  1 root wheel    135309 Sep  6  2020 bsdinstall_log
                                      -rw-------  1 root wheel    511488 Sep  6  2020 relayd.log
                                      -rw-------  1 root wheel   1184280 Aug 23 17:35 dhcpd.log
                                      -rw-------  1 root wheel  33500421 Aug 23 17:36 nginx.log
                                      -rw-------  1 root wheel  74443513 Aug 23 17:36 filter.log
                                      -rw-------  1 root wheel 551582783 Aug 23 17:36 ppp.log
                                      -rw-------  1 root wheel 551721292 Aug 23 17:36 system.log
                                      
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        stephenw10 Netgate Administrator
                                        last edited by Aug 23, 2024, 5:03 PM

                                        Mmm, I would certainly expect that. The default log size is 512KB. Did you change it to something much larger?

                                        Having said that perhaps Openreach finally realised there was a problem and fixed it. Whenever I've had issues it was always a failing line card upstream.

                                        D 1 Reply Last reply Aug 23, 2024, 7:44 PM Reply Quote 0
                                        • D
                                          diyhouse @stephenw10
                                          last edited by diyhouse Aug 23, 2024, 7:47 PM Aug 23, 2024, 7:44 PM

                                          @stephenw10 said in WAN periodically Rebooting:

                                          Did you change it to something much larger?

                                          Yes,.. to 2000000000 bytes... like 2gig..
                                          I have now dropped it a power of 10,.. to 200,000,000 bytes...

                                          I to was wondering if BT had got wise to my troubles and changed something upstream of my modem...
                                          But we shall see..

                                          I will leave the high logging in place for now... ( lets see if I can get to 10days...) then I will revert back,.. and see what happens.

                                          Funny,.. things may have changed since I contacted BT,.. for account and passwd,. maybe an issue was raised,.. and something changed,.. but who knows..
                                          I cat 'top' in a shell.. and see it is busy compressing,..

                                          -rw-------  1 root wheel     4599 Aug 17 13:06 ppp.log.1.bz2
                                          -rw-------  1 root wheel   635473 Aug 23 20:46 ppp.log
                                          -rw-------  1 root wheel 16623975 Aug 23 20:36 ppp.log.0.bz2
                                          
                                          
                                          D 1 Reply Last reply Aug 25, 2024, 8:26 AM Reply Quote 1
                                          62 out of 184
                                          • First post
                                            62/184
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.