Replies: 4 comments
-
Hi @norkunas!
There is probably some nuance in your CI. I can guess that these packages may be missing from the
Have you added a dependency of the The current docs don't contain information about the need to install this package. See #809 |
Beta Was this translation helpful? Give feedback.
-
Hey @7-zete-7,
But if previously was working, then suddenly vendor was cached without symfony/runtime ? 🤔
Yes, i looked through issues before reporting, so I've added symfony/runtime and runtime/frankenphp-symfony packages, |
Beta Was this translation helpful? Give feedback.
-
Ok so I've simplified my CI to (disabled cache): tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker images
uses: docker/bake-action@v6
with:
pull: true
load: true
files: |
compose.yaml
compose.ci.yaml
# DISABLE CACHE
# set: |
# *.cache-from=type=gha,scope=${{github.ref}}
# *.cache-from=type=gha,scope=refs/heads/main
# *.cache-to=type=gha,scope=${{github.ref}},mode=max
- name: Start services
run: docker compose up --wait --no-build
continue-on-error: true
- run: docker compose logs php
- name: Check HTTP reachability
run: curl -v --fail-with-body http://localhost
- name: Check HTTPS reachability
run: curl -vk --fail-with-body https://localhost my compose.ci.yaml (a copy of compose.override.yml) contains overrides like: scheduler:
profiles:
- donotstart to avoid starting messenger consumers, but for some reason i see that it still tries to start.. the build logs looks ok, then start services step shows this: Run docker compose up --wait --no-build
meilisearch Pulling
database Pulling
redis Pulling
mailer Pulling
3da95a905ed5 Pulling fs layer
fb940e68fdcf Pulling fs layer
944aad9f1ff7 Pulling fs layer
574052bfcd56 Pulling fs layer
bae11d176099 Pulling fs layer
4f4fb700ef54 Pulling fs layer
58f72891ca70 Pulling fs layer
bae11d176099 Waiting
4f4fb700ef54 Waiting
58f72891ca70 Waiting
574052bfcd56 Waiting
fe07684b16b8 Pulling fs layer
9f2bbb74413f Pulling fs layer
af8146204fd8 Pulling fs layer
fe07684b16b8 Waiting
9f2bbb74413f Waiting
af8146204fd8 Waiting
66a3d608f3fa Pulling fs layer
92ca1243c135 Pulling fs layer
5bc0bd93a482 Pulling fs layer
c07adba2d77a Pulling fs layer
390a02bc1661 Pulling fs layer
b58688ab8344 Pulling fs layer
5bc0bd93a482 Waiting
c07adba2d77a Waiting
390a02bc1661 Waiting
b58688ab8344 Waiting
66a3d608f3fa Waiting
92ca1243c135 Waiting
fe07684b16b8 Pulling fs layer
dc0894634161 Pulling fs layer
b2c2e77c01f8 Pulling fs layer
566700a5ef5b Pulling fs layer
6a8b2516865a Pulling fs layer
9808eed8d51a Pulling fs layer
c6f99ba99948 Pulling fs layer
0e3293a8957f Pulling fs layer
d259b0545f3a Pulling fs layer
bef088cae706 Pulling fs layer
4dff379ecd5a Pulling fs layer
Container app-mailer-1 Creating
Container app-meilisearch-1 Creating
Container app-database-1 Creating
Container app-redis-1 Creating
Container app-mailer-1 Created
Container app-redis-1 Created
Container app-meilisearch-1 Created
Container app-database-1 Created
Container app-basketball-messenger-1 Creating
Container app-messenger2-1 Creating
Container app-scheduler-1 Creating
Container app-media-messenger-1 Creating
Container app-messenger-1 Creating
Container app-people-messenger-1 Creating
Container app-cinema-messenger-1 Creating
Container app-php-1 Creating
Container app-messenger2-1 Created
Container app-basketball-messenger-1 Created
Container app-php-1 Created
Container app-scheduler-1 Created
Container app-messenger-1 Created
Container app-media-messenger-1 Created
Container app-people-messenger-1 Created
Container app-cinema-messenger-1 Created
Container app-meilisearch-1 Starting
Container app-database-1 Starting
Container app-redis-1 Starting
Container app-mailer-1 Starting
Container app-redis-1 Started
Container app-meilisearch-1 Started
Container app-database-1 Started
Container app-basketball-messenger-1 Starting
Container app-messenger2-1 Starting
Container app-people-messenger-1 Starting
Container app-scheduler-1 Starting
Container app-messenger-1 Starting
Container app-cinema-messenger-1 Starting
Container app-php-1 Starting
Container app-media-messenger-1 Starting
Container app-mailer-1 Started
Container app-basketball-messenger-1 Started
Container app-scheduler-1 Started
Container app-messenger-1 Started
Container app-messenger2-1 Started
Container app-people-messenger-1 Started
Container app-media-messenger-1 Started
Container app-cinema-messenger-1 Started
Container app-php-1 Started
Container app-basketball-messenger-1 Waiting
Container app-messenger2-1 Waiting
Container app-scheduler-1 Waiting
Container app-media-messenger-1 Waiting
Container app-mailer-1 Waiting
Container app-redis-1 Waiting
Container app-php-1 Waiting
Container app-cinema-messenger-1 Waiting
Container app-messenger-1 Waiting
Container app-people-messenger-1 Waiting
Container app-database-1 Waiting
Container app-meilisearch-1 Waiting
Container app-redis-1 Healthy
Container app-mailer-1 Healthy
Container app-meilisearch-1 Healthy
Container app-database-1 Healthy
container app-php-1 is unhealthy and compose logs step shows: PHP Fatal error: Uncaught LogicException: Symfony Runtime is missing. Try running "composer require symfony/runtime". in /app/bin/console:8
php-1 | Stack trace:
php-1 | #0 {main}
php-1 | thrown in /app/bin/console on line 8 :( composer.json: {
"require": {
"php": "^8.4",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-intl": "*",
"ext-mbstring": "*",
"ext-redis": "*",
"azjezz/psl": "^3.3.0",
"babdev/pagerfanta-bundle": "^4.5",
"cuyz/valinor-bundle": "^2.0.0",
"doctrine/doctrine-bundle": "^2.15.0",
"doctrine/doctrine-migrations-bundle": "^3.4.2",
"doctrine/orm": "^3.5.0",
"dragonmantank/cron-expression": "^3.4.0",
"egulias/email-validator": "^4.0.4",
"endroid/qr-code": "^6.0.8",
"geocoder-php/nominatim-provider": "^5.8",
"intervention/image": "^3.11.3",
"intervention/image-driver-vips": "^1.0.6",
"knplabs/knp-menu-bundle": "^3.6.0",
"ksubileau/color-thief-php": "^2.0.1",
"lcobucci/jwt": "^5.5.0",
"league/flysystem-bundle": "^3.4.0",
"league/flysystem-google-cloud-storage": "^3.30.0",
"league/flysystem-memory": "^3.29.0",
"logtail/monolog-logtail": "^3.3",
"meilisearch/search-bundle": "^0.15.8",
"nelmio/security-bundle": "^3.5.1",
"pagerfanta/doctrine-dbal-adapter": "^4.7.1",
"pagerfanta/doctrine-orm-adapter": "^4.7.1",
"pagerfanta/twig": "^4.7.1",
"php-standard-library/phpstan-extension": "^2.0.0",
"phpdocumentor/reflection-docblock": "^5.6.2",
"runtime/frankenphp-symfony": "^0.2.0",
"scheb/2fa-backup-code": "^7.11.0",
"scheb/2fa-bundle": "^7.11.0",
"scheb/2fa-totp": "^7.11.0",
"scienta/doctrine-json-functions": "^6.3",
"sentry/sentry-symfony": "^5.2.0",
"symfony/clock": "7.3.*",
"symfony/console": "7.3.*",
"symfony/css-selector": "7.3.*",
"symfony/discord-notifier": "7.3.*",
"symfony/doctrine-messenger": "7.3.*",
"symfony/dom-crawler": "7.3.*",
"symfony/dotenv": "7.3.*",
"symfony/expression-language": "7.3.*",
"symfony/flex": "^2.7.1",
"symfony/form": "7.3.*",
"symfony/framework-bundle": "7.3.*",
"symfony/http-client": "7.3.*",
"symfony/intl": "7.3.*",
"symfony/lock": "7.3.*",
"symfony/mailer": "7.3.*",
"symfony/mailgun-mailer": "7.3.*",
"symfony/mercure-bundle": "^0.3.9",
"symfony/messenger": "7.3.*",
"symfony/monolog-bundle": "^3.10",
"symfony/notifier": "7.3.*",
"symfony/process": "7.3.*",
"symfony/property-access": "7.3.*",
"symfony/property-info": "7.3.*",
"symfony/rate-limiter": "7.3.*",
"symfony/redis-messenger": "7.3.*",
"symfony/runtime": "7.3.*",
"symfony/scheduler": "7.3.*",
"symfony/security-bundle": "7.3.*",
"symfony/serializer": "7.3.*",
"symfony/stimulus-bundle": "^2.27.0",
"symfony/string": "7.3.*",
"symfony/translation": "7.3.*",
"symfony/twig-bundle": "7.3.*",
"symfony/uid": "7.3.*",
"symfony/ux-chartjs": "^2.27.0",
"symfony/ux-icons": "^2.27.0",
"symfony/ux-live-component": "^2.27.0",
"symfony/ux-turbo": "^2.27.0",
"symfony/ux-twig-component": "^2.27.0",
"symfony/validator": "7.3.*",
"symfony/webpack-encore-bundle": "^2.2.0",
"symfony/yaml": "7.3.*",
"symfonycasts/dynamic-forms": "^0.1.3",
"twig/extra-bundle": "^3.21.0",
"twig/html-extra": "^3.21.0",
"twig/intl-extra": "^3.21.0",
"twig/string-extra": "^3.21",
"twig/twig": "^3.21.1",
"webmozart/assert": "^1.11",
"willdurand/geocoder-bundle": "^5.23.0",
"zenstruck/bytes": "^1.0",
"zenstruck/foundry": "^2.6.0"
},
"require-dev": {
"dama/doctrine-test-bundle": "^8.3.0",
"mikey179/vfsstream": "^1.6.12",
"php-cs-fixer/shim": "^3.76.0",
"phpstan/phpstan": "^2.1.17",
"phpstan/phpstan-deprecation-rules": "^2.0.3",
"phpstan/phpstan-doctrine": "^2.0.3",
"phpstan/phpstan-phpunit": "^2.0.6",
"phpstan/phpstan-strict-rules": "^2.0.4",
"phpstan/phpstan-symfony": "^2.0.6",
"phpstan/phpstan-webmozart-assert": "^2.0.0",
"phpunit/phpunit": "^12.2.5",
"pyrech/composer-changelogs": "^2.1",
"roave/security-advisories": "dev-latest",
"symfony/browser-kit": "7.3.*",
"symfony/debug-bundle": "7.3.*",
"symfony/stopwatch": "7.3.*",
"symfony/var-dumper": "7.3.*",
"symfony/web-profiler-bundle": "7.3.*",
"vincentlanglet/twig-cs-fixer": "^3.8.1",
"zenstruck/browser": "^1.9.1",
"zenstruck/messenger-test": "^1.11.0"
},
"config": {
"allow-plugins": {
"composer/package-versions-deprecated": true,
"symfony/flex": true,
"symfony/runtime": true,
"php-http/discovery": true,
"pyrech/composer-changelogs": true
},
"bump-after-update": true,
"optimize-autoloader": true,
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"replace": {
"paragonie/random_compat": "2.*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-intl-grapheme": "*",
"symfony/polyfill-intl-icu": "*",
"symfony/polyfill-intl-idn": "*",
"symfony/polyfill-intl-normalizer": "*",
"symfony/polyfill-mbstring": "*",
"symfony/polyfill-php72": "*",
"symfony/polyfill-php80": "*",
"symfony/polyfill-php81": "*",
"symfony/polyfill-php82": "*",
"symfony/polyfill-php83": "*",
"symfony/polyfill-php84": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "7.3.*",
"docker": true
}
}
} |
Beta Was this translation helpful? Give feedback.
-
Ok so I've switched back to use this: run: docker compose up php redis database meilisearch --wait --no-build and then it works ... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This was started in my CI 3 days ago for some reason. Locally everything works. Deployment to production works, only in CI.
runtime/frankenphp-symfony
andsymfony/runtime
are defined in composer.jsonI'm also trying to add frankenphp to another existing project. After build, compose logs shows:
Beta Was this translation helpful? Give feedback.
All reactions