scoutapp / scout-apm-laravel

ScoutAPM PHP Agent for the Laravel Framework
MIT License
22 stars 12 forks source link

Heroku deploy hangs #20

Closed cschneid closed 4 years ago

cschneid commented 4 years ago

Setup:

When I git push to heroku, the deploy hangs right before running the package versions script.

~/P/t/p/blog (master |  πŸ‘  ) 🐠  git push heroku master
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 16 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 922 bytes | 922.00 KiB/s, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> PHP app detected
remote: -----> Bootstrapping...
remote: -----> Installing platform packages...
remote:        - php (7.3.9)
remote:        - ext-mbstring (bundled with php)
remote:        - apache (2.4.41)
remote:        - nginx (1.16.0)
remote: -----> Installing dependencies...
remote:        Composer version 1.9.0 2019-08-02 20:55:32
remote:        Loading composer repositories with package information
remote:        Installing dependencies from lock file
remote:        Package operations: 52 installs, 0 updates, 0 removals
remote:          - Installing ocramius/package-versions (1.4.0): Loading from cache
remote:          - Installing doctrine/inflector (v1.3.0): Loading from cache
remote:          - Installing doctrine/lexer (1.0.2): Loading from cache
remote:          - Installing dragonmantank/cron-expression (v2.3.0): Loading from cache
remote:          - Installing erusev/parsedown (1.7.3): Loading from cache
remote:          - Installing symfony/polyfill-ctype (v1.12.0): Loading from cache
remote:          - Installing phpoption/phpoption (1.5.0): Loading from cache
remote:          - Installing vlucas/phpdotenv (v3.6.0): Loading from cache
remote:          - Installing symfony/css-selector (v4.3.4): Loading from cache
remote:          - Installing tijsverkoyen/css-to-inline-styles (2.2.1): Loading from cache
remote:          - Installing symfony/polyfill-php72 (v1.12.0): Loading from cache
remote:          - Installing symfony/polyfill-mbstring (v1.12.0): Loading from cache
remote:          - Installing symfony/var-dumper (v4.3.4): Loading from cache
remote:          - Installing symfony/routing (v4.3.4): Loading from cache
remote:          - Installing symfony/process (v4.3.4): Loading from cache
remote:          - Installing symfony/polyfill-php73 (v1.12.0): Loading from cache
remote:          - Installing symfony/polyfill-intl-idn (v1.12.0): Loading from cache
remote:          - Installing symfony/mime (v4.3.4): Loading from cache
remote:          - Installing symfony/http-foundation (v4.3.4): Loading from cache
remote:          - Installing symfony/event-dispatcher-contracts (v1.1.5): Loading from cache
remote:          - Installing symfony/event-dispatcher (v4.3.4): Loading from cache
remote:          - Installing psr/log (1.1.0): Loading from cache
remote:          - Installing symfony/debug (v4.3.4): Loading from cache
remote:          - Installing symfony/http-kernel (v4.3.4): Loading from cache
remote:          - Installing symfony/finder (v4.3.4): Loading from cache
remote:          - Installing psr/container (1.0.0): Loading from cache
remote:          - Installing symfony/service-contracts (v1.1.6): Loading from cache
remote:          - Installing symfony/console (v4.3.4): Loading from cache
remote:          - Installing symfony/polyfill-iconv (v1.12.0): Loading from cache
remote:          - Installing egulias/email-validator (2.1.11): Loading from cache
remote:          - Installing swiftmailer/swiftmailer (v6.2.1): Loading from cache
remote:          - Installing paragonie/random_compat (v9.99.99): Loading from cache
remote:          - Installing ramsey/uuid (3.8.0): Loading from cache
remote:          - Installing psr/simple-cache (1.0.1): Loading from cache
remote:          - Installing opis/closure (3.4.0): Loading from cache
remote:          - Installing symfony/translation-contracts (v1.1.6): Loading from cache
remote:          - Installing symfony/translation (v4.3.4): Loading from cache
remote:          - Installing nesbot/carbon (2.24.0): Loading from cache
remote:          - Installing monolog/monolog (1.25.1): Loading from cache
remote:          - Installing league/flysystem (1.0.55): Loading from cache
remote:          - Installing laravel/framework (v5.8.35): Loading from cache
remote:          - Installing fideloper/proxy (4.2.1): Loading from cache
remote:          - Installing jakub-onderka/php-console-color (v0.2): Loading from cache
remote:          - Installing nikic/php-parser (v4.2.4): Loading from cache
remote:          - Installing jakub-onderka/php-console-highlighter (v0.4): Loading from cache
remote:          - Installing dnoegel/php-xdg-base-dir (0.1): Loading from cache
remote:          - Installing psy/psysh (v0.9.9): Loading from cache
remote:          - Installing laravel/tinker (v1.0.10): Loading from cache
remote:          - Installing webmozart/assert (1.5.0): Loading from cache
remote:          - Installing ralouphie/getallheaders (3.0.3): Loading from cache
remote:          - Installing scoutapp/scout-apm-php (v0.2.1): Downloading (100%)
remote:          - Installing scoutapp/scout-apm-laravel (v0.2.1): Downloading (100%)
remote:        Generating optimized autoload files
remote:        > Illuminate\Foundation\ComposerScripts::postAutoloadDump
remote:        > @php artisan package:discover --ansi
remote:        [2019-09-25 22:08:42] production.INFO: Scout Core Agent Connection Failed, attempting to start
remote:
remote:        [2019-09-25 22:08:42] production.INFO: Parsing Core Agent Manifest at /tmp/scout_apm_core/scout_apm_core-v1.2.2-x86_64-unknown-linux-gnu/manifest.json
remote:
remote:        [2019-09-25 22:08:42] production.DEBUG: Core Agent verification failed: Manifest is not valid.
remote:
remote:        [2019-09-25 22:08:43] production.INFO: Parsing Core Agent Manifest at /tmp/scout_apm_core/scout_apm_core-v1.2.2-x86_64-unknown-linux-gnu/manifest.json
remote:
remote:        [2019-09-25 22:08:43] production.DEBUG: Core Agent Launch in Progress
remote:
remote:        [2019-09-25 22:08:43] production.DEBUG: Core Agent: '/tmp/scout_apm_core/scout_apm_core-v1.2.2-x86_64-unknown-linux-gnu/core-agent' 'start' '--daemonize' 'true' '--log-file' '/dev/null' '--socket' '/tmp/scout.sock'
remote:
remote:        [2019-09-25 22:08:43] production.WARNING: Failed to connect to socket on path "/tmp/scout.sock", previous message: socket_connect(): unable to connect [2]: No such file or directory
remote:
remote:        [2019-09-25 22:08:43] production.DEBUG: [Scout] Agent is starting
remote:
remote:        Discovered Package: fideloper/proxy
remote:        Discovered Package: laravel/tinker
remote:        Discovered Package: nesbot/carbon
remote:        Discovered Package: scoutapp/scout-apm-laravel
remote:        Package manifest generated successfully.
asgrim commented 4 years ago

Looks like this is because we're launching the core agent when package:discover is run; the core-agent process stays running on the build executor, so the build never really "completes" (even though the composer install did). Investigating.