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

    2.3-i386-nanobsd: nginx not working: PANIC: unprotected error in call to Lua API

    Scheduled Pinned Locked Moved webGUI
    14 Posts 4 Posters 3.8k 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.
    • C
      cmb
      last edited by

      For now we disabled the LUA option in nginx in 2.3.1 so this won't happen. You can get the latest snapshot from snapshots.pfsense.org. Ancient CPUs have gotten a reprieve for a bit at least.

      @[NUT:

      link=topic=110030.msg616230#msg616230 date=1461508193]
      Sorry, but I found that remark very derogatory and offensive.

      C'mon.. it was a lighthearted joke.

      Your 15 year old VIA isn't capable of maxing out my connection speed (without even considering VPN, where it has no hope), I didn't scrap anything for no reason. Of course I'm running new hardware anyway as we dogfood all the hardware we sell.

      1 Reply Last reply Reply Quote 0
      • N
        NUT
        last edited by

        @cmb:

        For now we disabled the LUA option in nginx in 2.3.1 so this won't happen. You can get the latest snapshot from snapshots.pfsense.org. Ancient CPUs have gotten a reprieve for a bit at least.

        Great! (and I mean that in a positive way!) … but how to update to a snapshot on a running device without webgui? I've been searching the forums, but I can't find a definitive answer anywhere... ( Found it on the WiKi/FAQ: https://doc.pfsense.org/index.php/Upgrading_via_Shell_%28old%29 ) That doesn't work anymore :(

        @cmb:

        @[NUT:

        link=topic=110030.msg616230#msg616230 date=1461508193]
        Sorry, but I found that remark very derogatory and offensive.

        C'mon.. it was a lighthearted joke.

        Your 15 year old VIA isn't capable of maxing out my connection speed (without even considering VPN, where it has no hope), I didn't scrap anything for no reason. Of course I'm running new hardware anyway as we dogfood all the hardware we sell.

        It might be 15 years old technology, but if it works fine for me, why would I replace it? I'm sure the LUA api and it's inner workings can do just fine with a software workaround instead of relying on a hardware feature.

        I know time and tech is moving on, but if I where to have the software based solution and would have to conclude the board became too sluggish to run pfSense effectively, THAT would be the time I will be looking for replacement hardware to retire this one to the scrap pile…

        1 Reply Last reply Reply Quote 0
        • N
          NUT
          last edited by

          @[NUT:

          link=topic=110030.msg616788#msg616788 date=1461655781]
          Great! (and I mean that in a positive way!) … but how to update to a snapshot on a running device without webgui? I've been searching the forums, but I can't find a definitive answer anywhere... ( Found it on the WiKi/FAQ: https://doc.pfsense.org/index.php/Upgrading_via_Shell_%28old%29 ) That doesn't work anymore :(

          I've been poking around and I have to say the WIKI pages are quite outdated on the update/upgrade/backup/restore features… the rc scripts mentioned are nowhere to be found :o

          If anyone has the answer, I'd like to know: how to update from the RELEASE/Stable branch to the SNAPSHOTS branch without a functioning WebGUI?

          1 Reply Last reply Reply Quote 0
          • A
            allenb
            last edited by

            @cmb:

            Wasn't aware of that until it came up on the mailing list yesterday. Turns out we unknowingly deprecated CPUs lacking CMOV.
            https://lists.pfsense.org/pipermail/list/2016-April/009649.html

            Lua API requires it, and we may take advantage of that in nginx in the future. So that won't be going away.

            Outside the circa 2001 VIA chips that are now 15 years old, that only impacts mid-'90s era CPUs.

            Wanted to add my two cents since I've just encountered this as well. Got a similar unsupported CPU:

            CPU: VIA Ezra (797.98-MHz 686-class CPU)
              Origin="CentaurHauls"  Id=0x67a  Family=0x6  Model=0x7  Stepping=10
              Features=0x803035 <fpu,de,tsc,msr,mtrr,pge,mmx>AMD Features=0x80000000<3DNow!>

            It handles my ~90/12 connection just fine although interrupt processing CPU nears 100% at full download. I've actually upgraded my router recently but the old box still takes care of a few things.

            I'll look forward to trying out the 2.3.1 build as soon as I figure out how, or someone posts the solution.

            Thanks!
            Allen</fpu,de,tsc,msr,mtrr,pge,mmx>

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

              @allenb:

              I'll look forward to trying out the 2.3.1 build as soon as I figure out how, or someone posts the solution.

              Instructions here:
              https://forum.pfsense.org/index.php?topic=110157.msg613376

              1 Reply Last reply Reply Quote 0
              • N
                NUT
                last edited by

                @cmb:

                @allenb:

                I'll look forward to trying out the 2.3.1 build as soon as I figure out how, or someone posts the solution.

                Instructions here:
                https://forum.pfsense.org/index.php?topic=110157.msg613376

                But that's just the thing, that assumes you still have a working webgui…

                How to update without that?

                1 Reply Last reply Reply Quote 0
                • K
                  klou
                  last edited by

                  Rename /usr/local/sbin/nginx, copy a new one in it's place, make it executable.

                  Use at your own risk … but compiled from FreeBSD 10.3 i386.

                  
                  nginx version: nginx/1.8.1
                  built with OpenSSL 1.0.1s-freebsd  1 Mar 2016
                  TLS SNI support enabled
                  configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log --user=www --group=www --with-file-aio --with-ipv6 --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-scgi-temp-path=/var/tmp/nginx/scgi_temp --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp --http-log-path=/var/log/nginx-access.log --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_gunzip_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_stub_status_module --with-http_sub_module --with-pcre --with-http_spdy_module --with-mail --without-mail_imap_module --without-mail_pop3_module --without-mail_smtp_module --with-mail_ssl_module --with-http_ssl_module
                  
                  

                  nginx.tar.gz

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

                    @[NUT:

                    link=topic=110030.msg617312#msg617312 date=1461759375]
                    But that's just the thing, that assumes you still have a working webgui…

                    How to update without that?

                    In that case, run this:

                     ln -s /usr/local/share/pfSense/pkg/repos/pfSense-repo-devel.conf /usr/local/etc/pkg/repos/pfSense.conf 
                    
                    

                    Then upgrade via option 13 at the console.

                    1 Reply Last reply Reply Quote 0
                    • N
                      NUT
                      last edited by

                      @cmb:

                      @[NUT:

                      link=topic=110030.msg617312#msg617312 date=1461759375]
                      But that's just the thing, that assumes you still have a working webgui…

                      How to update without that?

                      In that case, run this:

                       ln -s /usr/local/share/pfSense/pkg/repos/pfSense-repo-devel.conf /usr/local/etc/pkg/repos/pfSense.conf 
                      
                      

                      Then upgrade via option 13 at the console.

                      Weird… I have it spitting out that it's on 2.4-DEVELOPMENT but nginx still crashes... I'm reinstalling all the packages (pkg upgrade -f) right now, maybe it skipped the update of nginx for some random reason ...

                      1 Reply Last reply Reply Quote 0
                      • N
                        NUT
                        last edited by

                        @klou:

                        Rename /usr/local/sbin/nginx, copy a new one in it's place, make it executable.

                        Use at your own risk … but compiled from FreeBSD 10.3 i386.

                        
                        nginx version: nginx/1.8.1
                        built with OpenSSL 1.0.1s-freebsd  1 Mar 2016
                        TLS SNI support enabled
                        configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log --user=www --group=www --with-file-aio --with-ipv6 --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-scgi-temp-path=/var/tmp/nginx/scgi_temp --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp --http-log-path=/var/log/nginx-access.log --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_gunzip_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_stub_status_module --with-http_sub_module --with-pcre --with-http_spdy_module --with-mail --without-mail_imap_module --without-mail_pop3_module --without-mail_smtp_module --with-mail_ssl_module --with-http_ssl_module
                        
                        

                        By using your binary I was able to get the WebGUI to work again, I went to system->update and could select the development branch and installed 2.3.1, which actually works fine now…

                        THANK YOU!

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