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

    Installation stops during setting up fogproject password

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    6
    39
    5.6k
    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.
    • D
      Deimos
      last edited by

      FEDORA SERVER 30

      During the installation, more precisely at “configuring services”,
      the installation remains at setting up fogproject password.

      What can this be?

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        Another option that doesn’t seem to loop forever:

        head /dev/urandom | tr -dc '0-9a-zA-Z!#$%&()*+,-./:;<=>?@[]^_{|}~' | fold -w12 | shuf -n1
        

        What this one does, it breaks at the first new line urandom gives (so much faster return and not infinite loop), pipes that output to tr, folds it to a width of 12 characters, and shuffles the data returned from the fold.

        Hopefully this may help?

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

          @Deimos What do you mean by “remains”? Can you post a picture of the output on screen und the last 20 lines of the install error log file 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
          • D
            Deimos
            last edited by

            It’s in the office, but I can remember the output:

            if you know your installation echo output, it “stops” or “waits” at:

            create foguser________________________________________________done

            setting up fogproject password______________________________

            -for complete log I have to wait till monday morning-

            george1421G 1 Reply Last reply Reply Quote 0
            • george1421G
              george1421 Moderator @Deimos
              last edited by

              @Deimos If you look in the directory where you installed fog from in the bin directory (where installfog.sh script is) there should be an error log directory. In that directory is the error logs that explain what happened to the install.

              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!

              D 1 Reply Last reply Reply Quote 0
              • E
                edv-schuster
                last edited by edv-schuster

                i installed fog 1.5.7 (master-branch) 20 hours ago on a freshly downloaded blank debian 10.1

                after correct setup and installatoin i ended up with an ftp-upload-failure (ftp says “wrong username for user fogproject”) after imagecapture.

                i checked and saw that linux-user fog cant change passwd. but i can change the password for user fogproject with passwd… tried that and testing now.

                really strange. other fog-installatoins worked out of the box…

                just checked… there is no user fog after the standard-installation in my linux…!!!

                george1421G 1 Reply Last reply Reply Quote 0
                • george1421G
                  george1421 Moderator @edv-schuster
                  last edited by

                  @edv-schuster said in Installation stops during setting up fogproject password:

                  just checked… there is no user fog after the standard-installation in my linux…!!!

                  On fog 1.5.6 and later the linux service account name was changed from fog to fogproject because there were bad instructions on the internet that said to create the linux user fog and install fog using that account. Part of the install script resets the password on the service account (in the older installs fog) and people would loose access to their linux install. As for 1.5.6 and later the service account is now fogproject the password for fogproject is in the hidden file /opt/fog/.fogsettings if you need to reference it.

                  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!

                  1 Reply Last reply Reply Quote 0
                  • D
                    Deimos @george1421
                    last edited by

                    @george1421 said in Installation stops during setting up fogproject password:

                    @Deimos If you look in the directory where you installed fog from in the bin directory (where installfog.sh script is) there should be an error log directory. In that directory is the error logs that explain what happened to the install.

                    Yes, thanks. I know this, but the Fedora Server is in the office and it’s weekend. I thought may reply was enough for now. I will post the error log tomorrow in the morning.

                    1 Reply Last reply Reply Quote 0
                    • D
                      Deimos
                      last edited by

                      /usr/sbin/iptables
                      /usr/bin/dnf
                      There was no interface with an active internet connection found.
                      Letzte Prüfung auf abgelaufene Metadaten: vor 0:01:48 am Fr 11 Okt 2019 08:47:03 EDT.
                      bc-1.07.1-8.fc30.x86_64
                      curl-7.65.3-4.fc30.x86_64
                      gcc-9.2.1-1.fc30.x86_64
                      gcc-c+±9.2.1-1.fc30.x86_64
                      genisoimage-1.1.11-41.fc30.x86_64
                      gettext-0.19.8.1-22.fc30.x86_64
                      gzip-1.9-9.fc30.x86_64
                      httpd-2.4.41-5.fc30.x86_64
                      lftp-4.8.4-3.fc30.x86_64
                      m4-1.4.18-10.fc30.x86_64
                      make-4.2.1-13.fc30.x86_64
                      mariadb-10.3.17-1.fc30.x86_64
                      mariadb-server-10.3.17-1.fc30.x86_64
                      mod_ssl-2.4.41-5.fc30.x86_64
                      mtools-4.0.18-16.fc30.x86_64
                      net-tools-2.0-0.54.20160912git.fc30.x86_64
                      nfs-utils-2.4.1-0.rc1.fc30.x86_64
                      php-7.3.10-1.fc30.x86_64
                      php-bcmath-7.3.10-1.fc30.x86_64
                      php-cli-7.3.10-1.fc30.x86_64
                      php-common-7.3.10-1.fc30.x86_64
                      php-fpm-7.3.10-1.fc30.x86_64
                      php-gd-7.3.10-1.fc30.x86_64
                      php-json-7.3.10-1.fc30.x86_64
                      php-ldap-7.3.10-1.fc30.x86_64
                      php-mbstring-7.3.10-1.fc30.x86_64
                      Letzte Prüfung auf abgelaufene Metadaten: vor 0:01:53 am Fr 11 Okt 2019 08:47:03 EDT.
                      Installierte Pakete
                      php-mysqlnd.x86_64 7.3.10-1.fc30 @updates
                      php-mysqlnd-7.3.10-1.fc30.x86_64
                      php-process-7.3.10-1.fc30.x86_64
                      syslinux-6.04-0.12.fc30.x86_64
                      tar-1.32-1.fc30.x86_64
                      tftp-server-5.2-27.fc30.x86_64
                      unzip-6.0-43.fc30.x86_64
                      vsftpd-3.0.3-29.fc30.x86_64
                      wget-1.20.3-1.fc30.x86_64
                      xinetd-2.3.15-28.fc30.x86_64
                      xz-devel-5.2.4-5.fc30.x86_64
                      Letzte Prüfung auf abgelaufene Metadaten: vor 0:01:56 am Fr 11 Okt 2019 08:47:03 EDT.
                      Abhängigkeiten sind aufgelöst.
                      Nichts zu tun.
                      Fertig.
                      bc-1.07.1-8.fc30.x86_64
                      curl-7.65.3-4.fc30.x86_64
                      gcc-9.2.1-1.fc30.x86_64
                      gcc-c+±9.2.1-1.fc30.x86_64
                      genisoimage-1.1.11-41.fc30.x86_64
                      gettext-0.19.8.1-22.fc30.x86_64
                      gzip-1.9-9.fc30.x86_64
                      httpd-2.4.41-5.fc30.x86_64
                      lftp-4.8.4-3.fc30.x86_64
                      m4-1.4.18-10.fc30.x86_64
                      make-4.2.1-13.fc30.x86_64
                      mariadb-10.3.17-1.fc30.x86_64
                      mariadb-server-10.3.17-1.fc30.x86_64
                      mod_ssl-2.4.41-5.fc30.x86_64
                      mtools-4.0.18-16.fc30.x86_64
                      net-tools-2.0-0.54.20160912git.fc30.x86_64
                      nfs-utils-2.4.1-0.rc1.fc30.x86_64
                      php-7.3.10-1.fc30.x86_64
                      php-bcmath-7.3.10-1.fc30.x86_64
                      php-cli-7.3.10-1.fc30.x86_64
                      php-common-7.3.10-1.fc30.x86_64
                      php-fpm-7.3.10-1.fc30.x86_64
                      php-gd-7.3.10-1.fc30.x86_64
                      php-json-7.3.10-1.fc30.x86_64
                      php-ldap-7.3.10-1.fc30.x86_64
                      php-mbstring-7.3.10-1.fc30.x86_64
                      php-mysqlnd-7.3.10-1.fc30.x86_64
                      php-process-7.3.10-1.fc30.x86_64
                      syslinux-6.04-0.12.fc30.x86_64
                      tar-1.32-1.fc30.x86_64
                      tftp-server-5.2-27.fc30.x86_64
                      unzip-6.0-43.fc30.x86_64
                      vsftpd-3.0.3-29.fc30.x86_64
                      wget-1.20.3-1.fc30.x86_64
                      xinetd-2.3.15-28.fc30.x86_64
                      xz-devel-5.2.4-5.fc30.x86_64
                      useradd: Warnung: Das Home-Verzeichnis existiert bereits.
                      Es werden keine Dateien vom skel-Verzeichnis dorthin kopiert.
                      Erzeugen der Mailbox-Datei: File exists
                      chsh: Shell nicht geändert.
                      Shell für fogproject ändern.```
                      1 Reply Last reply Reply Quote 0
                      • D
                        Deimos
                        last edited by

                        Hope, this is enough!

                        george1421G 1 Reply Last reply Reply Quote 0
                        • george1421G
                          george1421 Moderator @Deimos
                          last edited by george1421

                          @Deimos That doesn’t look like the error log, but it does say that no active internet connection found. Does this fog server have internet access either director via a proxy 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!

                          1 Reply Last reply Reply Quote 0
                          • D
                            Deimos
                            last edited by

                            Internet access is behind a proxy. I downloaded the latest Fog via git.

                            george1421G 1 Reply Last reply Reply Quote 0
                            • george1421G
                              george1421 Moderator @Deimos
                              last edited by

                              @Deimos When you installed fog, did/do you have the environment variables setup so that the fog installer can download the needed OS modules from your linux distro’s repo repository?

                              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!

                              1 Reply Last reply Reply Quote 0
                              • D
                                Deimos
                                last edited by Deimos

                                If you mean the proxy’s IP then yes. If you mean the DNS Server’s IP then yes.

                                If you mean the queries of the installation script, also yes.

                                1 Reply Last reply Reply Quote 0
                                • D
                                  Deimos
                                  last edited by

                                  This is the output of the foginstall.log:

                                    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)] 
                                    We found the following interfaces on your system:
                                        * enp0s31f6 - XX.XXX.XXX.XX/24
                                        * wlp2s0 - 
                                  
                                    Would you like to change the default network interface from enp0s31f6 wlp2s0?
                                    If you are not sure, select No. [y/N]   What network interface would you like to use? 
                                    Would you like to setup a router address for the DHCP server? [Y/n]   What is the IP address to be used for the router on
                                        the DHCP server? []
                                    Would you like DHCP to handle DNS? [Y/n]   What DNS address should DHCP allow? [XX.XXX.XX.XX] 
                                    Would you like to use the FOG server for DHCP service? [y/N] 
                                    This version of FOG has internationalization support, would  
                                    you like to install the additional language packs? [y/N] 
                                   *** New option 'hostname' since FOG 1.5.6 ***
                                  
                                    Would you like to change the default hostname >FOG-LS15nb<?
                                    The fully qualified hostname is used for the webserver certificate.
                                    If you are not sure, select No. [y/N] 
                                     ######################################################################
                                     #     FOG now has everything it needs for this setup, but please     #
                                     #   understand that this script will overwrite any setting you may   #
                                     #   have setup for services like DHCP, apache, pxe, tftp, and NFS.   #
                                     ######################################################################
                                     # It is not recommended that you install this on a production system #
                                     #        as this script modifies many of your system settings.       #
                                     ######################################################################
                                     #             This script should be run by the root user.            #
                                     #      It will prepend the running with sudo if root is not set      #
                                     ######################################################################
                                     #            Please see our wiki for more information at:            #
                                     ######################################################################
                                     #             https://wiki.fogproject.org/wiki/index.php             #
                                     ######################################################################
                                  
                                   * Here are the settings FOG will use:
                                   * Base Linux: Redhat
                                   * Detected Linux Distribution: Fedora
                                   * Interface: enp0s31f6
                                   * Server IP Address: XXXXXXXXXXXXXXXX
                                   * Server Subnet Mask: 255.255.255.0
                                   * Server Hostname: FOG-LS15nb
                                   * Installation Type: Normal Server
                                   * Internationalization: 1
                                   * Image Storage Location: /images
                                   * Using FOG DHCP: No
                                  * DHCP will NOT be setup but you must setup your
                                   | current DHCP server to use FOG for PXE services.
                                  
                                   * On a Linux DHCP server you must set: next-server and filename
                                  
                                   * On a Windows DHCP server you must set options 066 and 067
                                  
                                   * Option 066/next-server is the IP of the FOG Server: (e.g. XXXXXXXXXXXX)
                                   * Option 067/filename is the bootfile: (e.g. undionly.kpxe)
                                  
                                  
                                   * Are you sure you wish to continue (Y/N) 
                                   * Installation Started
                                  
                                   * Testing internet connection.................................There was no interface with an active internet connection found.
                                  
                                   * Adding repository if needed.................................OK
                                   * Preparing Package Manager...................................OK
                                   * Packages to be installed:
                                  
                                          bc curl gcc gcc-c++ genisoimage gettext gzip httpd lftp m4 make mariadb mariadb-server mod_ssl mtools net-tools nfs-utils php php-bcmath php-cli php-common php-fpm php-gd php-json php-ld
                                  ap php-mbstring php-mysqlnd php-process syslinux tar tftp-server unzip vsftpd wget xinetd xz-devel 
                                  
                                  
                                   * Skipping package:   bc......................................(Already Installed)
                                   * Skipping package:   curl....................................(Already Installed)
                                   * Skipping package:   gcc.....................................(Already Installed)
                                   * Skipping package:   gcc-c++.................................(Already Installed)
                                   * Skipping package:   genisoimage.............................(Already Installed)
                                   * Skipping package:   gettext.................................(Already Installed)
                                   * Skipping package:   gzip....................................(Already Installed)
                                   * Skipping package:   httpd...................................(Already Installed)
                                   * Skipping package:   lftp....................................(Already Installed)
                                   * Skipping package:   m4......................................(Already Installed)
                                   * Skipping package:   make....................................(Already Installed)
                                   * Skipping package:   mariadb.................................(Already Installed)
                                   * Skipping package:   mariadb-server..........................(Already Installed)
                                   * Skipping package:   mod_ssl.................................(Already Installed)
                                   * Skipping package:   mtools..................................(Already Installed)
                                   * Skipping package:   net-tools...............................(Already Installed)
                                   * Skipping package:   nfs-utils...............................(Already Installed)
                                   * Skipping package:   php.....................................(Already Installed)
                                   * Skipping package:   php-bcmath..............................(Already Installed)
                                   * Skipping package:   php-cli.................................(Already Installed)
                                   * Skipping package:   php-common..............................(Already Installed)
                                   * Skipping package:   php-fpm.................................(Already Installed)
                                   * Skipping package:   php-gd..................................(Already Installed)
                                   * Skipping package:   php-json................................(Already Installed)
                                   * Skipping package:   php-ldap................................(Already Installed)
                                   * Skipping package:   php-mbstring............................(Already Installed)
                                   * Skipping package:   php-mysqlnd.............................(Already Installed)
                                   * Skipping package:   php-process.............................(Already Installed)
                                   * Skipping package:   syslinux................................(Already Installed)
                                   * Skipping package:   tar.....................................(Already Installed)
                                   * Skipping package:   tftp-server.............................(Already Installed)
                                   * Skipping package:   unzip...................................(Already Installed)
                                   * Skipping package:   vsftpd..................................(Already Installed)
                                   * Skipping package:   wget....................................(Already Installed)
                                   * Skipping package:   xinetd..................................(Already Installed)
                                   * Skipping package:   xz-devel................................(Already Installed)
                                   * Updating packages as needed.................................OK
                                  
                                   * Confirming package installation
                                  
                                   * Checking package: bc........................................OK
                                   * Checking package: curl......................................OK
                                   * Checking package: gcc.......................................OK
                                   * Checking package: gcc-c++...................................OK
                                   * Checking package: genisoimage...............................OK
                                   * Checking package: gettext...................................OK
                                   * Checking package: gzip......................................OK
                                   * Checking package: httpd.....................................OK
                                   * Checking package: lftp......................................OK
                                   * Checking package: m4........................................OK
                                   * Checking package: make......................................OK
                                   * Checking package: mariadb...................................OK
                                   * Checking package: mariadb-server............................OK
                                   * Checking package: mod_ssl...................................OK
                                   * Checking package: mtools....................................OK
                                   * Checking package: net-tools.................................OK
                                   * Checking package: nfs-utils.................................OK
                                   * Checking package: php.......................................OK
                                   * Checking package: php-bcmath................................OK
                                   * Checking package: php-cli...................................OK
                                   * Checking package: php-common................................OK
                                   * Checking package: php-fpm...................................OK
                                   * Checking package: php-gd....................................OK
                                   * Checking package: php-json..................................OK
                                   * Checking package: php-ldap..................................OK
                                   * Checking package: php-mbstring..............................OK
                                   * Checking package: php-mysqlnd...............................OK
                                   * Checking package: php-process...............................OK
                                  * Checking package: syslinux..................................OK
                                   * Checking package: tar.......................................OK
                                   * Checking package: tftp-server...............................OK
                                   * Checking package: unzip.....................................OK
                                   * Checking package: vsftpd....................................OK
                                   * Checking package: wget......................................OK
                                   * Checking package: xinetd....................................OK
                                   * Checking package: xz-devel..................................OK
                                  
                                   * Configuring services
                                  
                                   * Setting up fogproject user..................................OK
                                   * Locking fogproject as a system account......................OK
                                   * Setting up fogproject password..............................
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Sebastian Roth Moderator
                                    last edited by

                                    @Deimos said:

                                    chsh: Shell nicht geändert.
                                    Shell für fogproject ändern.
                                    

                                    To me it seems like the Fedora chsh tool behaves differnetly than in other distros. @george1421 Could you have a look at this part of the installer to see what the call looks like?

                                    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
                                    • D
                                      Deimos
                                      last edited by

                                      I browsed the forum a bit and found this problem:

                                      Pw fails on new Centos7

                                      Sebastian Roth: *Screw this !!! I think this was because I have not properly disabled SElinux on that machine! Really strange that this would cause a weird thing.

                                      setenforce 0 and now both ways work for me as well. Thanks a lot for testing and your answers!*

                                      The problem: During the first installation I was asked by the FOG to switch off Selinux, which I did.

                                      1 Reply Last reply Reply Quote 1
                                      • D
                                        Deimos
                                        last edited by

                                        I disabled selinux manually but I’ve still got the same problem.

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

                                          @Deimos I can’t replicate the issue as described. But from my tests I get the impression that the problem could be one of the two following commands. Please run those two on a root shell on your Fedora server and post the output you get here:

                                          password=$(tr -cd '0-9a-zA-Z!#$%&()*+,-./:;<=>?@[\\]^_{|}~' < /dev/urandom | fold -w12 | head -n1)
                                          echo $password
                                          echo -e "$password\n$password" | passwd fogproject
                                          

                                          Copy and oaste the commands so you don’t mess up with the characters!

                                          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

                                          D 1 Reply Last reply Reply Quote 0
                                          • D
                                            Deimos @Sebastian Roth
                                            last edited by Deimos

                                            @Sebastian-Roth said in Installation stops during setting up fogproject password:

                                            echo -e “$password\n$password” | passwd fogproject

                                            [root@fog-ls15nb ~]# password=$(tr -cd '0-9a-zA-Z!#$%&()*+,-./:;<=>?@[\]^_{|}~' < /dev/urandom | fold -w12 | head -n1)
                                            echo $password
                                            echo -e "$password\n$password" | passwd fogproject
                                            
                                            
                                            [root@fog-ls15nb ~]# echo -e "$password\n$password" | passwd fogproject
                                            ändere Passwort für Benutzer fogproject.
                                            Geben Sie ein neues Passwort ein: Unsicheres Passwort: Kein Passwort angegeben
                                            Geben Sie das neue Passwort erneut ein: Kein Passwort angegeben
                                            passwd: Fehler beim Ändern des Authentifizierungstoken
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • S
                                              Sebastian Roth Moderator
                                              last edited by Sebastian Roth

                                              @Deimos Please try again but copy and paste the commands one line after the other. Looks like the random number generator on your system doesn’t return enough data.

                                              Edit: Even better try this single command: tr -cd '0-9a-zA-Z!#$%&()*+,-./:;<=>?@[\]^_{|}~' < /dev/urandom | fold -w12 | head -n1

                                              Does it return anything??

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

                                              220

                                              Online

                                              12.0k

                                              Users

                                              17.3k

                                              Topics

                                              155.2k

                                              Posts
                                              Copyright © 2012-2024 FOG Project