• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. devle
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 7
    • Groups 0

    devle

    @devle

    2
    Reputation
    1
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    devle Unfollow Follow

    Best posts made by devle

    • Schedule Multicast Tasks Issues

      Hello,

      I am currently using the FOG REST API to develop a multicast solution for end users. Immediate multicast tasks are working as expected.

      However, I’m encountering an issue with scheduled tasks. When I create a scheduled multicast task, the task object is successfully registered. But once the scheduled time passes, the task does not execute and remains listed under Tasks → Scheduled Tasks.

      To rule out API-related issues, I also attempted to schedule a multicast task directly through the FOG Web UI, but experienced the same behavior.

      Additional details:

      Version: v1.6.0-beta.2277
      SCHEDULERGLOBALENABLED is enabled
      FogScheduler service is active

      Could you please advise what might be causing scheduled tasks not to execute, or suggest any additional checks or logs I should review?

      Thank you in advance for your help.

      posted in FOG Problems
      D
      devle
    • Database Error when select a group

      Hi, I installed a fresh Fog Server v1.6-beta-2303 on Ubuntu Server 24.04.4 LTS (Installation Type: Normal Server).

      I used FOG Web to create a new group. The group was created successfully. However, when I selected the group to add hosts, the UI page was broken and show html format. This error is shown at the end:

      SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘)’ at line 8

      When I checked FOG status, all services are enabled. But there are warnings related specifically:

      Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Undefined array key “imageID” in /var/www/fog/lib/router/route.class.php on line 2512
      Undefined array key “sID” in /var/www/fog/lib/router/route.class.php on line 2512

      Log of services that had warnings:

      fog_admin@fog2026:~$ systemctl status FOG*

      Apr 01 15:11:38 fog2026 systemd[1]: FOGSnapinReplicator.service: Scheduled restart job, restart counter is at 3.
      Apr 01 15:11:38 fog2026 systemd[1]: Started FOGSnapinReplicator.service - FOGSnapinReplicator.
      Apr 01 15:11:38 fog2026 env[26974]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512

      Apr 01 14:41:34 fog2026 systemd[1]: Started FOGImageSize.service - FOGImageSize.
      Apr 01 14:41:34 fog2026 env[25343]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 14:41:34 fog2026 env[25343]: PHP Warning: Undefined array key “imageID” in /var/www/fog/lib/router/route.class.php on line 25>

      Apr 01 15:11:38 fog2026 systemd[1]: FOGImageReplicator.service: Scheduled restart job, restart counter is at 3.
      Apr 01 15:11:38 fog2026 systemd[1]: Started FOGImageReplicator.service - FOGImageReplicator.
      Apr 01 15:11:38 fog2026 env[26973]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512

      Apr 01 14:41:34 fog2026 systemd[1]: Started FOGSnapinHash.service - FOGSnapinHash.
      Apr 01 14:41:34 fog2026 env[25332]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 14:41:34 fog2026 env[25332]: PHP Warning: Undefined array key “sID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:11:35 fog2026 env[25332]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:11:35 fog2026 env[25332]: PHP Warning: Undefined array key “sID” in /var/www/fog/lib/router/route.class.php on line 2512

      ● FOGMulticastManager.service - FOGMulticastManager
      Loaded: loaded (/usr/lib/systemd/system/FOGMulticastManager.service; enabled; preset: enabled)
      Active: active (running) since Wed 2026-04-01 14:41:34 EEST; 35min ago

      Apr 01 15:16:24 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:16:24 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:16:34 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:16:34 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:16:44 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:16:44 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:16:54 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:16:54 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:17:04 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:17:04 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512

      posted in FOG Problems
      D
      devle

    Latest posts made by devle

    • RE: Database Error when select a group

      @Tom-Elliott Hi Tom,

      log for apache error:

      [Wed Apr 01 16:05:36.847438 2026] [proxy_fcgi:error] [pid 1232] [client 172.28.1.84:48932] AH01071: Got error 'PHP message: PHP Warning:  session_start(): open(/var/lib/php/sessions/sess_f9273cevne2k8cci10csjt7b81, O_RDWR) failed: Permission denied (13) in /var/www/fog/commons/init.php on line 84; PHP message: PHP Warning:  session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/fog/commons/init.php on line 84'
      [Wed Apr 01 16:05:36.860169 2026] [proxy_fcgi:error] [pid 1233] [client 172.28.1.84:48946] AH01071: Got error 'PHP message: PHP Warning:  session_start(): open(/var/lib/php/sessions/sess_f9273cevne2k8cci10csjt7b81, O_RDWR) failed: Permission denied (13) in /var/www/fog/commons/init.php on line 84; PHP message: PHP Warning:  session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/fog/commons/init.php on line 84'
      [Wed Apr 01 16:05:36.877158 2026] [proxy_fcgi:error] [pid 1234] [client 172.28.1.84:48952] AH01071: Got error 'PHP message: PHP Warning:  session_start(): open(/var/lib/php/sessions/sess_f9273cevne2k8cci10csjt7b81, O_RDWR) failed: Permission denied (13) in /var/www/fog/commons/init.php on line 84; PHP message: PHP Warning:  session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/fog/commons/init.php on line 84'
      [Wed Apr 01 16:05:36.889945 2026] [proxy_fcgi:error] [pid 1231] [client 172.28.1.84:48968] AH01071: Got error 'PHP message: PHP Warning:  session_start(): open(/var/lib/php/sessions/sess_f9273cevne2k8cci10csjt7b81, O_RDWR) failed: Permission denied (13) in /var/www/fog/commons/init.php on line 84; PHP message: PHP Warning:  session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/fog/commons/init.php on line 84'
      

      the php-fpm error:

      [01-Apr-2026 12:57:13] NOTICE: Terminating ...
      [01-Apr-2026 12:57:13] NOTICE: exiting, bye-bye!
      [01-Apr-2026 15:57:34] NOTICE: fpm is running, pid 758
      [01-Apr-2026 15:57:34] NOTICE: ready to handle connections
      [01-Apr-2026 15:57:34] NOTICE: systemd monitor interval set to 10000ms
      
      posted in FOG Problems
      D
      devle
    • Database Error when select a group

      Hi, I installed a fresh Fog Server v1.6-beta-2303 on Ubuntu Server 24.04.4 LTS (Installation Type: Normal Server).

      I used FOG Web to create a new group. The group was created successfully. However, when I selected the group to add hosts, the UI page was broken and show html format. This error is shown at the end:

      SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘)’ at line 8

      When I checked FOG status, all services are enabled. But there are warnings related specifically:

      Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Undefined array key “imageID” in /var/www/fog/lib/router/route.class.php on line 2512
      Undefined array key “sID” in /var/www/fog/lib/router/route.class.php on line 2512

      Log of services that had warnings:

      fog_admin@fog2026:~$ systemctl status FOG*

      Apr 01 15:11:38 fog2026 systemd[1]: FOGSnapinReplicator.service: Scheduled restart job, restart counter is at 3.
      Apr 01 15:11:38 fog2026 systemd[1]: Started FOGSnapinReplicator.service - FOGSnapinReplicator.
      Apr 01 15:11:38 fog2026 env[26974]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512

      Apr 01 14:41:34 fog2026 systemd[1]: Started FOGImageSize.service - FOGImageSize.
      Apr 01 14:41:34 fog2026 env[25343]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 14:41:34 fog2026 env[25343]: PHP Warning: Undefined array key “imageID” in /var/www/fog/lib/router/route.class.php on line 25>

      Apr 01 15:11:38 fog2026 systemd[1]: FOGImageReplicator.service: Scheduled restart job, restart counter is at 3.
      Apr 01 15:11:38 fog2026 systemd[1]: Started FOGImageReplicator.service - FOGImageReplicator.
      Apr 01 15:11:38 fog2026 env[26973]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512

      Apr 01 14:41:34 fog2026 systemd[1]: Started FOGSnapinHash.service - FOGSnapinHash.
      Apr 01 14:41:34 fog2026 env[25332]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 14:41:34 fog2026 env[25332]: PHP Warning: Undefined array key “sID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:11:35 fog2026 env[25332]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:11:35 fog2026 env[25332]: PHP Warning: Undefined array key “sID” in /var/www/fog/lib/router/route.class.php on line 2512

      ● FOGMulticastManager.service - FOGMulticastManager
      Loaded: loaded (/usr/lib/systemd/system/FOGMulticastManager.service; enabled; preset: enabled)
      Active: active (running) since Wed 2026-04-01 14:41:34 EEST; 35min ago

      Apr 01 15:16:24 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:16:24 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:16:34 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:16:34 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:16:44 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:16:44 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:16:54 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:16:54 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:17:04 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512
      Apr 01 15:17:04 fog2026 env[25262]: PHP Warning: Undefined array key “ngmID” in /var/www/fog/lib/router/route.class.php on line 2512

      posted in FOG Problems
      D
      devle
    • RE: Schedule Multicast Tasks Issues

      @Tom-Elliott Hi Tom, I updated to 1.6-beta-2297.

      I still face the same issue of scheduled task did not work. FOGScheduler is active. I noticed there are warnings related to Undefined array key in fog/fogcron.class.php in the attached log.

      sudo systemctl status FOGScheduler.service

      ● FOGScheduler.service - FOGScheduler
      Loaded: loaded (/lib/systemd/system/FOGScheduler.service; enabled; vendor preset: enabled)
      Active: active (running) since Tue 2026-03-31 10:13:34 EEST; 48min ago
      Main PID: 952993 (php)
      Tasks: 2 (limit: 28695)
      Memory: 10.8M
      CPU: 48min 47.812s
      CGroup: /system.slice/FOGScheduler.service
      ├─952993 php /opt/fog/service/FOGTaskScheduler/FOGTaskScheduler
      └─953049 php /opt/fog/service/FOGTaskScheduler/FOGTaskScheduler

      Mar 26 14:13:13 fog env[3374690]: PHP Warning: Undefined array key 2 in /var/www/html/fog/lib/fog/fogcron.class.php on line 68
      Mar 26 14:13:13 fog env[3374690]: PHP Warning: Undefined array key 3 in /var/www/html/fog/lib/fog/fogcron.class.php on line 69
      Mar 26 14:13:13 fog env[3374690]: PHP Warning: Undefined array key 4 in /var/www/html/fog/lib/fog/fogcron.class.php on line 70

      posted in FOG Problems
      D
      devle
    • RE: Schedule Multicast Tasks Issues

      @Tom-Elliott Hi Tom, I checked the server Time Zone. It matched with the FOG_TZ_INFO which is EET.

      Server Time: Fri Mar 27 09:04:39 EET 2026
      FOG_TZ_INFO: Europe/Helsinki [EET: +2:00]

      I was unable to schedule the task in the previous version, so I updated to v1.6-beta.2277 two weeks ago. Could you please let me know which version you were referring to in your comment as the working one?

      I could not schedule task in previous version so I updated it to v1.6-beta.2277 2 weeks ago. Please let me know the working version that you suggested in your comment.

      I noticed a difference between the C and S schedule task types. For C tasks, the parameters stMinute, stHour, stDOM, stMonth, and stDOW are populated, whereas for S tasks they are not. Is this expected behavior?

      Delayed:
      *************************** 1. row ***************************
      stID: 27
      stName: Multi-Cast Task
      stDesc:
      stType: S
      stTaskTypeID: 8
      stMinute:
      stHour:
      stDOM:
      stMonth:
      stDOW:
      stIsGroup: 1
      stGroupHostID: 41
      stImageID: 0
      stShutDown:
      stOther1:
      stOther2: -1
      stOther3: xy.xy
      stOther4: 1
      stOther5:
      stDateTime: 1773389439
      stActive: 1

      Cron:
      *************************** 2. row ***************************
      stID: 28
      stName: Multi-Cast Task
      stDesc:
      stType: C
      stTaskTypeID: 8
      stMinute: 0
      stHour: *
      stDOM: *
      stMonth: *
      stDOW: *
      stIsGroup: 1
      stGroupHostID: 41
      stImageID: 0
      stShutDown:
      stOther1:
      stOther2: -1
      stOther3: xy.xy
      stOther4: 1
      stOther5:
      stDateTime: 0
      stActive: 1

      posted in FOG Problems
      D
      devle
    • RE: Schedule Multicast Tasks Issues

      @Tom-Elliott Hi Tom, thanks for your reply.

      I restarted the FogScheduler. Half an hour has past since I created 1 tasks via API and 1 through Fog Web. They stayed in the Scheduled Tasks and did not get executed.

      scheduled_multicast.png

      posted in FOG Problems
      D
      devle
    • RE: Schedule Multicast Tasks Issues

      Added some logs

      Fog Database:
      name@fog:/opt/fog/log$ sudo mariadb -e "
      USE fog;
      SELECT *
      FROM scheduledTasks\G
      "

      *************************** 1. row ***************************
      stID: 27
      stName: Multi-Cast Task
      stDesc:
      stType: S
      stTaskTypeID: 8
      stMinute:
      stHour:
      stDOM:
      stMonth:
      stDOW:
      stIsGroup: 1
      stGroupHostID: 41
      stImageID: 0
      stShutDown:
      stOther1:
      stOther2: -1
      stOther3: xy.xy
      stOther4: 1
      stOther5:
      stDateTime: 1773389439
      stActive: 1

      Crontask:

      *************************** 2. row ***************************
      stID: 28
      stName: Multi-Cast Task
      stDesc:
      stType: C
      stTaskTypeID: 8
      stMinute: 0
      stHour: *
      stDOM: *
      stMonth: *
      stDOW: *
      stIsGroup: 1
      stGroupHostID: 41
      stImageID: 0
      stShutDown:
      stOther1:
      stOther2: -1
      stOther3: xy.xy
      stOther4: 1
      stOther5:
      stDateTime: 0
      stActive: 1

      Fog Settings
      ±-----------------------±-----------------+
      | settingKey | settingValue |
      ±-----------------------±-----------------+
      | SCHEDULERDEVICEOUTPUT | /dev/tty4 |
      | SCHEDULERGLOBALENABLED | 1 |
      | SCHEDULERLOGFILENAME | fogscheduler.log |
      | SCHEDULERSLEEPTIME | 60 |
      ±-----------------------±-----------------+

      [03-06-26 12:26:18 pm] Interface Ready with IP Address: 127.0.0.1
      [03-06-26 12:26:18 pm] Interface Ready with IP Address: 127.0.1.1
      [03-06-26 12:26:18 pm] Interface Ready with IP Address: 172.28.1.80
      [03-06-26 12:26:18 pm] Interface Ready with IP Address: domain.name.xxx
      [03-06-26 12:26:18 pm] * Starting TaskScheduler Service
      [03-06-26 12:26:18 pm] * Checking for new items every 60 seconds
      [03-06-26 12:26:18 pm] * Starting service loop
      [03-06-26 12:26:18 pm] * 3 tasks found.
      [03-06-26 12:26:18 pm] * Checking for expired checked-in tasks…
      [03-06-26 12:26:18 pm] * Scheduled Task run time: Fri, 01 Jan 2027 00:00:00 +0200
      [03-06-26 12:26:18 pm] * This is a cron style task that should not run now.

      The time zone:
      name@fog:/opt/fog/log$ date
      Fri Mar 13 10:38:46 EET 2026
      name@fog:/opt/fog/log$ sudo mariadb -e “SELECT NOW();”
      ±--------------------+
      | NOW() |
      ±--------------------+
      | 2026-03-13 10:39:22 |
      ±--------------------+

      posted in FOG Problems
      D
      devle
    • Schedule Multicast Tasks Issues

      Hello,

      I am currently using the FOG REST API to develop a multicast solution for end users. Immediate multicast tasks are working as expected.

      However, I’m encountering an issue with scheduled tasks. When I create a scheduled multicast task, the task object is successfully registered. But once the scheduled time passes, the task does not execute and remains listed under Tasks → Scheduled Tasks.

      To rule out API-related issues, I also attempted to schedule a multicast task directly through the FOG Web UI, but experienced the same behavior.

      Additional details:

      Version: v1.6.0-beta.2277
      SCHEDULERGLOBALENABLED is enabled
      FogScheduler service is active

      Could you please advise what might be causing scheduled tasks not to execute, or suggest any additional checks or logs I should review?

      Thank you in advance for your help.

      posted in FOG Problems
      D
      devle