Re: [codesprints] Help: setup on CentOS 7
Russ Housley <housley@vigilsec.com> Sat, 25 July 2020 15:16 UTC
Return-Path: <housley@vigilsec.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 9DC953A0AA2
for <codesprints@ietfa.amsl.com>; Sat, 25 Jul 2020 08:16:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001,
SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 jtS1QQ_mHKd5 for <codesprints@ietfa.amsl.com>;
Sat, 25 Jul 2020 08:16:49 -0700 (PDT)
Received: from mail.smeinc.net (mail.smeinc.net [209.135.209.11])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by ietfa.amsl.com (Postfix) with ESMTPS id A9A5C3A0B78
for <codesprints@ietf.org>; Sat, 25 Jul 2020 08:16:43 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
by mail.smeinc.net (Postfix) with ESMTP id 168B1300B84
for <codesprints@ietf.org>; Sat, 25 Jul 2020 11:16:41 -0400 (EDT)
X-Virus-Scanned: amavisd-new at mail.smeinc.net
Received: from mail.smeinc.net ([127.0.0.1])
by localhost (mail.smeinc.net [127.0.0.1]) (amavisd-new, port 10026)
with ESMTP id nT15Bn1bSeRU for <codesprints@ietf.org>;
Sat, 25 Jul 2020 11:16:37 -0400 (EDT)
Received: from a860b60074bd.fios-router.home
(pool-72-66-113-56.washdc.fios.verizon.net [72.66.113.56])
by mail.smeinc.net (Postfix) with ESMTPSA id C6B6B300B6C;
Sat, 25 Jul 2020 11:16:37 -0400 (EDT)
From: Russ Housley <housley@vigilsec.com>
Message-Id: <062D1BBF-64D1-475D-9D9D-82A9C65A20A3@vigilsec.com>
Content-Type: multipart/alternative;
boundary="Apple-Mail=_C67EC718-7275-4C52-BD34-E955FEF41861"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.15\))
Date: Sat, 25 Jul 2020 11:16:39 -0400
In-Reply-To: <CAL73O_yKcyS_c+oX=xqaaDjjVWckpdO76kdo3c-EsuQujnjb9w@mail.gmail.com>
Cc: Henrik Levkowetz <henrik@levkowetz.com>,
IETF Codesprints <codesprints@ietf.org>
To: Hongwei Li <flycoolman@gmail.com>
References: <CAL73O_yKcyS_c+oX=xqaaDjjVWckpdO76kdo3c-EsuQujnjb9w@mail.gmail.com>
X-Mailer: Apple Mail (2.3445.104.15)
Archived-At: <https://mailarchive.ietf.org/arch/msg/codesprints/OKIwJQJA95UtrDVsFbivJyOhhtw>
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 15:16:52 -0000
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