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

    FYI: crash during 2.2.3 upgrade

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    6 Posts 3 Posters 1.4k Views
    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.
    • rcfaR
      rcfa
      last edited by

      Got the following crash report during the upgrade, and of course the mandatory stale package installation lock:

      Crash report begins.  Anonymous machine information:
      
      amd64
      10.1-RELEASE-p13
      FreeBSD 10.1-RELEASE-p13 #0 c77d1b2(releng/10.1)-dirty: Tue Jun 23 17:00:47 CDT 2015     root@pfs22-amd64-builder:/usr/obj.amd64/usr/pfSensesrc/src/sys/pfSense_SMP.10
      
      Crash report details:
      
      PHP Errors:
      [25-Jun-2015 22:44:59 Etc/UTC] PHP Fatal error:  Cannot redeclare byte_convert() (previously declared in /usr/local/pkg/vhosts.inc:58) in /usr/local/pkg/backup.inc on line 43
      
      Filename: /var/crash/minfree
      2048
      
      

      Any clues as to what's causing this?

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Probably the broken vhosts package? I'd not that pfSense box is not place for webhosting.

        1 Reply Last reply Reply Quote 0
        • P
          phil.davis
          last edited by

          The "backup" and "vhosts" packages both have function byte_convert().
          "vhosts" checks to see if the function exists before defining it. backup does not. So it depends what order the ".inc" files are included as to whether the "Cannot redeclare" error happens.
          I will make a pull request on GitHub in a few minutes to fix it…

          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            https://github.com/pfsense/pfsense-packages/pull/890
            This backup.inc should fix it:
            https://github.com/phil-davis/pfsense-packages/blob/backup/config/backup/backup.inc
            This would have been a problem in all pfSense versions if you have Backup and Vhosts packages both installed.

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

            1 Reply Last reply Reply Quote 0
            • rcfaR
              rcfa
              last edited by

              @doktornotor:

              Probably the broken vhosts package? I'd not that pfSense box is not place for webhosting.

              If it's good enough for load balancing, web acceleration, squid based filtering proxy, pfSense web based GUI etc. then surely it can handle serving a low traffic static web site…
              If that's a security problem, then the more complex things mentioned before are even more of a problem.

              In other words: if there's a problem with pfSense serving static web pages I would have to ditch pfSense and look for an alternative solution to network security.

              1 Reply Last reply Reply Quote 0
              • rcfaR
                rcfa
                last edited by

                So, great, previous crash fixed, ran the "reinstall all packages" routine to test, but now I get this crash:

                Crash report begins.  Anonymous machine information:
                
                amd64
                10.1-RELEASE-p13
                FreeBSD 10.1-RELEASE-p13 #0 c77d1b2(releng/10.1)-dirty: Tue Jun 23 17:00:47 CDT 2015     root@pfs22-amd64-builder:/usr/obj.amd64/usr/pfSensesrc/src/sys/pfSense_SMP.10
                
                Crash report details:
                
                PHP Errors:
                [29-Jun-2015 12:35:33 Etc/UTC] PHP Fatal error:  require_once(): Failed opening required '/usr/local/pkg/shellcmd.inc' (include_path='.:/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg') in /etc/inc/filter.inc on line 3852
                
                

                Another thing that would be useful: if version updates wouldn't mess with the crontab file: after each update I have to re-add the 'MAILTO=""' line in order not to get swamped with notification e-mails; even better if we'd get notifications e-mails when there are package and/or OS updates ready. But those are different issues…

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