XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Backup job fails after restoring XO from Backup - ENOENT: no such file or directory, uv_cwd

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    4 Posts 2 Posters 1.1k Views 1 Watching
    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.
    • R Offline
      runevn
      last edited by

      I have just restored XO from a backup because I had some challenges after upgrading XO community edition.

      However, now my scheduled backup jobs fails all with the following error: ENOENT: no such file or directory, uv_cwd

      The full log error:

      {
        "data": {
          "mode": "full",
          "reportWhen": "failure"
        },
        "id": "1625253198637",
        "jobId": "7c1a955d-40c5-4f84-8b1f-573911427001",
        "jobName": "Weekly Backup",
        "message": "backup",
        "scheduleId": "0bd28888-e278-4628-87e1-b0ba58c6f892",
        "start": 1625253198637,
        "status": "failure",
        "tasks": [
          {
            "data": {
              "type": "remote",
              "id": "7847ae41-54e0-4534-9790-a9c57ca6744a"
            },
            "id": "1625253199171",
            "message": "get remote adapter",
            "start": 1625253199171,
            "status": "failure",
            "end": 1625253199171,
            "result": {
              "errno": -2,
              "code": "ENOENT",
              "syscall": "uv_cwd",
              "message": "ENOENT: no such file or directory, uv_cwd",
              "name": "Error",
              "stack": "Error: ENOENT: no such file or directory, uv_cwd\n    at process.wrappedCwd (internal/bootstrap/switches/does_own_process_state.js:130:28)\n    at process.cwd (/home/mex/xen-orchestra/node_modules/graceful-fs/polyfills.js:10:19)\n    at handleArguments (/home/mex/xen-orchestra/node_modules/execa/index.js:39:36)\n    at NfsHandler.execa [as _execa] (/home/mex/xen-orchestra/node_modules/execa/index.js:75:17)\n    at NfsHandler._sync (/home/mex/xen-orchestra/@xen-orchestra/fs/dist/_mount.js:83:18)"
            }
          }
        ],
        "end": 1625253199172
      }
      

      As mentioned I restored the XO VM from a backup. I also made a snapshot that I also reverted back to. My Backup remote is working and tested.

      Any help is highly appreciated.

      1 Reply Last reply Reply Quote 0
      • R Offline
        runevn
        last edited by

        Does anyone know if this is related to node or is it related to reverting the XO back to a previous snapshot?

        1 Reply Last reply Reply Quote 0
        • olivierlambertO Offline
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          Smells like a rebuild problem. Try to follow the official doc on a fresh git clone and try again 🙂

          R 1 Reply Last reply Reply Quote 0
          • R Offline
            runevn @olivierlambert
            last edited by

            @olivierlambert Thanks.

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