Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

No such file or directory in /opt/bootstrap on line 29 #31

Open
hassan-raza-com opened this issue Jan 11, 2022 · 1 comment
Open

No such file or directory in /opt/bootstrap on line 29 #31

hassan-raza-com opened this issue Jan 11, 2022 · 1 comment

Comments

@hassan-raza-com
Copy link

I'm getting this.

{
  "errorMessage": "RequestId: 7161f214-824d-4b8f-82cd-01bad53a5e75 Error: Runtime exited with error: exit status 255",
  "errorType": "Runtime.ExitError"
}

Function Logs
START RequestId: 7161f214-824d-4b8f-82cd-01bad53a5e75 Version: $LATEST
Warning: require_once(/var/task/src/handler.php): failed to open stream: No such file or directory in /opt/bootstrap on line 29
Fatal error: require_once(): Failed opening required '/var/task/src/handler.php' (include_path='.:/home/ec2-user/php-7-bin/lib/php') in /opt/bootstrap on line 29
END RequestId: 7161f214-824d-4b8f-82cd-01bad53a5e75
REPORT RequestId: 7161f214-824d-4b8f-82cd-01bad53a5e75	Duration: 26.02 ms	Billed Duration: 135 ms	Memory Size: 128 MB	Max Memory Used: 36 MB	Init Duration: 108.48 ms	
RequestId: 7161f214-824d-4b8f-82cd-01bad53a5e75 Error: Runtime exited with error: exit status 255
Runtime.ExitError
@nkm-m
Copy link

nkm-m commented Jul 7, 2022

I have a similar problem.

In my case, after sam deploy, when I run the test in the Lambda console, I get the following error:

{
  "errorMessage": "RequestId: 0d280a9a-152b-4876-998f-193e24f2d143 Error: Runtime exited with error: exit status 126",
  "errorType": "Runtime.ExitError"
}
START RequestId: 0d280a9a-152b-4876-998f-193e24f2d143 Version: $LATEST
/lambda-entrypoint.sh: /var/runtime/bootstrap: /var/lang/bin/php^M: bad interpreter: No such file or directory
/lambda-entrypoint.sh: line 14: /var/runtime/bootstrap: Success
END RequestId: 0d280a9a-152b-4876-998f-193e24f2d143
REPORT RequestId: 0d280a9a-152b-4876-998f-193e24f2d143	Duration: 25.73 ms	Billed Duration: 26 ms	Memory Size: 128 MB	Max Memory Used: 3 MB	
RequestId: 0d280a9a-152b-4876-998f-193e24f2d143 Error: Runtime exited with error: exit status 126
Runtime.ExitError

Similar errors occur in local tests before deployment.

It seems that this sample app hasn't been updated since 2 years ago, so I'd be happy if you could update it so that the error is resolved.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants