Git Product home page Git Product logo

Comments (22)

julien-f avatar julien-f commented on September 15, 2024

Not at all, we need to update the documentation.

You can find the plugin there.

from xo.

Phlogi avatar Phlogi commented on September 15, 2024

Perfect, thank you - and the idea is to install those globally, i.e.: npm install --global xo-server-transport-email?

from xo.

julien-f avatar julien-f commented on September 15, 2024

If your xo-server is also installed globally, otherwise, clone the repository and build the project yourself in xo-server's node_modules/.

from xo.

Phlogi avatar Phlogi commented on September 15, 2024

I installed it in my xo-server and after npm install xo-server-transport-email in that directory I can see it under node_modules, however the server does not list it under plugins. Anything else than restarting the server? Rebuilding it?

from xo.

olivierlambert avatar olivierlambert commented on September 15, 2024

Adding the plugin, as explained in the doc: https://xen-orchestra.com/docs/backups.html#email-notifications (last line)

from xo.

Phlogi avatar Phlogi commented on September 15, 2024

Is any plugin configuration needed? I get an error when configuring the plugin:

| plugin.load(...) [12ms] =!> InvalidParameters: invalid parameter(s)

from xo.

Phlogi avatar Phlogi commented on September 15, 2024

image

error message in GUI

from xo.

julien-f avatar julien-f commented on September 15, 2024

Do you have any error in the browser console?

from xo.

Phlogi avatar Phlogi commented on September 15, 2024

Yes, sorry I forgot to check that:

