• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. fishfox
    3. Topics
    F
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 20
    • Best 3
    • Controversial 0
    • Groups 0

    Topics created by fishfox

    • F

      Question about task state update via API

      General
      • • • fishfox
      1
      0
      Votes
      1
      Posts
      338
      Views

      No one has replied

    • F

      Unsolved API basic auth not working

      FOG Problems
      • • • fishfox
      3
      0
      Votes
      3
      Posts
      507
      Views

      Tom ElliottT

      It also appears you’re missing the actual FOG-API-TOKEN header.
      E.G. Try:

      curl -H 'fog-api-token: YourFOGAPITokenHere' -H 'Content-type: application/json' -u api:password 'http://fog.home/fog/task/active' -vvv
    • F

      Adding complete custom task

      General
      • • • fishfox
      3
      0
      Votes
      3
      Posts
      1.2k
      Views

      F

      @sebastian-roth Not a bad thought.

      I enabled the API in FOG Configuration > Fog Settings > API Enabled > Update and copied the API key.
      I then created a new user and got their API key.
      I am trying this:

      curl -H 'fog-api-token: <server token>' -H 'fog-user-token: <user token>' -H 'Content-Type: application/json' -X GET http://fog.home/fog/system/info

      And I get a 404:

      <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /fog/system/info was not found on this server.</p> <hr> <address>Apache/2.4.33 (Ubuntu) Server at fog.home Port 80</address> </body></html>

      Something else I need to do to enable?

      EDIT:
      Switched to working branch as per this, no luck: https://forums.fogproject.org/topic/11764/api-broken-after-update-to-1-5-2
      Same issue when trying via IP instead of DNS name.

    • F

      Solved "Database connection unavailable"

      FOG Problems
      • • • fishfox
      18
      0
      Votes
      18
      Posts
      15.4k
      Views

      S

      @EricZ said in "Database connection unavailable":

      I navigated to /Home/fogproject and ran the “git checkout dev-branch” and got “not a git repository” error message.

      Then you are not using git source code but downloaded tar.gz/ZIP I suppose. While this isn’t wrong it’s just that you cannot switch between development and master branch as mentioned.

      As well I am wondering if you are using the fogproject user to login? Don’t do that! It’s intended to be a service account and should not be used!

    • F

      Add custom iPXE menu item as task

      General
      • • • fishfox
      3
      0
      Votes
      3
      Posts
      1.1k
      Views

      F

      @george1421 I was able to add a task with the Task Type Management plugin.

      With the below added to the kernel args I am able to boot to iso:

      && imgfree && initrd http://${fog-ip}/fog/isoimg/LiteTouchPE_x64.iso && chain memdisk iso raw

      Is there a way I can chain a “Fast Wipe” task right before the boot?

      I am looking through the source for the Fast Wipe task definition but can’t seem to find it.

    • 1 / 1