Re: [codesprints] Help: setup on CentOS 7
Hongwei Li <flycoolman@gmail.com> Sat, 25 July 2020 17:00 UTC
Return-Path: <flycoolman@gmail.com>
X-Original-To: codesprints@ietfa.amsl.com
Delivered-To: codesprints@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1])
by ietfa.amsl.com (Postfix) with ESMTP id 267D73A0CCE
for <codesprints@ietfa.amsl.com>; Sat, 25 Jul 2020 10:00:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.855
X-Spam-Level:
X-Spam-Status: No, score=-0.855 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
HTML_MESSAGE=0.001, NUMERIC_HTTP_ADDR=1.242, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44])
by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id jKriiifx3Gb7 for <codesprints@ietfa.amsl.com>;
Sat, 25 Jul 2020 10:00:42 -0700 (PDT)
Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com
[IPv6:2a00:1450:4864:20::22c])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by ietfa.amsl.com (Postfix) with ESMTPS id DFA223A0CC6
for <codesprints@ietf.org>; Sat, 25 Jul 2020 10:00:41 -0700 (PDT)
Received: by mail-lj1-x22c.google.com with SMTP id q7so13048018ljm.1
for <codesprints@ietf.org>; Sat, 25 Jul 2020 10:00:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=psqrI/3B33o8VTCOP+r5m6QnF8GgyfYDYaFwu8yZX+Q=;
b=PG5UH50TbS+IPmdqx5Qf6T8tqII8tVUIckap3CEoHPV9EJQUkUNqUXzAFNSlUiS+Pg
WPUECUzKHaaR4XIl2MIGVWwMerPpNPSiFM6q4/dOtVsazQuFU75FJipVoNBP+tbpCFLX
wXSvfb9sPXGVREsr6GBAET86BWpSe6KIN2CiIciRas9d7cpP91a8iE5si+PmW+3RAQw1
B8a+kZ4uitbxTDAn4BBBSjOoVJ7OubfPdmZjr5sBzmCpqLb4bmp8FD7tMpBvSM28TkLl
k0/SkZjcHKmuqikDSqOmKGJ8dzeR0RcUWDtwGtrVhI0G4aYCVg5sDhIhYx+uRbe79xZV
sfpQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=psqrI/3B33o8VTCOP+r5m6QnF8GgyfYDYaFwu8yZX+Q=;
b=GLQ+53N6hbRBFNFkPaCha45OsOQ9TnjJvVeZCzR/3u4MbTDIZHfKY4k9K+uMEwgCN/
Y7ln0giWj+yJxBMWkAX1UFhWOd1Adyybt7ua6jL8ZYEL8bhNn9g+R0YLejeCdlzAi/0K
oslwUgYWMdIgL9PEqmzHPH8hfz52PhE3jweF43MkKji9tD48tHI9BVA5wqxEqL5jWhX/
wWV5UxEVNUos6JGRm1YUjb3wz8f1EgbpGFFIR9G56F+0cipS0pyh5+pBH2rGX2mdZzO1
SidcxhV+dW0vH5tZYubMIuIc7tlcVu9Epl4VQYly9UDZ1YpAaj9T1ZlDOCSPA2X3Qdvo
3eXw==
X-Gm-Message-State: AOAM533OaFkOmNHG9XAZK0iRq7RrKbGsz42i33IUik5pmBy3S4ctmqPQ
D0VAhKgzRLFWtR7PsKt6NKt4bY9wAX0J/pXByP0=
X-Google-Smtp-Source: ABdhPJyB3pk805TbegrNTRJT80U6sMKTa8g1Ig4jO6vm+B/YN9IbcFaILW/ZsunPyXws5h4IIqUrbR0NoL6+25tdr18=
X-Received: by 2002:a2e:87d9:: with SMTP id v25mr6128726ljj.53.1595696439911;
Sat, 25 Jul 2020 10:00:39 -0700 (PDT)
MIME-Version: 1.0
References: <CAL73O_yKcyS_c+oX=xqaaDjjVWckpdO76kdo3c-EsuQujnjb9w@mail.gmail.com>
<062D1BBF-64D1-475D-9D9D-82A9C65A20A3@vigilsec.com>
<3d79a83a-251c-7444-f207-202fa4876c8f@levkowetz.com>
In-Reply-To: <3d79a83a-251c-7444-f207-202fa4876c8f@levkowetz.com>
From: Hongwei Li <flycoolman@gmail.com>
Date: Sat, 25 Jul 2020 13:00:27 -0400
Message-ID: <CAL73O_w_Y7o4MVh3OeejU7NpZJW4tSmpdmXtciqa3kn1WoCUeA@mail.gmail.com>
To: Henrik Levkowetz <henrik@levkowetz.com>
Cc: Russ Housley <housley@vigilsec.com>,
IETF Codesprints <codesprints@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000007869d305ab4707b0"
Archived-At: <https://mailarchive.ietf.org/arch/msg/codesprints/idhUdFHvm8Ndr90xC7BIAffdPzY>
Subject: Re: [codesprints] Help: setup on CentOS 7
X-BeenThere: codesprints@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "List for coordinating \(and following up on\) codesprint activities"
<codesprints.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/codesprints>,
<mailto:codesprints-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/codesprints/>
List-Post: <mailto:codesprints@ietf.org>
List-Help: <mailto:codesprints-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/codesprints>,
<mailto:codesprints-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 25 Jul 2020 17:00:44 -0000
Hi Henrik, I did run docker/setupdb before I started the docker image. I will run it again. I will find you on chat. Thanks for the help. Hongwei On Sat, Jul 25, 2020 at 11:25 AM Henrik Levkowetz <henrik@levkowetz.com> wrote: > Hi Hongwei, > > The warning about syslogd can be ignored. The container is running > mariadb (replacing mysql) internally, but expects the database content > in external mysql files. The database content is not part of the image. > > To put the database in place, please run docker/setupdb before you start > the docker image. > > I'm available on xmpp:codesprint@jabber.ietf.org?join for IM. > > > Best regards, > > Henrik > > On 2020-07-25 17:16, Russ Housley wrote: > > This looks like a problem that I was having yesterday. Henrik released > a new docker image, and it sorted out my problems, > > > > Russ > > > > > >> On Jul 25, 2020, at 12:38 AM, Hongwei Li <flycoolman@gmail.com> wrote: > >> > >> Did anybody see the issue like below? > >> When I ran the script ./docker/run, I got the below errors. > >> > >> Why is the script trying to connect database on the host server? I > don't have mysql installed. Shouldn't it be in the docker image? > >> > >> I see the permission denied for every action in the script. Confusing > with the permission thing. > >> > >> > >> Setting up a default settings_local.py ... > >> cp: cannot stat > '/home/vagrant/ietf/src/7.10.1.dev0/docker/settings_local.py': Permission > denied > >> Creating dir /home/vagrant/ietf/src/7.10.1.dev0/test/id/ > >> mkdir: cannot create directory > '/home/vagrant/ietf/src/7.10.1.dev0/test/id/': Permission denied > >> > >> > >> > >> [vagrant@centos7 7.10.1.dev0]$ ./docker/run > >> Running on Linux. > >> Not trying to start a virtual docker machine on Linux > >> > >> Starting a docker container for '7.10.1.dev0'. > >> > >> The web interface for 'runserver' should appear on > >> > >> User vagrant (1000:1000) > >> Gathering info ... > >> User vagrant (1000:1000) > >> Checking if MySQL base data exists ... > >> Setting up the 'mysql' user for database file access ... > >> groupadd: group 'mysqldata' already exists > >> Checking if MySQL is running ... > >> [info] MariaDB is stopped.. > >> Starting mysql ... > >> [FAIL] Starting MariaDB database server: mysqld . . . . . . . . . . . . > . . . . . . . . . . . . . . .. . . . failed! > >> Checking if syslog is running ... > >> [FAIL] rsyslogd is not running ... failed! > >> Starting syslog ... > >> [....] Starting enhanced syslogd: rsyslogdrsyslogd: pidfile > '/run/rsyslogd.pid' and pid 514 already exist. > >> If you want to run multiple instances of rsyslog, you need to specify > >> different pid files for them (-i option). > >> rsyslogd: run failed with error -3000 (see rsyslog.h or try > https://www.rsyslog.com/e/3000 <https://www.rsyslog.com/e/3000> to learn > what that number means) > >> [ ok ady started. > >> ERROR 2002 (HY000): Can't connect to local MySQL server through socket > '/var/run/mysqld/mysqld.sock' (2) > >> Checking if the IETF database exists at /var/lib/mysql/ ... > >> Creating group entry for GID '1000' ... > >> groupadd: GID '1000' already exists > >> Checking that there's a virtual environment for 7.10.1.dev0 ... > >> Using virtual environment at /opt/home/vagrant/7.10.1.dev0 > >> Activating the virtual python environment ... > >> Setting up a default settings_local.py ... > >> cp: cannot stat > '/home/vagrant/ietf/src/7.10.1.dev0/docker/settings_local.py': Permission > denied > >> Creating dir /home/vagrant/ietf/src/7.10.1.dev0/test/id/ > >> mkdir: cannot create directory > '/home/vagrant/ietf/src/7.10.1.dev0/test/id/': Permission denied > >> > >> > >> Thanks, > >> Hongwei > >> _______________________________________________ > >> codesprints mailing list > >> codesprints@ietf.org > >> https://www.ietf.org/mailman/listinfo/codesprints > > > > > >
- [codesprints] Help: setup on CentOS 7 Hongwei Li
- Re: [codesprints] Help: setup on CentOS 7 Russ Housley
- Re: [codesprints] Help: setup on CentOS 7 Henrik Levkowetz
- Re: [codesprints] Help: setup on CentOS 7 Hongwei Li