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

    Backup Info under VM tab in v6 never loads...

    Scheduled Pinned Locked Moved Backup
    12 Posts 3 Posters 162 Views 3 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.
    • MathieuRAM Offline
      MathieuRA Vates 🪐 XO Team @acebmxer
      last edited by

      Hello.

      Could you please run the request GET /rest/v0/vms/<your-vm-id>/dashboard and check if the endpoint is working?

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        acebmxer @MathieuRA
        last edited by

        @MathieuRA said:

        GET /rest/v0/vms/<your-vm-id>/dashboard

        GET /rest/v0/vms/138538a8-ef52-4d0a-4433-5ebb31d/dashboard
        Command 'GET' not found, but can be installed with:
        sudo apt install libwww-perl
        
        (😈xo-ce)-[~]
        └─$ GET /rest/v0/vms/138538a8-ef52-4d0a-4433-5ebb31d/dashboard
                                                                                                                                                   
        ┌──(😈xo-ce)-[~]
        └─$ sudo GET /rest/v0/vms/138538a8-ef52-4d0a-4433-5ebb31d/dashboard
                                                                                                                                                   
        ┌──(😈xo-ce)-[~]
        └─$ 
        

        after installing libwww-perl
        Neither produced an output...

        MathieuRAM 1 Reply Last reply Reply Quote 0
        • MathieuRAM Offline
          MathieuRA Vates 🪐 XO Team @acebmxer
          last edited by

          @acebmxer

          Sorry, I may not have been clear.

          /rest/v0/vms/:id/dashboard is an endpoint on the XO REST API.

          Therefore, you need to make an HTTP GET request to <xo-url>/rest/v0/vms/<your-vm-id>/dashboard.

          You can do this directly with your browser, or from Swagger if you prefer.
          (<xo-url>/rest/v0/docs)

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            acebmxer @MathieuRA
            last edited by

            @MathieuRA

            Think this is what you were looking for?

            I tried both with ndjson boolean set to false and true same output...

            Screenshot 2026-03-27 124309.png

            79100bc0-ad51-48df-9e44-f6bbd912f44d-image.jpeg

            {
              "quickInfo": {
                "id": "613f541c-4bed-fc77-7ca8-2db6b68f079c",
                "power_state": "Halted",
                "uuid": "613f541c-4bed-fc77-7ca8-2db6b68f079c",
                "name_description": "some-random-description",
                "CPUs": {
                  "number": 1
                },
                "mainIpAddress": "10.1.6.166",
                "os_version": {
                  "name": "Alpine Linux v3.21"
                },
                "memory": {
                  "size": 536870912
                },
                "creation": {
                  "date": "2025-10-23T14:12:05.689Z",
                  "user": "e531b8c9-3876-4ed9-8fd2-0476d5f825c9"
                },
                "$pool": "b7569d99-30f8-178a-7d94-801de3e29b5b",
                "virtualizationMode": "hvm",
                "tags": [],
                "host": "b61a5c92-700e-4966-a13b-00633f03eea8",
                "pvDriversDetected": false,
                "startTime": null
              },
              "alarms": [],
              "backupsInfo": {
                "lastRun": [
                  {
                    "backupJobId": "399f368a-a550-4cdf-9c5b-84b68912b748",
                    "timestamp": 1762124447136,
                    "status": "success"
                  },
                  {
                    "backupJobId": "399f368a-a550-4cdf-9c5b-84b68912b748",
                    "timestamp": 1762038039074,
                    "status": "success"
                  },
                  {
                    "backupJobId": "399f368a-a550-4cdf-9c5b-84b68912b748",
                    "timestamp": 1761951645862,
                    "status": "success"
                  }
                ],
                "vmProtected": true,
                "replication": {
                  "id": "8c2b7a25-70b9-4a1c-d6e0-9cce86d3171a",
                  "timestamp": 1761302770000,
                  "sr": "4cb0d74e-a7c1-0b7d-46e3-09382c012abb"
                },
                "backupArchives": [
                  {
                    "id": "1af95910-01b4-4e87-9c2f-d895cafe0776//xo-vm-backups/613f541c-4bed-fc77-7ca8-2db6b68f079c/20251102T230026Z.json",
                    "timestamp": 1762124426346,
                    "backupRepository": "1af95910-01b4-4e87-9c2f-d895cafe0776",
                    "size": 0
                  },
                  {
                    "id": "1af95910-01b4-4e87-9c2f-d895cafe0776//xo-vm-backups/613f541c-4bed-fc77-7ca8-2db6b68f079c/20251101T230026Z.json",
                    "timestamp": 1762038026319,
                    "backupRepository": "1af95910-01b4-4e87-9c2f-d895cafe0776",
                    "size": 0
                  },
                  {
                    "id": "1af95910-01b4-4e87-9c2f-d895cafe0776//xo-vm-backups/613f541c-4bed-fc77-7ca8-2db6b68f079c/20251031T230025Z.json",
                    "timestamp": 1761951625256,
                    "backupRepository": "1af95910-01b4-4e87-9c2f-d895cafe0776",
                    "size": 0
                  }
                ]
              }
            }
            No links
            400	
            Bad request
            
            MathieuRAM 1 Reply Last reply Reply Quote 0
            • MathieuRAM Offline
              MathieuRA Vates 🪐 XO Team @acebmxer
              last edited by MathieuRA

              @acebmxer Yes, thanks.
              The error unable to read properties of undefined is clearly unexpected. I will investigate.

              You probably have a more detailed error log on the xo server side. Can you paste it here?

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                acebmxer @MathieuRA
                last edited by

                @MathieuRA

                sudo journalctl -u xo-server -n 50
                Mar 27 19:27:10 xo-ce xo-server[55210]: 2026-03-27T19:27:10.657Z xo:rest-api:error-handler ERROR Cannot read properties of undefined (reading 'vms'>
                Mar 27 19:27:10 xo-ce xo-server[55210]:   error: TypeError: Cannot read properties of undefined (reading 'vms')
                Mar 27 19:27:10 xo-ce xo-server[55210]:       at BackupLogService.isVmInBackupLog (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/backup-lo>
                Mar 27 19:27:10 xo-ce xo-server[55210]:       at filter (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/vms/vm.service.mjs:228:40)
                Mar 27 19:27:10 xo-ce xo-server[55210]:       at Array.filter (<anonymous>)
                Mar 27 19:27:10 xo-ce xo-server[55210]:       at Xo.getBackupNgLogsSorted (file:///opt/xen-orchestra/packages/xo-server/src/xo-mixins/backups-ng-lo>
                Mar 27 19:27:10 xo-ce xo-server[55210]:       at VmService.#getBackupsInfo (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/vms/vm.service.m>
                Mar 27 19:27:10 xo-ce xo-server[55210]:       at promiseWriteInStream (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/helpers/utils.helper.>
                Mar 27 19:27:10 xo-ce xo-server[55210]: }
                Mar 27 19:27:10 xo-ce xo-server[55210]: 2026-03-27T19:27:10.657Z xo:rest-api:error-handler INFO [GET] /vms/138538a8-ef52-4d0a-4433-5ebb31d7e152/das>
                Mar 27 19:27:24 xo-ce xo-server[55210]: 2026-03-27T19:27:24.056Z xo:rest-api:error-handler ERROR Cannot read properties of undefined (reading 'vms'>
                Mar 27 19:27:24 xo-ce xo-server[55210]:   error: TypeError: Cannot read properties of undefined (reading 'vms')
                Mar 27 19:27:24 xo-ce xo-server[55210]:       at BackupLogService.isVmInBackupLog (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/backup-lo>
                Mar 27 19:27:24 xo-ce xo-server[55210]:       at filter (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/vms/vm.service.mjs:228:40)
                Mar 27 19:27:24 xo-ce xo-server[55210]:       at Array.filter (<anonymous>)
                Mar 27 19:27:24 xo-ce xo-server[55210]:       at Xo.getBackupNgLogsSorted (file:///opt/xen-orchestra/packages/xo-server/src/xo-mixins/backups-ng-lo>
                Mar 27 19:27:24 xo-ce xo-server[55210]:       at VmService.#getBackupsInfo (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/vms/vm.service.m>
                Mar 27 19:27:24 xo-ce xo-server[55210]:       at promiseWriteInStream (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/helpers/utils.helper.>
                Mar 27 19:27:24 xo-ce xo-server[55210]: }
                Mar 27 19:27:24 xo-ce xo-server[55210]: 2026-03-27T19:27:24.057Z xo:rest-api:error-handler INFO [GET] /vms/138538a8-ef52-4d0a-4433-5ebb31d7e152/das>
                Mar 27 19:27:41 xo-ce xo-server[55210]: 2026-03-27T19:27:41.663Z xo:rest-api:error-handler ERROR Cannot read properties of undefined (reading 'vms'>
                Mar 27 19:27:41 xo-ce xo-server[55210]:   error: TypeError: Cannot read properties of undefined (reading 'vms')
                Mar 27 19:27:41 xo-ce xo-server[55210]:       at BackupLogService.isVmInBackupLog (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/backup-lo>
                Mar 27 19:27:41 xo-ce xo-server[55210]:       at filter (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/vms/vm.service.mjs:228:40)
                Mar 27 19:27:41 xo-ce xo-server[55210]:       at Array.filter (<anonymous>)
                Mar 27 19:27:41 xo-ce xo-server[55210]:       at Xo.getBackupNgLogsSorted (file:///opt/xen-orchestra/packages/xo-server/src/xo-mixins/backups-ng-lo>
                Mar 27 19:27:41 xo-ce xo-server[55210]:       at VmService.#getBackupsInfo (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/vms/vm.service.m>
                Mar 27 19:27:41 xo-ce xo-server[55210]:       at promiseWriteInStream (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/helpers/utils.helper.>
                Mar 27 19:27:41 xo-ce xo-server[55210]: }
                Mar 27 19:27:41 xo-ce xo-server[55210]: 2026-03-27T19:27:41.663Z xo:rest-api:error-handler INFO [GET] /vms/138538a8-ef52-4d0a-4433-5ebb31d7e152/das>
                Mar 27 19:27:55 xo-ce xo-server[55210]: 2026-03-27T19:27:55.046Z xo:rest-api:error-handler ERROR Cannot read properties of undefined (reading 'vms'>
                Mar 27 19:27:55 xo-ce xo-server[55210]:   error: TypeError: Cannot read properties of undefined (reading 'vms')
                Mar 27 19:27:55 xo-ce xo-server[55210]:       at BackupLogService.isVmInBackupLog (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/backup-lo>
                Mar 27 19:27:55 xo-ce xo-server[55210]:       at filter (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/vms/vm.service.mjs:228:40)
                Mar 27 19:27:55 xo-ce xo-server[55210]:       at Array.filter (<anonymous>)
                Mar 27 19:27:55 xo-ce xo-server[55210]:       at Xo.getBackupNgLogsSorted (file:///opt/xen-orchestra/packages/xo-server/src/xo-mixins/backups-ng-lo>
                Mar 27 19:27:55 xo-ce xo-server[55210]:       at VmService.#getBackupsInfo (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/vms/vm.service.m>
                Mar 27 19:27:55 xo-ce xo-server[55210]:       at promiseWriteInStream (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/helpers/utils.helper.>
                Mar 27 19:27:55 xo-ce xo-server[55210]: }
                Mar 27 19:27:55 xo-ce xo-server[55210]: 2026-03-27T19:27:55.046Z xo:rest-api:error-handler INFO [GET] /vms/138538a8-ef52-4d0a-4433-5ebb31d7e152/das>
                Mar 27 19:28:12 xo-ce xo-server[55210]: 2026-03-27T19:28:12.633Z xo:rest-api:error-handler ERROR Cannot read properties of undefined (reading 'vms'>
                Mar 27 19:28:12 xo-ce xo-server[55210]:   error: TypeError: Cannot read properties of undefined (reading 'vms')
                Mar 27 19:28:12 xo-ce xo-server[55210]:       at BackupLogService.isVmInBackupLog (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/backup-lo>
                Mar 27 19:28:12 xo-ce xo-server[55210]:       at filter (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/vms/vm.service.mjs:228:40)
                Mar 27 19:28:12 xo-ce xo-server[55210]:       at Array.filter (<anonymous>)
                Mar 27 19:28:12 xo-ce xo-server[55210]:       at Xo.getBackupNgLogsSorted (file:///opt/xen-orchestra/packages/xo-server/src/xo-mixins/backups-ng-lo>
                Mar 27 19:28:12 xo-ce xo-server[55210]:       at VmService.#getBackupsInfo (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/vms/vm.service.m>
                Mar 27 19:28:12 xo-ce xo-server[55210]:       at promiseWriteInStream (file:///opt/xen-orchestra/@xen-orchestra/rest-api/dist/helpers/utils.helper.>
                Mar 27 19:28:12 xo-ce xo-server[55210]: }
                Mar 27 19:28:12 xo-ce xo-server[55210]: 2026-03-27T19:28:12.633Z xo:rest-api:error-handler INFO [GET] /vms/138538a8-ef52-4d0a-4433-5ebb31d7e152/das>
                lines 1-50/50 (END)
                
                MathieuRAM 1 Reply Last reply Reply Quote 0
                • MathieuRAM Offline
                  MathieuRA Vates 🪐 XO Team @acebmxer
                  last edited by

                  Hi @acebmxer.
                  Can you test on the branch mra-fix-vm-dashboard?

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    acebmxer @MathieuRA
                    last edited by acebmxer

                    @MathieuRA

                    That seemed to work....

                    Screenshot 2026-03-30 104123.png

                    Screenshot 2026-03-30 104147.png

                    Edit - Updated back to master commit. and broken again as expected... So you patched branch works...

                    Screenshot 2026-03-30 104516.png

                    MathieuRAM 1 Reply Last reply Reply Quote 1
                    • MathieuRAM Offline
                      MathieuRA Vates 🪐 XO Team @acebmxer
                      last edited by

                      @acebmxer Thanks. We will do our best to merge the fix tomorow

                      A 1 Reply Last reply Reply Quote 1
                      • A Offline
                        acebmxer @MathieuRA
                        last edited by

                        @MathieuRA

                        Dont think you pushed this already unless i am mistaken. But on Commit 9226c

                        One vm populates the backup second on dashboard while the other do not. this happens to be the same vm check to confirm your changes. I dont recall if i checked other vms.

                        But on Commit 9226c 1 vm dashboard loads correctly.

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post