Re: [Tools-discuss] Database not starting? What am I doing wrong.

Nicolas Giard <nick@staff.ietf.org> Wed, 31 May 2023 19:28 UTC

Return-Path: <nick@staff.ietf.org>
X-Original-To: tools-discuss@ietfa.amsl.com
Delivered-To: tools-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3C28FC14CE3F for <tools-discuss@ietfa.amsl.com>; Wed, 31 May 2023 12:28:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.895
X-Spam-Level:
X-Spam-Status: No, score=-1.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=staff-ietf-org.20221208.gappssmtp.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2jijQmn7uXsp for <tools-discuss@ietfa.amsl.com>; Wed, 31 May 2023 12:28:38 -0700 (PDT)
Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 18D0AC15198D for <tools-discuss@ietf.org>; Wed, 31 May 2023 12:28:37 -0700 (PDT)
Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2b03d3e41fcso17604111fa.0 for <tools-discuss@ietf.org>; Wed, 31 May 2023 12:28:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=staff-ietf-org.20221208.gappssmtp.com; s=20221208; t=1685561316; x=1688153316; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=lOcoGrZMTKlHwgsN5VOp2ZiWLBuPJQh7ckux1vlHPKA=; b=HqQkgIDaWl9J+eWcZD3w4xX8Txa5e2xAJMN4HExSxiO2bmmKtHUhcaAD2NafnbOg1K mwL1IjiO2qS/bk5qDHcIx9BfUhnm9cZoWuHFoxaiNXzRsWVE2ajZw5bFkwExM6Q1cl+R 3dl/KC8FfRmwxKYFv5x+t9C/yDZOkzmEpioWd9PYZK13tGiu9af3H1obgvWIa39qpU/E gx/tOLc8gWZ/KvAbsXcyhKtuj0wBZnmejOlZOsUKuO9NjtJ6S0WVNiOMOq6Sam2fK6Ku ukZOTQfNNqIvi2TNpXsw6DdsUJgwBrU4rAZz3mrmNGT1djYpfAwXh4QXN9tBFG6ZmyY8 HBOA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685561316; x=1688153316; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lOcoGrZMTKlHwgsN5VOp2ZiWLBuPJQh7ckux1vlHPKA=; b=DLT7p/ZNwPj5lz/zQudAF72bLiw1Ln3bFRGC6UsNk2z34xzm9UeuElsA/9HQFYXNfc cLig3i5VcpSWQZ5SEu9deUPvwMgGKX9nQRds1PQPb8cBi01pJbUkOlvMmi3j67sKpQys EtWIVjk4VgHu5Ew9nOroib5j429YhrvsFcNx9/DSJoJ2IdpS3QSwD8/kdnlJ5qGW/ATh F2rFkItR/bGWPn+wCG4e6gQJDirWVzBZj6m/ZM2QBJZKcj0G1PGGZggn22w6zuvxBAmF n6vOlxvKfMZytwUyc9vbBwc8+7YHTGSVO18/qj6KDc0xTBqL2KSZnvWC/FCqdQrPSVvw /NHg==
X-Gm-Message-State: AC+VfDwLNUhmcCNuXRJlkrVPV3c/zkgPJnjL+UxcWM99j/Asg8B1Df9m M1TncGEv7MGh8T5eHnzu5IkSGNT+IHaWgzCdrNNREPs/abMP4+fz6QHZ8A==
X-Google-Smtp-Source: ACHHUZ6kVZBQgy7W5QxQbQzFmGzn9LNLTE+aa74VlgrdFPF+kz5AiwczjbDeXVXtLsUPtBRiGoxvLVomXuGuM620wWo=
X-Received: by 2002:a2e:9d4f:0:b0:2b0:62f0:a4db with SMTP id y15-20020a2e9d4f000000b002b062f0a4dbmr2355683ljj.13.1685561316189; Wed, 31 May 2023 12:28:36 -0700 (PDT)
MIME-Version: 1.0
References: <853C353C-10EB-474F-B6F2-6419AA1713E9@akamai.com>
In-Reply-To: <853C353C-10EB-474F-B6F2-6419AA1713E9@akamai.com>
From: Nicolas Giard <nick@staff.ietf.org>
Date: Wed, 31 May 2023 15:28:25 -0400
Message-ID: <CAL_px1NVEXOJCTGX=XFuWBM-icCKdVnpRivMKHLpo+=bkikwBg@mail.gmail.com>
To: "Salz, Rich" <rsalz=40akamai.com@dmarc.ietf.org>
Cc: "tools-discuss@ietf.org" <tools-discuss@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000007fc1ec05fd025356"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/uqXzG4ZYBwEtn_lS8O9zbUX8VUo>
Subject: Re: [Tools-discuss] Database not starting? What am I doing wrong.
X-BeenThere: tools-discuss@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-discuss/>
List-Post: <mailto:tools-discuss@ietf.org>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 31 May 2023 19:28:42 -0000

Your settings_local is outdated.
Delete all settings_local* files under ietf/
then run "sh /docker-init.sh" from the default /workspace directory.

Nick

On Wed, May 31, 2023 at 11:46 AM Salz, Rich <rsalz=
40akamai.com@dmarc.ietf.org> wrote:

> As part of a `run -r` rebuild, I get the following.  I assume I did
> something wrong.  This is after a “git pull” on main.
>
>
>
> Downloading latest coverage results file...
>
> Starting memcached...
>
> Running initial checks...
>
> Traceback (most recent call last):
>
>   File
> "/home/dev/.local/lib/python3.9/site-packages/django/db/backends/base/base.py",
> line 217, in ensure_connection
>
>     self.connect()
>
>   File
> "/home/dev/.local/lib/python3.9/site-packages/django/db/backends/base/base.py",
> line 195, in connect
>
>     self.connection = self.get_new_connection(conn_params)
>
>   File
> "/home/dev/.local/lib/python3.9/site-packages/django/db/backends/postgresql/base.py",
> line 178, in get_new_connection
>
>     connection = Database.connect(**conn_params)
>
>   File
> "/home/dev/.local/lib/python3.9/site-packages/psycopg2/__init__.py", line
> 127, in connect
>
>     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
>
> psycopg2.OperationalError: connection to server at "db" (172.18.0.4), port
> 5432 failed: Connection refused
>
>                 Is the server running on that host and accepting TCP/IP
> connections?
> ___________________________________________________________
> Tools-discuss mailing list - Tools-discuss@ietf.org -
> https://www.ietf.org/mailman/listinfo/tools-discuss
>