Hey guys, I need some help with some errors that I...
# aws
c
Hey guys, I need some help with some errors that I have been facing fairly recently (context: nothing went wrong before this but suddenly i kept getting these errors when I try to deploy through gitlab CI)
Copy code
pulumi:pulumi:Stack (service_diagnostics/staging)
    error: awsx:ecr:Image resource 'staging-service-diagnostics-image' has a problem: ' docker build ../ -t 0800fdfc-container' failed with exit code 1
    error: Program failed with an unhandled exception:
Traceback (most recent call last):
  File "/builds/service_diagnostics/infrastructure/venv/lib/python3.11/site-packages/pulumi/runtime/resource.py", line 978, in do_rpc_call
    return monitor.RegisterResource(req)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builds/service_diagnostics/infrastructure/venv/lib/python3.11/site-packages/grpc/_channel.py", line 1030, in __call__
    return _end_unary_response_blocking(state, call, False, None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builds/service_diagnostics/infrastructure/venv/lib/python3.11/site-packages/grpc/_channel.py", line 910, in _end_unary_response_blocking
    raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNKNOWN
	details = "resource monitor shut down"
	debug_error_string = "UNKNOWN:Error received from peer  {grpc_message:"resource monitor shut down", grpc_status:2, created_time:"2025-08-04T09:25:31.636820507+00:00"}"
Copy code
# image
image = awsx.ecr.Image(
    f"{environment}-service-diagnostics-image", repository_url=repo.url, path="../"
)
Copy code
pulumi==3.76.0
pulumi-aws==5.41.0
pulumi-awsx==1.0.2
these are my pulumi versions
e
I think the imporant part here is:
Copy code
error: awsx:ecr:Image resource 'staging-service-diagnostics-image' has a problem: ' docker build ../ -t 0800fdfc-container' failed with exit code 1
For whatever reason the docker build is failing, that's then triggering the engine to shutdown and the rest is just errors from that. Might be your gitlab CI doesn't have docker setup?
c
yep i thought that was the case, but when i build locally it's completely fine, is there a way i can get logs from the docker build from pulumi?
and the thing is it has always been building just fine, until recently with no changes to the dockerfile/pulumi scripts
e
I'm not sure, I haven't used the docker provider, might be worth asking about it at https://github.com/pulumi/pulumi-docker. I'd imagine there's someway to get the logs.