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

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

Open
tigerjun98 opened this issue Aug 13, 2021 · 3 comments
Open

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

tigerjun98 opened this issue Aug 13, 2021 · 3 comments

Comments

@tigerjun98
Copy link

Response
{
"errorMessage": "RequestId: ae39bce3-185d-4011-8edd-251bdb4a6f52 Error: Runtime exited with error: exit status 255",
"errorType": "Runtime.ExitError"
}

Function Logs
START RequestId: ae39bce3-185d-4011-8edd-251bdb4a6f52 Version: $LATEST
Warning: require(/opt/vendor/autoload.php): failed to open stream: No such file or directory in /opt/bootstrap on line 20
Fatal error: require(): Failed opening required '/opt/vendor/autoload.php' (include_path='.:/home/ec2-user/environment/php-7-bin/lib/php') in /opt/bootstrap on line 20
END RequestId: ae39bce3-185d-4011-8edd-251bdb4a6f52
REPORT RequestId: ae39bce3-185d-4011-8edd-251bdb4a6f52 Duration: 125.65 ms Billed Duration: 126 ms Memory Size: 128 MB Max Memory Used: 9 MB
RequestId: ae39bce3-185d-4011-8edd-251bdb4a6f52 Error: Runtime exited with error: exit status 255
Runtime.ExitError

@VVNN0322
Copy link

I also got this error, does anyone help?

@romulodl
Copy link

had the same issue, to fix it replace all $_ENV for getenv and it will work!

@JWesorick
Copy link

The $_ENV fix was not my issue. I was missing the autoload.php file in my venfor.zip. Make sure you have run php composer.phar install, which generates the autoload.php file, before you zip up the vendor files.

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

No branches or pull requests

4 participants