From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id UMs/GCPHN2W0TQAAauVa8A:P1 (envelope-from ) for ; Tue, 24 Oct 2023 15:31:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UMs/GCPHN2W0TQAAauVa8A (envelope-from ) for ; Tue, 24 Oct 2023 15:31:15 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2FACF40B96 for ; Tue, 24 Oct 2023 15:31:15 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698154275; a=rsa-sha256; cv=none; b=mYlYub68BzfenJj+NU3Miq+8MZHDKmIijzq3J9Bq/iZwcm1gMWrwKOE2NQ5TFQp8EP3ge1 Bxfrn/KRjihPp9Dr8g6XjUCsXMizW/p6+idqkraw3jdx2IgmFj0nwuKZhDoY4B4Mv1pwLw HUqANlA8BMB5OnETimpuOBKERCrjF1/gHEEtPboayEtL061oA9QQ1TmNibywZVAxgP8eXM 0CzzDOpJpt425M6UqCykh/756LI63BES0O/PUoRItykveNz5d41zHn9Iqw6+WHi/ZTFrvW be8c90eJCvMcnhfI+FnsdfdR3KtDXk680xNJtrjZ3D5a9jyJ97NcFWYb7a1tHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698154275; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=XFkMWVJ/3l/boRWiKCtG8vuMs7gIohOrZof40IQRom0=; b=nZiYQOAbVxalnGo19xbyFSqPs0s3wIo5THr5Q3MW6HTpq5WiFQRz7qYRoV+nl6zjend7GG tcCA5rT73fqjYGGWALf7sUQ6GgOa95waj66lpg+wkX9EosJCWbXzfhPH9w6zuAz+llJuwK 329JkucEreWOtC32LPpcqUdxAQJtzCWh5/iESDVTMDhofQq6FtCawoC/OUyD88bBHa1nLt nEfMs8S/Suhy2bQUGwA9DsbraE6lrNp248hZngfunJ6jYY+NDLNR9m0SVVM8MaKQHi0XsK fq1OcEpELa9eRWmqo7N6l1Cj+r5Frv5Xoo90rgu891ZkRTvJKw+vxuhQ5Vz9DA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvHQh-0000pV-Ok; Tue, 24 Oct 2023 09:26:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvHQX-0000YD-5c for bug-guix@gnu.org; Tue, 24 Oct 2023 09:26:34 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvHQW-00048c-RV for bug-guix@gnu.org; Tue, 24 Oct 2023 09:26:32 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvHR0-0005RZ-CE for bug-guix@gnu.org; Tue, 24 Oct 2023 09:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#65858: mumi crashes Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 24 Oct 2023 13:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65858 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: 65858@debbugs.gnu.org, Arun Isaac , guix-sysadmin Received: via spool by 65858-submit@debbugs.gnu.org id=B65858.169815396220855 (code B ref 65858); Tue, 24 Oct 2023 13:27:02 +0000 Received: (at 65858) by debbugs.gnu.org; 24 Oct 2023 13:26:02 +0000 Received: from localhost ([127.0.0.1]:53471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvHQ1-0005QH-Sh for submit@debbugs.gnu.org; Tue, 24 Oct 2023 09:26:02 -0400 Received: from mira.cbaines.net ([2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27]:52451) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvHPz-0005Q2-TU for 65858@debbugs.gnu.org; Tue, 24 Oct 2023 09:26:00 -0400 Received: from localhost (46.183.103.17.relaix.net [46.183.103.17]) by mira.cbaines.net (Postfix) with ESMTPSA id 77C9627BBE2; Tue, 24 Oct 2023 14:25:28 +0100 (BST) Received: from felis (imp-tz0161 [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 8770ebe4; Tue, 24 Oct 2023 13:25:11 +0000 (UTC) References: <87leddv6p2.fsf@gmail.com> <87jzrxhkmn.fsf@gmail.com> <874jizcsci.fsf@systemreboot.net> <87y1gb5e51.fsf@gmail.com> <87edi22ii3.fsf@systemreboot.net> <877cnueyl8.fsf@gmail.com> <874jig63z6.fsf@gmail.com> <87v8aw32z7.fsf@cbaines.net> <87wmvc4273.fsf@gmail.com> User-agent: mu4e 1.10.5; emacs 28.2 From: Christopher Baines Date: Tue, 24 Oct 2023 14:15:37 +0100 In-reply-to: <87wmvc4273.fsf@gmail.com> Message-ID: <87msw82lvu.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -6.73 X-Spam-Score: -6.73 X-Migadu-Queue-Id: 2FACF40B96 X-TUID: CxDGZKhwsCa/ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Maxim Cournoyer writes: > Hi Christopher, > > Christopher Baines writes: > > [...] > >>> Here's a fresh crash (on berlin): >>> >>> 2023-10-24 06:22:58 GET >>> /graphql?query=3Dquery%20%7B%0A%20%20issue%28number%3A%2065806%29%20%7B= %0A%20%20%20% >>> 20open%0A%20%20%7D%0A%7D%0A&variables=3D%7B%7D 200 >>> 2023-10-24 06:22:58 GET /issue/29433/attachment/1/ 200 >>> 2023-10-24 06:22:58 GET >>> /graphql?query=3Dquery%20%7B%0A%20%20issue%28number%3A%2065853%29%20%7B= %0A%20%20%20% >>> 20open%0A%20%20%7D%0A%7D%0A&variables=3D%7B%7D 200 >>> 2023-10-24 06:22:58 GET >>> /graphql?query=3Dquery%20%7B%0A%20%20issue%28number%3A%2065869%29%20%7B= %0A%20%20%20% >>> 20open%0A%20%20%7D%0A%7D%0A&variables=3D%7B%7D 200 >>> 2023-10-24 06:23:15 GET Uncaught exception in task: >>> 2023-10-24 06:23:15 In procedure port-auxiliary-write-buffer: Wrong >>> type argument in position 1 (expecting >>> open port): # >>> 2023-10-24 06:23:15 In fibers.scm: >>> 2023-10-24 06:23:15 172:8 6 (_) >>> 2023-10-24 06:23:15 In ice-9/boot-9.scm: >>> 2023-10-24 06:23:15 1752:10 5 (with-exception-handler _ _ #:unwind? = _ # _) >>> 2023-10-24 06:23:15 In fibers/web/server.scm: >>> 2023-10-24 06:23:15 214:25 4 (_) >>> 2023-10-24 06:23:15 In ice-9/suspendable-ports.scm: >>> 2023-10-24 06:23:15 83:4 3 (write-bytes # #vu8(47 42 =E2=80=A6) =E2=80=A6) >>> 2023-10-24 06:23:15 In unknown file: >>> 2023-10-24 06:23:15 2 (port-write # #vu8(47 42 # =E2=80=A6) =E2=80=A6) >>> 2023-10-24 06:23:15 In ice-9/boot-9.scm: >>> 2023-10-24 06:23:15 1685:16 1 (raise-exception _ #:continuable? _) >>> 2023-10-24 06:23:15 1685:16 0 (raise-exception _ #:continuable? _) >>> 2023-10-24 06:23:15 ice-9/boot-9.scm:1685:16: In procedure raise-except= ion: >>> 2023-10-24 06:23:15 In procedure fport_write: Broken pipe >> >> I think this is kind of expected. If NGinx hits the proxy_read_timeout >> it'll return a 504 to the client and close the connection to Mumi I >> think. I think what you're seeing here is Mumi trying to respond to a >> request from NGinx that NGinx has closed. > > If it's expected, we should handle it and produce a useful warning > instead of crashing, right? As you can see from the above stack trace, this doesn't involve Mumi, it's more of an issue for the guile-fibers web server. But yes, it would be nice not to have this clutter in the logs. That being said, if there are ways of having the application internally timeout before NGinx times out, that can help to avoid this kind of issue. Maybe that's not that easy for Mumi though. I think I remember Ricardo doing some investigating and experimenting with switching to non-suspendable ports when writing responses, and I think that might have exhibited different behaviour. It's probably worth trying to reproduce this in isolation, and double checking if the ports implementation has any effect (obviously suspendable ports are better, but this might be informative). --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmU3xbVfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XfH1Q//eee4/eh0hr0sGaqww/9oWoxAgvBBi2uO ydhjmbqhxwasobop2WurO2kw/DjVMW0gR6vuX7SeS5Lglv9DIx1MuavVUYYoSWW8 5tVEXcnaK/Im4UqxuUdXeuvf77gVsQaPMMTY0xMc5+CEnYPFGO8veWOa4ml2Trpm 641yqwKYhN2pI3RqERWj/q3H4mvqef6XaY+RcPEbxjP+dgGbdESbwkHZOeeZpvnk V7aqXOsvseGrV9oWXUW/BzQ87kAmxGoFKcxytwg0Ks+4mcWlVxwxMAtHu8kHbnMX YN5ohIpmzdvgONGyuNGpSSJHF+b8vsTOXIRI62iDc3vEPrMcRBdZ2TZYcMOK0CYb hB10DQuHXdqbn02E9evS0VeRZSi3xJGLBKFjXsFfU/mF/wdhL+CdtTVSqjOu7S1W 0v2lRhCQZ2Be0njlVUjTUzJ9SLvqeWvPISTeHrFpsmXNau433EwZ8lO0LavviHgF 6WcPZc3FBIozST/wZTvKnyxdvO6Z4c5i2WU0lT4XxLx7PZ3fTfaWz5MBEE4LiKyD vckyqrPT8uEL7PvYDBIFeXB1ZZeX49bfKEfAZ46oaPC6ltelOYMUV7KUNAKsuSjz kOP+zPT4XXCoCZtnU4cxWm1sdDXQqtEMCsekDXg0/rKR7a02Vneb9pmgkMYZ7llb vVAqp19LErY= =b4Gi -----END PGP SIGNATURE----- --=-=-=--