sftpgo / sftpgo-plugin-pubsub Goto Github PK
View Code? Open in Web Editor NEWPublish/Subscribe systems integration for SFTPGo
License: GNU Affero General Public License v3.0
Publish/Subscribe systems integration for SFTPGo
License: GNU Affero General Public License v3.0
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.
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
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."}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.