ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Xen Orchestra SMB Remote problem

    IT Discussion
    xen server xen orchestra backup
    8
    37
    8.7k
    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.
    • DustinB3403D
      DustinB3403
      last edited by

      From the CLI of XO put in

      watch sudo systemctl status xo-server.service
      

      and then try to connect to the SMB share from the web interface.

      Using Putty is highly recommended

      AdamFA 1 Reply Last reply Reply Quote 0
      • AdamFA
        AdamF @DustinB3403
        last edited by

        @DustinB3403

        No, this is a single server, in a lab, in a workgroup. Connecting from the XO Web interface does nothing at all. No error message on the screen. If I open developer tools in Chrome, it shows me a little more about what's happening. see below.

        ebSocket connection to 'ws://192.168.1.246/api/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
        t {message: "invalid status closed, expected open", name: "t"}
        message
        :
        "invalid status closed, expected open"
        name
        :
        "t"
        stack
        :
        (...)
        get stack
        :
        stack()
        set stack
        :
        stack()
        __proto__
        :r
        

        So every time I click the connect button in the web UI of XO, it seems to restart XO server. Then the only other message that I see that gives me a clue is : xo:api (unknown user) | session.signIn(...) [3ms] ==> object. Full output below.

        Oct 04 08:48:44 xeno systemd[1]: xo-server.service: Service hold-off time over, scheduling restart.
        Oct 04 08:48:44 xeno systemd[1]: Stopped XO Server.
        Oct 04 08:48:44 xeno systemd[1]: Started XO Server.
        Oct 04 08:48:46 xeno xo
        
        Oct 04 08:51:07 xeno xo-server[20453]: Tue, 04 Oct 2016 12:51:07 GMT xo:perf blocked for 161ms
        Oct 04 08:51:07 xeno xo-server[20453]: Tue, 04 Oct 2016 12:51:07 GMT xo:main + WebSocket connection (::ffff:192.168.1.41)
        Oct 04 08:51:07 xeno xo-server[20453]: Tue, 04 Oct 2016 12:51:07 GMT xo:perf blocked for 33ms
        Oct 04 08:51:07 xeno xo-server[20453]: Tue, 04 Oct 2016 12:51:07 GMT xo:perf blocked for 12ms
        Oct 04 08:51:07 xeno xo-server[20453]: Tue, 04 Oct 2016 12:51:07 GMT xo:perf blocked for 69ms
        Oct 04 08:51:07 xeno xo-server[20453]: Tue, 04 Oct 2016 12:51:07 GMT xen-api [email protected]: event.from(...) [2s] ==> object
        Oct 04 08:51:08 xeno xo-server[20453]: Tue, 04 Oct 2016 12:51:08 GMT xo:perf blocked for 258ms
        Oct 04 08:51:08 xeno xo-server[20453]: Tue, 04 Oct 2016 12:51:08 GMT xo:api (unknown user) | session.signIn(...) [3ms] ==> object
        Oct 04 08:51:08 xeno xo-server[20453]: Tue, 04 Oct 2016 12:51:08 GMT xen-api [email protected]: event.from(...) [33ms] ==> object
        Oct 04 08:51:08 xeno xo-server[20453]: Tue, 04 Oct 2016 12:51:08 GMT xo:api
        1 Reply Last reply Reply Quote 0
        • DustinB3403D
          DustinB3403
          last edited by

          Without providing the password; what do you have in your SMB connection setting?

          You were able to connect to the SMB share from the XO console right?

          AdamFA 1 Reply Last reply Reply Quote 0
          • AdamFA
            AdamF @DustinB3403
            last edited by

            @DustinB3403

            In the CLI of the VM where XO is installed:

            smbclient //192.168.1.200/xsbackups -U xenbackups

            Then of course I'm prompted for the password and it connect immediately.

            DustinB3403D 1 Reply Last reply Reply Quote 0
            • DustinB3403D
              DustinB3403 @AdamF
              last edited by DustinB3403

              @fuznutz04 I assume you meant to use \

              It's odd that this works from the CLI but not the web interface.

              In the address field which is proceeded by \\ and then <address\share>* are you typing in the double \\ or just putting in "192.168.1.200\xsbackups"?

              0_1475586898062_chrome_2016-10-04_09-14-52.png

              1 Reply Last reply Reply Quote 0
              • DustinB3403D
                DustinB3403
                last edited by

                Or are you putting in just the ip address of the server, and in the following field putting in the folder?

                1 Reply Last reply Reply Quote 0
                • AdamFA
                  AdamF
                  last edited by

                  It will only allow you to put in the correct format of IP\Share. So in this example, i only put in 192.168.1.200\xsbackups. xsbackups is the name of the SMB share.

                  I keep looking at this connection refused error. It makes me think it is something specifically with the web interface, or that the API is not working properly.

                  1 Reply Last reply Reply Quote 0
                  • DustinB3403D
                    DustinB3403
                    last edited by

                    It might be a bug that needs to go up to @olivier to take a look at.

                    1 Reply Last reply Reply Quote 1
                    • olivierO
                      olivier
                      last edited by

                      Please put a screenshot here with how you filled those fields.

                      AdamFA 2 Replies Last reply Reply Quote 2
                      • AdamFA
                        AdamF @olivier
                        last edited by

                        @olivier 0_1475798522725_2016-10-06 20_01_33-Settings.png

                        mrfusion is the name of my desktop where the share is located. I also tried putting in the workgroup name in that field instead of the PC name.

                        1 Reply Last reply Reply Quote 0
                        • AdamFA
                          AdamF @olivier
                          last edited by

                          @olivier
                          0_1475798740323_2016-10-06 20_05_07-.png

                          Opening Chrome developer tools gives me these messages when trying to either add the remote share.

                          1 Reply Last reply Reply Quote 0
                          • olivierO
                            olivier
                            last edited by

                            It seems you have side issues with connection between you browser and the server. Are you in HTTPS?

                            AdamFA 1 Reply Last reply Reply Quote 0
                            • AdamFA
                              AdamF @olivier
                              last edited by

                              @olivier said in Xen Orchestra SMB Remote problem:

                              It seems you have side issues with connection between you browser and the server. Are you in HTTPS?

                              No, I'm not using HTTPS. I've tried from both Safari as well as Chrome so far from multiple computers. I've also disabled the firewall completely on the XO box just to rule that out. Still having the same issue,

                              1 Reply Last reply Reply Quote 0
                              • olivierO
                                olivier
                                last edited by olivier

                                Even antivirus software are a pain with websocket protocols. That's why we recommend to go in HTTPS before going further in debug.

                                AdamFA 1 Reply Last reply Reply Quote 0
                                • AdamFA
                                  AdamF @olivier
                                  last edited by

                                  @olivier said in Xen Orchestra SMB Remote problem:

                                  Even antivirus software are a pain with websocket protocols. That's why we recommend to go in HTTPS before going further in debug.

                                  Is HTTPS supposed to be configured during the installation of XO? I cant connect if I try to connect via HTTPS. Are there instructions available regarding how to set that piece up? Thanks for your help!

                                  1 Reply Last reply Reply Quote 0
                                  • olivierO
                                    olivier
                                    last edited by

                                    Yes, XOA is bundled with certs (autosigned but still).

                                    Anyway, doc is here: https://xen-orchestra.com/docs/configuration.html

                                    AdamFA 1 Reply Last reply Reply Quote 0
                                    • AdamFA
                                      AdamF @olivier
                                      last edited by

                                      @olivier said in Xen Orchestra SMB Remote problem:

                                      Yes, XOA is bundled with certs (autosigned but still).

                                      Anyway, doc is here: https://xen-orchestra.com/docs/configuration.html

                                      I installed using the installation script below, so I didn't use the appliance.

                                      sudo curl https://raw.githubusercontent.com/scottalanmiller/xenorchestra_installer/master/xo_install.sh | bash
                                      

                                      I'll take a look at that documentation and give see if that will make a difference and report back.

                                      1 Reply Last reply Reply Quote 0
                                      • AdamFA
                                        AdamF
                                        last edited by

                                        So circling back to this, I was determined to add an SMB remote backup share. Instead of adding a remote SMB backup share through XO, I just mounted the SMB share through Ubuntu where XO is installed. In this case, I mounted to /Backups. Then setup a "local" remote in XO that points to /Backups. Backups are now running and being stored on a remote computer.

                                        scottalanmillerS 1 Reply Last reply Reply Quote 1
                                        • scottalanmillerS
                                          scottalanmiller @AdamF
                                          last edited by

                                          @fuznutz04 said in Xen Orchestra SMB Remote problem:

                                          So circling back to this, I was determined to add an SMB remote backup share. Instead of adding a remote SMB backup share through XO, I just mounted the SMB share through Ubuntu where XO is installed. In this case, I mounted to /Backups. Then setup a "local" remote in XO that points to /Backups. Backups are now running and being stored on a remote computer.

                                          Awesome.

                                          1 Reply Last reply Reply Quote 1
                                          • 1
                                          • 2
                                          • 2 / 2
                                          • First post
                                            Last post