• FOG 1.5.9.57 on Debian 10 mysql root password is blank

    6
    0 Votes
    6 Posts
    2k Views
    S

    @tom-elliott said in FOG 1.5.9.57 on Debian 10 mysql root password is blank:

    We are a fully clean install. Meaning no packages except git are installed. No Apache, php, or MySQL. Why should the installer ask for root password here? It has never been setup before this point. There would be no password. FOG, in my opinion, should not be defining the root user password here either.

    I think it should force the user to have a DB root password unless it’s a setup with local socket access as described below. That was one of the major points of re-writing that part of the installer. I tested a lot and would hope that the installer does what I say on all officially supported systems.

  • API Return object for scheduledtask is malformed (has a tiny typo)

    Solved
    19
    0 Votes
    19 Posts
    4k Views
    JJ FullmerJ

    @tom-elliott said in API Return object for scheduledtask is malformed (has a tiny typo):

    @tom-elliott Added a little tiny bit.

    Thank you,

    That tiny bit that allowed non-unique names for tasks and scheduled tasks did the trick!

  • 504 Gateway Timeout hitting fog/scheduledtask/list

    Moved Solved
    14
    0 Votes
    14 Posts
    2k Views
    N

    @jj-fullmer

    Hi there, my apologies for not responding earlier. I was on a mini-vacation. As much as one can have in the US now anyway not being able to travel anywhere…

    I’m glad you weren’t stuck in my absense. I want to look at the PowerShell stuff you’ve created for FOG. I was just reading about it. I use PowerShell a lot in my work and can use it.

    Here’s what I did for your reference in JavaScript/JQuery:

    I have an HTML button set to hit this JavaScript function. It just passes the string name of the machine to create the task for. e.g. “LABMACHINE1”

    function create_fog_scheduled_task(node_name){ var hour_to_deploy = 1; // 1am // get the host list $.ajax({ url: "http://lab/fog/host/list", type: "GET", headers: { "fog-api-token": fog_api_token, "fog-user-token": fog_user_token }, contentType: 'application/json', success: function (data) { console.log("Retrieved host list:"); console.log(data); // get the host id var host_id = -1 for (x = 0; x <= data.hosts.length; x++) { if (data.hosts[x].name.toUpperCase() == node_name.toUpperCase()) { host_id = data.hosts[x].id; break; } } console.log("Creating scheduled task for: " + node_name + ", ID: " + host_id); // randomize when task starts to prevent all starting at once.. var minute = Math.floor(Math.random() * 60) // 0 to 59 var post_data = { "name": node_name, "description": "", "type": "C", "taskType": 1, "minute": parseInt(minute), "hour": hour_to_deploy, "dayOfMonth": "*", "month": "*", "dayOfWeek": "*", "isGroupTask": 0, "hostID": parseInt(host_id), "shutdown": 0, "other1": "", "other2": "-1", "other3": "fog", "other4": true, "other5": "", "scheduleTime": "", "isActive": 1, "imageID": 0 } $.ajax({ url: "http://lab/fog/scheduledtask/new", type: "POST", headers: { "fog-api-token": fog_api_token, "fog-user-token": fog_user_token }, contentType: 'application/json', data: JSON.stringify(post_data), success: function (data) { console.log("Scheduled task created for " + node_name); } }); } }); }

    @Sebastian-Roth, @JJ-Fullmer, @Tom-Elliott -
    In troubleshooting this issue, I noticed my code can end up passing minute as zero as well which also ends up as NULL in the database. This doesn’t appear to cause an issue like stHour.

    The UI/PHP set the minute to 0 in this case:
    2020-11-24 01:00

    Even though the database shows (look at SKYLAKE-PC):

    mysql> select stName, stHour, stMinute, stActive from scheduledTasks; +-----------------+--------+----------+----------+ | stName | stHour | stMinute | stActive | +-----------------+--------+----------+----------+ | EEAP-PC | 1 | 33 | 1 | | BEELINK-PC | 1 | 42 | 1 | | CALPELLA-PC | 1 | 49 | 1 | | EVGAQUAD-PC | 1 | 49 | 1 | | ICELAKE2-NUC | 1 | 13 | 1 | | JBMIX-PC | 1 | 53 | 1 | | MAMMOTH-PC | 1 | 51 | 1 | | MASTER-PC | 1 | 53 | 1 | | MITX-PC | 1 | 35 | 1 | | MODISC-PC | 1 | 27 | 1 | | OPTIPLEX7010-PC | 1 | 39 | 1 | | PRECISION-PC | 1 | 42 | 1 | | SKYLAKE-PC | 1 | | 1 | | SMC-X10SAE | 1 | 13 | 1 | | THERMALTAKE-PC | 1 | 19 | 1 | | THINK-PC | 1 | 24 | 1 | | SMC-X11SAE | 1 | 23 | 1 | | VALUELINEI7-PC | 1 | 39 | 1 | | ICELAKE-NUC | 1 | 17 | 1 | +-----------------+--------+----------+----------+ 19 rows in set (0.00 sec)

    I still added this just in case to my website:

    // randomize when task starts to prevent all starting at once.. var minute = Math.floor(Math.random() * 60) // 0 to 59 if (minute == 0) { minute = 1; };

    Thanks everyones for your help on this! It’s very much appreciated!

    Jesse

  • 0 Votes
    4 Posts
    845 Views
    Tom ElliottT

    @quazz Complete!

  • Fog V1.5.9.29 Active Directory Defaults for OU not populating Database

    Moved Solved
    9
    0 Votes
    9 Posts
    2k Views
    Greg PlamondonG

    @Tom-Elliott said in Fog V1.5.9.29 Active Directory Defaults for OU not populating Database:

    Found and fixed in 1.5.9.34

    Thank you,

    Thanks!

  • Report questions

    Moved Solved
    9
    0 Votes
    9 Posts
    1k Views
    C

    @Sebastian-Roth Just tested this out and it works. I just modified the inventory_report.report.php file to match your change.

    Thanks

  • Image Size on Client Incorrect

    Moved Solved
    13
    0 Votes
    13 Posts
    3k Views
    B

    I’ve seen the OP’s issue for several years on ~20 fog servers on various hardware platforms (virtual and bare metal), using both resized and non-resized images. I can confirm that this was still an issue on 1.5.8 but today I upgraded to 1.5.9 and it seems to be resolved. Old images still show the incorrect size, but recapturing them updates the image size on client to the correct value, which is approximately the minimum required hard drive capacity on the client when deploying the image.

  • 0 Votes
    23 Posts
    7k Views
    S

    @JJ-Fullmer said in Surface Go 2 (microsoft surface usb-c ethernet adapter) won't boot bzImage on fog 1.5.9.2 and Getting database update errors:

    I will update my install shortly and re-image one of the machines. Will this also change my kernel? Will I need to remake that change for the surface ethernet adapter?

    You will need to re-download the 5.6.18 kernel.

  • Image Size of the client in Fog does not match the size of the Capture in Hard Drive

    Moved Solved
    13
    0 Votes
    13 Posts
    3k Views
    B

    Sorry for my late reply, re: the other thread that I started on this. I don’t manage the hardware-side of the FOG server so i couldn’t get the file specified. I was also furloughed from work for some time, so I’ve missed the earlier updates.

  • Image replication failing due to syntax error?

    5
    0 Votes
    5 Posts
    811 Views
    S

    @choppaholic26 said in Image replication failing due to syntax error?:

    Will running a new install script do an in-place upgrade without breaking anything?

    That’s what we try to achieve. But as you know there can always be special cases. So we cannot promise an upgrade with no issues. Make sure you have a backup copy of your database and the images any you can re-build a FOG server in no time.

    Don’t get me wrong, I am not saying upgrades don’t work very well. I just can give you an assurance! In most cases (no manual modifications, mostly standard settings) the upgrade runs through without any hickup whatsoever. And even if you bump into an issue we are here to help you. So don’t worry about it. Take a backup copy and go for it.

  • Queues not going in order

    Moved Solved
    5
    0 Votes
    5 Posts
    1k Views
    S

    @Tom-Elliott Thanks for clarification. So from the description it sounds like this is working as intended. The queue is no handled in order but whichever comes along first grabs an open slot.

  • WebUI not deleting images in file system

    Moved Solved
    7
    1 Votes
    7 Posts
    1k Views
    S

    @Chad @DJslimD1k @fry_p This is fixed in the latest dev-branch and will be in the next release - soon to come.

  • Invalid OS ID (0) (determineOS) Args passed:0

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    S

    @jjacobs @Campig Finally found the time to fix and test. It is fixed in the latest dev-branch. For the commit see here.

  • Weird problem when deploying to groups

    Moved Solved
    4
    0 Votes
    4 Posts
    854 Views
    S

    @Campig This is fixed in the latest. For the commit see here. Thanks again!

  • MySQL Failed

    Moved Solved
    16
    0 Votes
    16 Posts
    2k Views
    R

    @Sebastian-Roth Makes sense to me.
    Solved for me

  • Hostname Change Bug 1.58

    Moved Solved
    5
    0 Votes
    5 Posts
    922 Views
    george1421G

    Mod Note: Solving and closing this thread

  • "Language french" invalid stockage group

    11
    0 Votes
    11 Posts
    2k Views
    george1421G

    @OkeriKai said in "Language french" invalid stockage group:

    Un dernière question, quand est-ce que la version 1.5.9RC2 sera t-elle stable ?

    I don’t have an answer for that. The more people that test 1.5.9RC2 the more happy the developers are to move it to stable. Just don’t forget to go NOW and change the branch back to master so you don’t forget later and wonder why things are not working good.

  • 0 Votes
    13 Posts
    5k Views
    george1421G

    @skipdawg02 said in Intel NUC10i3FNK Network Adapter Intel i219-V 10/100/1000 Mbps Ethernet not detected:

    Thank you for the feedback. That’s strange because it should have worked with 5.6.18 out of the box. We’ll compare the config files to see what else is different.

  • Environment & Fog Client

    5
    0 Votes
    5 Posts
    864 Views
    george1421G

    @whyzzi said in Environment & Fog Client:

    Would scheduling shutdown of the snapin to execute happen on fog or the host?

    I’m not sure I understand. You would schedule the snapin to deploy on the FOG server but it would execute the command on the target computer.

    Ok we will keep this as a feature request. So just to be clear you want to force a log off after a certain idle time then reboot?

    (along those same lines) I know there is an auto log off screen saver. When the screen save is started it logs the user off, then would the normal fog restart work correctly?

  • [Sites plugin] Sites shown when adding or editing a host

    Moved
    4
    1 Votes
    4 Posts
    827 Views
    S

    Hi,
    I’m a new user of FOG and I start to use also this plugin ( I modifying the code like itexido suggested and works fine).

    But I have the following problem or maybe a bad configuration.
    When restricted user creates a host and associated it with a site and when he tried to list the hosts that host is not listed. I need to log in with the administrator profile to re-add the host to the site and after that the host is listed with restricted user
    Thanks

177

Online

12.4k

Users

17.5k

Topics

156.0k

Posts