• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Syntax error

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    5
    7
    540
    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.
    • D
      dforce
      last edited by

      Hi,

      I just updated to version 1.5.7.103 and during capture I receive the syntax error on resizing ext partition. The syntax error is set on “awk : cmd line 1”.

      Is it possible to solve that problem ?

      Thanks
      Miguël

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

        More info
        “Check extfs volume --> Done”
        “/^Block[”
        “^ unterminated regexp”
        “error : Invalid regular expression : /^Block[/”
        "BEGIN {PRINTF “%.0f\n”, 2153085
        }"
        “syntax error”
        "BEGIN {PRINTF “%.0f\n”, 5/100
        }"
        “syntax error”
        “BEGIN {PRINTF “%.0f\n”, +}”
        “syntax error”
        “Init version 20200201”
        “Error calculating the new size of extfs (shrinkPartition)”**

        What went wrong and how can I solve this problem ?

        Thanks
        Miguël

        1 Reply Last reply Reply Quote 0
        • S
          shruggy
          last edited by shruggy

          @Quazz @Sebastian-Roth
          The two awk lines changed in this commit are underquoted:
          https://github.com/FOGProject/fos/commit/5f0e7b5f7d77986b0e0019dd23c875c6d40ec869

          Q 1 Reply Last reply Reply Quote 1
          • Tom ElliottT
            Tom Elliott
            last edited by

            I’ve made the required changes to quote the awk statements properly. This will take a while to build of course.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            D 1 Reply Last reply Reply Quote 1
            • Q
              Quazz Moderator @shruggy
              last edited by Quazz

              @shruggy Indeed, I didn’t catch that last time. Because we use square brackets now it needs to start the quote earlier. (though really it should always do that for clarity)

              1 Reply Last reply Reply Quote 0
              • D
                dforce @Tom Elliott
                last edited by

                @Tom-Elliott
                Will you post a message if the update will be ready ?

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by

                  @dforce New inits are build and you can simply re-run the installer to pull the new files. Tom also pushed some changes to dev-branch so you might want to do a git pull as well though it’s not needed. If you do so, don’t wonder about a decreased version number. Seems like we had that advanced a little too high at some point and Tom pulled it back now.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

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

                  171

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project