Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 May 2023 00:55:00 -0400
From:      Paul Procacci <pprocacci@gmail.com>
To:        Aryeh Friedman <aryeh.friedman@gmail.com>
Cc:        Odhiambo Washington <odhiambo@gmail.com>,  FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: What happened to my /tmp/mysql.sock ?!!??!
Message-ID:  <CAFbbPuj2pxXuVRZTih9Xb=5h6hmQaDK-9z8m1RL8pBuczCzgxA@mail.gmail.com>
In-Reply-To: <CAGBxaXm%2BzwtN707Lp4CP0Ee-UuVchOEyJfnUDkbeb9R9u5UGKw@mail.gmail.com>
References:  <CAGBxaXkGMdp7sev9=UnE1sMQA9ni6-sBKfdE78-T28VPM2Hd%2BA@mail.gmail.com> <CAAdA2WNY9MH1fFrfF=25%2BquxeUvLR1B71QpUo9v-fyi4egv25g@mail.gmail.com> <CAGBxaXmKoYJS-giea7v5F39hZ5G06XnhMuQA0YNARQHJ4md=gw@mail.gmail.com> <CAAdA2WO7VNPLwqX06a-eoSpqxROezysy-vDT7zKcW1QYkM1xPw@mail.gmail.com> <CAGBxaXnDVHZ0%2BUS3j0deDXOEVQFznMV7GNHi6jaD%2B6RVws4uYg@mail.gmail.com> <CAAdA2WNLUEG8CYSkNXLZ8Re=F2sJyqGooD3mqBf8fDo%2By-sGug@mail.gmail.com> <CAGBxaX=UV=dXKO=qn7=KS=dip3rUG3=LT=qVRu2eKg%2BTsckaRA@mail.gmail.com> <CAFbbPugb3YkqXWsPGR%2B_2F1eHA_vwcKKz6=Fy5fgDhUjo0P%2B-A@mail.gmail.com> <CAGBxaXn9spaKrBxJ5Pq7LjFeotjAy0ZVZ3=N3jyQZAMcVKbPkw@mail.gmail.com> <CAFbbPuh9vHaUyxznq4gqdPQQDdyhTprS54Yu=P6rwFX0f7crdQ@mail.gmail.com> <CAGBxaXm%2BzwtN707Lp4CP0Ee-UuVchOEyJfnUDkbeb9R9u5UGKw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000007b0f5005fcb9c6dd
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sat, May 27, 2023 at 10:33=E2=80=AFPM Aryeh Friedman <aryeh.friedman@gma=
il.com>
wrote:

> On Sat, May 27, 2023 at 10:17=E2=80=AFPM Paul Procacci <pprocacci@gmail.c=
om>
> wrote:
> >
> >
> >
> > On Sat, May 27, 2023 at 8:14=E2=80=AFPM Aryeh Friedman <aryeh.friedman@=
gmail.com>
> wrote:
> >>
> >> On Sat, May 27, 2023 at 1:21=E2=80=AFPM Paul Procacci <pprocacci@gmail=
.com>
> wrote:
> >> >
> >> >
> >> >
> >> > On Sat, May 27, 2023 at 1:13=E2=80=AFPM Aryeh Friedman <
> aryeh.friedman@gmail.com> wrote:
> >> >>
> >> >> On Sat, May 27, 2023 at 1:09=E2=80=AFPM Odhiambo Washington <
> odhiambo@gmail.com> wrote:
> >> >> > 2023-05-27T12:40:12.835631Z 0 [ERROR] Fatal error: Can't open and
> lock privilege tables: Table 'mysql.user' doesn't exist
> >> >> > 2023-05-27T12:40:12.835637Z 0 [ERROR] Fatal error: Failed to
> initialize ACL/grant/time zones structures or failed to remove temporary
> table files.
> >> >> > 2023-05-27T12:40:12.835752Z 0 [ERROR] Aborting
> >> >> > </quote>
> >> >> >
> >> >> > Please completely uninstall Mysql and reinstall afresh and it wil=
l
> start.
> >> >>
> >> >> This *IS* a completely new install !?!?!?  Literally installed 5 mi=
ns
> >> >> before I posted on a complete fresh VM
> >> >> >
> >> >> > Even better, install MariaDB :-)
> >> >>
> >> >> Since I need to debug a mysql DB on a production server not an opti=
on
> >> >> --
> >> >> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
> >> >>
> >> >
> >> > I didn't catch the version of mysql you were attempting to run but
> one of two commands will solve your problem.
> >> > The first is potentially mysql_install_db.
> >> >
> >> > It's possible this command doesn't exist due to it being part of
> mysqld in later versions of mysql.  If that's the case then the following
> should initialize the databases.
> >> >
> >> > mysqld --initialize
> >> Already tried both this seems to be related to a series of bugs all up
> >> and down the mysql food chain in the last few weeks:
> >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270807
> >>
> >>
> >> >
> >> > Once one of the two are completed, then you can try the things that
> Mr. Washington was suggesting and repost an new error messages.
> >> >
> >> > ~Paul
> >> >
> >> > --
> >> > __________________
> >> >
> >> > :(){ :|:& };:
> >>
> >>
> >>
> >> --
> >> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
> >
> >
> > Some things excluded from the OPS original post (or I had to search for
> referenced in the provided logs)
> > The mysql version is 5.7.41.
> > He's using latest.  Not quarterly.
> >
> > Series of commands that I've done to create an mysql 5.7.41 environment=
:
> > zfs send tank/jails/templates/13.1-RELEASE-stripped@initial | zfs recv
> tank/jails/hosts/mysql-test
> > zfs set mountpoint=3D/jails/hosts/mysql-test tank/jails/hosts/mysql-tes=
t
> > pkg -r /jails/hosts/mysql-test install -y mysql57-server-5.7.41
> > /etc/rc.d/jail onestart mysql-test
> >
> > *To follow along the jail id that got created has a numeric identifier
> of 17.
> > From there:
> >
> > jexec -u root 17 /usr/local/etc/rc.d/mysql-server onestart
> > # pgrep -j 17 -l mysqld
> > 58398 mysqld
> >
> > I cannot replicate the OPs problem.
> >
> > Note the installation from the port:
> >
> > "=3D=3D=3D>   NOTICE:
> >
> > This port is deprecated; you may wish to reconsider installing it:"
>
> It is the newest version of mysql that will not barf on the DB I am
> attempting debug which a 5.1 with some really insane errors in it like
> foreign-keys that are constraints but point to non-existent records.
> And this is on a VM so need for fancy jailing.   I am also on 13.2.
>
> >
> > ~Paul
> > --
> > __________________
> >
> > :(){ :|:& };:
>
>
>
> --
> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
>


