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

Syntax error in /etc/inc/utils.inc causes boot failure

Scheduled Pinned Locked Moved CE 2.6.0 Development Snapshots (Retired)
10 Posts 4 Posters 888 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.
  • ?
    A Former User
    last edited by Apr 29, 2021, 4:00 AM

    Missing trailing semi-colons are causing install boot failures. Caused by commit 1622230a5ad997... :

    "Parse error: syntax error, unexpected '$numrecords' (T_VARIABLE) in /etc/inc/util.inc on line 2036"

    Fix is below:

    diff --git a/src/etc/inc/util.inc b/src/etc/inc/util.inc
    index a3e3280abe..e0ea49d8d6 100644
    --- a/src/etc/inc/util.inc
    +++ b/src/etc/inc/util.inc
    @@ -2032,8 +2032,8 @@ function mac_format($clientmac) {
     }
    
    function resolve_retry($hostname, $protocol = 'inet') {
    -       $retries = 50
    -       $numrecords = 1
    +       $retries = 50;
    +       $numrecords = 1;
            $recresult = array();
            $returnres = array();
    
    
    1 Reply Last reply Reply Quote 0
    • ?
      A Former User
      last edited by Apr 29, 2021, 1:41 PM

      best not upgrade to Version 2.6.0.a.20210429.0100, next version should be ok.

      B 1 Reply Last reply Apr 29, 2021, 5:23 PM Reply Quote 0
      • B
        bimmerdriver @A Former User
        last edited by Apr 29, 2021, 5:23 PM

        @rschell I upgraded and have experienced the same problem. Do I have to edit the file to work around the problem or is there a way to upgrade to the next version?

        Kicking myself for not checkpointing the VM...

        ? 1 Reply Last reply Apr 29, 2021, 5:29 PM Reply Quote 0
        • ?
          A Former User @bimmerdriver
          last edited by Apr 29, 2021, 5:29 PM

          @bimmerdriver Only way I have found to recover is to go to a previous version prior to today. My first encounter yesterday did not go well, tried many 2.6 versions to no avail. The config got really missed up. Ended up restoring 2.4.5 from scratch, not a good experience (4 or 6 hours down the drain).

          B 1 Reply Last reply Apr 29, 2021, 5:34 PM Reply Quote 0
          • B
            bimmerdriver @A Former User
            last edited by Apr 29, 2021, 5:34 PM

            @rschell said in Syntax error in /etc/inc/utils.inc causes boot failure:

            @bimmerdriver Only way I have found to recover is to go to a previous version prior to today. My first encounter yesterday did not go well, tried many 2.6 versions to no avail. The config got really missed up. Ended up restoring 2.4.5 from scratch, not a good experience (4 or 6 hours down the drain).

            %&(#!

            ? 1 Reply Last reply Apr 29, 2021, 8:18 PM Reply Quote 0
            • Y
              YannTKO
              last edited by Apr 29, 2021, 6:06 PM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • ?
                A Former User @bimmerdriver
                last edited by Apr 29, 2021, 8:18 PM

                Version built on Thu Apr 29 12:02:36 EDT 2021 is safe to upgrade

                B 1 Reply Last reply Apr 29, 2021, 9:42 PM Reply Quote 1
                • B
                  bimmerdriver @A Former User
                  last edited by Apr 29, 2021, 9:42 PM

                  @rschell said in Syntax error in /etc/inc/utils.inc causes boot failure:

                  Version built on Thu Apr 29 12:02:36 EDT 2021 is safe to upgrade

                  Fortunately, I had a checkpoint from a broken 2.5.0 so I restored it. Now upgrading to the latest version.

                  B 1 Reply Last reply Apr 29, 2021, 10:38 PM Reply Quote 0
                  • B
                    bimmerdriver @bimmerdriver
                    last edited by Apr 29, 2021, 10:38 PM

                    @bimmerdriver said in Syntax error in /etc/inc/utils.inc causes boot failure:

                    @rschell said in Syntax error in /etc/inc/utils.inc causes boot failure:

                    Version built on Thu Apr 29 12:02:36 EDT 2021 is safe to upgrade

                    Fortunately, I had a checkpoint from a broken 2.5.0 so I restored it. Now upgrading to the latest version.

                    Upgrade was successful.

                    1 Reply Last reply Reply Quote 0
                    • S
                      swampkracker
                      last edited by swampkracker Apr 29, 2021, 11:58 PM Apr 29, 2021, 11:51 PM

                      My previous post seems to have disappeared. Anyway, I was able to recover by editing /etc/inc/utils.inc per @rschell. So far, everything seems to be working after a reboot.

                      Edit: the missing previous post was for this issue but different thread.

                      Edit: just installed the latest build and everything is still working. I think this crisis is over.

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