• 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.
    • S
      Sebastian Roth Moderator
      last edited by

      @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 Reply Quote 0
      • K
        Kureebow @Sebastian Roth
        last edited by

        @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

          @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

            @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 Reply Quote 0
            • K
              Kureebow @Sebastian Roth
              last edited by

              @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

                @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 Reply Quote 0
                • K
                  Kureebow @Sebastian Roth
                  last edited by

                  @Sebastian-Roth No such file or directory

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

                    @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 Reply Quote 0
                    • K
                      Kureebow @Sebastian Roth
                      last edited by

                      @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

                        @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 Reply Quote 0
                        • K
                          Kureebow @Sebastian Roth
                          last edited by

                          @Sebastian-Roth Didn’t get a return from that command but no error. I assume it worked.

                          root@localhost ~]# systemctl start mariadb.service
                          [root@localhost ~]#

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

                            @Kureebow Sounds good. Check with systemctl status mariadb.service again and then re-run the installer ( just the ./installfog.sh from within the right directory, no need to git clone again)

                            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 Reply Quote 0
                            • K
                              Kureebow @Sebastian Roth
                              last edited by

                              @Sebastian-Roth Perfect! We are working now. Now it is asking me to update database from ipaddress/fog/management Where do I go to do this or do I just press enter and move forward?

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

                                @Kureebow Copy and paste the URL printed by the installer to your webbrowser. If it takes you to the known web UI straight away that means there are no schema updates to do. That’s OK. Then hit ENTER for the installer to finish.

                                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 Reply Quote 0
                                • K
                                  Kureebow @Sebastian Roth
                                  last edited by

                                  @Sebastian-Roth We are up and going again. Thank you so much for your help I really appreciate it.

                                  1 Reply Last reply Reply Quote 0
                                  • [[undefined-on, S Sebastian Roth, ]]
                                  • 1
                                  • 2
                                  • 1 / 2
                                  • First post
                                    Last post

                                  256

                                  Online

                                  12.0k

                                  Users

                                  17.3k

                                  Topics

                                  155.2k

                                  Posts
                                  Copyright © 2012-2024 FOG Project