Navigation

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

    Fresh installed pfsense 2.2 - captive portal crashed.

    Captive Portal
    6
    13
    2702
    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.
    • V
      valshare last edited by

      Hello,

      i want to migrate my pfsense 2.1 32bit to 2.2 64bit. I installed a fresh 2.2 and configured the new server without restore the config.xml. The only thing i have done, is setup a HA from the Old machine to the new server to migrate the vouchers. Now if i start the the new server, i get the follow crash repot.

      Crash report begins.  Anonymous machine information:
      
      amd64
      10.1-RELEASE-p4
      FreeBSD 10.1-RELEASE-p4 #0 36d7dec(releng/10.1)-dirty: Thu Jan 22 15:12:35 CST 2015     root@pfsense-22-amd64-builder:/usr/obj.amd64/usr/pfSensesrc/src/sys/pfSense_SMP.10
      
      Crash report details:
      
      PHP Errors:
      [29-Jan-2015 12:25:02 Europe/Berlin] PHP Strict Standards:  Non-static method PEAR::isError() should not be called statically in /etc/inc/captiveportal.inc on line 2458
      [29-Jan-2015 12:25:08 Europe/Berlin] PHP Strict Standards:  Non-static method PEAR::isError() should not be called statically in /etc/inc/captiveportal.inc on line 2471
      [29-Jan-2015 12:25:09 Europe/Berlin] PHP Strict Standards:  Non-static method PEAR::isError() should not be called statically in /etc/inc/captiveportal.inc on line 2458
      [29-Jan-2015 12:25:41 Europe/Berlin] PHP Strict Standards:  Non-static method PEAR::isError() should not be called statically in /etc/inc/captiveportal.inc on line 2471
      
      Filename: /var/crash/minfree
      2048
      
      

      Anyone can help to fix this problem?

      Regards, valle

      1 Reply Last reply Reply Quote 0
      • marcelloc
        marcelloc last edited by

        Can you try instead of sync vouchers, install a clean 2.2 and restore only captive portal vouchers under Diagnostics-> Backup/restore -> Restore area: ?

        1 Reply Last reply Reply Quote 0
        • V
          valshare last edited by

          i will try at weekend and report back.

          1 Reply Last reply Reply Quote 0
          • C
            cmb last edited by

            Does it work fine? That crash report isn't actually a crash, and might be cosmetic-only. Could you send me a backup of your config that's doing that?

            1 Reply Last reply Reply Quote 0
            • V
              valshare last edited by

              @marcelloc:

              Can you try instead of sync vouchers, install a clean 2.2 and restore only captive portal vouchers under Diagnostics-> Backup/restore -> Restore area: ?

              Imported only the captive portal and vouchers on a clean install. Same problem.

              1 Reply Last reply Reply Quote 0
              • V
                valshare last edited by

                i found out, if i install the vhost package in combination with the captive portal, the error occurs.

                1 Reply Last reply Reply Quote 0
                • Gertjan
                  Gertjan last edited by

                  @valshare:

                  i found out, if i install the vhost package in combination with the captive portal, the error occurs.

                  Ok, now I get it.

                  [29-Jan-2015 12:25:02 Europe/Berlin] PHP Strict Standards:  Non-static method PEAR::isError() should not be called statically in /etc/inc/captiveportal.inc on line 2458

                  The pfSense 2.2 file version of '/etc/inc/captiveportal.inc' has less then 2270 lines (i added some personnal stuff, so its even less).
                  The package 'vhost' is "messing around" with '/etc/inc/captiveportal.inc' ?!?

                  1 Reply Last reply Reply Quote 0
                  • C
                    cmb last edited by

                    @Gertjan:

                    The pfSense 2.2 file version of '/etc/inc/captiveportal.inc' has less then 2270 lines (i added some personnal stuff, so its even less).
                    The package 'vhost' is "messing around" with '/etc/inc/captiveportal.inc' ?!?

                    Indeed, those line numbers are telling - that's obviously a non-default captiveportal.inc as the stock one only has 2241 lines. That package doesn't touch anything to do with captive portal, and I can't think of any package at all that touches captiveportal.inc (and some grepping of the packages repo doesn't find anything).

                    OP's replaced or otherwise modified captiveportal.inc and that's the real source of the issue.

                    1 Reply Last reply Reply Quote 0
                    • D
                      dukecount last edited by

                      Hi,

                      I encountered a similar problem in a new installation of pfSense 2.2.2 but it seems that the captive portal works the same, following the report of the error that I proceeded to send

                      
                      Crash report begins.  Anonymous machine information:
                      
                      i386
                      10.1-RELEASE-p9
                      FreeBSD 10.1-RELEASE-p9 #0 57b23e7(releng/10.1)-dirty: Mon Apr 13 20:33:39 CDT 2015     root@pfs22-i386-builder:/usr/obj.i386/usr/pfSensesrc/src/sys/pfSense_SMP.10
                      
                      Crash report details:
                      
                      PHP Errors:
                      [22-Apr-2015 08:59:37 Europe/Rome] PHP Strict Standards:  Non-static method PEAR::isError() should not be called statically in /etc/inc/captiveportal.inc on line 2216
                      [22-Apr-2015 08:59:43 Europe/Rome] PHP Strict Standards:  Non-static method PEAR::isError() should not be called statically in /etc/inc/captiveportal.inc on line 2229
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • jimp
                        jimp Rebel Alliance Developer Netgate last edited by

                        Check for squid3 – the squid3 package modifies captiveportal.inc in a particularly dangerous way, and it could have corrupted the file.

                        1 Reply Last reply Reply Quote 0
                        • D
                          dukecount last edited by

                          squid3 package is not installed, the only additional packages installed are freeradius2, syslog-ng and vhosts.
                          They are used for authentication and user registration via SMS with an application hosted in a virtualhost on vHosts. syslog-ng is used to log the Internet traffic directly to local disk in /var/syslog-ng/default.log with the ability to rotate

                          1 Reply Last reply Reply Quote 0
                          • Gertjan
                            Gertjan last edited by

                            Anyway, the proof is: your /etc/inc/captiveportal.inc has been modified by 'something'.
                            A "clean, from the selves" pfSEnse install won't do that. Auto-modifying code is bad …. really bad.

                            Check your packages, find the guilty one, and remove it.

                            1 Reply Last reply Reply Quote 0
                            • D
                              dukecount last edited by

                              I removed the three installed packages ( freeradius2 , syslog-ng and vHosts ) and the error is gone.
                              Then I installed the packages one at a time and restarted pfSense, after I installed the package vHosts (v. 0.7.5) the error reappeared.

                              
                              pfSense has detected a crash report or programming bug. Click here for more information.
                              ...
                              Crash report details:
                              PHP Errors:
                              [24-Apr-2015 16:21:22 Europe/Rome] PHP Strict Standards:  Non-static method PEAR::isError() should not be called statically in /etc/inc/captiveportal.inc on line 2216
                              [24-Apr-2015 16:21:28 Europe/Rome] PHP Strict Standards:  Non-static method PEAR::isError() should not be called statically in /etc/inc/captiveportal.inc on line 2229
                              
                              

                              Follow the lines of code in the file captiveportal.inc ( from 2216 to 2236 ) where the error occurs

                              
                              2216    if (PEAR::isError($racct->start())) {
                              		$retvalue['acct_val'] = 1;
                              		 $retvalue['error'] = $racct->getMessage();
                              
                              		// If we encounter an error immediately stop this function and go back
                              		$racct->close();
                              		return $retvalue;
                              	        }
                              	        // Send request
                              	        $result = $racct->send();
                              	        // Evaluation of the response
                              	        // 5 -> Accounting-Response
                              	        // See RFC2866 for this.
                              2229	if (PEAR::isError($result)) {
                              		    $retvalue['acct_val'] = 1;
                              		    $retvalue['error'] = $result->getMessage();
                              	        } else if ($result === true) {
                              		    $retvalue['acct_val'] = 5 ;
                              	        } else {
                              		    $retvalue['acct_val'] = 1 ;
                              	       }
                              
                              

                              I think the package VHosts ver. 0.7.5 must be updated to work with the new version of PHP 5.5.23

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              Products

                              • Platform Overview
                              • TNSR
                              • pfSense Plus
                              • Appliances

                              Services

                              • Training
                              • Professional Services

                              Support

                              • Subscription Plans
                              • Contact Support
                              • Product Lifecycle
                              • Documentation

                              News

                              • Media Coverage
                              • Press
                              • Events

                              Resources

                              • Blog
                              • FAQ
                              • Find a Partner
                              • Resource Library
                              • Security Information

                              Company

                              • About Us
                              • Careers
                              • Partners
                              • Contact Us
                              • Legal
                              Our Mission

                              We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                              Subscribe to our Newsletter

                              Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                              © 2021 Rubicon Communications, LLC | Privacy Policy