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

Updating Build 4820 on CentOS 7.1

Scheduled Pinned Locked Moved Solved
Bug Reports
4
17
6.1k
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
    sudburr
    last edited by sudburr Oct 21, 2015, 1:21 PM Oct 19, 2015, 9:10 PM

    Updating a working 4820 install on CentOS 7.1 with build 5012 .

    Configuring services.
    
     * 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
     * Setting up and starting MySQL...............................Failed!
    [root@devfog bin]#
    

    Then immediately trying the install/update again, the install will reach;

    You still need to install/update your database schema.
      This can be done by opening a web browser and going to:
    
          http://172.19.244.13/fog/management
    
      Press [Enter] key when database is updated/installed.
    

    But, web access is a fat 404 .

    [ Standing in between extinction in the cold and explosive radiating growth ]

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Oct 19, 2015, 9:43 PM

      What if you restart MySQL directly? My guess is disk space. Check that you have enough disk space with df command. Clear some space by removing the backup folders default stored to /home. You’ll likely find a ton of .BACKUP folders that are currently eating space.

      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

      1 Reply Last reply Reply Quote 0
      • S
        sudburr
        last edited by sudburr Oct 21, 2015, 1:32 PM Oct 21, 2015, 7:21 PM

        Roughly 100 GiB free.

        Build 5032 fails identically.

        I’m not finding any smoking gun yet other than maybe this snippet from /var/log/httpd/error_log .

        [Wed Oct 21 14:48:54.808829 2015] [mpm_prefork:notice] [pid 908] AH00170: caught SIGWINCH, shutting down gracefully
        [Wed Oct 21 14:49:37.254328 2015] [suexec:notice] [pid 911] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
        [Wed Oct 21 14:49:37.364932 2015] [ssl:warn] [pid 911] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
        [Wed Oct 21 14:49:37.444596 2015] [auth_digest:notice] [pid 911] AH01757: generating secret for digest authentication ...
        [Wed Oct 21 14:49:37.446351 2015] [lbmethod_heartbeat:notice] [pid 911] AH02282: No slotmem from mod_heartmonitor
        [Wed Oct 21 14:49:37.449064 2015] [ssl:warn] [pid 911] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
        [Wed Oct 21 14:49:37.501595 2015] [mpm_prefork:notice] [pid 911] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.6.14 configured -- resuming normal operations
        [Wed Oct 21 14:49:37.501657 2015] [core:notice] [pid 911] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
        BFD: /var/www/html/fog/service/ipxe/bzImage: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .bss
        BFD: /var/www/html/fog/service/ipxe/bzImage32: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .bss
        [Wed Oct 21 14:59:20.250823 2015] [mpm_prefork:notice] [pid 911] AH00170: caught SIGWINCH, shutting down gracefully
        [Wed Oct 21 15:00:09.666114 2015] [suexec:notice] [pid 949] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
        [Wed Oct 21 15:00:09.740593 2015] [ssl:warn] [pid 949] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
        [Wed Oct 21 15:00:09.889696 2015] [auth_digest:notice] [pid 949] AH01757: generating secret for digest authentication ...
        [Wed Oct 21 15:00:09.891447 2015] [lbmethod_heartbeat:notice] [pid 949] AH02282: No slotmem from mod_heartmonitor
        [Wed Oct 21 15:00:09.894049 2015] [ssl:warn] [pid 949] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
        [Wed Oct 21 15:00:09.944900 2015] [mpm_prefork:notice] [pid 949] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.6.14 configured -- resuming normal operations
        [Wed Oct 21 15:00:09.944968 2015] [core:notice] [pid 949] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
        

        Patching CentOS, rebooting, and manually restarting services have no effect.

        systemctl restart FOGImageReplicator FOGMulticastManager FOGPingHosts FOGScheduler FOGSnapinReplicator mariadb vsftpd httpd
        

        [ Standing in between extinction in the cold and explosive radiating growth ]

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Oct 21, 2015, 7:24 PM

          Did you try restarting mysql by hand? What do you see? service mysql restart

          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
          • S
            sudburr
            last edited by Oct 21, 2015, 7:32 PM

            Issuing prior to update attempt:

            systemctl restart mysql
            Failed to issue method call: Unit mysql\x2a.service failed to load: No such file or directory.
            

            This is CentOS. It uses MariaDB .

            [ Standing in between extinction in the cold and explosive radiating growth ]

            W 1 Reply Last reply Oct 21, 2015, 7:35 PM Reply Quote 0
            • W
              Wayne Workman @sudburr
              last edited by Wayne Workman Oct 21, 2015, 1:36 PM Oct 21, 2015, 7:35 PM

              @sudburr said:

              Issuing prior to update attempt:

              systemctl restart mysql
              Failed to issue method call: Unit mysql\x2a.service failed to load: No such file or directory.
              

              This is CentOS. It uses MariaDB .

              I’ve got a fog box right here running CentOS 7 and systemctl restart mysql works fine.

              If you’re still getting this error, try reinstalling mariadb and mariadb-server

              yum remove mariadb mariadb-server
              yum install mariadb mariadb-server
              

              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!
              Daily Clean Installation Results:
              https://fogtesting.fogproject.us/
              FOG Reporting:
              https://fog-external-reporting-results.fogproject.us/

              1 Reply Last reply Reply Quote 0
              • S
                sudburr
                last edited by Oct 21, 2015, 7:49 PM

                Reinstalling mariadb is a bad thing, mkay. Toasted the database. Sends me to the schema updater, then error 500.

                I don’t know how much cleaner from scratch I can make this install, but at no time is MySQL available as a service.

                [ Standing in between extinction in the cold and explosive radiating growth ]

                1 Reply Last reply Reply Quote 0
                • S
                  sudburr
                  last edited by Oct 21, 2015, 8:00 PM

                  Interestingly, removing mariadb-server prior to attempting the upgrade, the installer breezes through the MySQL setup/start.

                  But 404 remains.

                  [ Standing in between extinction in the cold and explosive radiating growth ]

                  T 1 Reply Last reply Oct 21, 2015, 8:05 PM Reply Quote 0
                  • T
                    Tom Elliott @sudburr
                    last edited by Oct 21, 2015, 8:05 PM

                    @sudburr what’s the error or errors you’re seeing in the Apache error logs? Centos 7 I believe uses systemd and needs systemctl restart mariadb

                    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

                    1 Reply Last reply Reply Quote 0
                    • S
                      sudburr
                      last edited by Oct 21, 2015, 8:09 PM

                      Found it… I think. I’ll get back in a sec.

                      [ Standing in between extinction in the cold and explosive radiating growth ]

                      1 Reply Last reply Reply Quote 0
                      • S
                        sudburr
                        last edited by sudburr Oct 21, 2015, 2:46 PM Oct 21, 2015, 8:27 PM

                        A few things.

                        Removing MariaDB prior to upgrading, removes the MySQL fail from the FOG Installer. The FOG installer fixes things up.
                        Running the FOG installer twice gets things just as far.

                        At the:

                        You still need to install/update your database schema.
                          This can be done by opening a web browser and going to:
                        
                              http://x.x.x.x/fog/management
                        
                          Press [Enter] key when database is updated/installed.
                        

                        I can either remote in via another session to apply the following fix, or [Enter] to continue to completion then apply this fix:

                        sed -i -e "s|/management|/fog/management|g" /var/www/html/fog/index.php
                        

                        Visit the home page, http://x.x.x.x/ which redirects me to http://x.x.x.x/fog/management , update the schema, and I’m your uncle.

                        So I have a workaround that completes the process, but it doesn’t explain why it fails to begin with.

                        [ Standing in between extinction in the cold and explosive radiating growth ]

                        1 Reply Last reply Reply Quote 0
                        • T
                          Tom Elliott
                          last edited by Oct 21, 2015, 8:54 PM

                          I have solved this thread as the issue received has a fix and a workaround for the fix has been posted here. That said I don’t know that I fully understand what happened. Usually you don’t do a redirect from the base url. This way you can still host other things if needed. So maybe the webroot setting got incorrectly set? Webroot can be species however you want it to be. I will take a look and see if there’s anything I can do to fix the problem but I think I need more details.

                          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

                          1 Reply Last reply Reply Quote 0
                          • S
                            sudburr
                            last edited by Oct 21, 2015, 9:46 PM

                            Considering some of the changes I make from default, it may have been self-inflicted, but the changes I’m thinking of are necessary to make some things work.

                            I’m going to fire up another scratch CentOS 7.1 server and start from there and see where it goes.

                            [ Standing in between extinction in the cold and explosive radiating growth ]

                            1 Reply Last reply Reply Quote 0
                            • S
                              sudburr
                              last edited by sudburr Oct 21, 2015, 6:28 PM Oct 21, 2015, 10:46 PM

                              Hmm,

                              • virgin CentOS 7.1 minimal install
                              • install build 4820 : no configuration changes made
                              • install build 5036

                              The update to 5036 still fails on the first attempt, at the same setting up/start MySQL.

                              A second invocation to update to 5036 completes properly.

                              The http pathing problem is due to changes I make.

                              [ Standing in between extinction in the cold and explosive radiating growth ]

                              W 1 Reply Last reply Oct 21, 2015, 11:34 PM Reply Quote 0
                              • W
                                Wayne Workman @sudburr
                                last edited by Wayne Workman Oct 21, 2015, 5:43 PM Oct 21, 2015, 11:34 PM

                                @sudburr My CentOS 7 build I have on my desk at work uses “Server with GUI”, with all three virtualization options ticked. Then, inside of a VM on that, I have another “Server with GUI” built. And on that, Fog installs just fine. and updates just fine. That’s with having a fully updated server before hand of course, running yum update -y

                                Everything about the build is default.
                                SELinux and Firewalld are disabled of course, as well.

                                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!
                                Daily Clean Installation Results:
                                https://fogtesting.fogproject.us/
                                FOG Reporting:
                                https://fog-external-reporting-results.fogproject.us/

                                S 1 Reply Last reply Oct 22, 2015, 12:30 AM Reply Quote 0
                                • S
                                  sudburr @Wayne Workman
                                  last edited by Oct 22, 2015, 12:30 AM

                                  @Wayne-Workman said: My CentOS 7 build I have on my desk at work uses “Server with GUI”, with all three virtualization options ticked.

                                  Well that’s a major difference right there. I’m only using minimal install. No GUI.

                                  [ Standing in between extinction in the cold and explosive radiating growth ]

                                  W 1 Reply Last reply Oct 22, 2015, 1:59 AM Reply Quote 0
                                  • W
                                    Wayne Workman @sudburr
                                    last edited by Oct 22, 2015, 1:59 AM

                                    @sudburr It is major, but I don’t think it would affect the DB stuff…

                                    Maybe you can try this option tomorrow?

                                    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!
                                    Daily Clean Installation Results:
                                    https://fogtesting.fogproject.us/
                                    FOG Reporting:
                                    https://fog-external-reporting-results.fogproject.us/

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

                                    149

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project