Cant create User - Setting up fogproject user..................................Failed!



  • im installing this on the latest version of Debian (10.1.0). Everything installs up to the point of creating the user and i get the following error (2ed to last line.

    This is my first time ruining Linux so you are going to have to excuse me overlooking something stupid.

    root@for-server:/home/kelly# cd fog_stable/bin
    root@for-server:/home/kelly/fog_stable/bin# ./installfog.sh
    Installing LSB_Release as needed
     * Attempting to get release information.......................Done
    systemd
    
    
       +------------------------------------------+
       |     ..#######:.    ..,#,..     .::##::.  |
       |.:######          .:;####:......;#;..     |
       |...##...        ...##;,;##::::.##...      |
       |   ,#          ...##.....##:::##     ..:: |
       |   ##    .::###,,##.   . ##.::#.:######::.|
       |...##:::###::....#. ..  .#...#. #...#:::. |
       |..:####:..    ..##......##::##  ..  #     |
       |    #  .      ...##:,;##;:::#: ... ##..   |
       |   .#  .       .:;####;::::.##:::;#:..    |
       |    #                     ..:;###..       |
       |                                          |
       +------------------------------------------+
       |      Free Computer Imaging Solution      |
       +------------------------------------------+
       |  Credits: http://fogproject.org/Credits  |
       |       http://fogproject.org/Credits      |
       |       Released under GPL Version 3       |
       +------------------------------------------+
    
    
       Version: 1.5.7 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: [2]
    
    
    
      Starting Debian 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:
          * ens33 - 10.22.228.171/24
    
      Would you like to change the default network interface from ens33?
      If you are not sure, select No. [y/N]
    
      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? [10.22.228.254]
    
      Would you like DHCP to handle DNS? [Y/n]
      What DNS address should DHCP allow? [8.8.8.8]
    
      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 >for-server<?
      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: Debian
     * Detected Linux Distribution: Debian GNU/Linux
     * Interface: ens33
     * Server IP Address: 10.22.228.171
     * Server Subnet Mask: 255.255.255.0
     * Server Hostname: for-server
     * Installation Type: Normal Server
     * Internationalization: 0
     * 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. 10.22.228.171)
     * Option 067/filename is the bootfile: (e.g. undionly.kpxe)
    
    
     * Are you sure you wish to continue (Y/N) y
    
     * Installation Started
    
     * Testing internet connection.................................Done
     * Adding repository if needed.................................OK
     * Preparing Package Manager...................................OK
     * Packages to be installed:
    
            apache2 bc build-essential cpp curl g++ gawk gcc genisoimage gzip htmldo                                                                                                                                                             c isolinux lftp libapache2-mod-php7.3 libc6 libcurl4 liblzma-dev m4 mariadb-clie                                                                                                                                                             nt mariadb-server net-tools nfs-kernel-server openssh-server php7.3 php7.3-bcmat                                                                                                                                                             h php7.3-cli php7.3-curl php7.3-fpm php7.3-gd php7.3-json php7.3-mbstring php7.3                                                                                                                                                             -mysql php7.3-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa unzip vsft                                                                                                                                                             pd wget xinetd zlib1g
    
    
     * Skipping package:   apache2.................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   bc......................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   build-essential.........................(Already Installe                                                                                                                                                             d)
     * Skipping package:   cpp.....................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   curl....................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   g++.....................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   gawk....................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   gcc.....................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   genisoimage.............................(Already Installe                                                                                                                                                             d)
     * Skipping package:   gzip....................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   htmldoc.................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   isolinux................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   lftp....................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   libapache2-mod-php7.3...................(Already Installe                                                                                                                                                             d)
     * Skipping package:   libc6...................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   libcurl4................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   liblzma-dev.............................(Already Installe                                                                                                                                                             d)
     * Skipping package:   m4......................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   mariadb-client..........................(Already Installe                                                                                                                                                             d)
     * Skipping package:   mariadb-server..........................(Already Installe                                                                                                                                                             d)
     * Skipping package:   net-tools...............................(Already Installe                                                                                                                                                             d)
     * Skipping package:   nfs-kernel-server.......................(Already Installe                                                                                                                                                             d)
     * Skipping package:   openssh-server..........................(Already Installe                                                                                                                                                             d)
     * Skipping package:   php7.3..................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   php7.3-bcmath...........................(Already Installe                                                                                                                                                             d)
     * Skipping package:   php7.3-cli..............................(Already Installe                                                                                                                                                             d)
     * Skipping package:   php7.3-curl.............................(Already Installe                                                                                                                                                             d)
     * Skipping package:   php7.3-fpm..............................(Already Installe                                                                                                                                                             d)
     * Skipping package:   php7.3-gd...............................(Already Installe                                                                                                                                                             d)
     * Skipping package:   php7.3-json.............................(Already Installe                                                                                                                                                             d)
     * Skipping package:   php7.3-mbstring.........................(Already Installe                                                                                                                                                             d)
     * Skipping package:   php7.3-mysql............................(Already Installe                                                                                                                                                             d)
     * Skipping package:   php7.3-mysql............................(Already Installe                                                                                                                                                             d)
     * Skipping package:   php-gettext.............................(Already Installe                                                                                                                                                             d)
     * Skipping package:   sysv-rc-conf............................(Already Installe                                                                                                                                                             d)
     * Skipping package:   tar.....................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   tftpd-hpa...............................(Already Installe                                                                                                                                                             d)
     * Skipping package:   tftp-hpa................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   unzip...................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   vsftpd..................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   wget....................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   xinetd..................................(Already Installe                                                                                                                                                             d)
     * Skipping package:   zlib1g..................................(Already Installe                                                                                                                                                             d)
     * Updating packages as needed.................................OK
    
     * Confirming package installation
    
     * Checking package: apache2...................................OK
     * Checking package: bc........................................OK
     * Checking package: build-essential...........................OK
     * Checking package: cpp.......................................OK
     * Checking package: curl......................................OK
     * Checking package: g++.......................................OK
     * Checking package: gawk......................................OK
     * Checking package: gcc.......................................OK
     * Checking package: genisoimage...............................OK
     * Checking package: gzip......................................OK
     * Checking package: htmldoc...................................OK
     * Checking package: isolinux..................................OK
     * Checking package: lftp......................................OK
     * Checking package: libapache2-mod-php7.3.....................OK
     * Checking package: libc6.....................................OK
     * Checking package: libcurl4..................................OK
     * Checking package: liblzma-dev...............................OK
     * Checking package: m4........................................OK
     * Checking package: mariadb-client............................OK
     * Checking package: mariadb-server............................OK
     * Checking package: net-tools.................................OK
     * Checking package: nfs-kernel-server.........................OK
     * Checking package: openssh-server............................OK
     * Checking package: php7.3....................................OK
     * Checking package: php7.3-bcmath.............................OK
     * Checking package: php7.3-cli................................OK
     * Checking package: php7.3-curl...............................OK
     * Checking package: php7.3-fpm................................OK
     * Checking package: php7.3-gd.................................OK
     * Checking package: php7.3-json...............................OK
     * Checking package: php7.3-mbstring...........................OK
     * Checking package: php7.3-mysql..............................OK
     * Checking package: php-gettext...............................OK
     * Checking package: sysv-rc-conf..............................OK
     * Checking package: tar.......................................OK
     * Checking package: tftpd-hpa.................................OK
     * Checking package: tftp-hpa..................................OK
     * Checking package: unzip.....................................OK
     * Checking package: vsftpd....................................OK
     * Checking package: wget......................................OK
     * Checking package: xinetd....................................OK
     * Checking package: zlib1g....................................OK
    
     * Configuring services
    
     *** Setting up fogproject user..................................Failed!**
    root@for-server:/home/kelly/fog_stable/bin# * Setting up fogproject user..................................Failed!
    


  • @Sebastian-Roth : I fixed it. I needed to do run su - and that fixed the Path variable that is not set properly. Fog is now installed correctly and the useradd worked great. This is the page that I found that lead me to the fix.
    https://linuxconfig.org/command-not-found-missing-path-to-sbin-on-debian-gnu-linux

    Thanks again for your help.



  • @Sebastian-Roth : I log in as my normal user then use the su to switch over to the root user.

    Here is the results:

    echo $PATH /sbin/useradd
    /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games /sbin/useradd
    
    echo $PATH /usr/sbin/useradd
    /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games /usr/sbin/useradd
    

  • Developer

    @LJedi Pretty clear. Try echo PATH and then /sbin/useradd or /usr/sbin/useradd

    Do you login as root directly or switch user? Which command exactly do you use to switch user?



  • @Sebastian-Roth

    root@testbebian10:/# useradd
    bash: useradd: command not found
    root@testbebian10:/#
    
    

  • Developer

    @LJedi said:

    Anything I can do to help please let me know

    What happens if you simply run useradd in the root command shell?



  • @Sebastian-Roth Thank you Sebastian. Anything I can do to help please let me know. For background, this was a clean install of Debian 10.2 that I did today. Tomorrow, I will be doing another install of Debian 10.2 on a different box. I will let you know what the results are.


  • Developer

    @LJedi said:

    I run it just under the root user.

    Ok, that’s correct then. I think I’ve heard another user who had that issue and found that he needed to add a PATH variable for useradd to be found. On the other hand our daily install testing seems to work great on Debian 10: http://fogtesting.theworkmans.us/

    I am not saying there is no issue. Just seems like we don’t know what exactly it is yet.



  • @Sebastian-Roth I run it just under the root user. ./installfog.sh


  • Developer

    @LJedi How do you run the installer? sudo ./installfog.sh?



  • @Sebastian-Roth : I too am seeing this issue with Debian 10.2.0 running 1.5.7. Here are my log files for you to take a look at. Let me know what I can do to help troubleshoot. I have also tested the dev-branch with the same result.

    /fogproject/bin# tail -20 /fogproject/bin/error_logs/fog_error                                                _1.5.7.log
    ii  php7.3         7.3.11-1~deb10u1 all          server-side, HTML-embedded scri                                                pting language (metapackage)
    ii  php7.3-bcmath  7.3.11-1~deb10u1 amd64        Bcmath module for PHP
    ii  php7.3-cli     7.3.11-1~deb10u1 amd64        command-line interpreter for th                                                e PHP scripting language
    ii  php7.3-curl    7.3.11-1~deb10u1 amd64        CURL module for PHP
    ii  php7.3-fpm     7.3.11-1~deb10u1 amd64        server-side, HTML-embedded scri                                                pting language (FPM-CGI binary)
    ii  php7.3-gd      7.3.11-1~deb10u1 amd64        GD module for PHP
    ii  php7.3-json    7.3.11-1~deb10u1 amd64        JSON module for PHP
    ii  php7.3-mbstring 7.3.11-1~deb10u1 amd64        MBSTRING module for PHP
    ii  php7.3-mysql   7.3.11-1~deb10u1 amd64        MySQL module for PHP
    ii  php-gettext    1.0.12-0.1   all          transitional dummy package for php-                                                php-gettext
    ii  sysv-rc-conf   0.99-7       all          SysV init runlevel configuration to                                                ol for the terminal
    ii  tar            1.30+dfsg-6  amd64        GNU version of the tar archiving ut                                                ility
    ii  tftpd-hpa      5.2+20150808-1+b1 amd64        HPA's tftp server
    ii  tftp-hpa       5.2+20150808-1+b1 amd64        HPA's tftp client
    ii  unzip          6.0-23+deb10u1 amd64        De-archiver for .zip files
    ii  vsftpd         3.0.3-12     amd64        lightweight, efficient FTP server w                                                ritten for security
    ii  wget           1.20.1-1.1   amd64        retrieves files from the web
    ii  xinetd         1:2.3.15.3-1 amd64        replacement for inetd with many enh                                                ancements
    ii  zlib1g:amd64   1:1.2.11.dfsg-1 amd64        compression library - runtime
    ../lib/common/functions.sh: line 1194: useradd: command not found
    
    
     tail -20 /fogproject/bin/error_logs/foginstal                                                l.log
     * Checking package: php7.3-fpm................................OK
     * Checking package: php7.3-gd.................................OK
     * Checking package: php7.3-json...............................OK
     * Checking package: php7.3-ldap...............................OK
     * Checking package: php7.3-mbstring...........................OK
     * Checking package: php7.3-mysql..............................OK
     * Checking package: php-gettext...............................OK
     * Checking package: sysv-rc-conf..............................OK
     * Checking package: tar.......................................OK
     * Checking package: tftpd-hpa.................................OK
     * Checking package: tftp-hpa..................................OK
     * Checking package: unzip.....................................OK
     * Checking package: vsftpd....................................OK
     * Checking package: wget......................................OK
     * Checking package: xinetd....................................OK
     * Checking package: zlib1g....................................OK
    
     * Configuring services
    
     * Setting up fogproject user..................................Failed!
    
    

  • Moderator

    @bigmuddyfoot said in Cant create User - Setting up fogproject user..................................Failed!:

    How do i do that?

    It depends on where the fog installer is, but it would be similar to this.

    tail -20 /root/fogproject/bin/error_logs/foginstall.log

    and assuming you are installing fog 1.5.7

    tail -20 /root/fogproject/bin/error_logs/fog_error_1.5.7.log



  • @Sebastian-Roth
    How do i do that?


  • Developer

    @bigmuddyfoot Please take a look at the logs you find in fogproject/bin/error_logs/ and post the last 10 lines here.


  • Developer

    i’m not sure what went wrong here. I haven’t installed fog on a Buster system yet, but i know others have without issue.



  • @Junkhacker said in Cant create User - Setting up fogproject user..................................Failed!:

    did you create any users on the system other than the “kelly” one we see in the log?

    I did not. Im not sure i know how to do that at this point lol :)


  • Developer

    This is my first time ruining Linux so you are going to have to excuse me overlooking something stupid.

    don’t worry, we all do that at some point. lol (i think that was a typo though)

    did you create any users on the system other than the “kelly” one we see in the log?


Log in to reply
 

292
Online

7.0k
Users

14.2k
Topics

134.4k
Posts