Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Failed to activate Python SDK for StreamSets (reason: Activation file is malformed). #66

Open
niyatidoshi opened this issue Aug 11, 2021 · 5 comments

Comments

@niyatidoshi
Copy link

Hi,

I'm trying to run, stf test --sdc-version 3.4.0 -s stage/test_dev_stages.py ​and getting an error, "streamsets.sdk.exceptions.ActivationError: Failed to activate Python SDK for StreamSets (reason: Activation file is malformed)."

I tried "stf test --sdc-version 3.15.0 -s stage/test_dev_stages.py too but the same error.

I placed the activation key in a file named "rsa-signed-activation-info.properties". The file is placed at "/.streamsets/activation/" and has a key only.

image

Please advise.

Thanks.

@c0rnholi0
Copy link
Contributor

c0rnholi0 commented Aug 11, 2021 via email

@niyatidoshi
Copy link
Author

Many thanks Mitch for the details. The issue was in file, "--------SDC ACTIVATION KEY--------" strings were missing. Added them and now I can run test cases for SDC v3.4 and 3.15 both.

One more thing, I tried to run the same with the latest version v.4.0.2 and getting error

image

It looks like it's expecting activation key in the environment variable.. I tried all approaches mentioned here, https://phoenixnap.com/kb/linux-set-environment-variable, but error is still there. Could you please advise?

Thanks again.

@kirtiv1
Copy link
Contributor

kirtiv1 commented Aug 12, 2021

Hi Niyati,

  1. Have you set that env. variable SDC_ACTIVATION_KEY ? e.g. using like
    export SDC_ACTIVATION_KEY= or similar syntax?
    to confirm: echo $SDC_ACTIVATION_KEY will show you the value on the terminal where you are executing stf command.

  2. If yes, then a point to note is that, this is a different ACTIVATION key than the SDK's activation key.
    Is it different value in your case?

Regards-
Kirti

@niyatidoshi
Copy link
Author

Hi Kirti

I've only one key that I've set in rsa-signed-activation-info.properties.. and as per the https://docs.streamsets.com/portal/#sdk/latest/installation.html, I've set the same value in the environment variable, export STREAMSETS_SDK_ACTIVATION_KEY='abcdefg'.

Do we need any different Key to use this with v4.0.0.+? If so, how do I get that?

Many Thanks.

@kirtiv1
Copy link
Contributor

kirtiv1 commented Aug 13, 2021

Hi Niyati,

It depends on how you got the SDC.
In some cases, you might have received the SDC activation key by email.
In any case, if you are a customer, I would recommend to contact the support team.

Regards-
Kirti

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

No branches or pull requests

3 participants