From nobody Sat Dec 23 01:18:26 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SxmWz26zWz54kqC for ; Sat, 23 Dec 2023 01:18:39 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SxmWy3H2Dz4nhS for ; Sat, 23 Dec 2023 01:18:38 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=gaUMBCIs; spf=pass (mx1.freebsd.org: domain of pprocacci@gmail.com designates 2a00:1450:4864:20::52c as permitted sender) smtp.mailfrom=pprocacci@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-554766d5ceaso593933a12.3 for ; Fri, 22 Dec 2023 17:18:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703294317; x=1703899117; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=G+HeHY+iRvd6uQt+Szbd0FVzYs5qj5aZkphk9TeEio0=; b=gaUMBCIsWfOqnMA6U7rcVChPDN85cYI4NdJ6P0f+QTXrRHZXua2Bj1Wh/XTEnHyVJe bTm2nwUKBy++CjiYZCHUukXv205EUdQFIBG5hoG+sg6/g1T+svMUvw0W14z9XWRcaKSj x/rYDNt/27rEUwwwP1Q1VosjOMzLNgM1PpEJbzAhL9AWWbhzH+jW55CapZyLBxV3Z51Y vEIMP6cVIdN/ZVWT4YoFwzLMpjARHj/UHFZgcxZ9WzlMA7As679LR5tqPSb8YHNOwac5 DTjFvSHKMtcIwXm09yZno0ZXrYpTDWkwpLxUO5oI0QbNRHFuE6kYTV/LfV7BmHFH5r22 TTqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703294317; x=1703899117; 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=G+HeHY+iRvd6uQt+Szbd0FVzYs5qj5aZkphk9TeEio0=; b=a+7kUrMmjFpci5yqYc0M9sg6/CJkMtF/OvW8PoazosLnFhntcKYmWJSWx1mVBDelW8 kEN6rmfrYmgCXiQyg3Wpi4fxYUGQma5lyY9bdsO+oV4Y1cyLGPP44JRYWLJN7/4PGOou q/iOSPpVcAsELBcwV4uOh3dkxCPur7zjdK5f1QV9WoantH1PhAl862dwnP58RAViQuRR l0paP/lBQt3D+wX5RcFSARbeYXgkNySwIX5qPJWHLrPS2TwYxfzwBWza7UkR7rIoM8CS JktfL/eLT9Ow+cwlUS0shTHC7zKZ5pl4JE/eLYFLiAadVLfs+t62jdlmrVZVVDFA7EOG Fz8g== X-Gm-Message-State: AOJu0YwDqiDtsAjQ6e8+ctorApb/5TSR8nBr4mMDRanlKj20hdV7etp5 heqoTd4/RKgSw4lHxMMsU7aCqLlAbcpPRK7LP888dDVbcQ== X-Google-Smtp-Source: AGHT+IF0xEtnUfxKhVxXRjdLd4tTEtl3ikFhm6eCA56ZN70xFw2sLpLsObk1P+c2LUbao6HCxyXynLt+Evr/NIfDkdU= X-Received: by 2002:a50:d659:0:b0:554:4dde:6646 with SMTP id c25-20020a50d659000000b005544dde6646mr1173476edj.9.1703294316771; Fri, 22 Dec 2023 17:18:36 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Paul Procacci Date: Fri, 22 Dec 2023 20:18:26 -0500 Message-ID: Subject: Re: MariaDB startup issue To: Waitman Gobble Cc: FreeBSD Questions List Content-Type: multipart/alternative; boundary="000000000000b2fdbc060d231c39" X-Spamd-Result: default: False [-3.88 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.88)[-0.882]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TAGGED_RCPT(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52c:from]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org] X-Rspamd-Queue-Id: 4SxmWy3H2Dz4nhS X-Spamd-Bar: --- --000000000000b2fdbc060d231c39 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 22, 2023 at 8:13=E2=80=AFPM Waitman Gobble wrote: > I upgraded a server from FreeBSD 13.2-RELEASE to FreeBSD 14.0-RELEASE > > During pkg upgrade it removed mariadb 10.4. I installed mariadb 10.6 > no biggie. Except I seem to be in a chicken and egg paradox. When I > start the message is: > > Please merge existing /usr/local/etc/my.cnf file with > /usr/local/etc/mysql/conf.d/server.cnf > > OK I did that. I renamed the file to /usr/local/etc/my.cnf.x > > service mysql-server start says it's starting but actually never > starts the server. no error in the logs I can find. I'm obviously > missing something? > > If I use the same command the rc script is executing (WITHOUT > '/usr/sbin/daemon' that the rc script uses) I see the error finally! > > /usr/local/bin/mariadbd-safe > --defaults-extra-file=3D/usr/local/etc/my.cnf --user=3Dmysql > --datadir=3D/var/db/mysql --pid-file=3D/var/db/mysql/mysql.pid > Could not open required defaults file: /usr/local/etc/my.cnf > Fatal error in defaults handling. Program aborted > > OK so i made a blank /usr/local/etc/my.cnf and get this message: > > Please merge existing /usr/local/etc/my.cnf file with > /usr/local/etc/mysql/conf.d/server.cnf > > So it's a loop. I guess I need to edit the rc script but i think i am > missing something? Any ideas? > > TIA and HH > > -- > Waitman Gobble > \\ > > Try a symlink that takes /usr/local/etc/my.cnf and points it to /usr/local/etc/mysql/conf.d/server.cnf ~Paul --=20 __________________ :(){ :|:& };: --000000000000b2fdbc060d231c39 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Fri, Dec 22, 2023 at 8:13=E2=80=AF= PM Waitman Gobble <gobble.wa@gmai= l.com> wrote:
I upgraded a server from FreeBSD 13.2-RELEASE to FreeBSD 14.0-RELEASE<= br>
During pkg upgrade it removed mariadb 10.4. I installed mariadb 10.6
no biggie. Except I seem to be in a chicken and egg paradox. When I
start the message is:

Please merge existing /usr/local/etc/my.cnf file with
/usr/local/etc/mysql/conf.d/server.cnf

OK I did that. I renamed the file to /usr/local/etc/my.cnf.x

service mysql-server start says it's starting but actually never
starts the server. no error in the logs I can find. I'm obviously
missing something?

If I use the same command the rc script is executing (WITHOUT
'/usr/sbin/daemon' that the rc script uses) I see the error finally= !

/usr/local/bin/mariadbd-safe
--defaults-extra-file=3D/usr/local/etc/my.cnf --user=3Dmysql
--datadir=3D/var/db/mysql --pid-file=3D/var/db/mysql/mysql.pid
Could not open required defaults file: /usr/local/etc/my.cnf
Fatal error in defaults handling. Program aborted

OK so i made a blank /usr/local/etc/my.cnf and get this message:

Please merge existing /usr/local/etc/my.cnf file with
/usr/local/etc/mysql/conf.d/server.cnf

So it's a loop. I guess I need to edit the rc script but i think i am missing something? Any ideas?

TIA and HH

--
Waitman Gobble
\\


Try a symlink that takes /usr/local/etc/my.cnf and points it to /usr/local= /etc/mysql/conf.d/server.cnf

~Paul
<= br>--
__________________

:(){ :|:& };:
--000000000000b2fdbc060d231c39--