brefphp / bref

Serverless PHP on AWS Lambda
https://bref.sh
MIT License
3.05k stars 364 forks source link

OPENSSL_3.3.0' not found (required by /opt/lib/libssl.so.3) #1790

Closed pra-cloud closed 2 months ago

pra-cloud commented 2 months ago

Error:-

error-bref

composer.json

"require": { "php": "^8.2", "bref/bref": "^2.1.15", "bref/extra-php-extensions": "^1.4.2", "bref/laravel-bridge": "^2.1",

Dockerfile

FROM bref/php-82-fpm

COPY --from=bref/extra-mongodb-php-82:1 /opt /opt COPY --from=bref/extra-imagick-php-82:1 /opt /opt

COPY . /var/task

CMD ["public/index.php"]

salmanarshad321 commented 2 months ago

getting the same issue :\

siddiquiazam commented 2 months ago

Getting the same error. @mnapoli

mnapoli commented 2 months ago

Do you think it's related to one extension? Or the fact that it's running in Docker? What happens if you remove the extensions?

I tried the latest Bref version and it worked for me, but did not use Docker nor extensions.

pra-cloud commented 2 months ago

@mnapoli it was working fine with the same configuration but from today its stopped working and throwing this error , i am trying some hit and try from my side . In the meantime, if you have any suggestions or possible solutions that you think might be helpful, I would greatly appreciate your input.

pra-cloud commented 2 months ago

Hey i got the issue after commented these two lines in dockerfile for extension then its working fine , but without those extension's my app is not working properly.

:- Dockerfile

FROM bref/php-82-fpm

COPY --from=bref/extra-mongodb-php-82:1 /opt /opt

COPY --from=bref/extra-imagick-php-82:1 /opt /opt

COPY . /var/task

CMD ["public/index.php"]

mnapoli commented 2 months ago

Which extension is causing issues? Both of them?

siddiquiazam commented 2 months ago

I checked this issue on my end and tried commenting the extensions mentioned by @pra-cloud

The imagick extension was causing the issue

COPY --from=bref/extra-imagick-php-82:1 /opt /opt

pra-cloud commented 2 months ago

@mnapoli yes , @siddiquiazam is right imagick is occurring issue. Mongodb is running fine.

mnapoli commented 2 months ago

Please try the latest version of the bref extra extensions.

siddiquiazam commented 2 months ago

Its working thanks @mnapoli