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

    Task Management menu unavailable on Fog Web interface

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    5
    853
    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.
    • S
      Seydoo
      last edited by

      Hello all,

      since this morning I have a litlle problem accessing the task management menu in the web interface of my Fog Server
      Fog client : 1.2.0
      OS : Redhat Enterprise 6.6 (Santiago)

      I have 1 task in queue (imagin computer), perhaps it crashed so it’s why the menu is not available
      Some month ago I saw a post on the forum wich explain how purge the mysql table for existing tasks but I can’t retrieve it

      Can someone help me ?

      Here is a copy of my error (all others menu works)

      0_1459514898790_upload-87627cc7-64d6-4b1d-ad4b-910b1f28a967

      This is a Chrome screen but the error is present on Firefox and IE

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @Seydoo Check your apache error log with tail -f /var/log/httpd/error_log while accessing that page…

        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
        • S
          Seydoo
          last edited by Seydoo

          here is the content of the log file :

          [Fri Apr 01 15:08:30 2016] [error] [client 172.16.16.29] PHP Fatal error: Call to a member function __toString() on a non-object in /var/www/html/fog/lib/pages/TaskManagementPage.class.php on line 419, referer: http://172.27.1.1/fog/management/index.php?node=about&sub=settings

          The line 419 seems to refers to a Mac Adress ( ‘host_mac’ => $Task->getHost()->get(‘mac’)->__toString(), )
          I suspect my imaging task to be the cause of the problem, which is “queued” in the dashboard page since this morning :

          0_1459516668497_upload-6233fbd3-97a8-44ec-a314-7266e92271e5

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by Sebastian Roth

            @Seydoo My guess is that you had an old task in the list and deleted the host object. Seams like this is not something we have checks for in FOG 1.2.0. Please connect to you DB via command line client or phpmyadmin and see what you get from this:

            mysql --user=root -p
            Enter password:
            ...
            mysql> use fog;
            ...
            mysql> SELECT * FROM tasks WHERE NOT EXISTS (SELECT * FROM hosts WHERE hosts.hostID = tasks.taskHostID );
            Empty set (0.00 sec)
            

            On my DB the query returns an empty result set because I don’t have tasks which are not connected to any host. But I guess you will see at least one entry. Note down the taskID and do DELETE FROM tasks WHERE taskID = 999; (put in the taskID you saw from the SELECT statement)

            PS: @Tom-Elliott I tested and it is not causing a problem in FOG trunk. Although those task entries will stay in the DB forever…

            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
            • S
              Seydoo
              last edited by Seydoo

              @Sebastian
              My HERO !!! 🙂

              Tanks a lot it works

              @admin
              You can solve this post

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

              146

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project