• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Is there a way to identify the task failed?

Scheduled Pinned Locked Moved
FOG Problems
2
2
178
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W
    WT_101
    last edited by Oct 19, 2022, 1:35 AM

    Hi,

    Currently if there is an error during capture/deploy the tasks state will stay at in-progress and the system will keep rebooting to re-try.

    I m working on automation to schedule task and deploy/capture but i would like to cancel the tasks if encounter error on the system and retrieve the error message. Could you guide me on any where i can retrieve these info?

    I do look at the db tasks table dont seem to have a column storing these info.

    Thank You
    WT

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Oct 22, 2022, 6:49 PM

      @WT_101 Currently FOG does neither store the error message nor does it stop the task in case of a failure. Probably a nice feature to add if you are keen to get into it.

      You wanna start by looking at the FOS script code. Pretty much all errors cause a single function to be called: handleError() in /usr/share/fog/lib/funcs.sh (code reference). This function could be extended to report back to the FOG server and even cancel the task.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      1 / 1
      • First post
        1/2
        Last post

      172

      Online

      12.1k

      Users

      17.3k

      Topics

      155.3k

      Posts
      Copyright © 2012-2024 FOG Project