https://pulumi.com logo
#aws
Title
# aws
b

boundless-van-74484

08/16/2023, 6:24 PM
I’m getting a strange error when trying to deploy a lambda layer (tar.gz AssetArchive). Everything works locally, but running in CI (GitHub Actions) fails. The way I create the tar.gz file is through a shell script which bundles Prisma dependencies as the archive. In both local and CI, the script is run and then
pulumi up
takes care of the rest. Local Environment: MacOS 12.5.1 Local tar tool: bsdtar 3.5.1 CI Environment: Ubuntu 22.04.3 CI tar tool: GNU tar 1.34 (tried installing and using bsdtar but got the same error) Pulumi version: 3.78.1 (latest) If I remove the layer code, it works in CI Error
Copy code
panic: fatal: A failure has occurred: Unrecognized tar header typeflag: 50

goroutine 112 [running]:
<http://github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)|github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)>
	/home/runner/work/pulumi/pulumi/sdk/go/common/util/contract/failfast.go:23
<http://github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.Failf({0x249ad6f|github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.Failf({0x249ad6f>?, 0xc002190b80?}, {0xc001209688?, 0x2c40?, 0x8000?})
	/home/runner/work/pulumi/pulumi/sdk/go/common/util/contract/fail.go:32 +0xcd
<http://github.com/pulumi/pulumi/sdk/v3/go/common/resource.(*tarArchiveReader).Next(0xc001dd70f8)|github.com/pulumi/pulumi/sdk/v3/go/common/resource.(*tarArchiveReader).Next(0xc001dd70f8)>
	/home/runner/work/pulumi/pulumi/sdk/go/common/resource/asset.go:1226 +0x9e
<http://github.com/pulumi/pulumi/sdk/v3/go/common/resource.(*assetsArchiveReader).Next(0xc002204100)|github.com/pulumi/pulumi/sdk/v3/go/common/resource.(*assetsArchiveReader).Next(0xc002204100)>
	/home/runner/work/pulumi/pulumi/sdk/go/common/resource/asset.go:704 +0x52
<http://github.com/pulumi/pulumi/sdk/v3/go/common/resource.addNextFileToTar({0x2a2ddb0|github.com/pulumi/pulumi/sdk/v3/go/common/resource.addNextFileToTar({0x2a2ddb0>?, 0xc002204100?}, 0x9e8438?, 0x2443066?)
	/home/runner/work/pulumi/pulumi/sdk/go/common/resource/asset.go:965 +0x6c
<http://github.com/pulumi/pulumi/sdk/v3/go/common/resource.(*Archive).archiveTar(0xc0022025a0|github.com/pulumi/pulumi/sdk/v3/go/common/resource.(*Archive).archiveTar(0xc0022025a0>?, {0x7f430a9ea0b0?, 0xc002190b80})
	/home/runner/work/pulumi/pulumi/sdk/go/common/resource/asset.go:1011 +0x239
<http://github.com/pulumi/pulumi/sdk/v3/go/common/resource.(*Archive).Archive(0xc0022025a0|github.com/pulumi/pulumi/sdk/v3/go/common/resource.(*Archive).Archive(0xc0022025a0>?, 0x1, {0x7f430a9ea0b0, 0xc002190b80})
	/home/runner/work/pulumi/pulumi/sdk/go/common/resource/asset.go:951 +0x15c
<http://github.com/pulumi/pulumi/sdk/v3/go/common/resource.(*Archive).EnsureHash(0xc0022025a0)|github.com/pulumi/pulumi/sdk/v3/go/common/resource.(*Archive).EnsureHash(0xc0022025a0)>
	/home/runner/work/pulumi/pulumi/sdk/go/common/resource/asset.go:1125 +0x1bf
<http://github.com/pulumi/pulumi/sdk/v3/go/common/resource/plugin.UnmarshalPropertyValue({0xc00206d040|github.com/pulumi/pulumi/sdk/v3/go/common/resource/plugin.UnmarshalPropertyValue({0xc00206d040>, 0x4}, 0xc000a57600, {{0xc00005a5b0, 0x67}, 0x0, 0x1, 0x0, 0x0, 0x1, ...})
	/home/runner/work/pulumi/pulumi/sdk/go/common/resource/plugin/rpc.go:382 +0x110c
<http://github.com/pulumi/pulumi/sdk/v3/go/common/resource/plugin.UnmarshalProperties(0xc000b02990|github.com/pulumi/pulumi/sdk/v3/go/common/resource/plugin.UnmarshalProperties(0xc000b02990>, {{0xc00005a5b0, 0x67}, 0x0, 0x1, 0x0, 0x0, 0x1, 0x1, 0x0, ...})
	/home/runner/work/pulumi/pulumi/sdk/go/common/resource/plugin/rpc.go:271 +0x136
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*resmon).RegisterResource(0xc00201f180|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*resmon).RegisterResource(0xc00201f180>, {0x2a360f0, 0xc000b02ea0}, 0xc0020a7a00)
	/home/runner/work/pulumi/pulumi/pkg/resource/deploy/source_eval.go:1281 +0x1c25
<http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceMonitor_RegisterResource_Handler.func1({0x2a360f0|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceMonitor_RegisterResource_Handler.func1({0x2a360f0>, 0xc000b02ea0}, {0x23fdd00?, 0xc0020a7a00})
	/home/runner/work/pulumi/pulumi/sdk/proto/go/resource_grpc.pb.go:287 +0x78
<http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x2a360f0|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x2a360f0>, 0xc000b028d0}, {0x23fdd00, 0xc0020a7a00}, 0xc0006b56a0, 0xc001e7f4a0)
	/home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x3e8
<http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceMonitor_RegisterResource_Handler({0x2335140|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceMonitor_RegisterResource_Handler({0x2335140>?, 0xc00201f180}, {0x2a360f0, 0xc000b028d0}, 0xc0014d3340, 0xc0006b44c0)
	/home/runner/work/pulumi/pulumi/sdk/proto/go/resource_grpc.pb.go:289 +0x138
<http://google.golang.org/grpc.(*Server).processUnaryRPC(0xc0020a01e0|google.golang.org/grpc.(*Server).processUnaryRPC(0xc0020a01e0>, {0x2a410a0, 0xc0020a69c0}, 0xc000b519e0, 0xc0009a07b0, 0x3bd14c0, 0x0)
	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.57.0/server.go:1360 +0xe23
<http://google.golang.org/grpc.(*Server).handleStream(0xc0020a01e0|google.golang.org/grpc.(*Server).handleStream(0xc0020a01e0>, {0x2a410a0, 0xc0020a69c0}, 0xc000b519e0, 0x0)
	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.57.0/server.go:1737 +0xa36
<http://google.golang.org/grpc.(*Server).serveStreams.func1.1()|google.golang.org/grpc.(*Server).serveStreams.func1.1()>
	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.57.0/server.go:982 +0x98
created by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1>
	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.57.0/server.go:980 +0x18c
In case anyone else comes across this, I was able to solve this by using
zip
instead of
tar
2 Views