XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. marcoi
    3. Posts
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 5
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: API call: host.isPubKeyTooShort messages when host if offline

      gduperrey Awesome news - thanks for quick reply.

      posted in Management
      marcoiM
      marcoi
    • API call: host.isPubKeyTooShort messages when host if offline

      I keep getting API call: host.isPubKeyTooShort tasks created and messages in the logs whenever i have a host offline and go to the host screen.

      6ef5ca2b-7438-4ec4-9079-cce7cbfc5dd0-image.png

      b651c126-37a4-4692-8116-463cf632b36c-image.png

      b9b29b29-9dba-4a12-b330-b4b8095c64ec-image.png

      Seems as long as i dont visit the Home-Hosts section i dont get the task or logs.
      Latest commit - Xen Orchestra, commit f8303
      Host details (Disabled before shutdown.)
      724fc669-6bd2-4a8d-93d2-4af591b202f5-image.png

      posted in Management
      marcoiM
      marcoi
    • RE: Issues With Audit Log

      bringing up the host and restarting the tools on master seem to stop the excessive logging.

      EDIT: Bringing down host 3 triggers the alerts again

      EDIT2: Looks like it may be due to how i shutdown the host. First time I put it into maintenance mode, then did the halt command. That caused the messages to come up.
      Second time I just did halt and that caused the messages to come up.
      Third time, i hit disable first then halt. So far seems the messages are no longer coming up.

      I guess i should RTM more lol.

      posted in Xen Orchestra
      marcoiM
      marcoi
    • RE: Issues With Audit Log

      Just started getting the same message in audit log. Not sure if it due to powering down a host in the pool that isnt being used now. but it started about a day ago.

      Xen Orchestra, commit 749f0
      Master, commit 749f0

      Going to power up the host again to see if it goes away.

      d90785dc-a4af-4a18-9e6a-1d03237298f5-image.png

      id	"0m7hqrlcn"
      properties	
      method	"host.isPubKeyTooShort"
      params	
      id	"d695a6a2-0891-4a7b-8c49-fff9b6c11b24"
      name	"API call: host.isPubKeyTooShort"
      userId	"66e90d92-d66e-4971-bee8-922ac8a811b7"
      type	"api.call"
      start	1740321968855
      status	"failure"
      updatedAt	1740321968858
      end	1740321968858
      result	
      code	"HOST_OFFLINE"
      params	
      0	"OpaqueRef:17232738-9715-fb5d-caf8-c3eea6d92b45"
      call	
      duration	3
      method	"host.get_server_certificate"
      params	
      0	"* session id *"
      1	"OpaqueRef:17232738-9715-fb5d-caf8-c3eea6d92b45"
      message	"HOST_OFFLINE(OpaqueRef:17232738-9715-fb5d-caf8-c3eea6d92b45)"
      name	"XapiError"
      stack	"XapiError: HOST_OFFLINE(OpaqueRef:17232738-9715-fb5d-caf8-c3eea6d92b45)\n    at Function.wrap (file:///opt/xo/xo-builds/xen-orchestra-202502212211/packages/xen-api/_XapiError.mjs:16:12)\n    at file:///opt/xo/xo-builds/xen-orchestra-202502212211/packages/xen-api/transports/json-rpc.mjs:38:21\n    at runNextTicks (node:internal/process/task_queues:60:5)\n    at processImmediate (node:internal/timers:454:9)\n    at process.callbackTrampoline (node:internal/async_hooks:130:17)
      
      posted in Xen Orchestra
      marcoiM
      marcoi
    • RE: the writer IncrementalRemoteWriter has failed the step writer.beforeBackup() with error Lock file is already being held. It won't be used anymore in this job execution.

      I just had a backup fail with a similar error.
      Details:
      XO Community
      Xen Orchestra, commit 749f0
      Master, commit 749f0
      Merge backups synchronously was off on the backup job, going to enable it.
      88c76052-e8f1-43dc-a218-5794d46ebaad-image.png

      {
            "data": {
              "type": "VM",
              "id": "4f715b32-ddfb-5818-c7bd-aaaa2a77ce70",
              "name_label": "PROD_SophosXG"
            },
            "id": "1740263738986",
            "message": "backup VM",
            "start": 1740263738986,
            "status": "failure",
            "warnings": [
              {
                "message": "the writer IncrementalRemoteWriter has failed the step writer.beforeBackup() with error Lock file is already being held. It won't be used anymore in this job execution."
              }
            ],
            "end": 1740263738993,
            "result": {
              "code": "ELOCKED",
              "file": "/run/xo-server/mounts/f992fff1-e245-48f7-8eb3-25987ecbfbd4/xo-vm-backups/4f715b32-ddfb-5818-c7bd-aaaa2a77ce70",
              "message": "Lock file is already being held",
              "name": "Error",
              "stack": "Error: Lock file is already being held\n    at /opt/xo/xo-builds/xen-orchestra-202502212211/node_modules/proper-lockfile/lib/lockfile.js:68:47\n    at callback (/opt/xo/xo-builds/xen-orchestra-202502212211/node_modules/graceful-fs/polyfills.js:306:20)\n    at FSReqCallback.oncomplete (node:fs:199:5)\n    at FSReqCallback.callbackTrampoline (node:internal/async_hooks:130:17)\nFrom:\n    at NfsHandler.addSyncStackTrace (/opt/xo/xo-builds/xen-orchestra-202502212211/@xen-orchestra/fs/dist/local.js:21:26)\n    at NfsHandler._lock (/opt/xo/xo-builds/xen-orchestra-202502212211/@xen-orchestra/fs/dist/local.js:135:48)\n    at NfsHandler.lock (/opt/xo/xo-builds/xen-orchestra-202502212211/@xen-orchestra/fs/dist/abstract.js:234:27)\n    at IncrementalRemoteWriter.beforeBackup (file:///opt/xo/xo-builds/xen-orchestra-202502212211/@xen-orchestra/backups/_runners/_writers/_MixinRemoteWriter.mjs:54:34)\n    at async IncrementalRemoteWriter.beforeBackup (file:///opt/xo/xo-builds/xen-orchestra-202502212211/@xen-orchestra/backups/_runners/_writers/IncrementalRemoteWriter.mjs:68:5)\n    at async file:///opt/xo/xo-builds/xen-orchestra-202502212211/@xen-orchestra/backups/_runners/_vmRunners/_AbstractXapi.mjs:343:7\n    at async callWriter (file:///opt/xo/xo-builds/xen-orchestra-202502212211/@xen-orchestra/backups/_runners/_vmRunners/_Abstract.mjs:33:9)\n    at async IncrementalXapiVmBackupRunner.run (file:///opt/xo/xo-builds/xen-orchestra-202502212211/@xen-orchestra/backups/_runners/_vmRunners/_AbstractXapi.mjs:342:5)\n    at async file:///opt/xo/xo-builds/xen-orchestra-202502212211/@xen-orchestra/backups/_runners/VmsXapi.mjs:166:38"
            }
          },
      

      Email report of failure

      VM Backup report
      Global status : failure 🚨
      •	Job ID: bfadfecc-b651-4fd6-b104-2f015100db29
      •	Run ID: 1740263706121
      •	Mode: delta
      •	Start time: Saturday, February 22nd 2025, 5:35:06 pm
      •	End time: Saturday, February 22nd 2025, 5:37:59 pm
      •	Duration: 3 minutes
      •	Successes: 0 / 8 
      1 Failure
      PROD_SophosXG
      Production Sophos Firewall Application 
      •	UUID: 4f715b32-ddfb-5818-c7bd-aaaa2a77ce70
      •	Start time: Saturday, February 22nd 2025, 5:35:38 pm
      •	End time: Saturday, February 22nd 2025, 5:35:38 pm
      •	Duration: a few seconds
      •	⚠️ the writer IncrementalRemoteWriter has failed the step writer.beforeBackup() with error Lock file is already being held. It won't be used anymore in this job execution.
      •	Error: Lock file is already being held
      

      Manually run completed

       PROD_SophosXG (xcp02)
      
          Clean VM directory
          cleanVm: incorrect backup size in metadata
          Start: 2025-02-22 18:37
          End: 2025-02-22 18:37
          Snapshot
          Start: 2025-02-22 18:37
          End: 2025-02-22 18:37
          Qnap NFS Backup
              transfer
              Start: 2025-02-22 18:37
              End: 2025-02-22 18:38
              Duration: a minute
              Size: 12.85 GiB
              Speed: 185.52 MiB/s
          Start: 2025-02-22 18:37
          End: 2025-02-22 18:44
          Duration: 7 minutes
      
      Start: 2025-02-22 18:37
      End: 2025-02-22 18:44
      Duration: 7 minutes
      Type: delta
      
      posted in Backup
      marcoiM
      marcoi