From nobody Sat Dec 23 01:34:07 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 4Sxmt61v7rz54llx for ; Sat, 23 Dec 2023 01:34:22 +0000 (UTC) (envelope-from gobble.wa@gmail.com) Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) (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 4Sxmt5190jz4sKs for ; Sat, 23 Dec 2023 01:34:21 +0000 (UTC) (envelope-from gobble.wa@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=KeL0hao5; spf=pass (mx1.freebsd.org: domain of gobble.wa@gmail.com designates 2607:f8b0:4864:20::1032 as permitted sender) smtp.mailfrom=gobble.wa@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-28bc870c540so1826069a91.2 for ; Fri, 22 Dec 2023 17:34:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703295259; x=1703900059; darn=freebsd.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Ty7g2zyZqWNjfZjTh+KgpaET45ffwQTFs+tM1EzsLUY=; b=KeL0hao59EdSs36pTQoTD3bn70GNsYiIfbu1g4FTvgy/FB3SkIZpwZMi9A/6EVf0eA +buyoNz2tUBHbXCX1xPD/U3D/bx3B8/8GsjG6KJZs4r9LOphQMvVkngFYo3C5A5r6HGU nmuxAedPtof2gqUJmtDoWxAY4BT4h+MJNgsrN9qlg4yKTRXDgd5v3ar+bfSM2T4IQTnp RkvcJUPDegIrO9+636KYBCaKrUvlS1MpZjD7JdzQKyvG6LwkQeBW1Oz3lk59i00JfYKa T4LhH8LoAZzL9GeN0n5K3/lAFKLsMxD9+Occ/2MTZmfjLCMt0lyPk5xhTUpooMPqmQx5 uu8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703295259; x=1703900059; h=content-transfer-encoding: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=Ty7g2zyZqWNjfZjTh+KgpaET45ffwQTFs+tM1EzsLUY=; b=lihlM0swhBAEhoDpvlZEcOXxNrMeAHqYY3VamyErJo1uDCIFh+pkHT0WMQ01eLjz74 miVubjM+reU51XJSSO81TlMpCYiyjr9ZfKvBnq0GclJqr3K7cT2iIl7AgGmSeDNjVIKd NKWJ/mcS9MKo3Fk9hIGobjYVP8au3DVEQjAMzC6l0EtsdOXDUhF2VPbnAtXTEddKEYj2 adHvkzu1zTqtuFqPnycrh8w7MYQe6JCTHjX+AM88SN+lU4f0vYeeNSKal2/V7HdR0PMD qoH79a41LZiAHwls+VvsqQpFnQLzR0+/Xv/b57m7IFBYAzOaGa383R8we+cRlx+XnnXg fCTQ== X-Gm-Message-State: AOJu0Yw06hDFyF/riHpMPgYl3r5CMXg0AK4ZkNU6DsG0or/XUnfv+ic3 Ef3KUB7vYN8Xy/q6Ix8QVyGcGOXVJSObTdRm1CjTap/UdXo= X-Google-Smtp-Source: AGHT+IEN92Z+/7zNf6VOF3nJqgFGGijyIwzPKe6Wub/FUNKPML8hRTR5bttAjGmX/V0tWTTHXHb/zpFj+GxMi+L946o= X-Received: by 2002:a17:90a:6007:b0:28c:20d4:3c60 with SMTP id y7-20020a17090a600700b0028c20d43c60mr540287pji.99.1703295259129; Fri, 22 Dec 2023 17:34:19 -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: Waitman Gobble Date: Fri, 22 Dec 2023 21:34:07 -0400 Message-ID: Subject: Re: MariaDB startup issue To: FreeBSD Questions List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.995]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1032:from]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TAGGED_FROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[questions@freebsd.org] X-Rspamd-Queue-Id: 4Sxmt5190jz4sKs X-Spamd-Bar: --- On Fri, Dec 22, 2023 at 9:24=E2=80=AFPM paul beard wr= ote: > > editing the RC script seems like the wrong answer. I have had this proble= m a few times. Does mysqld_safe run? The couple of issues I have had deal w= ith the pid file being where the RC script doesn't expect it so stop/start/= status don't work. Also, the ib* files in /var/db/mysql are often an issue.= The logs usually point them out. > > On Fri, Dec 22, 2023 at 5: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 >> \\ >> > > > -- > Paul Beard / www.paulbeard.org/ I agree it's the wrong answer. mysqld_safe runs no problem, the problem is the rc script bombs if the my.cnf exists but mysqld_safe seems like it won't start without it. But I read the documentation and the symlink method should work, because -f returns true on normal files (not symlinks) while -e returns true regardless. (the script uses -f) As long as mysqld_safe is cool with the symlink it should start! That's likely the best solution instead of editing the rc file. :) --=20 Waitman Gobble //