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

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

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    17
    1.3k
    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.
    • JunkhackerJ
      Junkhacker Developer @bigmuddyfoot
      last edited by

      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?

      signature:
      Junkhacker
      We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

      B 1 Reply Last reply Reply Quote 0
      • B
        bigmuddyfoot @Junkhacker
        last edited by

        @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 🙂

        1 Reply Last reply Reply Quote 0
        • JunkhackerJ
          Junkhacker Developer
          last edited by

          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.

          signature:
          Junkhacker
          We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

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

            @bigmuddyfoot Please take a look at the logs you find in fogproject/bin/error_logs/ and post the last 10 lines 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

            B 1 Reply Last reply Reply Quote 0
            • B
              bigmuddyfoot @Sebastian Roth
              last edited by

              @Sebastian-Roth
              How do i do that?

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

                @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

                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
                • L
                  LJedi
                  last edited by

                  @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!
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

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

                    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

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      LJedi @Sebastian Roth
                      last edited by

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

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

                        @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.

                        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

                        L 1 Reply Last reply Reply Quote 0
                        • L
                          LJedi @Sebastian Roth
                          last edited by

                          @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.

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

                            @LJedi said:

                            Anything I can do to help please let me know

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

                            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

                            L 1 Reply Last reply Reply Quote 0
                            • L
                              LJedi @Sebastian Roth
                              last edited by LJedi

                              @Sebastian-Roth

                              root@testbebian10:/# useradd
                              bash: useradd: command not found
                              root@testbebian10:/#
                              
                              
                              1 Reply Last reply Reply Quote 0
                              • S
                                Sebastian Roth Moderator
                                last edited by

                                @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?

                                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

                                L 1 Reply Last reply Reply Quote 0
                                • L
                                  LJedi @Sebastian Roth
                                  last edited by

                                  @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
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • L
                                    LJedi
                                    last edited by

                                    @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.

                                    1 Reply Last reply Reply Quote 1
                                    • 1 / 1
                                    • First post
                                      Last post

                                    229

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project