Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load plugins when starting marketstore #348

Open
bastulli opened this issue Jul 10, 2020 · 2 comments
Open

Unable to load plugins when starting marketstore #348

bastulli opened this issue Jul 10, 2020 · 2 comments

Comments

@bastulli
Copy link

Just installed MarketStore from source and I cannot load any of the plugins. What steps am I missing?

  1. go get -u github.com/alpacahq/marketstore
  2. cd /work/src/github.com/alpacahq/marketstore
  3. make
  4. make plugins
  5. $GOPATH/bin/marketstore init
  6. nano mkts.yml

=================================

root_directory: data
listen_port: 5993
log_level: info
queryable: true
stop_grace_period: 0
wal_rotate_interval: 5
enable_add: true
enable_remove: false
enable_last_known: false

triggers:
  - module: ondiskagg.so
    on: "*/1Min/OHLCV"
    config:
      destinations:
        - 5Min
        - 15Min
        - 1H
        - 1D
bgworkers:
  - module: gdaxfeeder.so
    name: GdaxFetcher
    config:
      query_start: "2017-09-01 00:00"

=================================

  1. $GOPATH/bin/marketstore start
{"level":"info","timestamp":"2020-07-10T03:24:13.703Z","msg":"Running single threaded"}
{"level":"info","timestamp":"2020-07-10T03:24:13.704Z","msg":"using ./mkts.yml for configuration"}
{"level":"info","timestamp":"2020-07-10T03:24:13.704Z","msg":"Disabling \"enable_last_known\" feature until it is fixed..."}
{"level":"info","timestamp":"2020-07-10T03:24:13.704Z","msg":"initializing marketstore..."}
{"level":"info","timestamp":"2020-07-10T03:24:13.704Z","msg":"WAL Setup: initCatalog true, initWALCache true, backgroundSync true, WALBypass false: \n"}
{"level":"info","timestamp":"2020-07-10T03:24:13.704Z","msg":"Root Directory: data"}
{"level":"info","timestamp":"2020-07-10T03:24:13.706Z","msg":"My WALFILE: WALFile.1594351453704949204.walfile"}
{"level":"info","timestamp":"2020-07-10T03:24:13.713Z","msg":"launching rpc data server..."}
{"level":"info","timestamp":"2020-07-10T03:24:13.713Z","msg":"initializing websocket..."}
{"level":"info","timestamp":"2020-07-10T03:24:13.713Z","msg":"launching prometheus metrics server..."}
{"level":"info","timestamp":"2020-07-10T03:24:13.713Z","msg":"InitializeTriggers"}
{"level":"info","timestamp":"2020-07-10T03:24:13.714Z","msg":"triggerSetting = &{ondiskagg.so */1Min/OHLCV map[destinations:[5Min 15Min 1H 1D]]}"}
{"level":"info","timestamp":"2020-07-10T03:24:13.714Z","msg":"Trying to load module from path: bin/ondiskagg.so...\n"}
{"level":"error","timestamp":"2020-07-10T03:24:13.724Z","msg":"Unable to open plugin for trigger in ondiskagg.so: module ondiskagg.so not found in bin under any paths in GOPATH= or local directory\n: plugin.Open(\"ondiskagg\"): plugin was built with a different version of package go.uber.org/zap/buffer"}
{"level":"info","timestamp":"2020-07-10T03:24:13.724Z","msg":"InitializeTriggers - Done"}
{"level":"info","timestamp":"2020-07-10T03:24:13.724Z","msg":"InitializeBgWorkers"}
{"level":"info","timestamp":"2020-07-10T03:24:13.724Z","msg":"Trying to load module from path: bin/gdaxfeeder.so...\n"}
{"level":"error","timestamp":"2020-07-10T03:24:13.734Z","msg":"Unable to open plugin for bgworker in gdaxfeeder.so: module gdaxfeeder.so not found in bin under any paths in GOPATH= or local directory\n: plugin.Open(\"gdaxfeeder\"): plugin was built with a different version of package go.uber.org/zap/buffer"}
{"level":"info","timestamp":"2020-07-10T03:24:13.734Z","msg":"InitializeBgWorkers Done"}
{"level":"info","timestamp":"2020-07-10T03:24:13.734Z","msg":"enabling query access..."}
{"level":"info","timestamp":"2020-07-10T03:24:13.734Z","msg":"launching tcp listener for all services..."}
@conall88
Copy link