Error for plugin.load: JsonRpcError {code: -32602, data: "plugin not configured", message: "invalid parameter(s)", name: "JsonRpcError", stack: "JsonRpcError: invalid parameter(s)↵    at JsonRpcS…:20680)↵    at https://xen.serveraddress/app.js:31:22388"…}__stackCleaned__: truecode: -32602data: "plugin not configured"isOperational: truemessage: "invalid parameter(s)"name: "JsonRpcError"stack: "JsonRpcError: invalid parameter(s)↵    at JsonRpcServer.<anonymous> (https://xen.serveraddress/app.js:72:1549)↵    at JsonRpcServer._write (https://xen.serveraddress/app.js:72:519)↵    at doWrite (https://xen.serveraddress/app.js:68:27050)↵    at writeOrBuffer (https://xen.serveraddress/app.js:68:26822)↵    at JsonRpcServer.Writable.write (https://xen.serveraddress/app.js:68:29990)↵    at WebSocket.<anonymous> (https://xen.serveraddress/app.js:71:27413)↵From previous event:↵    at JsonRpcServer.<anonymous> (https://xen.serveraddress/app.js:72:2005)↵From previous event:↵    at https://xen.serveraddress/app.js:71:27777↵From previous event:↵    at Api.call (https://xen.serveraddress/app.js:71:27746)↵    at Xo.<anonymous> (https://xen.serveraddress/app.js:72:24578)↵    at Scope.$eval (https://xen.serveraddress/app.js:28:5228)↵    at Scope.$digest (https://xen.serveraddress/app.js:28:3042)↵    at Scope.$apply (https://xen.serveraddress/app.js:28:5646)↵    at $$debounceViewValueCommit (https://xen.serveraddress/app.js:31:22365)↵    at $setViewValue (https://xen.serveraddress/app.js:31:21821)↵    at HTMLInputElement.listener (https://xen.serveraddress/app.js:29:9081)↵    at HTMLInputElement.jQuery.event.dispatch (https://xen.serveraddress/app.js:56:11101)↵    at HTMLInputElement.elemData.handle (https://xen.serveraddress/app.js:56:5931)↵From previous event:↵    at Xo.call (https://xen.serveraddress/app.js:72:24545)↵    at Object.defineProperties.call (https://xen.serveraddress/app.js:12:29849)↵    at Object.load (https://xen.serveraddress/app.js:14:7086)↵    at _execPluginMethod (https://xen.serveraddress/app.js:7:18936)↵    at toggleLoad (https://xen.serveraddress/app.js:7:19792)↵    at fn (eval at <anonymous> (https://xen.serveraddress/app.js:30:14292), <anonymous>:4:316)↵    at Scope.$eval (https://xen.serveraddress/app.js:28:5228)↵    at https://xen.serveraddress/app.js:31:10910↵    at https://xen.serveraddress/app.js:31:21657↵    at forEach (https://xen.serveraddress/app.js:24:1084)↵    at $$writeModelToScope (https://xen.serveraddress/app.js:31:21600)↵    at writeToModelIfNeeded (https://xen.serveraddress/app.js:31:20810)↵    at https://xen.serveraddress/app.js:31:21501↵    at validationDone (https://xen.serveraddress/app.js:31:20212)↵    at processAsyncValidators (https://xen.serveraddress/app.js:31:19998)↵    at $$runValidators (https://xen.serveraddress/app.js:31:20366)↵    at $$parseAndValidate (https://xen.serveraddress/app.js:31:21363)↵    at $commitViewValue (https://xen.serveraddress/app.js:31:20680)↵    at https://xen.serveraddress/app.js:31:22388"__proto__: JsonRpcError(anonymous function) @ app.js:14tryCatcher @ app.js:37Promise._settlePromiseFromHandler @ app.js:35Promise._settlePromiseAt @ app.js:35Promise._settlePromises @ app.js:36(anonymous function) @ app.js:34Scope.$eval @ app.js:28Scope.$digest @ app.js:28(anonymous function) @ app.js:28completeOutstandingRequest @ app.js:25(anonymous function) @ app.js:25
app.js:34 Unhandled rejection JsonRpcError: invalid parameter(s)
    at JsonRpcServer.<anonymous> (https://xen.serveraddress/app.js:72:1549)
    at JsonRpcServer._write (https://xen.serveraddress/app.js:72:519)
    at doWrite (https://xen.serveraddress/app.js:68:27050)
    at writeOrBuffer (https://xen.serveraddress/app.js:68:26822)
    at JsonRpcServer.Writable.write (https://xen.serveraddress/app.js:68:29990)
    at WebSocket.<anonymous> (https://xen.serveraddress/app.js:71:27413)
From previous event:
    at JsonRpcServer.<anonymous> (https://xen.serveraddress/app.js:72:2005)
From previous event:
    at https://xen.serveraddress/app.js:71:27777
From previous event:
    at Api.call (https://xen.serveraddress/app.js:71:27746)
    at Xo.<anonymous> (https://xen.serveraddress/app.js:72:24578)
    at Scope.$eval (https://xen.serveraddress/app.js:28:5228)
    at Scope.$digest (https://xen.serveraddress/app.js:28:3042)
    at Scope.$apply (https://xen.serveraddress/app.js:28:5646)
    at $$debounceViewValueCommit (https://xen.serveraddress/app.js:31:22365)
    at $setViewValue (https://xen.serveraddress/app.js:31:21821)
    at HTMLInputElement.listener (https://xen.serveraddress/app.js:29:9081)
    at HTMLInputElement.jQuery.event.dispatch (https://xen.serveraddress/app.js:56:11101)
    at HTMLInputElement.elemData.handle (https://xen.serveraddress/app.js:56:5931)
From previous event:
    at Xo.call (https://xen.serveraddress/app.js:72:24545)
    at Object.defineProperties.call (https://xen.serveraddress/app.js:12:29849)
    at Object.load (https://xen.serveraddress/app.js:14:7086)
    at _execPluginMethod (https://xen.serveraddress/app.js:7:18936)
    at toggleLoad (https://xen.serveraddress/app.js:7:19792)
    at fn (eval at <anonymous> (https://xen.serveraddress/app.js:30:14292), <anonymous>:4:316)
    at Scope.$eval (https://xen.serveraddress/app.js:28:5228)
    at https://xen.serveraddress/app.js:31:10910
    at https://xen.serveraddress/app.js:31:21657
    at forEach (https://xen.serveraddress/app.js:24:1084)
    at $$writeModelToScope (https://xen.serveraddress/app.js:31:21600)
    at writeToModelIfNeeded (https://xen.serveraddress/app.js:31:20810)
    at https://xen.serveraddress/app.js:31:21501
    at validationDone (https://xen.serveraddress/app.js:31:20212)
    at processAsyncValidators (https://xen.serveraddress/app.js:31:19998)
    at $$runValidators (https://xen.serveraddress/app.js:31:20366)
    at $$parseAndValidate (https://xen.serveraddress/app.js:31:21363)
    at $commitViewValue (https://xen.serveraddress/app.js:31:20680)
    at https://xen.serveraddress/app.js:31:22388

from xo.

julien-f avatar julien-f commented on September 15, 2024

Did you configure the plugin from the plugins page (Main menu > Settings > Plugins)?

from xo.

Phlogi avatar Phlogi commented on September 15, 2024

Yes, when I try to save the configuration I get the same "invalid parameter(s)" error.

from xo.

julien-f avatar julien-f commented on September 15, 2024

Don't you have more information about the error in the browser console?

from xo.

Phlogi avatar Phlogi commented on September 15, 2024

image

I did put a password into the field...

from xo.

julien-f avatar julien-f commented on September 15, 2024

Looking into it, thanks for the info.

from xo.

julien-f avatar julien-f commented on September 15, 2024

Can you check that you are using the latest version of xo-server-transport-email?
Because the password field is now named transport.password, not transport.pass.

from xo.

Phlogi avatar Phlogi commented on September 15, 2024

I did npm install xo-server-transport-email@latest in xo-server folder but still get the same error.

from xo.

Phlogi avatar Phlogi commented on September 15, 2024

vatesfr/xo-server-transport-email@master...Phlogi:patch-1

from xo.

julien-f avatar julien-f commented on September 15, 2024

Thank you!

from xo.

julien-f avatar julien-f commented on September 15, 2024

Published as xo-server-tranport-email 0.0.2.

from xo.

Phlogi avatar Phlogi commented on September 15, 2024

Perfect!

from xo.

Phlogi avatar Phlogi commented on September 15, 2024

Works!

from xo.

olivierlambert avatar olivierlambert commented on September 15, 2024

Thanks for your fix @Phlogi !

from xo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.