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

    Trunk install, fog.conf vhost file issue

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    5
    22
    7.8k
    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
      kurtblah
      last edited by

      Hi,

      Not sure what this, perhaps an installer bug?

      Fresh install Fedora 23. Version 8179.

      During the install script this appears:

       What type of installation would you like to do? [N/s (Normal/Storage)] n
       grep: 2601:243:200:d722::73a8: No such file or directory
       grep: 2601:243:200:d722:d685:64ff:fe01:6a05: No such file or directory
      
       Would you like DHCP to handle DNS? [Y/n]
      

      The installer keeps running, but bombs out when restarting Apache. Systemctl status httpd indicates that the fog.conf file has some ill-formatted strings:

      <VirtualHost *:80>        #RewriteEngine On
      
          KeepAlive Off
          ServerName 192.168.1.251
      2601:243:200:d722::73a8
      2601:243:200:d722:d685:64ff:fe01:6a05
          DocumentRoot /var/www/html/
          #RewriteEngine On
          #RewriteRule /management/other/ca.cert.der$ - [L]
          #RewriteRule /management/ https://%{HTTP_HOST}%{REQUEST_URI}%{QUERY_STR$
      </VirtualHost>
      <VirtualHost *:443>
          KeepAlive Off
          Servername 192.168.1.251
      2601:243:200:d722::73a8
      2601:243:200:d722:d685:64ff:fe01:6a05
          DocumentRoot /var/www/html/
      .....
      

      -kurt

      1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman
        last edited by

        wherever you put the fog installation files, look inside of bin/error_log, there will be numbered files in there that contain the output of commands from the installer. Let’s see what the last few lines in there are? Those last few are where it bombed.

        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
        • K
          kurtblah
          last edited by

          The fog_error_8179.log file contains this:

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

          The foginstall.log contains this:

           +------------------------------------------+
             |     ..#######:.    ..,#,..     .::##::.  |
             |.:######          .:;####:......;#;..     |
              |...##...        ...##;,;##::::.##...      |
              |   ,#          ...##.....##:::##     ..:: |
              |   ##    .::###,,##.   . ##.::#.:######::.|
              |...##:::###::....#. ..  .#...#. #...#:::. |
              |..:####:..    ..##......##::##  ..  #     |
              |    #  .      ...##:,;##;:::#: ... ##..   |
              |   .#  .       .:;####;::::.##:::;#:..    |
              |    #                     ..:;###..       |
              |                                          |
           +------------------------------------------+
             |      Free Computer Imaging Solution      |
           +------------------------------------------+
          |  Credits: http://fogproject.org/Credits  |
          |       http://fogproject.org/Credits      |
          |       Released under GPL Version 3       |
          +------------------------------------------+
          
          
          Version: 8179 Installer/Updater
          
          What version of Linux would you like to run the installation for?
          
                1) Redhat Based Linux (Redhat, CentOS, Mageia)
                2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
                3) Arch Linux
          
          Choice: [1]
          
          
          Starting Redhat based Installation
          
          
           FOG Server installation modes:
            * Normal Server: (Choice N)
                This is the typical installation type and
                will install all FOG components for you on this
                machine.  Pick this option if you are unsure what to pick.
          
            * Storage Node: (Choice S)
                This install mode will only install the software required
                to make this server act as a node in a storage group
          
           More information:
           http://www.fogproject.org/wiki/index.php?title=InstallationModes
          
          
          What type of installation would you like to do? [N/s (Normal/Storage)] grep: 2601:243:200:d722::73a8: No such      file or directory
          grep: 2601:243:200:d722:d685:64ff:fe01:6a05: No such file or directory
          
          Would you like DHCP to handle DNS? [Y/n]
          
          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
          • Wayne WorkmanW
            Wayne Workman @kurtblah
            last edited by

            @kurtblah What is the output of getenforce and sestatus and systemctl status firewalld ?

            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
            • K
              kurtblah
              last edited by

              getenforce --> permissive

              sestatus and firewalld status:

              [root@localhost ~]# sestatus
              SELinux status:                 enabled
              SELinuxfs mount:                /sys/fs/selinux
              SELinux root directory:         /etc/selinux
              Loaded policy name:             targeted
              Current mode:                   permissive
              Mode from config file:          permissive
              Policy MLS status:              enabled
              Policy deny_unknown status:     allowed
              
               [root@localhost ~]# systemctl status firewalld
              ● firewalld.service - firewalld - dynamic firewall daemon
                 Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
                 Active: active (running) since Mon 2016-06-20 16:04:33 CDT; 2h 7min ago
                Main PID: 750 (firewalld)
                 CGroup: /system.slice/firewalld.service
                     └─750 /usr/bin/python3 -Es /usr/sbin/firewalld --nofork --nopid
              
              Jun 20 16:04:32 localhost.localdomain systemd[1]: Starting firewalld - dynamic firewall daemon...
               Jun 20 16:04:33 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
              
              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman @kurtblah
                last edited by

                @kurtblah what happens if you manually run systemctl enable mysqld and systemctl enable mysql ?

                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/

                K 1 Reply Last reply Reply Quote 0
                • K
                  kurtblah @Wayne Workman
                  last edited by

                  @Wayne-Workman

                  [root@localhost ~]# systemctl enable mysqld
                  Failed to execute operation: No such file or directory
                  [root@localhost ~]# systemctl enable mysql
                  Failed to execute operation: No such file or directory
                  

                  MariaDB is installed and works.

                  Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                  • Wayne WorkmanW
                    Wayne Workman @kurtblah
                    last edited by

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

                    1 Reply Last reply Reply Quote 0
                    • K
                      kurtblah
                      last edited by

                      systemctl enable mariadb
                      

                      returns nothing. running the mysql command works fine.

                      [root@localhost bin]# mysql
                      Welcome to the MariaDB monitor.  Commands end with ; or \g.
                      Your MariaDB connection id is 3
                      Server version: 10.0.23-MariaDB MariaDB Server
                      
                      Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.
                      
                      Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
                      
                      MariaDB [(none)]> \q
                      Bye
                      

                      The munged lines in the fog.conf vhost file and the installer output look to me like IPv6 addresses

                      1 Reply Last reply Reply Quote 0
                      • K
                        kurtblah
                        last edited by

                        From what I can tell, the installer is adding lines to the fog.conf file that keeps the httpd service from restarting.

                        I can take out the bad lines from the fog.conf file and the httpd service restarts as it should.

                        -kurt

                        1 Reply Last reply Reply Quote 1
                        • K
                          kurtblah
                          last edited by

                          This is where the installer bombs out:

                           * Setting up SSL FOG Server...................................OK
                           * Restarting Apache2 for fog vhost............................Failed!
                          
                          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                          • Wayne WorkmanW
                            Wayne Workman @kurtblah
                            last edited by

                            @kurtblah Ok, so what happens when that file is left alone, and you run systemctl restart httpd and then systemctl status httpd -l

                            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
                            • K
                              kurtblah
                              last edited by

                              [root@localhost bin]# systemctl restart httpd
                              Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
                              
                              [root@localhost bin]# systemctl status httpd -l
                              ● httpd.service - The Apache HTTP Server
                                 Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
                                 Active: failed (Result: exit-code) since Mon 2016-06-20 19:23:42 CDT; 15s ago
                                Process: 2975 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
                               Main PID: 2975 (code=exited, status=1/FAILURE)
                              
                              Jun 20 19:23:42 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
                              Jun 20 19:23:42 localhost.localdomain httpd[2975]: AH00526: Syntax error on line 4 of /etc/httpd/conf.d/fog.conf:
                              Jun 20 19:23:42 localhost.localdomain httpd[2975]: Invalid command '2601:243:200:d722::73a8', perhaps misspelled or defined by a module not included in the server configuration
                              Jun 20 19:23:42 localhost.localdomain systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
                              Jun 20 19:23:42 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
                              Jun 20 19:23:42 localhost.localdomain systemd[1]: httpd.service: Unit entered failed state.
                              Jun 20 19:23:42 localhost.localdomain systemd[1]: httpd.service: Failed with result 'exit-code'.```
                              

                              -kurt

                              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                              • Wayne WorkmanW
                                Wayne Workman @kurtblah
                                last edited by

                                @kurtblah Sorry for so many commands. I’m working through you like I would if I were there at the terminal.

                                What is the output of this: ip addr show

                                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
                                • K
                                  kurtblah
                                  last edited by

                                  no problem. here’s the ip addr:

                                  [root@localhost bin]# ip addr show
                                  1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
                                      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
                                      inet 127.0.0.1/8 scope host lo
                                         valid_lft forever preferred_lft forever
                                      inet6 ::1/128 scope host
                                         valid_lft forever preferred_lft forever
                                  2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
                                      link/ether d4:85:64:01:6a:05 brd ff:ff:ff:ff:ff:ff
                                      inet 192.168.1.251/24 brd 192.168.1.255 scope global enp1s0
                                         valid_lft forever preferred_lft forever
                                      inet6 2601:243:200:d722::73a8/128 scope global dynamic
                                         valid_lft 592005sec preferred_lft 592005sec
                                      inet6 2601:243:200:d722:d685:64ff:fe01:6a05/64 scope global noprefixroute dynamic
                                         valid_lft 226861sec preferred_lft 226861sec
                                      inet6 fe80::d685:64ff:fe01:6a05/64 scope link
                                         valid_lft forever preferred_lft forever
                                  Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                                  • Wayne WorkmanW
                                    Wayne Workman @kurtblah
                                    last edited by Wayne Workman

                                    @kurtblah So, do you need IPv6 on this system for some reason?

                                    If not, here’s instructions to turn it off for you:

                                    backup interface config:
                                    cp /etc/sysconfig/network-scripts/ifcfg-enp1s0 /etc/sysconfig/network-scripts/ifcfg-enp1s0.old

                                    Edit the interface config:
                                    vi /etc/sysconfig/network-scripts/ifcfg-enp1s0

                                    Change these lines to off or zero or no:

                                    NETWORKING_IPV6=no
                                    IPV6INIT=no
                                    

                                    If the lines are not there, you can try to add them.

                                    Restart the interface - this command is sorta dangerous if the node is far away and the config is bad, the interface could fail to come back up, so keep that in mind:

                                    ifdown enp1s0;ifup enp1s0

                                    After doing this, try to re-run the fog installer and see what happens. Hopefully it works.

                                    To put the old config file back if you want:

                                    rm -f /etc/sysconfig/network-scripts/ifcfg-enp1s0
                                    cp /etc/sysconfig/network-scripts/ifcfg-enp1s0.old /etc/sysconfig/network-scripts/ifcfg-enp1s0
                                    ifdown enp1s0;ifup enp1s0
                                    

                                    Reference:
                                    http://linoxide.com/linux-how-to/disable-ipv6-centos-fedora-rhel/

                                    Noteworthy:
                                    http://tecadmin.net/disable-ipv6-on-linux/#
                                    https://www.g-loaded.eu/2008/05/12/how-to-disable-ipv6-in-fedora-and-centos/

                                    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 1
                                    • K
                                      kurtblah
                                      last edited by

                                      Disabling IPv6 did the trick. I ran:

                                       sudo echo "1" > /proc/sys/net/ipv6/conf/all/disable_ipv6
                                      

                                      and the installer ran normally. I’ll need to shut it down permanently.

                                      Thank you for your help. Is this IPv6 issue consistent in all of the builds?

                                      -kurt

                                      Wayne WorkmanW 1 Reply Last reply Reply Quote 1
                                      • Wayne WorkmanW
                                        Wayne Workman @kurtblah
                                        last edited by

                                        @kurtblah probably. And there isn’t the man power to do an overhaul on that. IPV6 will have to wait for the 2.0 rewrite.

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

                                          Not sure if we should still change the installer script to ignore those IPv6 addresses… @Developers ?

                                          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

                                          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                                          • Wayne WorkmanW
                                            Wayne Workman @Sebastian Roth
                                            last edited by

                                            @Sebastian-Roth I think the installer should ignore IPv6 addresses.

                                            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
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            186

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project