Code Monkey home page Code Monkey logo

sftpgo-plugin-pubsub's People

Contributors

drakkan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

sftpgo-plugin-pubsub's Issues

MassTransit

Does this plugin support MassTransit? I am able to publish to a Rabbit queue successfully, but I don't see any easy way to conform to MassTransit's interoperability standards. I believe this plugin itself would need to support the format required by MassTransit.

Plugin doesn't appear to start

The sftpgo-plugin-pubsub never appears to start when defined in the plugins section of the config. I see no log messages for it, even when I give it a correct or an incorrect configuration, which both trigger log messages when running the plugin independently.

Here is the excerpt of our config for the plugins. The plugin is built using go build and then marked as executable.

sftpgo v2.1.0, problem observed in the osx version as well as the alpine linux container ghcr.io/drakkan/sftpgo:v2.1.0

Am I missing something in the config definition?

common:
  proxy_protocol: 1
data_provider:
  driver: postgresql
  name: sftpgo
  host: "127.0.0.1"
  port: 5432
  username: sftpgo
  prefer_database_credentials: true
plugins:
  - type: notifier
    notifier_options:
      fs_events:
        - upload
        - download
      user_events:
        - add
        - update
      retry_max_time: 60
      retry_queue_max_size: 1000
    cmd: /plugins/sftpgo-plugin-pubsub/sftpgo-plugin-pubsub
    args:
      - "gcppubsub://projects/my-project/topics/my-topic"
    auto_mtls: true

How to use this plugin when install SFTPGo as a windows service?

when i run the windows service, i got the log Message as below:

{"level":"debug","time":"2022-07-29T16:56:59.896","sender":"plugins","message":"initialize"}
{"level":"debug","time":"2022-07-29T16:56:59.919","sender":"plugins","message":"no match for plugin process D:/apps/FTPServer/SFTPGo/plugins/sftpgo-plugin-pubsub.exe"}
{"level":"debug","time":"2022-07-29T16:56:59.919","sender":"plugins","message":"create new notifier plugin "D:/apps/FTPServer/SFTPGo/plugins/sftpgo-plugin-pubsub.exe""}
{"level":"info","time":"2022-07-29T16:56:59.919","sender":"plugins.notifier","message":"configuring client automatic mTLS"}
{"level":"debug","time":"2022-07-29T16:56:59.937","sender":"plugins.notifier","path":"D:/apps/FTPServer/SFTPGo/plugins/sftpgo-plugin-pubsub.exe","args":"[D:/apps/FTPServer/SFTPGo/plugins/sftpgo-plugin-pubsub.exe nats://topic-1 sftp-service]","message":"starting plugin"}
{"level":"debug","time":"2022-07-29T16:56:59.942","sender":"plugins.notifier","path":"D:/apps/FTPServer/SFTPGo/plugins/sftpgo-plugin-pubsub.exe","pid":"2428","message":"plugin started"}
{"level":"debug","time":"2022-07-29T16:56:59.942","sender":"plugins.notifier","path":"D:/apps/FTPServer/SFTPGo/plugins/sftpgo-plugin-pubsub.exe","message":"waiting for RPC address"}
{"level":"info","time":"2022-07-29T16:57:00.041","sender":"plugins.notifier.sftpgo-plugin-pubsub.exe","message":"[INFO] starting sftpgo-plugin-pubsub: version=1.0.3-b7fc623-2022-06-04T08:08:40Z topic=nats://topic-1 instance id=sftp-service"}
{"level":"error","time":"2022-07-29T16:57:00.041","sender":"plugins.notifier.sftpgo-plugin-pubsub.exe","message":"[ERROR] unable to open topic: error="open topic nats://topic-1: failed to open default connection: NATS_SERVER_URL environment variable not set""}
{"level":"debug","time":"2022-07-29T16:57:00.042","sender":"plugins","message":"unable to get rpc client for plugin "D:/apps/FTPServer/SFTPGo/plugins/sftpgo-plugin-pubsub.exe": Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol."}
{"level":"warn","time":"2022-07-29T16:57:00.042","sender":"plugins","message":"unable to create notifier plugin: Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol., config {Type:notifier NotifierOptions:{FsEvents:[download upload] ProviderEvents:[add delete] ProviderObjects:[user admin api_key] RetryMaxTime:60 RetryQueueMaxSize:1000} KMSOptions:{Scheme: EncryptedStatus:} AuthOptions:{Scope:0} Cmd:D:/apps/FTPServer/SFTPGo/plugins/sftpgo-plugin-pubsub.exe Args:[nats://topic-1 sftp-service] SHA256Sum: AutoMTLS:true kmsID:0}"}
{"level":"error","time":"2022-07-29T16:57:00.042","sender":"service","message":"unable to initialize plugin system: Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol."}

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.