Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

the plugin does not load on OSX #69

Open
candysmurf opened this issue May 19, 2017 · 1 comment
Open

the plugin does not load on OSX #69

candysmurf opened this issue May 19, 2017 · 1 comment

Comments

@candysmurf
Copy link
Contributor

Snap daemon version (use snapteld -v):
snapteld (version: master-05cb3ef1)
Environment:

  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release): OSX
  • Kernel (e.g. uname -a):
  • Relevant tools (e.g. plugins used with Snap):
  • Others (e.g. deploying with Ansible):

What happened:
Simply the psutil plugin didn't load

▶ ./build/darwin/x86_64/snaptel plugin load ../snap-plugin-collector-psutil/build/darwin/x86_64/snap-plugin-collector-psutil
Error loading plugin:
timed out waiting for plugin to load

What you expected to happen:

Loads the psutil plugin

Steps to reproduce it (as minimally and precisely as possible):

  1. start the latest Snap daemon
  2. load the latest snap-plugin-collector-psutil

Anything else do we need to know (e.g. issue happens only occasionally):

Error logs from Snap daemon

mgr path=snap-plugin-collector-psutil
DEBU[2017-05-19T09:31:52-07:00] plugin load timeout set to 3s                 _block=load-plugin _module=control-plugin-mgr path=[snap-plugin-collector-psutil]
ERRO[2017-05-19T09:31:55-07:00] timed out waiting for plugin to load          _module=_mgmt-rest-v1
DEBU[2017-05-19T09:31:55-07:00] Removing file (/var/folders/8g/_w1d386d34z29nt8zbzjqv5r0000gp/T/snap-plugin-958456954/snap-plugin-collector-psutil)  _module=_mgmt-rest-v1
DEBU[2017-05-19T09:31:55-07:00] API response                                  _module=_mgmt-rest index=1 method=POST status=Internal Server Error status-code=500 url=/v1/plugins
ERRO[2017-05-19T09:31:55-07:00] error loading plugin                          _module=plugin-exec received_response=
ERRO[2017-05-19T09:31:55-07:00] load plugin error when starting plugin        _block=load-plugin _module=control-plugin-mgr error=timed out waiting for plugin snap-plugin-collector-psutil
^CINFO[2017-05-19T09:35:24-07:00] shutting down modules                         _module=snapteld block=main
INFO[2017-05-19T09:35:24-07:00] stopping module                               _module=snapteld block=main snap-module=control
DEBU[2017-05-19T09:35:24-07:00] stopped                                       _block=start-plugin _module=control-runner
INFO[2017-05-19T09:35:24-07:00] control stopped                               _block=stop _module=control
INFO[2017-05-19T09:35:24-07:00] stopping module                               _module=snapteld block=main snap-module=scheduler
INFO[2017-05-19T09:35:24-07:00] scheduler stopped                             _block=stop-scheduler _module=scheduler
INFO[2017-05-19T09:35:24-07:00] stopping module                               _module=snapteld block=main snap-module=REST
INFO[2017-05-19T09:35:24-07:00] REST stopped                                  _block=stop _module=_mgmt-rest
INFO[2017-05-19T09:35:24-07:00] exiting on signal                             _module=snapteld block=main signal=interrupt


@jcooklin
Copy link
Collaborator

@candysmurf, I was unable to reproduce this issue locally from master or from PR #68 which migrates the plugin to use the new plugin lib. Will you please review #68 and confirm that it loads on your system.

Here is the task that I used.

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

No branches or pull requests

3 participants