`error: could not deserialize deployment: unknown ...
# general
b
error: could not deserialize deployment: unknown secrets provider type
new error just popped up.. any ideas? about to jump into attempting to debug, but appears to be coming from pulumi
Copy code
```
Logging in using access token from PULUMI_ACCESS_TOKEN
I0521 17:44:36.100066     670 backend.go:698] Stack MyCompany/api-b-prod-eus2 being updated to version 12
I0521 17:44:36.203525     670 sink.go:154] defaultSink::Error(error: could not deserialize deployment: unknown secrets provider type 
<http://github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).getTarget|github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).getTarget>
	/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/httpstate/state.go:315
<http://github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).newUpdate|github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).newUpdate>
	/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/httpstate/state.go:272
<http://github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).runEngineAction|github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).runEngineAction>
	/home/travis/gopath/src/github.com/pulumi/pulumi/pkg/backend/httpstate/backend.go:811
<http://github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).apply|github.com/pulumi/pulumi/pkg/backend/httpstate.(*cloudBackend).apply>
w
Cc @bitter-oil-46081
b
short n sweet:
Copy code
deploy@ae97e993d57b:/data/pulumi/infra/azure/api$ pulumi stack select MyCompany/api-b-prod-eus2
deploy@ae97e993d57b:/data/pulumi/infra/azure/api$ pulumi refresh
Previewing refresh (MyCompany/api-b-prod-eus2):
error: could not deserialize deployment: unknown secrets provider type
Copy code
deploy@ae97e993d57b:/data/pulumi/infra/azure/api$ pulumi stack export > exp
deploy@ae97e993d57b:/data/pulumi/infra/azure/api$ cat exp
{
    "version": 3,
    "deployment": {
        "manifest": {
            "time": "2019-04-03T16:19:19.46751058Z",
            "magic": "4c9e3af950abf0bb06246576f7dddc0b09f84e5b925a0be3d28d7b943f3cfe41",
            "version": "v0.17.4"
        },
        "secrets_providers": {
            "type": ""
        }
    }
}
guessing that shouldnt be blank
i deleted
Copy code
"secrets_providers": {
            "type": ""
        }
and reimported it, same error
nuked stack and re-init’d
b
What version of the CLI are you using here, @brave-angle-33257? It feels like there's a mix of a recent version and an older version?
b
Copy code
deploy@ae97e993d57b:/data/pulumi/infra/azure/compute-slackbot$ pulumi version
v0.17.12
yea, we use it all in docker, and for a while every time you guys pushed an update to NPM or the CLI I’d include it
i realized that wasn’t the smartest, so i’ve stopped updating the NPMs, but ive still been including CLI updates
so, over our last 4-6~ months, we have quite a bit of version sprawl
still dealing with it not downloading the proper versions for past deployments..
Copy code
# Setup Pulumi plugins
RUN pulumi plugin install resource aws v$aws_pulumi_version \
    && pulumi plugin install resource azure v$azure_pulumi_version

# HACK! - Install additional plugins for bugs: <https://github.com/pulumi/pulumi/issues/2608> & <https://github.com/pulumi/pulumi/issues/2669>
RUN pulumi plugin install resource azure 0.17.4
RUN pulumi plugin install resource azure 0.17.3
RUN pulumi plugin install resource azure 0.17.2
RUN pulumi plugin install resource azure 0.16.9
RUN pulumi plugin install resource azure 0.16.7
RUN pulumi plugin install resource azure 0.16.6
RUN pulumi plugin install resource aws v0.17.1
b
Okay - Thanks. I have an idea as to what is going on here. Just to confirm, you're not using any of the new
pulumi.secret
stuff yet, correct?
b
nope
b
Okay - Great. If I give you a private build of the CLI is it easy enough for you to see if this fixes your problem? If so, what OS?
b
yea should be fine, running in docker
FROM ubuntu:18.04
i can build/test quick
wget --quiet -O pulumi.tar.gz <https://get.pulumi.com/releases/sdk/pulumi-v0.17.12-linux-x64.tar.gz> && tar xzvf pulumi.tar.gz && mv pulumi/pulumi* /usr/bin
confirmed with @bitter-oil-46081 that pre-release binary seems to fix the issue 👍
b
Just trying understand how you got into this state, @brave-angle-33257 - Do you know what operation you did that caused you to start getting this error message?
b
No, all I can say is it was likely deployed to on an older version previously, destroyed, and then today attempted to refresh it and redeploy it on a newer version
b
Gotcha, thanks.