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

Update to 1.5.10

Scheduled Pinned Locked Moved Solved
FOG Problems
4
10
930
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.
  • B
    bballmcoe
    last edited by Sebastian Roth Oct 21, 2023, 7:29 AM Oct 19, 2023, 6:35 PM

    I have looked over the previous similar posts but have not found my solution as of yet.
    CentOS 7
    Fog 1.5.9
    Using Git
    When I run installfog.sh I get the following:

    installfog.sh: line 399: syntax error near unexpected token `>'
    installfog.sh: line 399: `    exec &> >(tee -a "$workingdir/error_logs/foginstall.log")'
    

    /error_logs/fog_error_1.5.10.log:

    /usr/bin/lsb_release
    /usr/bin/systemctl
    systemd
    ln: failed to create symbolic link '/usr/lib/systemd/system/mysql.service': File exists
    ln: failed to create symbolic link '/etc/systemd/system/mysql.service': File exists
    

    I’m stuck here.

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Sebastian Roth Oct 20, 2023, 4:17 AM Oct 20, 2023, 10:16 AM

      @bballmcoe This part of the installer script has not changed in a long time as far as I know. Maybe the shell used is causing this?! Please post the output of the following commands:

      ps -p $$
      echo $0
      echo $SHELL
      

      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

      B 1 Reply Last reply Oct 20, 2023, 4:36 PM Reply Quote 0
      • B
        bballmcoe @Sebastian Roth
        last edited by Sebastian Roth Oct 21, 2023, 7:29 AM Oct 20, 2023, 4:36 PM

        @Sebastian-Roth said in Update to 1.5.10:

        As Requested:

        [root@fog bin]# ps -p $$
            PID TTY          TIME CMD
         102699 pts/0    00:00:00 bash
        [root@fog bin]# echo $0
        -bash
        [root@fog bin]# echo $SHELL
        /bin/bash
        
        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Oct 21, 2023, 1:43 PM

          @bballmcoe said:

          When I run installfog.sh I get the following:

          Can you please post the exact command(s) you use to hit this error?

          Searching the web for the mentioned error brings me to the same point. Looks like the script is not being run with bash.

          As well check out if this is really a bash shell or something else. Run the following commands and post output here:

          /bin/bash --version
          ls -al /bin/bash
          which bash
          ls -al $(which bash)
          

          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

          B 2 Replies Last reply Oct 23, 2023, 2:17 PM Reply Quote 0
          • B
            bballmcoe @Sebastian Roth
            last edited by Oct 23, 2023, 2:17 PM

            @Sebastian-Roth

            [root@fog bin]# sh installfog.sh
            Installing LSB_Release as needed

            • Attempting to get release information…Done
              installfog.sh: line 399: syntax error near unexpected token >' installfog.sh: line 399: exec &> >(tee -a “$workingdir/error_logs/foginstall.log”)’
              [root@fog bin]#
            R 1 Reply Last reply Oct 23, 2023, 4:41 PM Reply Quote 0
            • B
              bballmcoe @Sebastian Roth
              last edited by Oct 23, 2023, 2:22 PM

              @Sebastian-Roth

              /bin/bash --version
              GNU bash, version 4.4.20(1)-release (x86_64-redhat-linux-gnu)

              ]# ls -al /bin/bash
              -rwxr-xr-x. 1 root root 1150560 Apr 7 2022 /bin/bash

              which bash
              /usr/bin/bash

              ls -al $(which bash)
              -rwxr-xr-x. 1 root root 1150560 Apr 7 2022 /usr/bin/bash

              1 Reply Last reply Reply Quote 0
              • R
                rodluz Developer @bballmcoe
                last edited by rodluz Oct 23, 2023, 10:46 AM Oct 23, 2023, 4:41 PM

                @bballmcoe I haven’t used CentOS 7 in a while so unless this is a CentOS quirk that I don’t remember, you are running the install script using shell not bash.
                Try running the installer like this: ./installfog.sh or bash installfog.sh

                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

                B 1 Reply Last reply Oct 23, 2023, 10:43 PM Reply Quote 1
                • B
                  bballmcoe @rodluz
                  last edited by Oct 23, 2023, 10:43 PM

                  @rodluz

                  Ding, ding, ding, we have a winner! Looks like that did it. Thanks everyone.

                  T 1 Reply Last reply Oct 24, 2023, 9:53 AM Reply Quote 0
                  • T
                    Tom Elliott @bballmcoe
                    last edited by Oct 24, 2023, 9:53 AM

                    @bballmcoe Glad this is fixed and working, but can I ask why you were running the command with sh installfog.sh?

                    I’m not aware anywhere in documentation that we tell people to do that.

                    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

                    B 1 Reply Last reply Oct 24, 2023, 2:08 PM Reply Quote 0
                    • B
                      bballmcoe @Tom Elliott
                      last edited by Oct 24, 2023, 2:08 PM

                      @Tom-Elliott
                      Habit, simply habit. I looked back at the wiki documentation and it definitely does not say to use sh. I do apologize for the confusion and hopefully this helps someone in the future.

                      1 Reply Last reply Reply Quote 0
                      • [[undefined-on, S Sebastian Roth, Oct 25, 2023, 5:28 PM]]
                      • 1 / 1
                      1 / 1
                      • First post
                        7/10
                        Last post

                      147

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project