Michal Saloň
Michal Saloň
ZZerops
Created by josefryzi on 11/18/2024 in #💪・community-support
PHP extensions ext-sodium required
Hi, all I can see in our errors is that your php bin/console cache:warmup failed with:
PHP Fatal error: Uncaught Symfony\Component\Dotenv\Exception\PathException: Unable to read the "/build/source/.env" environment file. in /build/source/vendor/symfony/dotenv/Dotenv.php:553
Stack trace:
#0 /build/source/vendor/symfony/dotenv/Dotenv.php(106): Symfony\Component\Dotenv\Dotenv->doLoad()
#1 /build/source/vendor/symfony/dotenv/Dotenv.php(149): Symfony\Component\Dotenv\Dotenv->loadEnv()
#2 /build/source/bin/console(31): Symfony\Component\Dotenv\Dotenv->bootEnv()
#3 {main}
thrown in /build/source/vendor/symfony/dotenv/Dotenv.php on line 553
PHP Fatal error: Uncaught Symfony\Component\Dotenv\Exception\PathException: Unable to read the "/build/source/.env" environment file. in /build/source/vendor/symfony/dotenv/Dotenv.php:553
Stack trace:
#0 /build/source/vendor/symfony/dotenv/Dotenv.php(106): Symfony\Component\Dotenv\Dotenv->doLoad()
#1 /build/source/vendor/symfony/dotenv/Dotenv.php(149): Symfony\Component\Dotenv\Dotenv->loadEnv()
#2 /build/source/bin/console(31): Symfony\Component\Dotenv\Dotenv->bootEnv()
#3 {main}
thrown in /build/source/vendor/symfony/dotenv/Dotenv.php on line 553
11 replies
ZZerops
Created by josefryzi on 11/18/2024 in #💪・community-support
PHP extensions ext-sodium required
Yes, and since Symfony demo is, sadly, very simple, it does not need Libsodium. Try this updated Symfony example zerops.yml (see addition of run.prepareCommands):
zerops:
- setup: app
build:
buildCommands:
- composer install --optimize-autoloader --no-dev
- php bin/console asset-map:compile
- php bin/console cache:warmup
deployFiles: ./
cache:
- vendor
- composer.lock
envVariables:
APP_ENV: prod
run:
prepareCommands:
- sudo apk add php83-sodium
initCommands:
- php bin/console doctrine:migrations:migrate
envVariables:
APP_ENV: prod
TRUSTED_PROXIES: 127.0.0.1,10.0.0.0/8
DATABASE_URL: "${db_connectionString}/${db_dbName}?serverVersion=16&charset=utf8"
MAILER_DSN: "smtp://mailpit:1025"
documentRoot: public
zerops:
- setup: app
build:
buildCommands:
- composer install --optimize-autoloader --no-dev
- php bin/console asset-map:compile
- php bin/console cache:warmup
deployFiles: ./
cache:
- vendor
- composer.lock
envVariables:
APP_ENV: prod
run:
prepareCommands:
- sudo apk add php83-sodium
initCommands:
- php bin/console doctrine:migrations:migrate
envVariables:
APP_ENV: prod
TRUSTED_PROXIES: 127.0.0.1,10.0.0.0/8
DATABASE_URL: "${db_connectionString}/${db_dbName}?serverVersion=16&charset=utf8"
MAILER_DSN: "smtp://mailpit:1025"
documentRoot: public
11 replies
ZZerops
Created by josefryzi on 11/18/2024 in #💪・community-support
PHP extensions ext-sodium required
Hi, if you are using alpine os (if you do not have specifiacally os: ubuntu you are), you need to have sudo apk add php82-sodium in your prepareCommands. Our PHP has some most used libraries, but not all of them. We do add some more popular/requested libraries, but can't add all of them. If you are using ubuntu then you youst need to enable sodium extension.
11 replies
ZZerops
Created by slowhog on 10/16/2024 in #💪・community-support
Java Service Maven Permission Denied
I am not sure why it's failing for him, since in our recipe it's working ok. https://github.com/zeropsio/recipe-spring/blob/main/zerops.yml Do you have build.base set to java@21?
11 replies
ZZerops
Created by Dally on 10/8/2024 in #💪・community-support
Object Storage MinIO login
No description
5 replies
ZZerops
Created by Dally on 10/8/2024 in #💪・community-support
Object Storage MinIO login
5 replies
ZZerops
Created by Dally on 10/8/2024 in #💪・community-support
Object Storage MinIO login
No description
5 replies