conall88 commented Jan 30, 2021

I also have a similar issue. I'm running as root. :

{"level":"info","timestamp":"2021-01-30T02:17:04.364Z","msg":"Trying to load module from path: /home/cogribin/go/bin/gdaxfeeder.so...\n"}
{"level":"error","timestamp":"2021-01-30T02:17:04.374Z","msg":"Unable to open plugin for bgworker in gdaxfeeder.so: module gdaxfeeder.so not found in bin under any paths in GOPATH=/home/cogribin/go or local directory\n: plugin.Open(\"gdaxfeeder.so\"): realpath failed"}
{"level":"info","timestamp":"2021-01-30T02:17:04.374Z","msg":"Trying to load module from path: /home/cogribin/go/bin/polygon.so...\n"}
{"level":"error","timestamp":"2021-01-30T02:17:04.383Z","msg":"Unable to open plugin for bgworker in polygon.so: module polygon.so not found in bin under any paths in GOPATH=/home/cogribin/go or local directory\n: plugin.Open(\"polygon.so\"): realpath failed"}
{"level":"info","timestamp":"2021-01-30T02:17:04.383Z","msg":"Trying to load module from path: /home/cogribin/go/bin/bitmexfeeder.so...\n"}
{"level":"error","timestamp":"2021-01-30T02:17:04.393Z","msg":"Unable to open plugin for bgworker in bitmexfeeder.so: module bitmexfeeder.so not found in bin under any paths in GOPATH=/home/cogribin/go or local directory\n: plugin.Open(\"bitmexfeeder.so\"): realpath failed"}


cogribin@THEBEAST:/mnt/s/MarketStore/marketstore$ $GOPATH
bash: /home/cogribin/go: Is a directory
cogribin@THEBEAST:/mnt/s/MarketStore/marketstore$ cd /home/cogribin/go
cogribin@THEBEAST:~/go$ ls
bin  pkg  src
cogribin@THEBEAST:~/go$ cd bin
cogribin@THEBEAST:~/go/bin$ ls
alpaca.so         bitmexfeeder.so  ice     marketstore   polygon.so          stream.so
binancefeeder.so  gdaxfeeder.so    iex.so  ondiskagg.so  polygon_backfiller  xignitefeeder.so
cogribin@THEBEAST:~/go/bin$
cogribin@THEBEAST:~/go$ cd /home/cogribin/go/bin
cogribin@THEBEAST:~/go/bin$ ls
alpaca.so         bitmexfeeder.so  ice     marketstore   polygon.so          stream.so
binancefeeder.so  gdaxfeeder.so    iex.so  ondiskagg.so  polygon_backfiller  xignitefeeder.so

OS:

 lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:        20.04
Codename:       focal

Running as a WSL

@kccheung
Copy link

I also have a similar issue:

{"level":"info","timestamp":"2022-02-16T14:46:16.740+0800","msg":"triggerSetting = &{stream.so */*/* map[]}"}
{"level":"info","timestamp":"2022-02-16T14:46:16.740+0800","msg":"Trying to load module from path: /Users/david/gocode/bin/stream.so...\n"}
{"level":"error","timestamp":"2022-02-16T14:46:17.347+0800","msg":"Unable to open plugin for trigger in stream.so: module stream.so not found in bin under any paths in GOPATH=/Users/david/gocode or local directory\n: plugin.Open(\"stream.so\"): realpath failed"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants