@Sebastian-Roth So after taking your advice on the multiple DHCP servers, I went and checked for any possible Rogue DHCP servers using Wireshark, and I found a range that is not apart of our usual subnet, was offering and broadcasting DHCP. So the issue was rogue DHCP.
Best posts made by rets34
-
RE: FOG - Please Enter TFTP Server
Latest posts made by rets34
-
RE: FOG Install init.php permission
@wayne-workman ```
user@server:~$ ls -laht /var/www total 12K drwxr-xr-x 3 root root 4.0K Sep 1 09:25 html drwxr-xr-x 3 root root 4.0K Aug 19 10:27 . lrwxrwxrwx 1 root root 18 Aug 19 10:27 fog -> /var/www/html/fog/ drwxr-xr-x 12 root root 4.0K Aug 18 09:58 .. user@server:~$ ls -laht /var/www/html total 28K drwxr-xr-x 11 www-data www-data 4.0K Sep 1 09:25 fog drwxr-xr-x 3 root root 4.0K Sep 1 09:25 . drwxr-xr-x 3 root root 4.0K Aug 19 10:27 .. -rw-r--r-- 1 www-data www-data 52 Aug 19 10:27 index.php -rw-r--r-- 1 root root 11K Aug 18 10:01 index.html
-
RE: FOG Install init.php permission
@sebastian-roth After Running the command and trying again:
Apache2 error.log:
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/var/www/html/fog/service/ipxe): failed to open dir: Permission denied in /var/www/html/fog/commons/init.php:119\nStack trace:\n#0 [internal function]: RecursiveDirectoryIterator->__construct('/var/www/html/f...', 4096)\n#1 [internal function]: RecursiveDirectoryIterator->getChildren()\n#2 [internal function]: FilterIterator->next()\n#3 /var/www/html/fog/commons/init.php(119): iterator_to_array(Object(RegexIterator), true)\n#4 /var/www/html/fog/commons/init.php(257): Initiator->__construct()\n#5 /var/www/html/fog/commons/base.inc.php(48): Initiator::startInit()\n#6 /var/www/html/fog/maintenance/backup_db.php(22): require('/var/www/html/f...')\n#7 {main}\n thrown in /var/www/html/fog/commons/init.php on line 119'
-
RE: FOG Install init.php permission
@sebastian-roth ```
total 59736 drwx------ 2 fogproject www-data 4096 Aug 19 10:39 . drwx------ 3 www-data www-data 4096 Aug 19 10:39 .. -rw-r--r-- 1 fogproject www-data 1966 Aug 19 10:39 advanced.php -rw-r--r-- 1 fogproject www-data 16272 Aug 19 10:39 bgdark.png -rw-r--r-- 1 fogproject www-data 21280 Aug 19 10:39 bg.png -rw-r--r-- 1 fogproject www-data 1139 Aug 19 10:39 boot.php -rw-r--r-- 1 fogproject www-data 8471200 Aug 19 10:39 bzImage -rw-r--r-- 1 fogproject www-data 7870272 Aug 19 10:39 bzImage32 -rw-r--r-- 1 fogproject www-data 234697 Aug 19 10:39 grub.exe -rw-r--r-- 1 fogproject www-data 592 Aug 19 10:39 index.php -rw-r--r-- 1 fogproject www-data 20574204 Aug 19 10:39 init_32.xz -rw-r--r-- 1 fogproject www-data 21161356 Aug 19 10:39 init.xz -rw-r--r-- 1 fogproject www-data 25340 Aug 19 10:39 memdisk -rw-r--r-- 1 fogproject www-data 1839104 Aug 19 10:39 memtest.bin -rw-r--r-- 1 fogproject www-data 202624 Aug 19 10:39 refind_aa64.efi -rw-r--r-- 1 fogproject www-data 29719 Aug 19 10:39 refind.conf -rw-r--r-- 1 fogproject www-data 262592 Aug 19 10:39 refind.efi -rw-r--r-- 1 fogproject www-data 201600 Aug 19 10:39 refind_ia32.efi -rw-r--r-- 1 fogproject www-data 208776 Aug 19 10:39 refind_x64.efi
-
FOG Install init.php permission
Debian 10:
Running installfog.sh goes well until ‘go to x.x.x.x/fog/management’
The site reports http 500 error. And apache logs show:Got error 'PHP message: PHP Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/var/www/html/fog/service/ipxe): failed to open dir Permission denied in /var/www/html/fog/commons/init.php:119\nStack trace:\n#0 [internal function]:
-
RE: MySQL Failed
I went through and pointed a couple to the old location, and it’s not showing Size?
-
RE: MySQL Failed
@Tom-Elliott I was just if I had to reboot the machine for whatever reason that I wouldn’t have to worry about it failing. But the solution you posted has worked to get it working.
Now I just need to figure out how to get all my images to show up in the WebUI, got them all on the machine but don’t have an exported CSV from prior to database dying. -
RE: MySQL Failed
root@fog-desktop:/home/admin# systemctl -l status mariadb ● mariadb.service - MariaDB database server Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2020-07-30 13:37:37 CDT; 17s ago Process: 23218 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status Process: 23215 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS) Process: 23104 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/galera_rec Process: 23102 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status= Process: 23101 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0 Main PID: 23188 (mysqld) Status: "Taking your SQL requests now..." Tasks: 29 (limit: 4915) CGroup: /system.slice/mariadb.service └─23188 /usr/sbin/mysqld Jul 30 13:37:39 fog-desktop /etc/mysql/debian-start[23221]: Processing databases Jul 30 13:37:39 fog-desktop /etc/mysql/debian-start[23221]: information_schema Jul 30 13:37:39 fog-desktop /etc/mysql/debian-start[23221]: mysql Jul 30 13:37:39 fog-desktop /etc/mysql/debian-start[23221]: performance_schema Jul 30 13:37:39 fog-desktop /etc/mysql/debian-start[23221]: Phase 6/7: Checking and upgrading tables Jul 30 13:37:39 fog-desktop /etc/mysql/debian-start[23221]: Processing databases Jul 30 13:37:39 fog-desktop /etc/mysql/debian-start[23221]: information_schema Jul 30 13:37:39 fog-desktop /etc/mysql/debian-start[23221]: performance_schema Jul 30 13:37:39 fog-desktop /etc/mysql/debian-start[23221]: Phase 7/7: Running 'FLUSH PRIVILEGES' Jul 30 13:37:39 fog-desktop /etc/mysql/debian-start[23221]: OK
That fixed it, however after a reboot I got ‘database connection unavailable’ again.
And back to square one with:Setting up and starting MySQL...............................Failed!
-
RE: MySQL Failed
root@fog-desktop:/home/admin# systemctl -l status mariadb ● mariadb.service - MariaDB database server Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled) Active: activating (start) since Thu 2020-07-30 12:16:53 CDT; 34s ago Process: 30832 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/galera_rec Process: 30829 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status= Process: 30828 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0 Main PID: 30916 (mysqld) Tasks: 26 (limit: 4915) CGroup: /system.slice/mariadb.service └─30916 /usr/sbin/mysqld Jul 30 12:16:53 fog-desktop systemd[1]: Starting MariaDB database server... Jul 30 12:16:53 fog-desktop mysqld[30916]: 2020-07-30 12:16:53 139648654302336 [Note] /usr/sbin/mysqld (mysqld 1 root@fog-desktop:/home/admin# ^C root@fog-desktop:/home/admin# systemctl -l status mariadb ● mariadb.service - MariaDB database server Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled) Active: failed (Result: timeout) since Thu 2020-07-30 12:18:26 CDT; 50min ago Process: 30916 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited Process: 30832 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/galera_rec Process: 30829 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status= Process: 30828 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0 Main PID: 30916 (code=exited, status=0/SUCCESS) Jul 30 12:16:53 fog-desktop systemd[1]: Starting MariaDB database server... Jul 30 12:16:53 fog-desktop mysqld[30916]: 2020-07-30 12:16:53 139648654302336 [Note] /usr/sbin/mysqld (mysqld 1 Jul 30 12:18:23 fog-desktop systemd[1]: mariadb.service: Start operation timed out. Terminating. Jul 30 12:18:26 fog-desktop systemd[1]: mariadb.service: Failed with result 'timeout'. Jul 30 12:18:26 fog-desktop systemd[1]: Failed to start MariaDB database server. root@fog-desktop:/home/admin#