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

Parsing error in /etc/inc/system.inc

Scheduled Pinned Locked Moved CE 2.6.0 Development Snapshots (Retired)
24 Posts 7 Posters 2.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.
  • S
    Sergei_Shablovsky @jimp
    last edited by Aug 7, 2021, 7:28 PM

    @jimp said in Parsing error in /etc/system.ini:

    There was a syntax error in a commit yesterday, so if your system showed that (it would be in system.inc, not .ini)
    Sorry, this was my misstype, of coarse ‘system.inc’

    @jimp said in Parsing error in /etc/system.ini:

    then it must have been updated to a current snapshot or otherwise pulled in code from the Git repository.

    Could a You be so please explain here in details (to me and others who may see error this kind in a future) how to make this from local VGA Console or just point to certain part in Documentation (for example in “Troubleshooting” section).

    Thank You and have a nice day!

    —
    CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
    Help Ukraine to resist, save civilians people’s lives !
    (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

    1 Reply Last reply Reply Quote 0
    • B
      bimmerdriver @jimp
      last edited by Aug 7, 2021, 8:34 PM

      @jimp Is there a way to recover the system from this error from the console? I would rather not reinstall if I don't have to.

      S N 2 Replies Last reply Aug 7, 2021, 9:47 PM Reply Quote 0
      • S
        Sergei_Shablovsky @bimmerdriver
        last edited by Sergei_Shablovsky Aug 7, 2021, 9:49 PM Aug 7, 2021, 9:47 PM

        @bimmerdriver said in Parsing error in /etc/system.ini:

        @jimp Is there a way to recover the system from this error from the console? I would rather not reinstall if I don't have to.

        Let’s note that logging as “admin” / “your-psw-to-web-GUI” bring You to pfSense Console Menu, but when You try to update thru item 13 “Update from console”, Your not able to doing this because pfSense not see any NIC in FreeBSD system.

        —
        CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
        Help Ukraine to resist, save civilians people’s lives !
        (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

        1 Reply Last reply Reply Quote 0
        • N
          NRgia @bimmerdriver
          last edited by NRgia Aug 7, 2021, 10:19 PM Aug 7, 2021, 10:15 PM

          @bimmerdriver

          Yes there is.
          You must edit the file with vi, vim or nano.
          Jump to the line in the error.
          There you will notice that after the last word in the code, before the closing } there is no semicolon ; and it must be. Please add one.
          After that save the file and exit.
          You can reboot the system by typing reboot.
          After the restart you will notice that another line is missing the semicolon, do the same for that line also, reboot and all will be well.

          I had the same issue, and solved it this way.

          I would like to point out that this issue happened a few weeks back, but for another file. I think a syntax check can be implemented in the pipeline, this is getting frustrating when you are away from the pfSense appliance.

          S B 2 Replies Last reply Aug 8, 2021, 12:19 AM Reply Quote 1
          • R
            rosch
            last edited by Aug 7, 2021, 11:17 PM

            Thanks for this.
            Mine worked just fine after rebooting there was no 2nd file that needed fixing.

            1 Reply Last reply Reply Quote 0
            • S
              Sergei_Shablovsky @NRgia
              last edited by Sergei_Shablovsky Aug 10, 2021, 8:49 PM Aug 8, 2021, 12:19 AM

              @nrgia said in Parsing error in /etc/system.inc:

              @bimmerdriver

              Yes there is.
              You must edit the file with vi, vim or nano.
              For someone who newbies in pfSense:

              1. logging as “admin” / “your-psw-to-web-GUI” bring You to pfSense Console Menu
              2. Choose “Shell” item from Console Menu
              3. Strat vi by type “vi” in Command Line (You have no vim/nano on pure pfSense installation, this link may help a You if You have no experience with vi https://staff.washington.edu/rells/R110/)

              Jump to the line in the error.
              There you will notice that after the last word in the code, before the closing } there is no semicolon ; and it must be. Please add one.
              After that save the file and exit.

              This “command” would be “return false” and You need to correct it to “return false;”

              You can reboot the system by typing reboot.
              After the restart you will notice that another line is missing the semicolon, do the same for that line also, reboot and all will be well.

              I had the same issue, and solved it this way.

              I would like to point out that this issue happened a few weeks back, but for another file. I think a syntax check can be implemented in the pipeline, this is getting frustrating when you are away from the pfSense appliance.

              All modern code editors and IDE system already have this checking, on macOS that are small and very useful app Espresso (have a lot plugins for different OS and Languages), Coda 2, and some “heavy” IDE app from a Jet Brain Systems like PhpStorm, AppCode, WebStorm, Apple Xcode.
              And of coarse, better to using GIT (on macOS that would be perfect Tower GIT with Kaleidoscope companion) to avoid any mistakes and mare development easy, predictable and error free.

              May be coding pipeline in DevTeam are outdated .... :)

              —
              CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
              Help Ukraine to resist, save civilians people’s lives !
              (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

              N B 2 Replies Last reply Aug 8, 2021, 8:09 AM Reply Quote 0
              • N
                NRgia @Sergei_Shablovsky
                last edited by NRgia Aug 8, 2021, 8:25 AM Aug 8, 2021, 8:09 AM

                @sergei_shablovsky said in Parsing error in /etc/inc/system.inc:

                All modern code editors and IDE system already have this checking, on macOS that are small and very useful app Espresso (have a lot plugins for different OS and Languages), Coda 2, and some “heavy” IDE app from a Jet Brain Systems like PhpStorm, AppCode, WebStorm, Apple Xcode.
                And of coarse, better to using GIT (on macOS that would be perfect Tower GIT with Kaleidoscope companion) to avoid any mistakes and mare development easy, predictable and error free.

                May be coding pipeline in DevTeam are outdated .... :)

                It is pretty obvious that not using a proper IDE is the culprit here. But then again just suggesting to a DevTeam a list of proper ones, will not change their ways of working. They can have restrictions on what they use, or a licensing policy..., so they must work with what they are allowed or have access to. That's why I suggested some unit tests to run in the pipeline for the syntax check, outdated as it is.

                Just to enforce what am I saying you can have a look here:
                https://forum.netgate.com/topic/165146/2-6-0-20210715-devel-12-n226655-5bff64636ea-certs-inc-bug

                It happened before just a few weeks back, so this must be solved somehow.

                S 2 Replies Last reply Aug 10, 2021, 8:51 PM Reply Quote 1
                • B
                  bmeeks
                  last edited by Aug 8, 2021, 11:17 PM

                  It would be pretty easy to write a simple script to syntax check the PHP files. This is the command to run:

                  php -l <filename>
                  

                  That's a lowercase L (so "l") in the command. It checks the given file for correct PHP syntax, and prints out any errors.

                  I use this command pretty much everytime I make an edit to a PHP file in the Snort or Suricata packages if I'm not immediately running the new PHP file on one my test VMs.

                  1 Reply Last reply Reply Quote 2
                  • B
                    bimmerdriver @NRgia
                    last edited by Aug 9, 2021, 5:01 PM

                    @nrgia said in Parsing error in /etc/inc/system.inc:

                    @bimmerdriver

                    Yes there is.
                    You must edit the file with vi, vim or nano.
                    Jump to the line in the error.
                    There you will notice that after the last word in the code, before the closing } there is no semicolon ; and it must be. Please add one.
                    After that save the file and exit.
                    You can reboot the system by typing reboot.
                    After the restart you will notice that another line is missing the semicolon, do the same for that line also, reboot and all will be well.

                    I had the same issue, and solved it this way.

                    I would like to point out that this issue happened a few weeks back, but for another file. I think a syntax check can be implemented in the pipeline, this is getting frustrating when you are away from the pfSense appliance.

                    Thank you for the help. I had to fix two missing semi-colons. There really is no excuse for this happening. I hope the development process will be improved to prevent this from happening.

                    1 Reply Last reply Reply Quote 0
                    • B
                      bimmerdriver @Sergei_Shablovsky
                      last edited by Aug 9, 2021, 5:03 PM

                      @sergei_shablovsky said in Parsing error in /etc/inc/system.inc:

                      @nrgia said in Parsing error in /etc/system.inc:

                      @bimmerdriver

                      Yes there is.
                      You must edit the file with vi, vim or nano.
                      For someone who newbies in pfSense:

                      1. logging as “admin” / “your-psw-to-web-GUI” bring You to pfSense Console Menu
                      2. Choose “Shell” item from Console Menu
                      3. Strat vi by type “vi” in Command Line (You have no vim/nano on pure pfSense installation, this link may help a You if You have no experience with vi https://staff.washington.edu/rells/R110/)

                      Jump to the line in the error.
                      There you will notice that after the last word in the code, before the closing } there is no semicolon ; and it must be. Please add one.
                      After that save the file and exit.

                      This “command” would be “return false” and You need to correct it to “return false;”

                      You can reboot the system by typing reboot.
                      After the restart you will notice that another line is missing the semicolon, do the same for that line also, reboot and all will be well.

                      I had the same issue, and solved it this way.

                      I would like to point out that this issue happened a few weeks back, but for another file. I think a syntax check can be implemented in the pipeline, this is getting frustrating when you are away from the pfSense appliance.

                      All modern code editors and IDE system already have this checking, on macOS that are small and very useful app Espresso (have a lot plugins for different OS and Languages), Coda 2, and some “heavy” IDE app from a Jet Brain Systems like PhpStorm, AppCode, WebStorm, Apple Xcode.
                      And of coarse, better to using GIT (on macOS that would be perfect Tower GIT with Kaleidoscope companion) to avoid any mistakes and mare development easy, predictable and error free.

                      May be coding pipeline in DevTeam are outdated .... :)

                      Thank you for the link to the vi web page. I had forgotten how much I dislike vi. Now I remember it again.

                      G 1 Reply Last reply Aug 10, 2021, 10:09 AM Reply Quote 0
                      • G
                        Gertjan @bimmerdriver
                        last edited by Gertjan Aug 10, 2021, 10:09 AM Aug 10, 2021, 10:09 AM

                        @bimmerdriver said in Parsing error in /etc/inc/system.inc:

                        forgotten how much I dislike vi.

                        pkg install nano
                        

                        and you will not be remembered any more that you have forgotten it.

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

                        S 1 Reply Last reply Aug 10, 2021, 9:09 PM Reply Quote 2
                        • S
                          Sergei_Shablovsky @NRgia
                          last edited by Aug 10, 2021, 8:51 PM

                          @nrgia said in Parsing error in /etc/inc/system.inc:

                          @sergei_shablovsky said in Parsing error in /etc/inc/system.inc:

                          All modern code editors and IDE system already have this checking, on macOS that are small and very useful app Espresso (have a lot plugins for different OS and Languages), Coda 2, and some “heavy” IDE app from a Jet Brain Systems like PhpStorm, AppCode, WebStorm, Apple Xcode.
                          And of coarse, better to using GIT (on macOS that would be perfect Tower GIT with Kaleidoscope companion) to avoid any mistakes and mare development easy, predictable and error free.

                          May be coding pipeline in DevTeam are outdated .... :)

                          It is pretty obvious that not using a proper IDE is the culprit here. But then again just suggesting to a DevTeam a list of proper ones, will not change their ways of working. They can have restrictions on what they use, or a licensing policy..., so they must work with what they are allowed or have access to. That's why I suggested some unit tests to run in the pipeline for the syntax check, outdated as it is.

                          Agree.

                          —
                          CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                          Help Ukraine to resist, save civilians people’s lives !
                          (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                          B 1 Reply Last reply Aug 10, 2021, 10:54 PM Reply Quote 0
                          • S
                            Sergei_Shablovsky @Gertjan
                            last edited by Aug 10, 2021, 9:09 PM

                            @gertjan said in Parsing error in /etc/inc/system.inc:

                            @bimmerdriver said in Parsing error in /etc/inc/system.inc:

                            forgotten how much I dislike vi.

                            pkg install nano
                            

                            and you will not be remembered any more that you have forgotten it.

                            This is another one example (previous are about the set different but both high resolution to local-connected VGA and COM console) of what I am write: WHY to be so sticky to VERY OLD standards, when most of all already changed?

                            —
                            CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                            Help Ukraine to resist, save civilians people’s lives !
                            (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                            1 Reply Last reply Reply Quote 0
                            • S
                              Sergei_Shablovsky @NRgia
                              last edited by Sergei_Shablovsky Aug 10, 2021, 9:14 PM Aug 10, 2021, 9:12 PM

                              @nrgia said in Parsing error in /etc/inc/system.inc:

                              @sergei_shablovsky said in Parsing error in /etc/inc/system.inc:

                              All modern code editors and IDE system already have this checking, on macOS that are small and very useful app Espresso (have a lot plugins for different OS and Languages), Coda 2, and some “heavy” IDE app from a Jet Brain Systems like PhpStorm, AppCode, WebStorm, Apple Xcode.
                              And of coarse, better to using GIT (on macOS that would be perfect Tower GIT with Kaleidoscope companion) to avoid any mistakes and mare development easy, predictable and error free.

                              May be coding pipeline in DevTeam are outdated .... :)

                              It is pretty obvious that not using a proper IDE is the culprit here. But then again just suggesting to a DevTeam a list of proper ones, will not change their ways of working. They can have restrictions on what they use, or a licensing policy...,

                              If this needed to 70-80%+ of users that use the pfSense WHY NOT incorporate it and let this millions of peoples wasting the time and (and worst of it) making mistakes and have the problem and bad User Experience? (rhetoric question)

                              —
                              CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                              Help Ukraine to resist, save civilians people’s lives !
                              (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                              1 Reply Last reply Reply Quote 0
                              • B
                                bimmerdriver @Sergei_Shablovsky
                                last edited by Aug 10, 2021, 10:54 PM

                                @sergei_shablovsky said in Parsing error in /etc/inc/system.inc:

                                @nrgia said in Parsing error in /etc/inc/system.inc:

                                @sergei_shablovsky said in Parsing error in /etc/inc/system.inc:

                                All modern code editors and IDE system already have this checking, on macOS that are small and very useful app Espresso (have a lot plugins for different OS and Languages), Coda 2, and some “heavy” IDE app from a Jet Brain Systems like PhpStorm, AppCode, WebStorm, Apple Xcode.
                                And of coarse, better to using GIT (on macOS that would be perfect Tower GIT with Kaleidoscope companion) to avoid any mistakes and mare development easy, predictable and error free.

                                May be coding pipeline in DevTeam are outdated .... :)

                                It is pretty obvious that not using a proper IDE is the culprit here. But then again just suggesting to a DevTeam a list of proper ones, will not change their ways of working. They can have restrictions on what they use, or a licensing policy..., so they must work with what they are allowed or have access to. That's why I suggested some unit tests to run in the pipeline for the syntax check, outdated as it is.

                                Agree.

                                Regardless about what IDE is used, ensuring the system boots up properly is a fundamental test that must be passed before a new build is made available. This is not the first time that the system has been broken at a low level, requiring reinstallation or manual editing of code. This should not happen.

                                N 1 Reply Last reply Aug 11, 2021, 2:24 PM Reply Quote 1
                                • N
                                  NRgia @bimmerdriver
                                  last edited by Aug 11, 2021, 2:24 PM

                                  @bimmerdriver @sergei_shablovsky

                                  All that all of you pointed out is true, if someone commits a code with an incorrect syntax (skipping the IDE checks) the build must fail.
                                  All of us reached the same conclusion I think, there are no controls in place that must prevent a build process to complete if a part of the code contains incorrect syntax. (and much more).

                                  G 1 Reply Last reply Aug 12, 2021, 2:59 PM Reply Quote 0
                                  • G
                                    Gertjan @NRgia
                                    last edited by Gertjan Aug 12, 2021, 3:00 PM Aug 12, 2021, 2:59 PM

                                    I do not want to argue with all that has been said above.
                                    I even tend to say "yeah, all true".

                                    Still, I like to throw in some more words.

                                    Snapshots are made public for a reason.
                                    Those who made the snapshots public, wrote this : https://www.pfsense.org/snapshots/ and the message over there was written to the ones that made the snapshots available.
                                    Everybody is free to interpret that message as he wants, but what the author wrote should be taken in consideration.

                                    Or should I be old fashioned and state : all what counts is what the author said, what we thinks is ok, but has no meaning.

                                    I do very well understand that a snapshot could contain a solution to a problem that exist in released version.
                                    Still, that reasoning comes in second.
                                    First is ans stays "These builds are for testing purposes only.".

                                    So, sorry for the easy joke, but "thanks for finding a missing semi colon 👍 ". That's what using (== testing in this case, remember) snapshots is all about.
                                    Very often, the issues found a a snapshot are far worse.

                                    Still, snapshots can be used.
                                    In that case : before upgrading, make sure you have a "image" copy of the entire installed disk / partitions. If a newer snapshots fails, you press the button to go back to the version the day before.
                                    Btw : you won't find this button in pfSense, the most easy way to use this button : use a VM that can snapshot your snapshot.

                                    Again : peace, guys, I fully agree : there should be no coding errors like this.
                                    ( but as long as the development is partially driven by humans we will run into issues like this )

                                    I didn't even know this existed :
                                    php -l <filename>

                                    Keeping mind that PHP files are not compiled or build or something like that.
                                    The files on github are exact copies of what devs have on their dev system.
                                    Or, maybe possible ( ?) the merging of "pull requests" went wrong on Github ?
                                    Anyway, most of the snapshots issues are not syntax related, but more classic coding errors that execute just fine, and produce 'none sense' output.

                                    Btw : as usual : I'm a user like all of you. And all of this is my personal opinion.

                                    edit : Snapshots were being called "the bleading edge" in the past.
                                    I guess that still stands.

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

                                    B S N 3 Replies Last reply Aug 13, 2021, 8:45 PM Reply Quote 1
                                    • B
                                      bimmerdriver @Gertjan
                                      last edited by bimmerdriver Aug 13, 2021, 8:45 PM Aug 13, 2021, 8:45 PM

                                      @gertjan I hear what you are saying, but I still think if a build is made available as an update, it should pass a basic sniff test. It should boot and it should start up far enough that it can be updated. That way, even if it's broken, it's still possible to salvage it. If someone is testing individual commits that haven't been merged into a build, then all bets are off. It should be exceedingly rare that someone updates using the GUI and they break the system so badly that it doesn't boot or start up enough to be updated. At least in this recent case it was possible to hack it into working, but it should not happen that a system has to be reinstalled from scratch because of coding errors.

                                      1 Reply Last reply Reply Quote 1
                                      • S
                                        Sergei_Shablovsky @Gertjan
                                        last edited by Aug 13, 2021, 10:42 PM

                                        @gertjan This “syntax error” are smallest (but annoying) issue, because of “this build are for test purpose only”.

                                        But mostly important the fact that “if the mistakes of that level are happened so frequently, how may be errors on algorithm level, memory leakage etc, may be hides from our view”?

                                        —
                                        CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                                        Help Ukraine to resist, save civilians people’s lives !
                                        (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                                        G 1 Reply Last reply Aug 14, 2021, 8:05 AM Reply Quote 0
                                        • G
                                          Gertjan @Sergei_Shablovsky
                                          last edited by Gertjan Aug 14, 2021, 8:07 AM Aug 14, 2021, 8:05 AM

                                          @sergei_shablovsky said in Parsing error in /etc/inc/system.inc:

                                          “if the mistakes of that level are happened so frequently, how may be errors on algorithm level, memory leakage etc, may be hides from our view”?

                                          The one who answers that question will also find this one "What is the meaning of live ?".
                                          You really want to know why people make mistakes ? 😊

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

                                          1 Reply Last reply Reply Quote 0
                                          22 out of 24
                                          • First post
                                            22/24
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received