fancy-pencil-39264
08/20/2025, 11:03 AM"id": "none"
? When trying to look up pulumi stack history
, nothing seems really useful. All steps are marked as version: 0
. (I was hoping to re-import the state to the last working version.
When trying to refresh:
Previewing refresh (dev):
Type Name Plan
pulumi:pulumi:Stack photon-infrastructure-dev running panic: fatal: An assertion has failed: Read ID was empty
├─ azure-native:resources:ResourceGroup resourceGroup
├─ azuread:index:Application servicePrincipalApp
goroutine 186 [running]:rvicePrincipal servicePrincipal
├─ azure-native:autgithub.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)
├─ random:index:RandomPassword serverAdminPassword ├─ azure-native:resources:ResourceGroup resourceGroup github.com/pulumi/pulumi/sdk/v3@v3.189.0/go/common/util/contract/failfast.go:23
├─ azure-native:managedigithub.com/pulumi/pulumi/sdk/v3/go/common/util/contract.Assertf(0xf7?, {0x2d6094b?, 0x5000003502300?}, {0x0?, 0x7f1649741a78?, 0x30?})
├─ azure-native:managedidentity:UserAssignedIdentity userAssignedAppIdentity github.com/pulumi/pulumi/sdk/v3@v3.189.0/go/common/util/contract/assert.go:35 +0xe8
├─ azure-native:privatedns:PrivateZone dnsPrivateZone github.com/pulumi/pulumi/sdk/v3/go/common/resource/plugin.(*provider).Read(0xc001c23720, {0x3528ec0?, 0xc000943da0?}, {{0xc002e8abd0, 0x64}, {0xc002e8ac21, 0x13}, {0xc002e8abf7, 0x28}, {0x0, ...}, ...})
├─ azure-native:authorization:RoleAssignment photonSPResourceGroupContributor github.com/pulumi/pulumi/sdk/v3@v3.189.0/go/common/resource/plugin/provider_plugin.go:1397 +0x296 photonSubnet
~ ├─ azure-native:privatedns:VirtualNetworkLink github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*RefreshStep).Apply(0xc001f1c2c0)rtualNetworkLinkName]
├─ azure-native:sql:Server mssqlServer github.com/pulumi/pulumi/pkg/v3/resource/deploy/step.go:1287 +0x332
├─ azure-native:sql:Database database github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).continueExecuteStep(0xc000386620, {0x0, 0x0}, 0x15, {0x35399b8, 0xc001f1c2c0})
github.com/pulumi/pulumi/pkg/v3/resource/deploy/step_executor.go:468 +0x191
Resources: github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).executeStep(0xc000386620?, 0x15?, {0x35399b8?, 0xc001f1c2c0?})
github.com/pulumi/pulumi/pkg/v3/resource/deploy/step_executor.go:461 +0x225
github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).executeChain(0xc000386620, 0x15, {0xc00005ed00?, 0x23?, 0x0?})
ithub.com/pulumi/pulumi/pkg/v3/resource/deploy/step_executor.go:379 +0xe5
github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).worker(0xc000386620, 0x15, 0x0)
github.com/pulumi/pulumi/pkg/v3/resource/deploy/step_executor.go:658 +0x31d
created by github.com/pulumi/pulumi/pkg/v3/resource/deploy.newStepExecutor in goroutine 124
github.com/pulumi/pulumi/pkg/v3/resource/deploy/step_executor.go:708 +0x1ca
Sorry for the terrible formatting.
Looking at the state, the only weird thing I can find is this "id": "none"
on the Random password:
{
"urn": "urn:pulumi:dev::photon-infrastructure::random:index/randomPassword:RandomPassword::serverAdminPassword",
"custom": true,
"id": "none",
"type": "random:index/randomPassword:RandomPassword",
"inputs": {
"length": 16,
"lower": true,
"minLower": 1,
"minNumeric": 1,
"minSpecial": 1,
"minUpper": 1,
"numeric": true,
"special": true,
"upper": true
},
"outputs": {
// ***
},
"parent": "urn:pulumi:dev::photon-infrastructure::pulumi:pulumi:Stack::photon-infrastructure-dev",
"provider": "urn:pulumi:dev::photon-infrastructure::pulumi:providers:random::default_4_18_2::4901e8e5-d58c-48ca-afab-3e95776f42f1",
"propertyDependencies": {
"length": [],
"lower": [],
"minLower": [],
"minNumeric": [],
"minSpecial": [],
"minUpper": [],
"numeric": [],
"special": [],
"upper": []
},
"additionalSecretOutputs": [
"bcryptHash",
"result"
],
"created": "2025-07-11T15:33:28.881318649Z",
"modified": "2025-07-11T15:33:28.881318649Z",
"sourcePosition": "project:///resources/Database.ts#27,33"
}
Any idea?lively-crayon-44649
08/20/2025, 11:05 AMpulumi stack export
and get a valid JSON blob that way? That should tell us whether your state is corrupted fundamentally or whether it's "just" this ID attribute that's gone missing, for instancelively-crayon-44649
08/20/2025, 11:05 AMfancy-pencil-39264
08/20/2025, 11:05 AMfancy-pencil-39264
08/20/2025, 11:06 AMlively-crayon-44649
08/20/2025, 11:06 AMlively-crayon-44649
08/20/2025, 11:06 AMRandomPassword
, does Pulumi give a diff?lively-crayon-44649
08/20/2025, 11:06 AMpulumi preview -t 'urn:pulumi:dev::photon-infrastructure::random:index/randomPassword:RandomPassword::serverAdminPassword'
fancy-pencil-39264
08/20/2025, 11:07 AMlively-crayon-44649
08/20/2025, 11:07 AMlively-crayon-44649
08/20/2025, 11:07 AMfancy-pencil-39264
08/20/2025, 11:08 AMpanic: fatal: A precondition has failed for old: must have an ID if it is custom
fancy-pencil-39264
08/20/2025, 11:08 AMlively-crayon-44649
08/20/2025, 11:09 AMfancy-pencil-39264
08/20/2025, 11:09 AMlively-crayon-44649
08/20/2025, 11:09 AMlively-crayon-44649
08/20/2025, 11:09 AMfancy-pencil-39264
08/20/2025, 11:10 AMlively-crayon-44649
08/20/2025, 11:10 AMrandom
uses UUIDs, but could be wronglively-crayon-44649
08/20/2025, 11:10 AMstack export > backup.json
lively-crayon-44649
08/20/2025, 11:10 AMfancy-pencil-39264
08/20/2025, 11:11 AMlively-crayon-44649
08/20/2025, 11:12 AMlively-crayon-44649
08/20/2025, 11:12 AMlively-crayon-44649
08/20/2025, 11:12 AMRandomPassword
in a TS programlively-crayon-44649
08/20/2025, 11:12 AM"id": "none"
fancy-pencil-39264
08/20/2025, 11:12 AMfancy-pencil-39264
08/20/2025, 11:12 AMlively-crayon-44649
08/20/2025, 11:12 AMfancy-pencil-39264
08/20/2025, 11:13 AMfancy-pencil-39264
08/20/2025, 11:13 AMlively-crayon-44649
08/20/2025, 11:13 AMRead
is potentially returning an empty IDlively-crayon-44649
08/20/2025, 11:13 AMlively-crayon-44649
08/20/2025, 11:13 AMnone
fancy-pencil-39264
08/20/2025, 11:14 AMlively-crayon-44649
08/20/2025, 11:15 AMlively-crayon-44649
08/20/2025, 11:15 AMPULUMI_DEBUG_GRPC=grpc.json pulumi refresh
fancy-pencil-39264
08/20/2025, 11:15 AMlively-crayon-44649
08/20/2025, 11:15 AMlively-crayon-44649
08/20/2025, 11:15 AMgrpc.json
containing the communications between Pulumi and its various bitslively-crayon-44649
08/20/2025, 11:16 AMcat grpc.json | jq | less
and look for Read
on the RandomPassword
resourcelively-crayon-44649
08/20/2025, 11:16 AMlively-crayon-44649
08/20/2025, 11:16 AMfancy-pencil-39264
08/20/2025, 11:16 AMpulumi cancel
. I suppose I need to cancel firstlively-crayon-44649
08/20/2025, 11:16 AM{
"method": "/pulumirpc.ResourceProvider/Read",
"request": {
"id": "none",
"urn": "urn:pulumi:dev::refresh-sames::random:index/randomPassword:RandomPassword::x",
"properties": {
"__meta": "{\"schema_version\":\"3\"}",
"__pulumi_raw_state_delta": {
"obj": {
"ps": {
"keepers": {
"replace": {
"raw": null
}
},
"overrideSpecial": {
"replace": {
"raw": null
}
}
}
}
},
"bcryptHash": "$2a$10$JohdOOZCWEMk7.U.MAQlTO24fDWvO1juQQ3tg9IBzP/r9ktMEntfC",
"id": "none",
"length": 16,
"lower": true,
"minLower": 0,
"minNumeric": 0,
"minSpecial": 0,
"minUpper": 0,
"number": true,
"numeric": true,
"result": "VfX28w:<fIy!RkWk",
"special": true,
"upper": true
},
"inputs": {
"length": 16
},
"name": "x",
"type": "random:index/randomPassword:RandomPassword",
"resourceStatusAddress": "127.0.0.1:45041",
"resourceStatusToken": "f073bde2-acb2-4879-a7bb-36f565a4849b"
},
"response": {
"id": "none",
"properties": {
"__meta": "{\"schema_version\":\"3\"}",
"__pulumi_raw_state_delta": {
"obj": {
"ps": {
"keepers": {
"4dabf18193072939515e22adb298388d": "1b47061264138c4ac30d75fd1eb44270",
"value": {
"replace": {
"raw": null
}
}
},
"overrideSpecial": {
"4dabf18193072939515e22adb298388d": "1b47061264138c4ac30d75fd1eb44270",
"value": {
"replace": {
"raw": null
}
}
}
}
}
},
"bcryptHash": {
"4dabf18193072939515e22adb298388d": "1b47061264138c4ac30d75fd1eb44270",
"value": "$2a$10$JohdOOZCWEMk7.U.MAQlTO24fDWvO1juQQ3tg9IBzP/r9ktMEntfC"
},
"id": "none",
"length": 16,
"lower": true,
"minLower": 0,
"minNumeric": 0,
"minSpecial": 0,
"minUpper": 0,
"number": true,
"numeric": true,
"result": {
"4dabf18193072939515e22adb298388d": "1b47061264138c4ac30d75fd1eb44270",
"value": "VfX28w:<fIy!RkWk"
},
"special": true,
"upper": true
},
"inputs": {
"length": 16
}
},
"metadata": {
"kind": "resource",
"mode": "client",
"name": "random"
}
}
lively-crayon-44649
08/20/2025, 11:17 AMfancy-pencil-39264
08/20/2025, 11:20 AMlively-crayon-44649
08/20/2025, 11:20 AM/Read
if you are using less
lively-crayon-44649
08/20/2025, 11:20 AMRead
fancy-pencil-39264
08/20/2025, 11:20 AMlively-crayon-44649
08/20/2025, 11:20 AM--target
it might limit the scope of the gRPC callsfancy-pencil-39264
08/20/2025, 11:20 AMlively-crayon-44649
08/20/2025, 11:21 AMrm grpc.json
each timelively-crayon-44649
08/20/2025, 11:21 AMfancy-pencil-39264
08/20/2025, 11:22 AMfancy-pencil-39264
08/20/2025, 11:22 AMfancy-pencil-39264
08/20/2025, 11:25 AM"method": "/pulumirpc.ResourceProvider/Diff"
, it found DIFF_NONEfancy-pencil-39264
08/20/2025, 11:25 AMlively-crayon-44649
08/20/2025, 11:25 AMlively-crayon-44649
08/20/2025, 11:25 AMlively-crayon-44649
08/20/2025, 11:25 AMlively-crayon-44649
08/20/2025, 11:25 AMpulumi version
are you on?fancy-pencil-39264
08/20/2025, 11:27 AMlively-crayon-44649
08/20/2025, 11:29 AM--run-program
) might have changed in the latest versions?lively-crayon-44649
08/20/2025, 11:29 AMfancy-pencil-39264
08/20/2025, 11:29 AMfancy-pencil-39264
08/20/2025, 11:30 AMfancy-pencil-39264
08/20/2025, 11:31 AM--run-program
it tries to use OIDC and fails, even if I put useOidc: false (locally)lively-crayon-44649
08/20/2025, 11:32 AM--run-program
, Pulumi only has what is saved in your state to go on, so yeafancy-pencil-39264
08/20/2025, 11:32 AM{
"method": "/pulumirpc.ResourceProvider/Handshake",
"request": {
"engineAddress": "127.0.0.1:33369",
"rootDirectory": "/home/remi/.pulumi/plugins/resource-random-v4.18.2",
"programDirectory": "/home/remi/.pulumi/plugins/resource-random-v4.18.2",
"configureWithUrn": true,
"supportsViews": true,
"supportsRefreshBeforeUpdate": true
},
"errors": [
"rpc error: code = Unimplemented desc = Handshake is not yet implemented"
],
"metadata": {
"kind": "resource",
"mode": "client",
"name": "random"
}
}
lively-crayon-44649
08/20/2025, 11:33 AMfancy-pencil-39264
08/20/2025, 11:33 AMlively-crayon-44649
08/20/2025, 11:33 AMHandshake
-ing providersechoing-dinner-19531
08/20/2025, 11:33 AMreads/refresh (I moved some ID code, but not in a way that should have affected anything. Just lifting it from the grpc layer to the engine layer.) might have changed in the latest versions?--run-program
lively-crayon-44649
08/20/2025, 11:34 AMechoing-dinner-19531
08/20/2025, 11:34 AM"none"
lively-crayon-44649
08/20/2025, 11:34 AMlively-crayon-44649
08/20/2025, 11:34 AMlively-crayon-44649
08/20/2025, 11:34 AMlively-crayon-44649
08/20/2025, 11:34 AMlively-crayon-44649
08/20/2025, 11:34 AMfancy-pencil-39264
08/20/2025, 11:35 AMlively-crayon-44649
08/20/2025, 11:35 AMRandomPassword
a new resource?lively-crayon-44649
08/20/2025, 11:35 AMlively-crayon-44649
08/20/2025, 11:35 AMRandomString
lively-crayon-44649
08/20/2025, 11:35 AM{
"urn": "urn:pulumi:dev::refresh-sames::random:index/randomString:RandomString::y",
"custom": true,
"id": "=*4bKSi$Jm{zZGWS",
"type": "random:index/randomString:RandomString",
"inputs": {
"length": 16
},
"outputs": {
"__meta": "{\"schema_version\":\"2\"}",
"__pulumi_raw_state_delta": {
"obj": {
"ps": {
"keepers": {
"4dabf18193072939515e22adb298388d": "1b47061264138c4ac30d75fd1eb44270",
"ciphertext": "v1:w32vVKjDi3L6BGGV:dBnNkVP3hiv7b4mNV2hgSVcGk3lLZdsGft8juxkMg9qTHO/CuMv4hA=="
},
"overrideSpecial": {
"4dabf18193072939515e22adb298388d": "1b47061264138c4ac30d75fd1eb44270",
"ciphertext": "v1:eXwcagA6xxlWWdPs:C8B9x5Mm5p2QFAu4gmAISoKJBxmiXAnuuLiS1ew+gwU4MxX9o3iWZA=="
}
}
}
},
"id": "=*4bKSi$Jm{zZGWS",
"length": 16,
"lower": true,
"minLower": 0,
"minNumeric": 0,
"minSpecial": 0,
"minUpper": 0,
"number": true,
"numeric": true,
"result": "=*4bKSi$Jm{zZGWS",
"special": true,
"upper": true
},
"parent": "urn:pulumi:dev::refresh-sames::pulumi:pulumi:Stack::refresh-sames-dev",
"provider": "urn:pulumi:dev::refresh-sames::pulumi:providers:random::default_4_18_2::8ee25848-9399-44b0-b22e-1f58f81f1009",
"propertyDependencies": {
"length": []
},
"created": "2025-08-20T11:35:05.81612676Z",
"modified": "2025-08-20T11:35:05.81612676Z",
"sourcePosition": "project:///node_modules/.pnpm/@pulumi+random@4.18.2/node_modules/@pulumi/randomString.ts#160,9"
}
lively-crayon-44649
08/20/2025, 11:35 AMfancy-pencil-39264
08/20/2025, 11:36 AMfancy-pencil-39264
08/20/2025, 11:36 AMlively-crayon-44649
08/20/2025, 11:37 AMfancy-pencil-39264
08/20/2025, 11:38 AMlively-crayon-44649
08/20/2025, 11:38 AMlively-crayon-44649
08/20/2025, 11:38 AMlively-crayon-44649
08/20/2025, 11:38 AMfancy-pencil-39264
08/20/2025, 11:38 AMlively-crayon-44649
08/20/2025, 11:38 AMechoing-dinner-19531
08/20/2025, 11:38 AMechoing-dinner-19531
08/20/2025, 11:38 AMlively-crayon-44649
08/20/2025, 11:38 AMid: "none"
, that'd be OK?lively-crayon-44649
08/20/2025, 11:39 AMlively-crayon-44649
08/20/2025, 11:39 AMfancy-pencil-39264
08/20/2025, 11:39 AMlively-crayon-44649
08/20/2025, 11:39 AMlively-crayon-44649
08/20/2025, 11:39 AMfancy-pencil-39264
08/20/2025, 11:40 AMlively-crayon-44649
08/20/2025, 11:40 AMlively-crayon-44649
08/20/2025, 11:40 AMlively-crayon-44649
08/20/2025, 11:40 AMfancy-pencil-39264
08/20/2025, 11:40 AMlively-crayon-44649
08/20/2025, 11:40 AMechoing-dinner-19531
08/20/2025, 11:41 AMechoing-dinner-19531
08/20/2025, 11:41 AMfancy-pencil-39264
08/20/2025, 11:41 AMfancy-pencil-39264
08/20/2025, 11:45 AM"id": null
or "id": ""
echoing-dinner-19531
08/20/2025, 11:47 AMechoing-dinner-19531
08/20/2025, 11:48 AMfancy-pencil-39264
08/20/2025, 11:48 AMfancy-pencil-39264
08/20/2025, 11:49 AMjq -s 'map(select(has("id") | not))[]' infra-dev-state.json
doesn't seem correctechoing-dinner-19531
08/20/2025, 11:50 AMjq '.resources | map(select(has("id") | not))' infra-dev-state.json
fancy-pencil-39264
08/20/2025, 11:51 AMfancy-pencil-39264
08/20/2025, 11:51 AMfancy-pencil-39264
08/20/2025, 11:56 AMcat infra-dev-state.json | jq '.deployment.resources | map(select(has("id") | not))'
found a few things'fancy-pencil-39264
08/20/2025, 11:56 AMfancy-pencil-39264
08/20/2025, 11:56 AM{
"urn": "urn:pulumi:dev::photon-infrastructure::azure-native:network:PrivateDnsZoneGroup::dnsPrivateZoneGroup",
"custom": true,
"type": "azure-native:network:PrivateDnsZoneGroup",
"inputs": {
"name": "default",
"privateDnsZoneConfigs": [
{
"name": "<http://privatelink.database.windows.net|privatelink.database.windows.net>",
"privateDnsZoneId": "/subscriptions/a96ab92e-6d33-4fe6-b216-3bbd86c7fdda/resourceGroups/photon-rg/providers/Microsoft.Network/privateDnsZones/privatelink.database.windows.net"
}
],
"privateEndpointName": "photonPrivateEndpoint",
"resourceGroupName": "photon-rg"
},
"parent": "urn:pulumi:dev::photon-infrastructure::pulumi:pulumi:Stack::photon-infrastructure-dev",
"dependencies": [
"urn:pulumi:dev::photon-infrastructure::azure-native:privatedns:PrivateZone::dnsPrivateZone",
"urn:pulumi:dev::photon-infrastructure::azure-native:privatedns:VirtualNetworkLink::vnetLink",
"urn:pulumi:dev::photon-infrastructure::azure-native:network:PrivateEndpoint::privateEndpoint",
"urn:pulumi:dev::photon-infrastructure::azure-native:resources:ResourceGroup::resourceGroup"
],
"provider": "urn:pulumi:dev::photon-infrastructure::pulumi:providers:azure-native::default_3_5_1::ccef02bb-0f8a-4320-817a-e3d1c354da44",
"propertyDependencies": {
"name": [],
"privateDnsZoneConfigs": [
"urn:pulumi:dev::photon-infrastructure::azure-native:privatedns:PrivateZone::dnsPrivateZone"
],
"privateEndpointName": [
"urn:pulumi:dev::photon-infrastructure::azure-native:network:PrivateEndpoint::privateEndpoint"
],
"resourceGroupName": [
"urn:pulumi:dev::photon-infrastructure::azure-native:resources:ResourceGroup::resourceGroup"
]
},
"created": "2025-08-08T12:03:44.70702762Z",
"modified": "2025-08-08T12:03:44.70702762Z",
"sourcePosition": "project:///resources/Network.ts#98,26"
}
fancy-pencil-39264
08/20/2025, 11:57 AMfancy-pencil-39264
08/20/2025, 11:57 AMfancy-pencil-39264
08/20/2025, 11:57 AMfancy-pencil-39264
08/20/2025, 11:58 AMechoing-dinner-19531
08/20/2025, 11:58 AMechoing-dinner-19531
08/20/2025, 11:59 AMfancy-pencil-39264
08/20/2025, 11:59 AMfancy-pencil-39264
08/20/2025, 11:59 AMfancy-pencil-39264
08/20/2025, 12:00 PMfancy-pencil-39264
08/20/2025, 12:00 PMfancy-pencil-39264
08/20/2025, 12:01 PMfancy-pencil-39264
08/20/2025, 12:01 PMfancy-pencil-39264
08/20/2025, 12:02 PMechoing-dinner-19531
08/20/2025, 12:02 PMfancy-pencil-39264
08/20/2025, 1:42 PMfancy-pencil-39264
08/20/2025, 1:43 PMlively-crayon-44649
08/20/2025, 1:50 PMfancy-pencil-39264
08/20/2025, 1:53 PM