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

    XO5 breaks after defaulting to XO6 (from source)

    Scheduled Pinned Locked Moved Xen Orchestra
    53 Posts 7 Posters 610 Views 6 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 @MajorP93
      last edited by MathieuRA

      @MajorP93 various fixes have been performed on master.

      Your config file should look like this

      [http.mounts]
      # Uncomment to setup a default version.
      # Otherwise, XO5 will be the default for stable channel and XO6 for latest and source
      # '/' = '../xo-web/dist/'
      
      '/v5' = '../xo-web/dist/'
      '/v6' = '../../@xen-orchestra/web/dist/'
      
      [http.proxies]
      # [port] is used to reuse the same port declared in [http.listen.0]
      '/v5/api' = '[protocol]//localhost:[port]/api'
      '/v5/api/updater' = 'ws://localhost:9001'
      '/v5/rest' = 'http://localhost:[port]/rest'
      

      If you are using a different configuration file that overrides the default configuration, please verify that the paths to xo-5 and xo-6 are correct. You can use absolute paths if necessary.

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

        @MathieuRA said in XO5 breaks after defaulting to XO6 (from source):

        @acebmxer Can you provide me with the logs from xo-server at its launch?

        Here you go. I made the changes you last suggested to me then I did a restart - sudo systemctl restart xo-server

        before change-log.txt
        after change-log.txt

        Let me know if i did that correctly or if you need more information.

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

          @acebmxer I want logs from the journalctl.
          sudo systemctl restart xo-server
          sudo journalctl -fu xo-server

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

            @MathieuRA

            Again thank you so much for you time trying to assist with this. The script OP has responded and updated the script to work correctly now.

            Again thank to all Vates staff for all the hard work you do that goes unnoticed.

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

              @acebmxer
              Perfect.
              Thank you all as well! Early testing and feedback are very precious to us.

              1 Reply Last reply Reply Quote 1
              • M Offline
                MajorP93 @MathieuRA
                last edited by

                @MathieuRA said in XO5 breaks after defaulting to XO6 (from source):

                @MajorP93 various fixes have been performed on master.

                Your config file should look like this

                [http.mounts]
                # Uncomment to setup a default version.
                # Otherwise, XO5 will be the default for stable channel and XO6 for latest and source
                # '/' = '../xo-web/dist/'
                
                '/v5' = '../xo-web/dist/'
                '/v6' = '../../@xen-orchestra/web/dist/'
                
                [http.proxies]
                # [port] is used to reuse the same port declared in [http.listen.0]
                '/v5/api' = '[protocol]//localhost:[port]/api'
                '/v5/api/updater' = 'ws://localhost:9001'
                '/v5/rest' = 'http://localhost:[port]/rest'
                

                If you are using a different configuration file that overrides the default configuration, please verify that the paths to xo-5 and xo-6 are correct. You can use absolute paths if necessary.

                Thanks!
                I tried your approach but it did not fix the issue.
                The maintainer of the Docker container (ronivay) was able to narrow the issue down to users that let XO handle http to https redirection and SSL encryption.

                For now I made Xen Orchestra listen on port 80 only and disabled http to https redirection.
                I use Traefik as reverse proxy now and let it handle those parts.

                With that setup it works without any issues.

                Maybe at some point somebody could further investigate wether or not http to https redirection in combination with SSL encryption is broken after XO 6 became the default.

                Would be interesting to see if this issue occurs for non-docker users aswell.

                A MathieuRAM 3 Replies Last reply Reply Quote 0
                • A Offline
                  acebmxer @MajorP93
                  last edited by

                  @MajorP93

                  I think ronivay is doing something with Xen Orchestra which is why @mathieura suggestions were not working. I tried to follow his changes in the none docker script but it was above my head. Either way glad he was able to resolve your issues as well.

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

                    @MajorP93 I think I am finally able to reproduce the bug. I will try to fix it

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

                      @MajorP93 can you try this branch? mra-fix-redirect-https It should fix your issue with redirectToHttps=true

                      M 1 Reply Last reply Reply Quote 2
                      • M Offline
                        MajorP93 @MathieuRA
                        last edited by MajorP93

                        @MathieuRA I disabled Traefik and reverted to my old XO config (port 443, ssl encryption, http to https redirection), rebuild the docker container using your branch and tested:

                        it is working fine on my end now 🙂

                        Thank you very much!

                        I did not expect this to get fixed so fast!

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