commented out if isset {...}
stuff in index.php of management and it worked again.
Best posts made by JJ Fullmer
-
RE: r7106 Client Unknown Authentication Error
-
RE: HP Z640 - NVME PCI-E Drive
Well it only seems to work when it was uploaded from nvme drive. That’s kind of odd.
-
Group Printer Management Level Always sets to No Printer Management
Running Version 1.3.0-RC-1
SVN Revision: 5936When I try to set a group to the “Fog Managed Printers” setting for “Printer Management Level” It always ends up setting all of them to “No Printer Management”
-
RE: HP Z640 - NVME PCI-E Drive
@Tom-Elliott I will gladly test them!
I’m currently trying the inits that came from the most recent btsync and they seem to be working too for the hardware inventory task anyway, haven’t tried an image yet.
Where are the new inits to test? Oh wait you posted while I was typing this, I’ll download those and give them a go right now. -
RE: Group Printer Management Level Always sets to No Printer Management
However adding and removing printers works just fine. In case it’s relevant
-
RE: HP Z640 - NVME PCI-E Drive
@Tom-Elliott The first test I did was with a multi-disk image that I made from a vm and it went back to the behavior it did before where it acted like it was working but never gets into partclone.
I’ll do a debug session for that one since it happened to fast to snap a picture. -
RE: Group Printer Management Level Always sets to No Printer Management
Also I believe that the default printer updates correctly too. It’s just the printer level that stopped working for groups
-
RE: HP Z640 - NVME PCI-E Drive
@Tom-Elliott I’m giving it a go now!
-
RE: isBitLockedPartition error
@Sebastian-Roth I tried out your init from the previously referenced post. Great Success!
However I figure you should be aware of a slight bug in them, it seems there’s an invalid grep line somewhere, it says no argument – ‘V’ exists and then outputs the grep help text. It does this repeatedly so it’s probably in a function somewhere.
Here’s the full debug output using your init.
[Tue Oct 31 root@fogclient ~]# fog * Running post init scripts.........................Done * Press [Enter] key to continue ================================== === ==== ===== ==== === ========= == === == === === ======== ==== == ==== === === ======== ==== == ========= === ==== ==== == ========= === ======== ==== == === === === ======== ==== == ==== === === ========= == === == === === ========== ===== ==== ================================== ===== Free Opensource Ghost ====== ================================== ============ Credits ============= = https://fogproject.org/Credits = ================================== == Released under GPL Version 3 == ================================== Version: 69 * Press [Enter] key to continue * Verifying network interface configuration.........Done * Press [Enter] key to continue * Checking Operating System.........................Windows 10 * Checking CPU Cores................................4 * Send method.......................................NFS * Attempting to check in............................Done * Press [Enter] key to continue * Mounting File System..............................Done * Press [Enter] key to continue * Checking Mounted File System......................Done * Press [Enter] key to continue * Checking img variable is set......................Done * Press [Enter] key to continue * Attempting to send inventory......................Done * Press [Enter] key to continue * Using Image: Base * Looking for Hard Disk.............................Done * Press [Enter] key to continue * Using Disk: /dev/sda * Enabling write cache..............................Enabled * Press [Enter] key to continue * Using Hard Disk: /dev/sda * Preparing Partition layout * Erasing current MBR/GPT Tables....................Done * Press [Enter] key to continue * Restoring Partition Tables (GPT)..................Done * Press [Enter] key to continue * Attempting to expand/fill partitions..............Done * Press [Enter] key to continue +--------------------------------+ | Attempting to deploy image | +--------------------------------+ | Using Partclone | +--------------------------------+ * Processing Partition: /dev/sda1 (1) * Press [Enter] key to continue * Imaging using Partclone (zstd) Cloned successfully. grep: invalid option -- 'V' BusyBox v1.26.2 (2017-04-21 16:11:45 EDT) multi-call binary. Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... Search for PATTERN in FILEs (or stdin) -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file * Clearing ntfs flag................................Done * Not expanding (/dev/sda1) fixed size * Press [Enter] key to continue * Processing Partition: /dev/sda2 (2) * Press [Enter] key to continue * Imaging using Partclone (zstd) Cloned successfully. Cloned successfully. grep: invalid option -- 'V' BusyBox v1.26.2 (2017-04-21 16:11:45 EDT) multi-call binary. Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... Search for PATTERN in FILEs (or stdin) -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file * Not expanding (/dev/sda2) fixed size * Press [Enter] key to continue * Processing Partition: /dev/sda3 (3) * Press [Enter] key to continue * Imaging using Partclone (zstd) Cloned successfully. grep: invalid option -- 'V' BusyBox v1.26.2 (2017-04-21 16:11:45 EDT) multi-call binary. Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... Search for PATTERN in FILEs (or stdin) -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file * Not expanding (/dev/sda3) fixed size * Press [Enter] key to continue * Processing Partition: /dev/sda4 (4) * Press [Enter] key to continue * Imaging using Partclone (zstd) Cloned successfully. grep: invalid option -- 'V' BusyBox v1.26.2 (2017-04-21 16:11:45 EDT) multi-call binary. Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... Search for PATTERN in FILEs (or stdin) -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file * Clearing ntfs flag................................Done grep: invalid option -- 'V' BusyBox v1.26.2 (2017-04-21 16:11:45 EDT) multi-call binary. Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... Search for PATTERN in FILEs (or stdin) -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file * Resizing ntfs volume (/dev/sda4)..................Done * Press [Enter] key to continue grep: invalid option -- 'V' BusyBox v1.26.2 (2017-04-21 16:11:45 EDT) multi-call binary. Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... Search for PATTERN in FILEs (or stdin) -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file * Clearing ntfs flag................................Done * Press [Enter] key to continue * Resetting UUIDs for /dev/sda * Press [Enter] key to continue * Disk UUID being set to............................c58db304-0143-4807-8553-c3fe3a63572e * Press [Enter] key to continue grep: invalid option -- 'V' BusyBox v1.26.2 (2017-04-21 16:11:45 EDT) multi-call binary. Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... Search for PATTERN in FILEs (or stdin) -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file * Partition type being set to.......................1:de94bba4-06d1-4d40-a16a-bfd50179d6ac * Press [Enter] key to continue * Partition uuid being set to.......................1:6ca9bc0a-b068-431e-ad37-42ebcc1180c9 * Press [Enter] key to continue grep: invalid option -- 'V' BusyBox v1.26.2 (2017-04-21 16:11:45 EDT) multi-call binary. Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... Search for PATTERN in FILEs (or stdin) -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file * Partition type being set to.......................2:c12a7328-f81f-11d2-ba4b-00a0c93ec93b * Press [Enter] key to continue * Partition uuid being set to.......................2:5edc0547-686e-4397-bdd2-43bfae201e45 * Press [Enter] key to continue grep: invalid option -- 'V' BusyBox v1.26.2 (2017-04-21 16:11:45 EDT) multi-call binary. Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... Search for PATTERN in FILEs (or stdin) -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file * Partition type being set to.......................3:e3c9e316-0b5c-4db8-817d-f92df00215ae * Press [Enter] key to continue * Partition uuid being set to.......................3:7d352040-d03c-420a-b307-53242b97e4bf * Press [Enter] key to continue grep: invalid option -- 'V' BusyBox v1.26.2 (2017-04-21 16:11:45 EDT) multi-call binary. Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... Search for PATTERN in FILEs (or stdin) -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file * Partition type being set to.......................4:ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 * Press [Enter] key to continue * Partition uuid being set to.......................4:fe34efcf-4975-4988-9076-08cca3e7630d * Press [Enter] key to continue * Resetting swap systems * Press [Enter] key to continue * Stopping FOG Status Reporter......................Done * Press [Enter] key to continue grep: invalid option -- 'V' BusyBox v1.26.2 (2017-04-21 16:11:45 EDT) multi-call binary. Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... Search for PATTERN in FILEs (or stdin) -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file * Mounting directory................................Done * Press [Enter] key to continue grep: invalid option -- 'V' BusyBox v1.26.2 (2017-04-21 16:11:45 EDT) multi-call binary. Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... Search for PATTERN in FILEs (or stdin) -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file grep: invalid option -- 'V' BusyBox v1.26.2 (2017-04-21 16:11:45 EDT) multi-call binary. Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... Search for PATTERN in FILEs (or stdin) -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file grep: invalid option -- 'V' BusyBox v1.26.2 (2017-04-21 16:11:45 EDT) multi-call binary. Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... Search for PATTERN in FILEs (or stdin) -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file * Mounting directory................................Done * Press [Enter] key to continue * Changing hostname.................................Done * Press [Enter] key to continue * Task Complete * Updating Database................................. Done * Press [Enter] key to continue
So thank you good sir!
-
RE: HP Z640 - NVME PCI-E Drive
@Arrowhead-IT ummmm, I just did another test to be more thorough and discovered a problem.
After mps successfully downloaded I tried downloading a resizable image and it failed to recreate the partition table.
Sorry for the false hope -
RE: isBitLockedPartition error
@sebastian-roth But if you test it, what’s the point of us Testers? =p
-
RE: Creating group, members add themselves.
@librarymark That’s the way I do it or at least the way I created my groups originally, but both options are available to be flexible. I mean if I did it now I would use the powershell module I just made for the api along with the PS module for active directory and create and populate groups based on OU’s, could even make it sync with a script in a scheduled task on a windows server.
But I digress. I did in fact confirm the bug of phantom hosts when creating a group from the hosts screen. I selected the top 3 hosts (id’s of 83, 26, and 135) and created a new group with the tool at the bottom of the list. Then I went to the group to find 5 members, the 3 I chose plus 2 more with ids of 1531 and 1535. I’m including the ids in case there’s some possible correlation to be seen to troubleshoot the bug.
-
RE: HP Z640 - NVME PCI-E Drive
@Tom-Elliott said:
@Arrowhead-IT if you can would you be willing to test upload and download again for the resize and multipartition image types?
I will edit this post like before as I test each scenario.
If there is a scenario I’m missing here let me know and I’ll test that too.
I will try to be thorough as I can.Download of existing image created from vm
Resizable (Windows 8.1) - Success! No Issues!
Resizable (Windows 10) - Success! No issues!
Multi-partition (Linux CentOS Ext4 and LVM) - Failed - New Error
I think this indicates a problem with the image file itself not the imaging process. I’ll reupload this one and test a different mps image in the meantime.
Edit Reuploaded the image, this is centOS vm that has no mbr apparently. So this is a different problem entirely related linux lvm images. normal mps images work fineMulti-partition (Windows 7) - Success! Edit No Issues!
before
Note: Changing hostname said failed after imaging in debug mode.Upload from nvme
Resizable (Windows 10 ) - retesting
Multi-partition -
Download of newly uploaded image from nvme
Resizable (Windows 8.1 ) - Failed - Could not find hard disk on system - getHardDisk function
Multi-partition
-
RE: Surface Go 2 (microsoft surface usb-c ethernet adapter) won't boot bzImage on fog 1.5.9.2 and Getting database update errors
@Tom-Elliott @Sebastian-Roth @george1421
I gave something else a try. I looked at the commits included in the dev_branch since 1.5.9 and found that Tom had added the machine details array in the
taskqueue.class.php
file.First thing I tried was adding a primary user to the host, in case that being empty was somehow a problem. No dice.
Looking at it, it’s just a prettier more informative email array. But the parameters in that object must be used somewhere else, because I reverted the file to its last commit (made a .old version of it on my server, made a new version of it with the previous version’s contents) just to see if that change maybe broke something.
My debug task was waiting for me to hit enter at another updating database attempt, so I hit enter, and viola!
So now we gotta figure out why in the world that change in the email sent would break the database update to say the task is completed.
edit:
I debugged it a bit further. Restored the newer version of the file and started commenting things out one at a time to confirm the problem.The code here is where the problem lies (line 293-315 of
taskqueue.class.php
found at https://github.com/FOGProject/fogproject/blob/99bb17b168e929796a8d76526f73bcfdac11bb4b/packages/web/lib/reg-task/taskqueue.class.php)$Inventory = self::$Host->get('inventory'); $mac = self::$Host->get('mac')->__toString(); $ImageName = $this->Task->getImage()->get('name'); $ImageStartTime = self::niceDate($this->Task->get('checkInTime')); $ImageEndTime = self::niceDate(); $duration = self::diff($ImageStartTime, $ImageEndTime); $Snapins = implode(',', (array)$SnapinNames); $email = array( sprintf("%s:-\n", _('Machine Details')) => '', sprintf("\n%s: ", _('Host Name')) => self::$Host->get('name'), sprintf("\n%s: ", _('Computer Model')) => $Inventory->get('sysproduct'), sprintf("\n%s: ", _('Serial Number')) => $Inventory->get('sysserial'), sprintf("\n%s: ", _('MAC Address')) => $mac, "\n" => '', sprintf("\n%s: ", _('Image Used')) => $ImageName, sprintf("\n%s: ", _('Snapin Used')) => $Snapins, "\n" => '', sprintf("\n%s: ", _('Imaged By')) => $engineer, sprintf("\n%s: ", _('Imaged For')) => $primaryUser, sprintf("\n%s: ", _('Imaging Started')) => $ImageStartTime, sprintf("\n%s: ", _('Imaging Completed')) => $ImageEndTime, sprintf("\n%s: ", _('Imaging Duration')) => $duration );
If I comment out the last 3 pieces of the array and try again, the database updates and all is well again
$Inventory = self::$Host->get('inventory'); $mac = self::$Host->get('mac')->__toString(); $ImageName = $this->Task->getImage()->get('name'); $ImageStartTime = self::niceDate($this->Task->get('checkInTime')); $ImageEndTime = self::niceDate(); $duration = self::diff($ImageStartTime, $ImageEndTime); $Snapins = implode(',', (array)$SnapinNames); $email = array( sprintf("%s:-\n", _('Machine Details')) => '', sprintf("\n%s: ", _('Host Name')) => self::$Host->get('name'), sprintf("\n%s: ", _('Computer Model')) => $Inventory->get('sysproduct'), sprintf("\n%s: ", _('Serial Number')) => $Inventory->get('sysserial'), sprintf("\n%s: ", _('MAC Address')) => $mac, "\n" => '', sprintf("\n%s: ", _('Image Used')) => $ImageName, sprintf("\n%s: ", _('Snapin Used')) => $Snapins, "\n" => '', sprintf("\n%s: ", _('Imaged By')) => $engineer, sprintf("\n%s: ", _('Imaged For')) => $primaryUser //sprintf("\n%s: ", _('Imaging Started')) => $ImageStartTime, //sprintf("\n%s: ", _('Imaging Completed')) => $ImageEndTime, //sprintf("\n%s: ", _('Imaging Duration')) => $duration );
-
RE: HP Z640 - NVME PCI-E Drive
@Arrowhead-IT said:
I’m about to test upload on the updated version.
Great success, forgot to post that this worked.
All is working as of 6050
-
RE: 504 Gateway Timeout hitting fog/scheduledtask/list
@george1421 I have seen some strange behavior with 1’s and 0’s related to the hostPending field in the database that I’m still working out with @Sebastian-Roth . I believe there’s some notes buried somewhere in my post here https://forums.fogproject.org/topic/14607/weird-host-behavior-some-disappearing-losing-primary-mac-some-suddenly-needing-approval where I discovered I had some hosts says pending = 1 some pending = ‘1’ and then pending = 0 and pending = ‘0’.
I ended up making all of them string values (‘1’ or ‘0’ rather than 1 or 0).
It doesn’t seem to be universally true throughout everything but I have seen it.@nehsa
Also, I also want to know how to make a scheduled task via the api. I’ve messed with that idea and haven’t been able to figure out the json needed. My workaround has been to schedule a reboot in windows using a combination of powershell date math (to figure out seconds till a given time) andshutdown.exe /r /t $seconds
then I stop the fog service on the host (so it doesn’t reboot the host) and queue the task for right now.
It would be much more elegant to do a delayed scheduled task.I think the required fields may be something like
{ "taskTypeID": 1, "type":"S", "scheduleTime":"1585616580" }
I have that commented out in some code but sadly didn’t write down what that time meant… but regardless I’m pretty sure it didn’t actually work. I think I probably just scheduled a task and did a get call on tasks to see what it looked like. If I didn’t, that’s what I should have done…
@Tom-Elliott might have some insight on scheduling a task via the api -
RE: HP Z640 - NVME PCI-E Drive
@Tom-Elliott Yes, I just did. I marked it as unsolved when it broke again.
-
RE: 504 Gateway Timeout hitting fog/scheduledtask/list
@nehsa I finally figured out scheduled tasks via the api.
I have it written out with a powershell example (with verbose output so you can see the POST url used and the json data) in post
https://forums.fogproject.org/post/139328Give that a looksee and let me know if you want more examples. Also in that Thread @Tom-Elliott explained what some of the needed fields for a scheduled or crontask do.
-
RE: rEFInd PXE booting issue
@george1421 The developer has replied, I have quoted it below
Thanks for the bug report. Upon reading the thread, I think the bug may be related to changes I made to work around problems caused by changes to the way macOS stored its files on APFS volumes, as noted in the release notes for version 0.11.1:
: As a follow-on to the preceding change, I discovered that compiling
: rEFInd with GNU-EFI resulted in a failure to properly track some
: files on APFS volumes. I don’t know if this failure reflected a bug
: in Apple’s EFI, in GNU-EFI, or in rEFInd; but I changed the way
: rEFInd tracks boot loader files internally to work around the
: problem. Although I’ve tested this version on an unusually wide
: number of computers, it’s possible that this change will introduce
: new bugs. Thus, if you upgrade and have problems with boot loaders
: not being detected or not launching, dropping back to version 0.11.0
: may be worth trying. (Be sure to contact me with a bug report, too!)I can look over these code changes for any obvious bugs, but tracking this down may require testing with debug versions that display debugging data. If you or somebody else who’s affected can help with that, it might speed up the process.
FWIW, some of the reports mentioned HP EliteDesk computers. I happen to own an EliteDesk 705, and I have NOT seen the problem on it. Thus, I suspect that the problem appears as an interaction with a very limited set of EFIs and/or something quirky about the partition table, filesystem, or other system-specific setup. This isn’t to say the bug exists in some other component, but it’s likely manifesting only in some rare circumstance.In the meantime, using version 0.11.0 makes sense as a workaround.
–
Rod Smith