You need to start giving us more to go on.  Of your previous 5 posts,
you've just now decided to tell us it's running in a VM, yet even that
information is incomplete.

Which vm is it running under?  Which architecture is that VM running?
i386?  adm64? powerpc?  etc?
What kind of resources are allocated to the VM?  Ram/cpu/disk
You also mentioned 13.2, but didn't mention the branch or revision you're
running.  Release?  Stable?  Current?

Given your response I may or may not be able to reproduce your environment
instead of trying to guess what it is.

~Paul
--=20
__________________

:(){ :|:& };:

--0000000000007b0f5005fcb9c6dd
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Sat, May 27, 2023 at 10:33=E2=80=
=AFPM Aryeh Friedman &lt;<a href=3D"mailto:aryeh.friedman@gmail.com">aryeh.=
friedman@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote=
" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);=
padding-left:1ex">On Sat, May 27, 2023 at 10:17=E2=80=AFPM Paul Procacci &l=
t;<a href=3D"mailto:pprocacci@gmail.com" target=3D"_blank">pprocacci@gmail.=
com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Sat, May 27, 2023 at 8:14=E2=80=AFPM Aryeh Friedman &lt;<a href=3D"=
mailto:aryeh.friedman@gmail.com" target=3D"_blank">aryeh.friedman@gmail.com=
</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Sat, May 27, 2023 at 1:21=E2=80=AFPM Paul Procacci &lt;<a href=
=3D"mailto:pprocacci@gmail.com" target=3D"_blank">pprocacci@gmail.com</a>&g=
t; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Sat, May 27, 2023 at 1:13=E2=80=AFPM Aryeh Friedman &lt;<a=
 href=3D"mailto:aryeh.friedman@gmail.com" target=3D"_blank">aryeh.friedman@=
gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Sat, May 27, 2023 at 1:09=E2=80=AFPM Odhiambo Washingt=
on &lt;<a href=3D"mailto:odhiambo@gmail.com" target=3D"_blank">odhiambo@gma=
il.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt; 2023-05-27T12:40:12.835631Z 0 [ERROR] Fatal error: C=
an&#39;t open and lock privilege tables: Table &#39;mysql.user&#39; doesn&#=
39;t exist<br>
&gt;&gt; &gt;&gt; &gt; 2023-05-27T12:40:12.835637Z 0 [ERROR] Fatal error: F=
ailed to initialize ACL/grant/time zones structures or failed to remove tem=
porary table files.<br>
&gt;&gt; &gt;&gt; &gt; 2023-05-27T12:40:12.835752Z 0 [ERROR] Aborting<br>
&gt;&gt; &gt;&gt; &gt; &lt;/quote&gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Please completely uninstall Mysql and reinstall afre=
sh and it will start.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; This *IS* a completely new install !?!?!?=C2=A0 Literally=
 installed 5 mins<br>
