Cant create User - Setting up fogproject user..................................Failed!
-
@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 : 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!
-
@LJedi How do you run the installer?
sudo ./installfog.sh
? -
@Sebastian-Roth I run it just under the root user.
./installfog.sh
-
@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 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.
-
@LJedi said:
Anything I can do to help please let me know
What happens if you simply run
useradd
in the root command shell? -
root@testbebian10:/# useradd bash: useradd: command not found root@testbebian10:/#
-
@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 : 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
-
@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 theuseradd
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-linuxThanks again for your help.