Page MenuHomePhabricator

Error streaming logs: A chunk passthru must yield an "isFirst()" chunk before any content chunk.
Closed, ResolvedPublic

Description

Today I saw these 3 times in prod &staging (out of >10 envs that I created):

image.png (570×1 px, 70 KB)

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
lib/Patchdemo/Catalyst.php: Fix streamLogs timeout reconnect logicrepos/test-platform/catalyst/patchdemo!322dancymain-I96b03dc8841b2edc6d1a8133a5facd23419ac7afmain
Customize query in GitLab

Event Timeline

thcipriani added subscribers: jeena, thcipriani.

Tagging in @jeena since she's been looking at the streaming logs recently


Similar stack trace from last week (now caught with the exception handler)—different, maybe useful, probably not:

Fatal error: Uncaught Symfony\Component\HttpClient\Exception\TimeoutException: Idle timeout reached for "https://api.catalyst.wmcloud.org/api/environments/5192/logs?stream=mediawiki/install-mediawiki". in /var/www/html/vendor/symfony/http-client/Chunk/ErrorChunk.php:62 Stack trace:
#0 /var/www/html/lib/Patchdemo/Catalyst.php(89): Symfony\Component\HttpClient\Chunk\ErrorChunk->isLast()
#1 /var/www/html/lib/Patchdemo/Catalyst.php(228): Patchdemo\Catalyst->Patchdemo\{closure}()
#2 /var/www/html/lib/Patchdemo/Catalyst.php(62): Patchdemo\Catalyst->withErr()
#3 /var/www/html/create.php(590): Patchdemo\Catalyst->streamLogs()
#4 {main} thrown in /var/www/html/vendor/symfony/http-client/Chunk/ErrorChunk.php on line 62
dancy triaged this task as High priority.

Fix deployed. Thanks to @jeena for discussion and testing!