Re: [codesprints] Help: setup on CentOS 7

Henrik Levkowetz <henrik@levkowetz.com> Sat, 25 July 2020 15:25 UTC

Return-Path: <henrik@levkowetz.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 CF2793A0AC4 for <codesprints@ietfa.amsl.com>; Sat, 25 Jul 2020 08:25:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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 IXqGycez0ZXI for <codesprints@ietfa.amsl.com>; Sat, 25 Jul 2020 08:25:34 -0700 (PDT)
Received: from zinfandel.tools.ietf.org (zinfandel.tools.ietf.org [64.170.98.42]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0008A3A0ABC for <codesprints@ietf.org>; Sat, 25 Jul 2020 08:25:33 -0700 (PDT)
Received: from h-202-242.a357.priv.bahnhof.se ([158.174.202.242]:50107 helo=tannat.localdomain) by zinfandel.tools.ietf.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <henrik@levkowetz.com>) id 1jzM3H-0000Xu-AQ; Sat, 25 Jul 2020 08:25:32 -0700
To: Russ Housley <housley@vigilsec.com>, Hongwei Li <flycoolman@gmail.com>
References: <CAL73O_yKcyS_c+oX=xqaaDjjVWckpdO76kdo3c-EsuQujnjb9w@mail.gmail.com> <062D1BBF-64D1-475D-9D9D-82A9C65A20A3@vigilsec.com>
Cc: IETF Codesprints <codesprints@ietf.org>
From: Henrik Levkowetz <henrik@levkowetz.com>
Message-ID: <3d79a83a-251c-7444-f207-202fa4876c8f@levkowetz.com>
Date: Sat, 25 Jul 2020 17:25:23 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <062D1BBF-64D1-475D-9D9D-82A9C65A20A3@vigilsec.com>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="o41m61TTUf2W6nPwcQI36SPO3jNA2PpRx"
X-SA-Exim-Connect-IP: 158.174.202.242
X-SA-Exim-Rcpt-To: codesprints@ietf.org, flycoolman@gmail.com, housley@vigilsec.com
X-SA-Exim-Mail-From: henrik@levkowetz.com
X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000)
X-SA-Exim-Scanned: Yes (on zinfandel.tools.ietf.org)
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/codesprints/VXnKWRNv6tqO0A5am1CMHnr2cz8>
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:25:36 -0000

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
> 
>