obot: knowldege - Loading failure relating to `failed to stat files in workspace ID`

Note this error may not be seen always Steps to reproduce the problem:

  1. Create an agent with knowledge from onedrive location - Corps Docs (600+ files)
  2. Have New Files Ingestion Policy set to Automatic

Ingestion reports failure for one of the fails:

Screenshot 2024-11-11 at 2 32 30 PM

Agent - https://test.otto8.ai/admin/agents/a147997 Debug logs for the loading run -

{
  "frames": {
    "1731363839": {
      "chatResponseCached": false,
      "currentAgent": {

      },
      "displayText": "Running Knowledge Loading from /otto8-tools/./knowledge/load.gpt",
      "end": "0001-01-01T00:00:00Z",
      "id": "1731363839",
      "input": "{\"input\":\"/Corp Docs/Accounting/Accounts Payable/Pinnacle Branding/Invoice26648-1.pdf\",\"output\":\".conversion/Corp Docs/Accounting/Accounts Payable/Pinnacle Branding/Invoice26648-1.pdf.json\"}",
      "inputContext": null,
      "llmRequest": {
        "command": [
          "/bin/sh",
          "-c",
          "exec ${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool load --flows-file=blueprint:otto --flow=ottoload \"ws://${INPUT}\" \"ws://${OUTPUT}\""
        ],
        "input": "{\"input\":\"/Corp Docs/Accounting/Accounts Payable/Pinnacle Branding/Invoice26648-1.pdf\",\"output\":\".conversion/Corp Docs/Accounting/Accounts Payable/Pinnacle Branding/Invoice26648-1.pdf.json\"}"
      },
      "llmResponse": null,
      "output": [
        {
          "content": "warning: ignoring CMap range (50-50) that is outside of the codespace\nwarning: ignoring CMap range (54-54) that is outside of the codespace\nwarning: ignoring CMap range (52-52) that is outside of the codespace\nwarning: ignoring CMap range (56-56) that is outside of the codespace\nwarning: ignoring CMap range (45-45) that is outside of the codespace\nwarning: ignoring CMap range (49-49) that is outside of the codespace\nwarning: ignoring CMap range (32-32) that is outside of the codespace\nwarning: ignoring CMap range (48-48) that is outside of the codespace\nwarning: ignoring CMap range (53-53) that is outside of the codespace\nwarning: ignoring CMap range (47-47) that is outside of the codespace\nwarning: ignoring CMap range (55-55) that is outside of the codespace\nwarning: ignoring CMap range (57-57) that is outside of the codespace\nwarning: ignoring CMap range (51-51) that is outside of the codespace\nwarning: ignoring CMap range (36-36) that is outside of the codespace\nwarning: ignoring CMap range (46-46) that is outside of the codespace\nwarning: ignoring CMap range (58-58) that is outside of the codespace\nwarning: ignoring CMap range (44-44) that is outside of the codespace\nwarning: ignoring CMap range (40-40) that is outside of the codespace\nwarning: ignoring CMap range (41-41) that is outside of the codespace\nwarning: ignoring CMap range (78-78) that is outside of the codespace\nwarning: ignoring CMap range (98-98) that is outside of the codespace\nwarning: ignoring CMap range (101-101) that is outside of the codespace\nwarning: ignoring CMap range (68-68) that is outside of the codespace\nwarning: ignoring CMap range (97-97) that is outside of the codespace\nwarning: ignoring CMap range (73-73) that is outside of the codespace\nwarning: ignoring CMap range (86-86) that is outside of the codespace\nwarning: ignoring CMap range (79-79) that is outside of the codespace\nwarning: ignoring CMap range (67-67) that is outside of the codespace\nwarning: ignoring CMap range (69-69) that is outside of the codespace\nwarning: ignoring CMap range (82-82) that is outside of the codespace\nwarning: ignoring CMap range (32-32) that is outside of the codespace\nwarning: ignoring CMap range (84-84) that is outside of the codespace\nwarning: ignoring CMap range (83-83) that is outside of the codespace\nwarning: ignoring CMap range (72-72) that is outside of the codespace\nwarning: ignoring CMap range (80-80) that is outside of the codespace\nwarning: ignoring CMap range (70-70) that is outside of the codespace\nwarning: ignoring CMap range (66-66) that is outside of the codespace\nwarning: ignoring CMap range (100-100) that is outside of the codespace\nwarning: ignoring CMap range (46-46) that is outside of the codespace\nwarning: ignoring CMap range (99-99) that is outside of the codespace\nwarning: ignoring CMap range (85-85) that is outside of the codespace\nwarning: ignoring CMap range (81-81) that is outside of the codespace\nwarning: ignoring CMap range (38-38) that is outside of the codespace\nwarning: ignoring CMap range (45-45) that is outside of the codespace\nwarning: ignoring CMap range (65-65) that is outside of the codespace\nwarning: ignoring CMap range (76-76) that is outside of the codespace\n",
          "subCalls": null
        }
      ],
      "start": "2024-11-11T22:31:44.451298646Z",
      "tool": {
        "arguments": {
          "properties": {
            "Input": {
              "description": "Input File",
              "type": "string"
            },
            "Output": {
              "description": "Output File",
              "type": "string"
            },
            "know_load_metadata": {
              "description": "Comma-delimited key=value pairs to be added to the metadata of the loaded document.",
              "type": "string"
            }
          },
          "type": "object"
        },
        "description": "Load a document, convert it to Knowledge JSON Format and store it to a file.",
        "id": "/otto8-tools/./knowledge/load.gpt:Knowledge Loading",
        "instructions": "#!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool load --flows-file=blueprint:otto --flow=ottoload \"ws://${INPUT}\" \"ws://${OUTPUT}\"",
        "internalPrompt": null,
        "localTools": {
          "knowledge loading": "/otto8-tools/./knowledge/load.gpt:Knowledge Loading"
        },
        "modelName": "gpt-4o",
        "name": "Knowledge Loading",
        "source": {
          "lineNo": 1,
          "location": "/otto8-tools/./knowledge/load.gpt"
        },
        "workingDir": "/otto8-tools/knowledge"
      },
      "toolResults": 0,
      "type": "callProgress",
      "usage": {

      }
    }
  },
  "spec": {
    "synchronous": true,
    "threadName": "t1-ks1fvwtj",
    "input": "{\"input\":\"/Corp Docs/Accounting/Accounts Payable/Pinnacle Branding/Invoice26648-1.pdf\",\"output\":\".conversion/Corp Docs/Accounting/Accounts Payable/Pinnacle Branding/Invoice26648-1.pdf.json\"}",
    "tool": "\"knowledge-load\""
  },
  "status": {
    "state": "error",
    "output": "",
    "endTime": "2024-11-11T22:31:44Z",
    "error": "run encountered an error: failed to read events: context canceled with error output: "
  }
}

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

@shweta8996 not really as I could never replicate it myself. However I think it’s

  • Create a new agent
  • Click “Add Knowledge”
  • add a source with lots of files, e.g. website https://coral.org
  • see if one of the files fails to ingest (i.e. gets a red sign indicating an error)