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

    "an error has occurred" in home -> storage

    Scheduled Pinned Locked Moved Xen Orchestra
    xenorchestra
    6 Posts 2 Posters 377 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

      Hi,
      I have a selfcompiled version of XCP. I just upgraded it to b100a (latest git master, just did "git pull"), but this error still is there.

      The situation is the following. I have a user that has self-service rights, and I have three hosts and several storage systems.

      When the user goes to the storage window, the user sees this:

      xcp.png

      This is the developers console. It seems like the action requires admin rights, which the normal user obviously doesn't have. It would be great to show something there anyways, if somehow possible, or to hide the storage tab if it's not possible, so the user never gets error messages.

      xcp2.png

      This is what shows in the logs after calling the page as testuser:

      xcp3.png

      This is the log content (they all are the same, only one as an example):

      proxy.getAll
      {}
      {
        "code": 2,
        "data": {
          "permission": "admin",
          "object": {}
        },
        "message": "not enough permissions",
        "name": "XoError",
        "stack": "XoError: not enough permissions
          at Module.unauthorized (/root/xen-orchestra-2/packages/xo-common/api-errors.js:26:11)
          at Xo.call (file:///root/xen-orchestra-2/packages/xo-server/src/xo-mixins/api.mjs:88:18)
          at Api.#callApiMethod (file:///root/xen-orchestra-2/packages/xo-server/src/xo-mixins/api.mjs:368:29)"
      }
      

      Is there anything I can do to fix this? Or is it considered a bug?

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

        Hi!

        Can you reproduce it with XOA?

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

          @olivierlambert I must admit that I am not entirely sure of how each component of XCP is named, and what differentiates Xen from XOA and so on.

          The .git/config tells me it was pulled from https://github.com/vatesfr/xen-orchestra (in a VM on my XCP cluster).

          What steps may I do to check what you requested me to check? I'd be glad to help, and sorry for the inconvience of me not knowing all the details of this great product.

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

            XOA is the turnkey appliance you can deploy from there: https://xen-orchestra.com/#!/xoa (it's a Debian VM with Xen Orchestra pre-installed and pro support included)

            You can import your config from your source version to XOA and use the trial to see if it works there 🙂

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

              @olivierlambert Well, sadly, I cannot replicate it then, because my system is behind strict firewalls that do not allow contact to registration servers, and sadly, I cannot change that.

              Screenshot_20221215_153557.png

              Nothing works on the XOA subpage because of that.

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

                You can't login to our servers with your source version (from Git), you must download the virtual appliance.

                If you can't access https://xen-orchestra.com internally, then, indeed, you won't be able to register it in the end.

                But if you managed to clone it from Github, you have some access to outside 🙂

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