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

    "an error has occurred" in disks tab for normal users

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    4 Posts 2 Posters 277 Views 2 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.
    • N Offline
      NormanTUD
      last edited by NormanTUD

      I have a normal user on my XCPng installation, which is admin for one VM. On each (newly created or old) VM I assign him to, he gets "an error has occurred" on the disks tab.

      In the firefox command line, this error message pops up.

      Screenshot_20221130_092455.png

      "Uncaught TypeError: (destructured parameter).pool is undefined"

      I have 3 pool servers defined, and they work, and the VM work on them, too, but on the "pools" tab for the user, none are shown.

      The system logs (settings -> logs) gives me:

      "not enough permissions"

      And the details are:

      xoa.check
      {}
      {
        "code": 2,
        "data": {
          "permission": "admin",
          "object": {}
        },
        "message": "not enough permissions",
        "name": "XoError",
        "stack": "XoError: not enough permissions
          at Module.unauthorized (/usr/local/lib/node_modules/xo-server/node_modules/xo-common/src/api-errors.js:21:32)
          at Object.call (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/api.mjs:95:18)
          at Api.callApiMethod (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/api.mjs:278:29)
          at runMicrotasks (<anonymous>)
          at processTicksAndRejections (internal/process/task_queues.js:95:5)"
      }
      

      I have xo-server 5.80.0.

      Also, here the overview page showing 0 (of 3) pools:

      Screenshot_20221130_094131.png

      Also, on dashboard/health, there's an error regarding the pool.

      Screenshot_20221130_094447.png

      1 Reply Last reply Reply Quote 0
      • N Offline
        NormanTUD @olivierlambert
        last edited by

        @olivierlambert

        Oh, you are absolutely right. I forgot to do that, and in the latest version, it is fixed. So the problem is gone!

        Thank you very much!

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

          1. Are you on XOA or XO from the sources? If the sources, are you on the latest commit as explained in our doc, before reporting an issue? https://xen-orchestra.com/docs/community.html
          2. Are you an admin user a just a regular user?
          N 1 Reply Last reply Reply Quote 1
          • N Offline
            NormanTUD @olivierlambert
            last edited by

            @olivierlambert

            Oh, you are absolutely right. I forgot to do that, and in the latest version, it is fixed. So the problem is gone!

            Thank you very much!

            1 Reply Last reply Reply Quote 1
            • olivierlambertO olivierlambert marked this topic as a question on
            • olivierlambertO olivierlambert has marked this topic as solved on
            • olivierlambertO Offline
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by

              You are welcome 🙂

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