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

    How to enable back up notification in community edition

    Scheduled Pinned Locked Moved Xen Orchestra
    11 Posts 4 Posters 1.7k 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.
    • gskgerG Offline
      gskger Top contributor
      last edited by gskger

      You need to enable and configure the backup-reports and transport-email plugin under setting - plugins. backup-reports just needs the recipient mail address. transport-email needs the mail service connection settings in the transport section (you get this settings from your mail provider) and a valid sender mail address.

      When you configure a backup job, you can then choose when you want to receive a notification (settings block bottom left). Settings are self explanatory (Always vs. Failure). That's it and I hope it helped.

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

        If the plugins aren't visible under Settings > Plugins, then you'll need to "install" them, which involves creating some symlinks so that XO will load them. See this prior discussion for details --

        https://xcp-ng.org/forum/topic/2125/xo-from-source-and-plugins-installation-solved

        okynnorO 1 Reply Last reply Reply Quote 0
        • okynnorO Offline
          okynnor @Danp
          last edited by

          @Danp Thank you. I Googled and saw that link you shared. However, it doesn't discuss how I can install those plug-ins to begin with. It seems to assume that the plugins are there, or not already. But when I run the symlink, it doesn't work. Sorry if this is not completely obvious to me right now.

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

            @okynnor You'll need to tell us how you installed XO. Did you manually follow the recommended procedure or did you use a 3rd party script?

            Also, expand on "doesn't work". Show us the commands you used to create the symlinks and the resulting console output. Did you restart XO afterwards? Did XO attempt to load the plugin? Were there any errors shown in the log? Etc.

            okynnorO 1 Reply Last reply Reply Quote 0
            • okynnorO Offline
              okynnor @Danp
              last edited by

              @Danp I used a third party script.

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

                @okynnor You can't expect me to put in more effort to solve your issue than you. Right now it feels like I'm pulling teeth when trying to get details from you.

                I used a third party script

                I shouldn't have to ask, but which one? šŸ™„

                Also, you didn't address any of the items in my 2nd paragraph

                okynnorO 1 Reply Last reply Reply Quote 1
                • okynnorO Offline
                  okynnor @Danp
                  last edited by

                  @Danp

                  I used this script to install XO:
                  https://github.com/ronivay/XenOrchestraInstallerUpdater

                  I did reboot the server after trying the following commands:

                  sudo npm i xo-server-backup-reports
                  [sudo] password for ronny:
                  npm WARN saveError ENOENT: no such file or directory, open '/home/ronny/package.json'
                  npm WARN enoent ENOENT: no such file or directory, open '/home/ronny/package.json'
                  npm WARN ronny No description
                  npm WARN ronny No repository field.
                  npm WARN ronny No README data
                  npm WARN ronny No license field.

                  • xo-server-backup-reports@0.16.0
                    added 7 packages from 10 contributors and audited 22 packages in 2.115s
                    found 3 low severity vulnerabilities
                    run npm audit fix to fix them, or npm audit for details

                  ronny@xo-ce:~$ sudo npm install
                  npm WARN saveError ENOENT: no such file or directory, open '/home/ronny/package.json'
                  npm WARN enoent ENOENT: no such file or directory, open '/home/ronny/package.json'
                  npm WARN ronny No description
                  npm WARN ronny No repository field.
                  npm WARN ronny No README data
                  npm WARN ronny No license field.

                  audited 31 packages in 0.519s
                  found 3 low severity vulnerabilities
                  run npm audit fix to fix them, or npm audit for details

                  ╭────────────────────────────────────────────────────────────────╮
                  │ │
                  │ New patch version of npm available! 6.13.4 → 6.13.7 │
                  │ Changelog: https://github.com/npm/cli/releases/tag/v6.13.7 │
                  │ Run npm install -g npm to update! │
                  │ │
                  ╰────────────────────────────────────────────────────────────────╯

                  ronny@xo-ce:~$ npm install -g npm to update!
                  npm ERR! code EACCES
                  npm ERR! syscall open
                  npm ERR! path /home/ronny/.npm/_cacache/tmp/ee1c2dee
                  npm ERR! errno -13
                  npm ERR!
                  npm ERR! Your cache folder contains root-owned files, due to a bug in
                  npm ERR! previous versions of npm which has since been addressed.
                  npm ERR!
                  npm ERR! To permanently fix this problem, please run:
                  npm ERR! sudo chown -R 1000:1000 "/home/ronny/.npm"
                  npm ERR! code EACCES
                  npm ERR! syscall open
                  npm ERR! path /home/ronny/.npm/_cacache/tmp/649b30c3
                  npm ERR! errno -13
                  npm ERR!
                  npm ERR! Your cache folder contains root-owned files, due to a bug in
                  npm ERR! previous versions of npm which has since been addressed.
                  npm ERR!
                  npm ERR! To permanently fix this problem, please run:
                  npm ERR! sudo chown -R 1000:1000 "/home/ronny/.npm"
                  ronny@xo-ce:~$

                  I didn't follow with the symlink as per your suggested URL because of the errors above. There was no point right?

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

                    @okynnor said in How to enable back up notification in community edition:

                    I used this script to install XO:
                    https://github.com/ronivay/XenOrchestraInstallerUpdater

                    Did you notice the README.md? It explains how to use the script and how to have it install the plugins for you.

                    sudo npm i xo-server-backup-reports

                    This may have been correct at one time, but I don't believe that will work any longer. @julien-f Are these even kept up-to-date?

                    I didn't follow with the symlink as per your suggested URL because of the errors above. There was no point right?

                    The source files are pulled in by the script and then it creates the symlinks for the plugins that you designate.

                    okynnorO 1 Reply Last reply Reply Quote 0
                    • julien-fJ Offline
                      julien-f Vates 🪐 Co-Founder XO Team
                      last edited by

                      @Danp said in How to enable back up notification in community edition:

                      Are these even kept up-to-date?

                      No, they are not kept up-to-date, please install them from the sources šŸ™‚

                      1 Reply Last reply Reply Quote 0
                      • okynnorO Offline
                        okynnor @Danp
                        last edited by

                        @Danp That's perfect. All plugins are installed and running. Thank you for pointing that out. Should have. Could have.

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