12 Sep 2022 04:00 PM - last edited on 16 May 2023 10:17 AM by Michal_Gebacki
Hello,
I'm using a docker container with the ActiveGate and ActiveGate Plugin SDK installed for a very long time now.
I just updated the container with the latest ActiveGate and the latest plugin SDK (standard process that always worked in the past).
Now when building the plugin with it, it gives me this error:
Suddenly it is looking for a properties.json file which it never needed before? I searched the documentation but couldn't find anything about it and why it is needed for build_plugin.
Any ideas?
Solved! Go to Solution.
12 Sep 2022 10:36 PM
I use extensively properties.json with "plugin_sdk simulate_plugin", but have not ever found it with build_plugin...
12 Sep 2022 10:40 PM
Yes, I believe there is something wrong with the plugin SDK version (latest one 1.247). I NEVER used properties.json in any of my active gate plugin builds, but suddenly "plugin_sdk" is asking for properties.json - failing if it isn't found and also failing if it is found and contains some properties...
Unfortunately I do not have an older plugin SDK available to test if it is the version ...
12 Sep 2022 11:07 PM
Not sure if they are environment tailored? Doesn't seem to be the case. Have a 241 version if you are interested?
12 Sep 2022 11:10 PM
No the plugin sdk is not environment tailored for sure.
Any way you can share the old sdk version? This is driving me crazy, used to be a 5min job to update my build env, but can't get it to work with the current SDK now 😞
13 Sep 2022 09:41 AM
Thanks for sharing the old SDK, unfortunately same issue.
13 Sep 2022 09:43 AM
Not sure if this is intended but it seems although I installed the AG Extension SDK the "plugin_sdk build_plugin" command always tries to build a ONEAGENT extension and not an AG extension?
root@229ce6c8df31:/plugin# plugin_sdk build_plugin
Arguments=Namespace(deployment_dir=None, no_cert_ver=False, no_upload=False, plugin_dir='/plugin', server=None, token=None, token_file=None, verbose=False)
Starting oneagent_build_plugin
13 Sep 2022 11:22 AM
Your Traceback message references a problem coming from the jsonschema package. This is a dependency of plugin_sdk. There was a change made in version 4.10.0 of jsonschema that seems to have broken several tools that depend on it.
For now, the best course of action is downgrade your version of jsonschema to <=4.9.1. Run the command:
pip install jsonschema==4.9.1
There is a more detailed set of instructions available here.
13 Sep 2022 11:54 AM
That did the trick! Thanks!