I just reproduced it now.
From the client side, I see this:
$ date; juju --debug deploy ubuntu this-will-fail --to 11/lxd/2; date Fri May 3 06:12:53 PM UTC 2024 18:12:53 INFO juju.cmd supercommand.go:56 running juju [3.4.2 a80becbb4da5985fa53c63824a4bd809e9d03954 gc go1.21.8] 18:12:53 DEBUG juju.cmd supercommand.go:57 args: []string{"/snap/juju/26968/bin/juju", "--debug", "deploy", "ubuntu", "this-will-fail", "--to", "11/lxd/2"} 18:12:53 INFO juju.juju api.go:86 connecting to API addresses: [10.42.1.99:17070 10.42.1.91:17070 10.42.1.103:17070] 18:12:53 DEBUG juju.api apiclient.go:1172 successfully dialed "wss://10.42.1.91:17070/model/5ffc4276-3ba6-4eae-8322-a8ba33c3123a/api" 18:12:53 INFO juju.api apiclient.go:707 connection established to "wss://10.42.1.91:17070/model/5ffc4276-3ba6-4eae-8322-a8ba33c3123a/api" 18:12:53 INFO juju.juju api.go:86 connecting to API addresses: [10.42.1.91:17070 10.42.1.103:17070 10.42.1.99:17070] 18:12:53 DEBUG juju.api apiclient.go:1172 successfully dialed "wss://10.42.1.99:17070/api" 18:12:53 INFO juju.api apiclient.go:707 connection established to "wss://10.42.1.99:17070/api" 18:12:54 ERROR cmd charm.go:388 runtime error: invalid memory address or nil pointer dereference 18:12:54 DEBUG juju.api monitor.go:35 RPC connection died 18:12:54 DEBUG juju.api monitor.go:35 RPC connection died ERROR failed to deploy charm "ubuntu" 18:12:54 DEBUG cmd supercommand.go:549 error stack: github.com/juju/juju/cmd/juju/application/deployer.(*repositoryCharm).PrepareAndDeploy:391: failed to deploy charm "ubuntu" Fri May 3 06:12:54 PM UTC 2024
The matching logs on the controller, in machine-0.log, are:
2024-05-03 18:12:32 CRITICAL juju.rpc server.go:557 panic running request {MethodCaller:0xc00b940570 transformErrors:0x3c616c0 hdr:{RequestId:4 Request:{Type:Application Version:19 Id: Action:DeployFromRepository} Error: ErrorCode: ErrorInfo:map[] Version:1}} with arg {Args:[{CharmName:ubuntu ApplicationName:this-will-fail AttachStorage:[] Base:<nil> Channel:<nil> ConfigYAML:this-will-fail: {} Cons: Devices:map[] DryRun:false EndpointBindings:map[] Force:false NumUnits:0xc0040c8a70 Placement:[#:11/lxd/2] Revision:<nil> Resources:map[] Storage:map[] Trust:false}]}: runtime error: invalid memory address or nil pointer dereference goroutine 21344914 [running]: runtime/debug.Stack() /snap/go/current/src/runtime/debug/stack.go:24 +0x65 github.com/juju/juju/rpc.(*Conn).runRequest.func1() /build/snapcraft-juju-38292071f4d4886eaedb64ffe94254b4/parts/jujud/build/rpc/server.go:558 +0x7d panic({0x6b1d140, 0xc0f1440}) /snap/go/current/src/runtime/panic.go:884 +0x213 github.com/juju/juju/apiserver/facades/client/application.(*deployFromRepositoryValidator).platformFromPlacement(0xc0015373e0, {0xc00e266ec0, 0x1, 0x0?}) /build/snapcraft-juju-38292071f4d4886eaedb64ffe94254b4/parts/jujud/build/apiserver/facades/client/application/deployrepository.go:690 +0x4f5 github.com/juju/juju/apiserver/facades/client/application.(*deployFromRepositoryValidator).deducePlatform(_, {{0xc0040c8a48, 0x6}, {0xc0040c8a60, 0xe}, {0x0, 0x0, 0x0}, 0x0, 0x0, ...}) /build/snapcraft-juju-38292071f4d4886eaedb64ffe94254b4/parts/jujud/build/apiserver/facades/client/application/deployrepository.go:629 +0x325 github.com/juju/juju/apiserver/facades/client/application.(*deployFromRepositoryValidator).createOrigin(_, {{0xc0040c8a48, 0x6}, {0xc0040c8a60, 0xe}, {0x0, 0x0, 0x0}, 0x0, 0x0, ...}) /build/snapcraft-juju-38292071f4d4886eaedb64ffe94254b4/parts/jujud/build/apiserver/facades/client/application/deployrepository.go:563 +0x2e7 github.com/juju/juju/apiserver/facades/client/application.(*deployFromRepositoryValidator).getCharm(_, {{0xc0040c8a48, 0x6}, {0xc0040c8a60, 0xe}, {0x0, 0x0, 0x0}, 0x0, 0x0, ...}) /build/snapcraft-juju-38292071f4d4886eaedb64ffe94254b4/parts/jujud/build/apiserver/facades/client/application/deployrepository.go:799 +0x98 github.com/juju/juju/apiserver/facades/client/application.(*deployFromRepositoryValidator).validate(_, {{0xc0040c8a48, 0x6}, {0xc0040c8a60, 0xe}, {0x0, 0x0, 0x0}, 0x0, 0x0, ...}) /build/snapcraft-juju-38292071f4d4886eaedb64ffe94254b4/parts/jujud/build/apiserver/facades/client/application/deployrepository.go:352 +0x1e5 github.com/juju/juju/apiserver/facades/client/application.iaasDeployFromRepositoryValidator.ValidateArg({_}, {{0xc0040c8a48, 0x6}, {0xc0040c8a60, 0xe}, {0x0, 0x0, 0x0}, 0x0, 0x0, ...}) /build/snapcraft-juju-38292071f4d4886eaedb64ffe94254b4/parts/jujud/build/apiserver/facades/client/application/deployrepository.go:530 +0x9a github.com/juju/juju/apiserver/facades/client/application.(*DeployFromRepositoryAPI).DeployFromRepository(_, {{0xc0040c8a48, 0x6}, {0xc0040c8a60, 0xe}, {0x0, 0x0, 0x0}, 0x0, 0x0, ...}) /build/snapcraft-juju-38292071f4d4886eaedb64ffe94254b4/parts/jujud/build/apiserver/facades/client/application/deployrepository.go:91 +0x175 github.com/juju/juju/apiserver/facades/client/application.(*APIBase).DeployFromRepository(0xc00d5ffa40, {{0xc00d998000?, 0x4?, 0x0?}}) /build/snapcraft-juju-38292071f4d4886eaedb64ffe94254b4/parts/jujud/build/apiserver/facades/client/application/application.go:3060 +0x195 reflect.Value.call({0x76e6a40?, 0xc007f2d880?, 0x40f447?}, {0x78a7820, 0x4}, {0xc0103a7a88, 0x1, 0xafaddd?}) /snap/go/current/src/reflect/value.go:586 +0xb07 reflect.Value.Call({0x76e6a40?, 0xc007f2d880?, 0x6d1c840?}, {0xc0103a7a88?, 0x0?, 0x40f06a?}) /snap/go/current/src/reflect/value.go:370 +0xbc github.com/juju/rpcreflect.newMethod.func8({0x8413db8, 0xc004182aa0}, {0x76e6a40?, 0xc007f2d880?, 0x6debb20?}, {0x6d1c840?, 0xc0103a6ed0?, 0x5cc256?}) /build/snapcraft-juju-38292071f4d4886eaedb64ffe94254b4/parts/jujud/build/vendor/github.com/juju/rpcreflect/type.go:365 +0xce github.com/juju/juju/apiserver.(*srvCaller).Call(0xc00b940570, {0x8413db8, 0xc004182aa0}, {0x0?, 0x0?}, {0x6d1c840?, 0xc0103a6ed0?, 0x40be4d?}) /build/snapcraft-juju-38292071f4d4886eaedb64ffe94254b4/parts/jujud/build/apiserver/root.go:205 +0xa6 github.com/juju/juju/rpc.(*Conn).runRequest(0xc013ae1b80, {{0x83fa5a0, 0xc00b940570}, 0x7b813a0, {0x4, {{0xc0040c8a20, 0xb}, 0x13, {0x0, 0x0}, ...}, ...}}, ...) /build/snapcraft-juju-38292071f4d4886eaedb64ffe94254b4/parts/jujud/build/rpc/server.go:571 +0x1b6 created by github.com/juju/juju/rpc.(*Conn).handleRequest /build/snapcraft-juju-38292071f4d4886eaedb64ffe94254b4/parts/jujud/build/rpc/server.go:475 +0x685
I just reproduced it now.
From the client side, I see this:
$ date; juju --debug deploy ubuntu this-will-fail --to 11/lxd/2; date fa53c63824a4bd8 09e9d03954 gc go1.21.8] "/snap/ juju/26968/ bin/juju" , "--debug", "deploy", "ubuntu", "this-will-fail", "--to", "11/lxd/2"} 10.42.1. 91:17070/ model/5ffc4276- 3ba6-4eae- 8322-a8ba33c312 3a/api" 10.42.1. 91:17070/ model/5ffc4276- 3ba6-4eae- 8322-a8ba33c312 3a/api" 10.42.1. 99:17070/ api" 10.42.1. 99:17070/ api" com/juju/ juju/cmd/ juju/applicatio n/deployer. (*repositoryCha rm).PrepareAndD eploy:391: failed to deploy charm "ubuntu"
Fri May 3 06:12:53 PM UTC 2024
18:12:53 INFO juju.cmd supercommand.go:56 running juju [3.4.2 a80becbb4da5985
18:12:53 DEBUG juju.cmd supercommand.go:57 args: []string{
18:12:53 INFO juju.juju api.go:86 connecting to API addresses: [10.42.1.99:17070 10.42.1.91:17070 10.42.1.103:17070]
18:12:53 DEBUG juju.api apiclient.go:1172 successfully dialed "wss://
18:12:53 INFO juju.api apiclient.go:707 connection established to "wss://
18:12:53 INFO juju.juju api.go:86 connecting to API addresses: [10.42.1.91:17070 10.42.1.103:17070 10.42.1.99:17070]
18:12:53 DEBUG juju.api apiclient.go:1172 successfully dialed "wss://
18:12:53 INFO juju.api apiclient.go:707 connection established to "wss://
18:12:54 ERROR cmd charm.go:388 runtime error: invalid memory address or nil pointer dereference
18:12:54 DEBUG juju.api monitor.go:35 RPC connection died
18:12:54 DEBUG juju.api monitor.go:35 RPC connection died
ERROR failed to deploy charm "ubuntu"
18:12:54 DEBUG cmd supercommand.go:549 error stack:
github.
Fri May 3 06:12:54 PM UTC 2024
The matching logs on the controller, in machine-0.log, are:
2024-05-03 18:12:32 CRITICAL juju.rpc server.go:557 panic running request {MethodCaller: 0xc00b940570 transformErrors :0x3c616c0 hdr:{RequestId:4 Request: {Type:Applicati on Version:19 Id: Action: DeployFromRepos itory} Error: ErrorCode: ErrorInfo:map[] Version:1}} with arg {Args:[ {CharmName: ubuntu ApplicationName :this-will- fail AttachStorage:[] Base:<nil> Channel:<nil> ConfigYAML: this-will- fail: {} s:map[] Force:false NumUnits: 0xc0040c8a70 Placement: [#:11/lxd/ 2] Revision:<nil> Resources:map[] Storage:map[] Trust:false}]}: runtime error: invalid memory address or nil pointer dereference debug.Stack( )
/snap/ go/current/ src/runtime/ debug/stack. go:24 +0x65 com/juju/ juju/rpc. (*Conn) .runRequest. func1()
/build/ snapcraft- juju-38292071f4 d4886eaedb64ffe 94254b4/ parts/jujud/ build/rpc/ server. go:558 +0x7d
/snap/ go/current/ src/runtime/ panic.go: 884 +0x213 com/juju/ juju/apiserver/ facades/ client/ application. (*deployFromRep ositoryValidato r).platformFrom Placement( 0xc0015373e0, {0xc00e266ec0, 0x1, 0x0?})
/build/ snapcraft- juju-38292071f4 d4886eaedb64ffe 94254b4/ parts/jujud/ build/apiserver /facades/ client/ application/ deployrepositor y.go:690 +0x4f5 com/juju/ juju/apiserver/ facades/ client/ application. (*deployFromRep ositoryValidato r).deducePlatfo rm(_, {{0xc0040c8a48, 0x6}, {0xc0040c8a60, 0xe}, {0x0, 0x0, 0x0}, 0x0, 0x0, ...})
/build/ snapcraft- juju-38292071f4 d4886eaedb64ffe 94254b4/ parts/jujud/ build/apiserver /facades/ client/ application/ deployrepositor y.go:629 +0x325 com/juju/ juju/apiserver/ facades/ client/ application. (*deployFromRep ositoryValidato r).createOrigin (_, {{0xc0040c8a48, 0x6}, {0xc0040c8a60, 0xe}, {0x0, 0x0, 0x0}, 0x0, 0x0, ...})
/build/ snapcraft- juju-38292071f4 d4886eaedb64ffe 94254b4/ parts/jujud/ build/apiserver /facades/ client/ application/ deployrepositor y.go:563 +0x2e7 com/juju/ juju/apiserver/ facades/ client/ application. (*deployFromRep ositoryValidato r).getCharm( _, {{0xc0040c8a48, 0x6}, {0xc0040c8a60, 0xe}, {0x0, 0x0, 0x0}, 0x0, 0x0, ...})
/build/ snapcraft- juju-38292071f4 d4886eaedb64ffe 94254b4/ parts/jujud/ build/apiserver /facades/ client/ application/ deployrepositor y.go:799 +0x98 com/juju/ juju/apiserver/ facades/ client/ application. (*deployFromRep ositoryValidato r).validate( _, {{0xc0040c8a48, 0x6}, {0xc0040c8a60, 0xe}, {0x0, 0x0, 0x0}, 0x0, 0x0, ...})
/build/ snapcraft- juju-38292071f4 d4886eaedb64ffe 94254b4/ parts/jujud/ build/apiserver /facades/ client/ application/ deployrepositor y.go:352 +0x1e5 com/juju/ juju/apiserver/ facades/ client/ application. iaasDeployFromR epositoryValida tor.ValidateArg ({_}, {{0xc0040c8a48, 0x6}, {0xc0040c8a60, 0xe}, {0x0, 0x0, 0x0}, 0x0, 0x0, ...})
/build/ snapcraft- juju-38292071f4 d4886eaedb64ffe 94254b4/ parts/jujud/ build/apiserver /facades/ client/ application/ deployrepositor y.go:530 +0x9a com/juju/ juju/apiserver/ facades/ client/ application. (*DeployFromRep ositoryAPI) .DeployFromRepo sitory( _, {{0xc0040c8a48, 0x6}, {0xc0040c8a60, 0xe}, {0x0, 0x0, 0x0}, 0x0, 0x0, ...})
/build/ snapcraft- juju-38292071f4 d4886eaedb64ffe 94254b4/ parts/jujud/ build/apiserver /facades/ client/ application/ deployrepositor y.go:91 +0x175 com/juju/ juju/apiserver/ facades/ client/ application. (*APIBase) .DeployFromRepo sitory( 0xc00d5ffa40, {{0xc00d998000?, 0x4?, 0x0?}})
/build/ snapcraft- juju-38292071f4 d4886eaedb64ffe 94254b4/ parts/jujud/ build/apiserver /facades/ client/ application/ application. go:3060 +0x195 Value.call( {0x76e6a40? , 0xc007f2d880?, 0x40f447?}, {0x78a7820, 0x4}, {0xc0103a7a88, 0x1, 0xafaddd?})
/snap/ go/current/ src/reflect/ value.go: 586 +0xb07 Value.Call( {0x76e6a40? , 0xc007f2d880?, 0x6d1c840?}, {0xc0103a7a88?, 0x0?, 0x40f06a?})
/snap/ go/current/ src/reflect/ value.go: 370 +0xbc com/juju/ rpcreflect. newMethod. func8({ 0x8413db8, 0xc004182aa0}, {0x76e6a40?, 0xc007f2d880?, 0x6debb20?}, {0x6d1c840?, 0xc0103a6ed0?, 0x5cc256?})
/build/ snapcraft- juju-38292071f4 d4886eaedb64ffe 94254b4/ parts/jujud/ build/vendor/ github. com/juju/ rpcreflect/ type.go: 365 +0xce com/juju/ juju/apiserver. (*srvCaller) .Call(0xc00b940 570, {0x8413db8, 0xc004182aa0}, {0x0?, 0x0?}, {0x6d1c840?, 0xc0103a6ed0?, 0x40be4d?})
/build/ snapcraft- juju-38292071f4 d4886eaedb64ffe 94254b4/ parts/jujud/ build/apiserver /root.go: 205 +0xa6 com/juju/ juju/rpc. (*Conn) .runRequest( 0xc013ae1b80, {{0x83fa5a0, 0xc00b940570}, 0x7b813a0, {0x4, {{0xc0040c8a20, 0xb}, 0x13, {0x0, 0x0}, ...}, ...}}, ...)
/build/ snapcraft- juju-38292071f4 d4886eaedb64ffe 94254b4/ parts/jujud/ build/rpc/ server. go:571 +0x1b6 com/juju/ juju/rpc. (*Conn) .handleRequest
/build/ snapcraft- juju-38292071f4 d4886eaedb64ffe 94254b4/ parts/jujud/ build/rpc/ server. go:475 +0x685
Cons: Devices:map[] DryRun:false EndpointBinding
goroutine 21344914 [running]:
runtime/
github.
panic({0x6b1d140, 0xc0f1440})
github.
github.
github.
github.
github.
github.
github.
github.
reflect.
reflect.
github.
github.
github.
created by github.