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

    XO from source and plugins installation [ SOLVED ]

    Scheduled Pinned Locked Moved Xen Orchestra
    7 Posts 3 Posters 3.7k Views 3 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.
    • M Offline
      moradin
      last edited by moradin

      Hi all !

      I install the last XO (5.50.1 and xo-web 5.50.2) from source, and I have a problem to install/activate plugins on it.
      No plugins are available, but on the server (debian9) I see plugins I want, in ~/xen-orchestra/_modules:

      rwxrwxrwx 1 root root 27 oct. 9 14:55 xo-acl-resolver -> ../packages/xo-acl-resolver
      lrwxrwxrwx 1 root root 18 oct. 9 14:55 xo-cli -> ../packages/xo-cli
      lrwxrwxrwx 1 root root 25 oct. 9 14:55 xo-collection -> ../packages/xo-collection
      lrwxrwxrwx 1 root root 21 oct. 9 14:55 xo-common -> ../packages/xo-common
      lrwxrwxrwx 1 root root 33 oct. 9 14:55 xo-import-servers-csv -> ../packages/xo-import-servers-csv
      drwxr-xr-x 2 root root 4,0K oct. 9 14:55 xok/
      lrwxrwxrwx 1 root root 18 oct. 9 14:55 xo-lib -> ../packages/xo-lib
      lrwxrwxrwx 1 root root 28 oct. 9 14:55 xo-remote-parser -> ../packages/xo-remote-parser
      lrwxrwxrwx 1 root root 21 oct. 9 14:55 xo-server -> ../packages/xo-server
      lrwxrwxrwx 1 root root 33 oct. 9 14:55 xo-server-auth-github -> ../packages/xo-server-auth-github
      lrwxrwxrwx 1 root root 33 oct. 9 14:55 xo-server-auth-google -> ../packages/xo-server-auth-google
      lrwxrwxrwx 1 root root 31 oct. 9 14:55 xo-server-auth-ldap -> ../packages/xo-server-auth-ldap
      lrwxrwxrwx 1 root root 31 oct. 9 14:55 xo-server-auth-saml -> ../packages/xo-server-auth-saml
      lrwxrwxrwx 1 root root 36 oct. 9 14:55 xo-server-backup-reports -> ../packages/xo-server-backup-reports
      lrwxrwxrwx 1 root root 27 oct. 9 14:55 xo-server-cloud -> ../packages/xo-server-cloud
      lrwxrwxrwx 1 root root 35 oct. 9 14:55 xo-server-load-balancer -> ../packages/xo-server-load-balancer
      lrwxrwxrwx 1 root root 32 oct. 9 14:55 xo-server-perf-alert -> ../packages/xo-server-perf-alert
      lrwxrwxrwx 1 root root 36 oct. 9 14:55 xo-server-sdn-controller -> ../packages/xo-server-sdn-controller
      lrwxrwxrwx 1 root root 26 oct. 9 14:55 xo-server-test -> ../packages/xo-server-test
      lrwxrwxrwx 1 root root 33 oct. 9 14:55 xo-server-test-plugin -> ../packages/xo-server-test-plugin
      lrwxrwxrwx 1 root root 37 oct. 9 14:55 xo-server-transport-email -> ../packages/xo-server-transport-email
      lrwxrwxrwx 1 root root 38 oct. 9 14:55 xo-server-transport-nagios -> ../packages/xo-server-transport-nagios
      lrwxrwxrwx 1 root root 37 oct. 9 14:55 xo-server-transport-slack -> ../packages/xo-server-transport-slack
      lrwxrwxrwx 1 root root 36 oct. 9 14:55 xo-server-transport-xmpp -> ../packages/xo-server-transport-xmpp
      lrwxrwxrwx 1 root root 34 oct. 9 14:55 xo-server-usage-report -> ../packages/xo-server-usage-report
      lrwxrwxrwx 1 root root 26 oct. 9 14:55 xo-vmdk-to-vhd -> ../packages/xo-vmdk-to-vhd

      I just want for the moment: xo-server-transport-email and xo-backup-reports. The links are already done, and I don't find how can install/activate it.

      Thanks in advance and have a good day !

      1 Reply Last reply Reply Quote 0
      • B Offline
        Biggen
        last edited by

        Are plugins even available for the community XO edition?

        1 Reply Last reply Reply Quote 0
        • M Offline
          moradin
          last edited by

          @Biggen said in XO from source and plugins installation:

          Are plugins even available for the community XO edition?

          Hi and thank you for your response.

          Yes, before plugins are available, I have this two plugins activate on many old version of Xo from source. Just have to install the plugin(s) and make a link to activate it with a xo-server restart.
          Maybe on this new version, it has changed?

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

            They will show up if you create a symlink in /usr/local/lib/node_modules/ to the desired plugins.

            @moradin said in XO from source and plugins installation:

            I just want for the moment: xo-server-transport-email and xo-backup-reports. The links are already done, and I don't find how can install/activate it.

            Did you restart xo-server after creating the links? If not, then that's the issue because XO only detects plugins on its initial startup.

            1 Reply Last reply Reply Quote 1
            • M Offline
              moradin
              last edited by

              Hi, it's not me who has created those links, it's created automatically after XO install from source. On previous versions, I have to do this but now those links are already done.

              I don't have "node_modules" in /usr/local/lib/ , just python2.7 and python3.5, maybe I forget to install a package?

              But I have /usr/lib/node_modules, with npm folder and an other "node_modules" folder inside with 349 folders !

              (10:20:46|root@xo-xcp-ng**:/usr/lib/node_modules/npm** #) l
              total 96K
              -rw-r--r-- 1 root root 959 août 2 2018 appveyor.yml
              -rw-r--r-- 1 root root 23K août 15 20:26 AUTHORS
              drwxr-xr-x 3 root root 4,0K oct. 9 14:51 bin/
              -rwxr-xr-x 1 root root 521 août 2 2018 configure
              drwxr-xr-x 4 root root 4,0K oct. 9 14:51 html/
              drwxr-xr-x 8 root root 4,0K oct. 9 14:51 lib/
              -rw-r--r-- 1 root root 3,2K août 16 2018 .mailmap
              -rw-r--r-- 1 root root 156 août 2 2018 make.bat
              -rw-r--r-- 1 root root 5,5K août 16 2018 Makefile
              drwxr-xr-x 5 root root 4,0K oct. 9 14:51 man/
              drwxr-xr-x 351 root root 12K oct. 9 14:51 node_modules/
              -rw-r--r-- 1 root root 324 août 15 20:26 .npmignore
              -rw-rw-r-- 1 root root 7,3K août 15 20:26 package.json
              drwxr-xr-x 2 root root 4,0K oct. 9 14:51 scripts/
              -rw-r--r-- 1 root root 1,2K août 15 20:26 .travis.yml
              (10:20:47|root@xo-xcp-ng:/usr/lib/node_modules/npm #) cd node_modules/
              Display all 349 possibilities? (y or n)

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

                To create the needed links, use the ln command. It should look like this for transport-email and backup-reports --

                ln -s /opt/xen-orchestra/packages/xo-server-transport-email /usr/local/lib/node_modules/
                ln -s /opt/xen-orchestra/packages/xo-server-backup-reports /usr/local/lib/node_modules/
                
                
                1 Reply Last reply Reply Quote 0
                • M Offline
                  moradin
                  last edited by

                  Ok thank you very much, it works! I think I forget to install package but no ....

                  Have a good day ! 😉

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