&gt;&gt; &gt;&gt; before I posted on a complete fresh VM<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Even better, install MariaDB :-)<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Since I need to debug a mysql DB on a production server n=
ot an option<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; Aryeh M. Friedman, Lead Developer, <a href=3D"http://www.=
PetiteCloud.org" rel=3D"noreferrer" target=3D"_blank">http://www.PetiteClou=
d.org</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I didn&#39;t catch the version of mysql you were attempting t=
o run but one of two commands will solve your problem.<br>
&gt;&gt; &gt; The first is potentially mysql_install_db.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; It&#39;s possible this command doesn&#39;t exist due to it be=
ing part of mysqld in later versions of mysql.=C2=A0 If that&#39;s the case=
 then the following should initialize the databases.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; mysqld --initialize<br>
&gt;&gt; Already tried both this seems to be related to a series of bugs al=
l up<br>
&gt;&gt; and down the mysql food chain in the last few weeks:<br>
&gt;&gt; <a href=3D"https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270=
807" rel=3D"noreferrer" target=3D"_blank">https://bugs.freebsd.org/bugzilla=
/show_bug.cgi?id=3D270807</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Once one of the two are completed, then you can try the thing=
s that Mr. Washington was suggesting and repost an new error messages.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ~Paul<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; __________________<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; :(){ :|:&amp; };:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Aryeh M. Friedman, Lead Developer, <a href=3D"http://www.PetiteClo=
ud.org" rel=3D"noreferrer" target=3D"_blank">http://www.PetiteCloud.org</a>=
<br>
&gt;<br>
&gt;<br>
&gt; Some things excluded from the OPS original post (or I had to search fo=
r referenced in the provided logs)<br>
&gt; The mysql version is 5.7.41.<br>
&gt; He&#39;s using latest.=C2=A0 Not quarterly.<br>
&gt;<br>
&gt; Series of commands that I&#39;ve done to create an mysql 5.7.41 enviro=
nment:<br>
&gt; zfs send tank/jails/templates/13.1-RELEASE-stripped@initial | zfs recv=
 tank/jails/hosts/mysql-test<br>
&gt; zfs set mountpoint=3D/jails/hosts/mysql-test tank/jails/hosts/mysql-te=
st<br>
&gt; pkg -r /jails/hosts/mysql-test install -y mysql57-server-5.7.41<br>
&gt; /etc/rc.d/jail onestart mysql-test<br>
&gt;<br>
&gt; *To follow along the jail id that got created has a numeric identifier=
 of 17.<br>
&gt; From there:<br>
&gt;<br>
&gt; jexec -u root 17 /usr/local/etc/rc.d/mysql-server onestart<br>
&gt; # pgrep -j 17 -l mysqld<br>
&gt; 58398 mysqld<br>
&gt;<br>
&gt; I cannot replicate the OPs problem.<br>
&gt;<br>
&gt; Note the installation from the port:<br>
&gt;<br>
&gt; &quot;=3D=3D=3D&gt;=C2=A0 =C2=A0NOTICE:<br>
&gt;<br>
&gt; This port is deprecated; you may wish to reconsider installing it:&quo=
t;<br>
<br>
It is the newest version of mysql that will not barf on the DB I am<br>
attempting debug which a 5.1 with some really insane errors in it like<br>
foreign-keys that are constraints but point to non-existent records.<br>
And this is on a VM so need for fancy jailing.=C2=A0 =C2=A0I am also on 13.=
2.<br>
<br>
&gt;<br>
&gt; ~Paul<br>
&gt; --<br>
&gt; __________________<br>
&gt;<br>
&gt; :(){ :|:&amp; };:<br>
<br>
<br>
<br>
-- <br>
Aryeh M. Friedman, Lead Developer, <a href=3D"http://www.PetiteCloud.org" r=
el=3D"noreferrer" target=3D"_blank">http://www.PetiteCloud.org</a><br>;
</blockquote></div><br clear=3D"all"><div><br></div><div>You need to start =
giving us more to go on.=C2=A0 Of your previous 5 posts, you&#39;ve just no=
w decided to tell us it&#39;s running in a VM, yet even that information is=
 incomplete.</div><div><br></div><div>Which vm is it running under?=C2=A0 W=
hich architecture is that VM running?=C2=A0 i386?=C2=A0 adm64? powerpc?=C2=
=A0 etc?<br></div><div>What kind of resources are allocated to the VM?=C2=
=A0 Ram/cpu/disk<br></div><div>You also mentioned 13.2, but didn&#39;t ment=
ion the branch or revision you&#39;re running.=C2=A0 Release?=C2=A0 Stable?=
=C2=A0 Current?<br></div><div><br></div><div>Given your response I may or m=
ay not be able to reproduce your environment instead of trying to guess wha=
t it is.<br></div><div><br></div><div>~Paul<br></div><span class=3D"gmail_s=
ignature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">_=
_________________<br><br>:(){ :|:&amp; };:</div></div>

--0000000000007b0f5005fcb9c6dd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFbbPuj2pxXuVRZTih9Xb=5h6hmQaDK-9z8m1RL8pBuczCzgxA>