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

Moving to FOG 1.5.10

Scheduled Pinned Locked Moved Solved
FOG Problems
2
25
2.9k
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.
  • K
    Kureebow
    last edited by Mar 28, 2023, 12:10 PM

    Looking for a way to to possibly upgrade our FOG server to 1.5.10. I tried the git pull method and received the following response.

    [root@localhost fogproject]# git pull
    fatal: Not a git repository (or any parent up to mount point /home)
    Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
    [root@localhost fogproject]#

    I am truthfully not sure how we installed initially.

    If a fresh installation is what we need that is fine I just want to make sure I go about this in the most effective manner.

    Thanks for any assistance you can provide.

    We are currently running on CentOS 7 if that is needed.

    K 1 Reply Last reply Mar 28, 2023, 2:41 PM Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Mar 28, 2023, 1:27 PM

      @Kureebow Please run the commands ls -al and pwd in that directory to make sure we know what this is. Post output here.

      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
      • K
        Kureebow
        last edited by Mar 28, 2023, 1:39 PM

        Here are the results for ls - al

        [root@localhost fogproject]# ls -al
        total 16
        drwx------. 4 fogproject fogproject 146 Jun 3 2022 .
        drwxr-xr-x. 4 root root 37 Jun 3 2022 …
        -rw-r–r–. 1 fogproject fogproject 18 Mar 31 2020 .bash_logout
        -rw-r–r–. 1 fogproject fogproject 193 Mar 31 2020 .bash_profile
        -rw-r–r–. 1 fogproject fogproject 604 Jun 3 2022 .bashrc
        drwxr-xr-x. 3 fogproject fogproject 31 Jun 3 2022 .config
        drwxr-xr-x. 4 fogproject fogproject 51 Jun 3 2022 .mozilla
        -rwxr-xr-x. 1 fogproject fogproject 681 Jun 3 2022 warnfogaccount.sh
        [root@localhost fogproject]#

        These are the results for pwd

        [root@localhost fogproject]# pwd
        /home/fogproject

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Mar 28, 2023, 2:05 PM

          @Kureebow There is no FOG installer at all. Try this:

          cd /root
          ls -al fogproject
          

          If you see “No file or directory” then:

          git clone https://github.com/FOGproject/fogproject
          cd fogproject/bin
          ./installfog.sh
          

          BUT if you see files and directories listed from the first block of commands then post the output here and wait for our reply.

          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

          K 2 Replies Last reply Mar 28, 2023, 2:23 PM Reply Quote 0
          • K
            Kureebow @Sebastian Roth
            last edited by Mar 28, 2023, 2:23 PM

            @Sebastian-Roth So I am alittle bit confused as I know fog is installed on this server as we have used it to image for about 2 years now. If I follow your second string of commands what issues will I encounter with what is working now? Just so I can let my supervisors know what is happening.

            Thanks

            1 Reply Last reply Reply Quote 0
            • K
              Kureebow @Sebastian Roth
              last edited by Mar 28, 2023, 2:25 PM

              @Sebastian-Roth I did get a “No file or directory” return from the first command.

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Sebastian Roth Mar 28, 2023, 8:38 AM Mar 28, 2023, 2:38 PM

                @Kureebow Don’t get me wrong. I am not saying FOG is not installed. We just have not found the installer folder that was used. This is not a problem! You can freshly download the installer and go ahead. But on the other hand I find it wise to try and find out if there is an old one sitting somewhere.

                There is one more place often used you can check just to see if the FOG installer is there: ls -al /opt/fogproject

                The FOG installer usually takes care of everything and things will work fine after running it. BUT I cannot guarantee for that!! There is always a chance of anything breaking as we don’t know all the custom changes someone might have done to the system.

                In case anything goes wrong you just post here and we are happy to assist getting it fixed.

                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
                • K
                  Kureebow @Kureebow
                  last edited by Mar 28, 2023, 2:41 PM

                  @Kureebow From the GUI I can see a folder following the file path /home/admin/fogproject-1.5.9 if this is of any value.

                  The command you listed returned “No such file or directory”

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Mar 28, 2023, 2:45 PM

                    @Kureebow Well, that might be it then: ls -al /home/admin/fogproject-1.5.9

                    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

                    K 1 Reply Last reply Mar 28, 2023, 2:46 PM Reply Quote 0
                    • K
                      Kureebow @Sebastian Roth
                      last edited by Mar 28, 2023, 2:46 PM

                      @Sebastian-Roth
                      [root@localhost ~]# ls -al /home/admin/fogproject-1.5.9
                      total 60
                      drwxrwxr-x. 10 admin admin 255 Jun 3 2022 .
                      drwx------. 19 admin admin 4096 Mar 27 12:48 …
                      -rw-rw-r–. 1 admin admin 51 Sep 13 2020 authors.txt
                      drwxrwxr-x. 3 admin admin 57 Jun 3 2022 bin
                      -rw-rw-r–. 1 admin admin 45 Sep 13 2020 .gitattributes
                      -rw-rw-r–. 1 admin admin 908 Sep 13 2020 .gitignore
                      drwxrwxr-x. 6 admin admin 80 Sep 13 2020 lib
                      -rw-rw-r–. 1 admin admin 35141 Sep 13 2020 LICENSE
                      drwxrwxr-x. 8 admin admin 167 Sep 13 2020 packages
                      -rw-rw-r–. 1 admin admin 2963 Sep 13 2020 README.md
                      drwxr-xr-x. 2 root root 6 Jun 3 2022 rpttmp
                      drwxrwxr-x. 2 admin admin 64 Sep 13 2020 SELinux
                      drwxrwxr-x. 3 admin admin 26 Sep 13 2020 src
                      drwxr-xr-x. 2 root root 4096 Jun 3 2022 tmp
                      drwxrwxr-x. 5 admin admin 72 Sep 13 2020 utils
                      [root@localhost ~]#

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Mar 28, 2023, 2:52 PM

                        @Kureebow Ok, this is an installer extracted from a tar archive. I suggest we just leave that for the moment and pull the fresh one via git. Run the following commands as root:

                        cd /root
                        git clone https://github.com/FOGproject/fogproject
                        cd fogproject/bin
                        ./installfog.sh
                        

                        Make sure there is no task running at the moment beforehand!

                        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

                        K 2 Replies Last reply Mar 28, 2023, 2:58 PM Reply Quote 0
                        • K
                          Kureebow @Sebastian Roth
                          last edited by Mar 28, 2023, 2:58 PM

                          @Sebastian-Roth Please see failure listed. Getting the error log now

                          • Setting up fogproject user…Skipped
                          • Locking fogproject as a system account…OK
                          • Setting up fogproject password…OK
                          • Stopping FOGMulticastManager.service Service…OK
                          • Stopping FOGImageReplicator.service Service…OK
                          • Stopping FOGSnapinReplicator.service Service…OK
                          • Stopping FOGScheduler.service Service…OK
                          • Stopping FOGPingHosts.service Service…OK
                          • Stopping FOGSnapinHash.service Service…OK
                          • Stopping FOGImageSize.service Service…OK
                          • Setting up and starting MySQL…Failed!

                          !!!
                          !! The installer was not able to run all the way to the end as !!
                          !! something has caused it to fail. The following few lines are !!
                          !! from the error log file which might help us figure out what’s !!
                          !! wrong. Please add this information when reporting an error. !!
                          !! As well you might want to take a look at the full error log !!
                          !! in /root/fogproject/bin/error_logs/fog_error_1.5.10.log !!
                          !!!

                          chsh: Shell not changed.
                          Changing shell for fogproject.
                          New password: Retype new password: Changing password for user fogproject.
                          passwd: all authentication tokens updated successfully.
                          Job for mariadb.service failed because the control process exited with error code. See “systemctl status mariadb.service” and “journalctl -xe” for details.
                          [root@localhost bin]#

                          1 Reply Last reply Reply Quote 0
                          • K
                            Kureebow @Sebastian Roth
                            last edited by Mar 28, 2023, 3:05 PM

                            @Sebastian-Roth I may know the issue. I completely looked over your comment about making sure there were no tasks. I have copied the error logs for your confirmation. If that is the case I apologize moving too fast this morning.

                            fog_error_1.5.10.log

                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by Mar 28, 2023, 3:11 PM

                              @Kureebow I don’t think a running task can cause this issue! Let’s first check the disk is not full: df -h

                              Then check the DB status and log:

                              systemctl status mariadb.service
                              tail -n20 /var/log/mysql/*log*
                              

                              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

                              K 1 Reply Last reply Mar 28, 2023, 3:15 PM Reply Quote 0
                              • K
                                Kureebow @Sebastian Roth
                                last edited by Mar 28, 2023, 3:15 PM

                                @Sebastian-Roth
                                Filesystem Size Used Avail Use% Mounted on
                                devtmpfs 48G 0 48G 0% /dev
                                tmpfs 48G 0 48G 0% /dev/shm
                                tmpfs 48G 19M 48G 1% /run
                                tmpfs 48G 0 48G 0% /sys/fs/cgroup
                                /dev/mapper/centos-root 3.0T 491G 2.5T 17% /
                                /dev/sda2 1014M 239M 776M 24% /boot
                                /dev/mapper/centos-home 3.7T 579M 3.7T 1% /home
                                tmpfs 9.5G 100K 9.5G 1% /run/user/1000

                                mariadb.service - MariaDB database server
                                Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
                                Active: failed (Result: exit-code) since Tue 2023-03-28 10:57:12 EDT; 16min ago
                                Process: 12321 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=1/FAILURE)
                                Main PID: 1989

                                Mar 28 10:57:11 localhost.localdomain systemd[1]: Starting MariaDB database s…
                                Mar 28 10:57:11 localhost.localdomain mariadb-prepare-db-dir[12321]: Socket f…
                                Mar 28 10:57:11 localhost.localdomain mariadb-prepare-db-dir[12321]: Is anoth…
                                Mar 28 10:57:11 localhost.localdomain systemd[1]: mariadb.service: control pr…
                                Mar 28 10:57:12 localhost.localdomain systemd[1]: Failed to start MariaDB dat…
                                Mar 28 10:57:12 localhost.localdomain systemd[1]: Unit mariadb.service entere…
                                Mar 28 10:57:12 localhost.localdomain systemd[1]: mariadb.service failed.
                                Hint: Some lines were ellipsized, use -l to show in full.

                                The second command returned the following

                                tail: cannot open ‘/var/log/mysql/log’ for reading: No such file

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Sebastian Roth Moderator
                                  last edited by Sebastian Roth Mar 28, 2023, 9:21 AM Mar 28, 2023, 3:21 PM

                                  @Kureebow You missed the * on the tail command. Well let’s check the log file exists first.

                                  ls - al /var/log/mysql
                                  

                                  Disk space is fine.

                                  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

                                  K 1 Reply Last reply Mar 28, 2023, 3:23 PM Reply Quote 0
                                  • K
                                    Kureebow @Sebastian Roth
                                    last edited by Mar 28, 2023, 3:23 PM

                                    @Sebastian-Roth No such file or directory

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by Mar 28, 2023, 3:30 PM

                                      @Kureebow Try this:

                                      ls -al  /var/lib/mysql/
                                      ls -al /var/log/mysql*
                                      ps ax | grep -i -e mysql -e maria
                                      

                                      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

                                      K 1 Reply Last reply Mar 28, 2023, 3:33 PM Reply Quote 0
                                      • K
                                        Kureebow @Sebastian Roth
                                        last edited by Mar 28, 2023, 3:33 PM

                                        @Sebastian-Roth
                                        root@localhost ~]# ls -al /var/lib/mysql/
                                        total 28716
                                        drwxr-xr-x. 5 mysql mysql 194 Mar 28 10:57 .
                                        drwxr-xr-x. 61 root root 4096 Jun 3 2022 …
                                        -rw-rw----. 1 mysql mysql 16384 Mar 28 10:57 aria_log.00000001
                                        -rw-rw----. 1 mysql mysql 52 Mar 28 10:57 aria_log_control
                                        drwx------. 2 mysql mysql 8192 Jun 3 2022 fog
                                        -rw-rw----. 1 mysql mysql 18874368 Mar 28 10:57 ibdata1
                                        -rw-rw----. 1 mysql mysql 5242880 Mar 28 10:57 ib_logfile0
                                        -rw-rw----. 1 mysql mysql 5242880 Jun 3 2022 ib_logfile1
                                        drwx------. 2 mysql mysql 4096 Jun 3 2022 mysql
                                        drwx------. 2 mysql mysql 4096 Jun 3 2022 performance_schema
                                        [root@localhost ~]#

                                        root@localhost ~]# ls -al /var/log/mysql*
                                        ls: cannot access /var/log/mysql*: No such file or directory
                                        [root@localhost ~]#

                                        root@localhost ~]# ps ax | grep -i -e mysql -e maria
                                        13627 pts/1 S+ 0:00 grep --color=auto -i -e mysql -e maria
                                        [root@localhost ~]#

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Sebastian Roth Moderator
                                          last edited by Mar 28, 2023, 3:48 PM

                                          @Kureebow So there is no database running at the moment as seen from the last command, strange thing.

                                          Try starting it: systemctl start mariadb.service

                                          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

                                          K 1 Reply Last reply Mar 28, 2023, 3:54 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            8/25
                                            Last post

                                          196

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project