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

    Looks like there was a problem when starting xo-server/reading journalctl...

    Scheduled Pinned Locked Moved Xen Orchestra
    12 Posts 3 Posters 3.1k Views 1 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.
    • DanpD Offline
      Danp Pro Support Team
      last edited by

      The log didn't capture the full error. You should try manually checking with the following command -- journalctl -u xo-server -n 100

      You can increase the numeric portion as needed.

      1 Reply Last reply Reply Quote 0
      • Z Offline
        ziomario
        last edited by

        @Danp said in Looks like there was a problem when starting xo-server/reading journalctl...:

        journalctl -u xo-server -n 100

        ago 17 14:50:42 ziomario-z390aoruspro xo-server[22308]: 2020-08-17T12:50:42.606Z xo:main INFO Configuration loaded.
        ago 17 14:50:42 ziomario-z390aoruspro xo-server[22308]: 2020-08-17T12:50:42.629Z xo:main WARN Web server could not listen on https://localhost:443 {
        ago 17 14:50:42 ziomario-z390aoruspro xo-server[22308]: error: Error: listen EADDRINUSE: address already in use :::443
        ago 17 14:50:42 ziomario-z390aoruspro xo-server[22308]: at Server.setupListenHandle [as _listen2] (net.js:1313:16)
        ago 17 14:50:42 ziomario-z390aoruspro xo-server[22308]: at listenInCluster (net.js:1361:12)
        ago 17 14:50:42 ziomario-z390aoruspro xo-server[22308]: at Server.listen (net.js:1447:7)
        ago 17 14:50:42 ziomario-z390aoruspro xo-server[22308]: at Server.listen (/opt/xo/xo-builds/xen-orchestra-202017081445/node_modules/http-server-plus/index.js:135:12)
        ago 17 14:50:42 ziomario-z390aoruspro xo-server[22308]: at makeWebServerListen (/opt/xo/xo-builds/xen-orchestra-202017081445/packages/xo-server/src/index.js:454:41) {
        ago 17 14:50:42 ziomario-z390aoruspro xo-server[22308]: code: 'EADDRINUSE',
        ago 17 14:50:42 ziomario-z390aoruspro xo-server[22308]: errno: 'EADDRINUSE',
        ago 17 14:50:42 ziomario-z390aoruspro xo-server[22308]: syscall: 'listen',
        ago 17 14:50:42 ziomario-z390aoruspro xo-server[22308]: address: '::',
        ago 17 14:50:42 ziomario-z390aoruspro xo-server[22308]: port: 443,
        ago 17 14:50:42 ziomario-z390aoruspro xo-server[22308]: niceAddress: 'https://localhost:443'
        ago 17 14:50:42 ziomario-z390aoruspro xo-server[22308]: }
        ago 17 14:50:42 ziomario-z390aoruspro xo-server[22308]: }

        1 Reply Last reply Reply Quote 0
        • Z Offline
          ziomario
          last edited by ziomario

          root@ziomario-z390aoruspro:/etc/xen/XenOrchestraInstallerUpdater/logs# sudo netstat -tulpn | grep :443

          tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 3173/vmware-hostd
          tcp6 0 0 :::443 :::* LISTEN 3173/vmware-hostd

          DanpD 1 Reply Last reply Reply Quote 0
          • DanpD Offline
            Danp Pro Support Team @ziomario
            last edited by

            @ziomario said in Looks like there was a problem when starting xo-server/reading journalctl...:

            vmware-hostd

            Why is that service installed / running?

            1 Reply Last reply Reply Quote 0
            • Z Offline
              ziomario
              last edited by ziomario

              Hello. I have removed vmware and now the port 443 is free. but now,what should I do ? I'm not sure that xen orchestra is working great. to which IP I should connect to see the xen orchestra web administration ? Since the installation ended with an error before,now I don't know what to do. I tried to reinstall it choosing 1 on the menu,but this is what happened :

              1. Autoinstall
              2. Update / Install without packages
              3. Deploy docker container
              4. Rollback to another existing installation
              5. Exit
              
              : 1
              [ok] OS Ubuntu so making sure universe repository is enabled
              
              
              [ok] Running apt-get update
              
              [..] Installing build dependencies, redis server, python, git, libvhdi-utils, lv[ok] Installing build dependencies, redis server, python, git, libvhdi-utils, lvm2, nfs-common, cifs-utils, curl
              
              [..] Installing apt-transport-https and ca-certificates packages to support http[ok] Installing apt-transport-https and ca-certificates packages to support https repos
              
              [info] Checking current node.js version
              
              [info] node.js version already on 12
              
              [ok] Enabling and starting redis service
              
              [ok] Enabling and starting rpcbind service
              
              [info] Fetching Xen Orchestra source code
              
              [info] Creating install directory: /opt/xo/xo-builds/xen-orchestra-202017081708
              
              [info] No changes to xen-orchestra since previous install. Skipping xo-server and xo-web build.
              [info] Cleaning up install directory: /opt/xo/xo-builds/xen-orchestra-2020170817
              

              you can see a screenshot here

              the IP number of xcp-ng is 192.168.122.150,but if It seems that this IP is not the IP that I should use,as u can see below :

              https://ibb.co/NYGMfYk

              the IP of the PC where I have installed xen orchestra is 192.68.1.6,but :

              Firefox can’t establish a connection to the server at 192.168.1.6:443.

              Firefox can’t establish a connection to the server at https://192.168.1.6.

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

                @ziomario Please use the Markdown syntax for code/console output, otherwise it's very hard to read your content.

                ```
                your console output
                ```
                
                Z 1 Reply Last reply Reply Quote 0
                • Z Offline
                  ziomario @olivierlambert
                  last edited by

                  @olivierlambert : refresh the page 😛

                  1 Reply Last reply Reply Quote 0
                  • Z Offline
                    ziomario
                    last edited by

                    are u there ? what should I do ?

                    1 Reply Last reply Reply Quote 0
                    • DanpD Offline
                      Danp Pro Support Team
                      last edited by

                      You could try issuing the command systemctl restart xo-server and then check the logs again.

                      1 Reply Last reply Reply Quote 0
                      • Z Offline
                        ziomario
                        last edited by

                        I've gone into /opt and I have removed the xo folder. otherwise it didn't work.

                        1 Reply Last reply Reply Quote 0
                        • DanpD Offline
                          Danp Pro Support Team
                          last edited by

                          I'm not familiar with that particular script, so I can't help you debug further. Best option at this point is to blow away the VM and start over with a completely fresh install of Ubuntu.

                          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