• Starting bind 9.16.x with systemctl fails

    From Adrian van Bloois@adrian@pa0rda.nl to BIND 9 mailinglist on Thu Jul 9 12:08:48 2020
    From Newsgroup: comp.protocols.dns.bind

    Hi,
    When I start bind 9.16.x with systemctl I get:

    Failed to start named.service: Unit is not loaded properly: Bad message.
    See system logs and 'systemctl status named.service' for details.


    I get no messages in the logs.
    Systemctl status named.service says:
    * named.service - Berkeley Internet Name Domain (DNS)
    Loaded: error (Reason: Bad message)
    Active: inactive (dead)


    These messages are not very helpful, any ideas???

    Adrian




    --
    Adri P. van Bloois


    "The greatest threat to our planet is the belief that someone else
    will save it."
    Robert Swan.
    --- Synchronet 3.18a-Linux NewsLink 1.113
  • From Anand Buddhdev@anandb@ripe.net to Adrian van Bloois on Thu Jul 9 12:23:35 2020
    From Newsgroup: comp.protocols.dns.bind

    On 09/07/2020 12:08, Adrian van Bloois wrote:

    Hi Adrian,

    Run "journalctl -u named" to see any systemd logs for this unit. Also
    look in /var/log/messages to see what (if anything) BIND has logged to
    syslog. Finally, you would help yourself and everyone else to help you
    better if you show your systemd unit file with "systemctl cat named".
    No-one can read your mind or see your system configuration so we can't
    help you until we can see more details.

    Regards,
    Anand

    When I start bind 9.16.x with systemctl I get:

    Failed to start named.service: Unit is not loaded properly: Bad message.
    See system logs and 'systemctl status named.service' for details.


    I get no messages in the logs.
    Systemctl status named.service says:
    * named.service - Berkeley Internet Name Domain (DNS)
    Loaded: error (Reason: Bad message)
    Active: inactive (dead)

    These messages are not very helpful, any ideas???
    --- Synchronet 3.18a-Linux NewsLink 1.113
  • From Nyamkhand Buluukhuu@nyamkhand@mobicom.mn to Adrian van Bloois on Thu Jul 9 18:28:03 2020
    From Newsgroup: comp.protocols.dns.bind

    --_000_HK2PR06MB35234BDBD4902D5C9CFD3EB7CC640HK2PR06MB3523apcp_
    Content-Type: text/plain; charset="us-ascii"
    Content-Transfer-Encoding: quoted-printable

    Hi,

    You can see what is happening in debug mode.

    Start your named with -g option
    ex: /usr/sbin/named -g


    Have a nice day :)
    BR, NYAMKHAND Buluukhuu




    ________________________________
    From: bind-users <bind-users-bounces@lists.isc.org> on behalf of Adrian van=
    Bloois <adrian@pa0rda.nl>
    Sent: Thursday, July 9, 2020 6:08 PM
    To: BIND 9 mailinglist <bind-users@lists.isc.org>
    Subject: Starting bind 9.16.x with systemctl fails

    Hi,
    When I start bind 9.16.x with systemctl I get:

    Failed to start named.service: Unit is not loaded properly: Bad message.
    See system logs and 'systemctl status named.service' for details.


    I get no messages in the logs.
    Systemctl status named.service says:
    * named.service - Berkeley Internet Name Domain (DNS)
    Loaded: error (Reason: Bad message)
    Active: inactive (dead)


    These messages are not very helpful, any ideas???

    Adrian




    --
    Adri P. van Bloois


    "The greatest threat to our planet is the belief that someone else
    will save it."
    Robert Swan.
    _______________________________________________
    Please visit https://protect2.fireeye.com/v1/url?k=3Dad60492d-f3fe4f08-ad67= 70f2-869600a3c855-fb3ed8b8ebf09aad&q=3D1&e=3D92485019-1c68-41ca-b239-1b00b6= f4f381&u=3Dhttps%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fbind-users to=
    unsubscribe from this list

    ISC funds the development of this software with paid support subscriptions.=
    Contact us at https://protect2.fireeye.com/v1/url?k=3Dcead8273-90338456-ce= aabbac-869600a3c855-3d0f193407c15999&q=3D1&e=3D92485019-1c68-41ca-b239-1b00= b6f4f381&u=3Dhttps%3A%2F%2Fwww.isc.org%2Fcontact%2F for more information.


    bind-users mailing list
    bind-users@lists.isc.org https://protect2.fireeye.com/v1/url?k=3Dc89e11e0-960017c5-c899283f-869600a3= c855-b48f3ef414cf2960&q=3D1&e=3D92485019-1c68-41ca-b239-1b00b6f4f381&u=3Dht= tps%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fbind-users

    --_000_HK2PR06MB35234BDBD4902D5C9CFD3EB7CC640HK2PR06MB3523apcp_
    Content-Type: text/html; charset="us-ascii"
    Content-Transfer-Encoding: quoted-printable

    <html>
    <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=

    <style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo= ttom:0;} </style>
    </head>
    <body dir=3D"ltr">
    <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
    : 12pt; color: rgb(0, 0, 0);">
    Hi,</div>
    <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
    : 12pt; color: rgb(0, 0, 0);">

    </div>
    <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
    : 12pt; color: rgb(0, 0, 0);">
    You can see what is happening in debug mode.</div>
    <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
    : 12pt; color: rgb(0, 0, 0);">

    </div>
    <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
    : 12pt; color: rgb(0, 0, 0);">
    Start your named with -g option</div>
    <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
    : 12pt; color: rgb(0, 0, 0);">
    ex: /usr/sbin/named -g</div>
    <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
    : 12pt; color: rgb(0, 0, 0);">

    </div>
    <div>
    <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
    : 12pt; color: rgb(0, 0, 0);">

    </div>
    <div id=3D"Signature">
    <div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div id=3D"divtagdefaultwrapper" dir=3D"ltr" style=3D"font-size:12pt; color= :#000000; font-family:Calibri,Helvetica,sans-serif">
    <p style=3D"margin-top:0px; margin-bottom:0px; margin-top:0; margin-bottom:= 0"></p>
    <p class=3D"MsoNormal" style=3D"margin-top:0px; margin-bottom:0px"><a name= =3D"_MailAutoSig" id=3D"LPlnk292281" class=3D"OWAAutoLink" style=3D"font-fa= mily:Calibri,Helvetica,sans-serif,EmojiFont,&quot;Apple Color Emoji&quot;,&= quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;= Android Emoji&quot;,EmojiSymbols; font-size:16px"><span style=3D"font-size:= 10pt; font-family:Tahoma,sans-serif"><i style=3D"">Have
    a nice day :)</i></span></a><b></b><br>

    <p class=3D"MsoNormal" style=3D"margin-top:0px; margin-bottom:0px"><a name= =3D"_MailAutoSig"><b><span style=3D"font-size:10.0pt; font-family:&quot;Tah= oma&quot;,&quot;sans-serif&quot;; color:black">BR, NYAMKHAND Buluukhuu</spa= n></b></a><span style=3D""><span style=3D""></span></span></p>
    <p class=3D"MsoNormal" style=3D"margin-top:0px; margin-bottom:0px"><span st= yle=3D""><b><span style=3D"color:#1F497D">&nbsp;</span></b></span><span sty= le=3D""><span style=3D""></span></span></p>
    <p class=3D"MsoNormal" style=3D"margin-top:0px; margin-bottom:0px"><br>


    <p style=3D"margin-top:0px; margin-bottom:0px"></p>
    </div>
    </div>
    </div>
    </div>
    <div id=3D"appendonsend"></div>
    <hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
    <div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st= yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> bind-users &lt;bind-u= sers-bounces@lists.isc.org&gt; on behalf of Adrian van Bloois &lt;adrian@pa= 0rda.nl&gt;<br>
    <b>Sent:</b> Thursday, July 9, 2020 6:08 PM<br>
    <b>To:</b> BIND 9 mailinglist &lt;bind-users@lists.isc.org&gt;<br> <b>Subject:</b> Starting bind 9.16.x with systemctl fails</font> <div>&nbsp;</div>
    </div>
    <div class=3D"BodyFragment"><font size=3D"2"><span style=3D"font-size:11pt;=

    <div class=3D"PlainText">Hi,<br>
    When I start bind 9.16.x with systemctl I get:<br>

    Failed to start named.service: Unit is not loaded properly: Bad message.<br=

    See system logs and 'systemctl status named.service' for details.<br>


    I get no messages in the logs.<br>
    Systemctl status named.service says:<br>
    * named.service - Berkeley Internet Name Domain (DNS)<br>
    &nbsp;&nbsp; Loaded: error (Reason: Bad message)<br>
    &nbsp;&nbsp; Active: inactive (dead)<br>


    These messages are not very helpful, any ideas???<br>

    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Adrian<br>




    -- <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Adri P. van Bloois<br>


    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;The greatest threat to our plane=
    t is the belief that someone else<br>
    &nbsp;&nbsp; will save it.&quot;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb= sp;&nbsp;&nbsp; Robert Swan.<br> _______________________________________________<br>
    Please visit <a href=3D"https://protect2.fireeye.com/v1/url?k=3Dad60492d-f3= fe4f08-ad6770f2-869600a3c855-fb3ed8b8ebf09aad&amp;q=3D1&amp;e=3D92485019-1c= 68-41ca-b239-1b00b6f4f381&amp;u=3Dhttps%3A%2F%2Flists.isc.org%2Fmailman%2Fl= istinfo%2Fbind-users"> https://protect2.fireeye.com/v1/url?k=3Dad60492d-f3fe4f08-ad6770f2-869600a3= c855-fb3ed8b8ebf09aad&amp;q=3D1&amp;e=3D92485019-1c68-41ca-b239-1b00b6f4f38= 1&amp;u=3Dhttps%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fbind-users</a>=
    to unsubscribe from this list<br>

    ISC funds the development of this software with paid support subscriptions.=
    Contact us at
    <a href=3D"https://protect2.fireeye.com/v1/url?k=3Dcead8273-90338456-ceaabb= ac-869600a3c855-3d0f193407c15999&amp;q=3D1&amp;e=3D92485019-1c68-41ca-b239-= 1b00b6f4f381&amp;u=3Dhttps%3A%2F%2Fwww.isc.org%2Fcontact%2F"> https://protect2.fireeye.com/v1/url?k=3Dcead8273-90338456-ceaabbac-869600a3= c855-3d0f193407c15999&amp;q=3D1&amp;e=3D92485019-1c68-41ca-b239-1b00b6f4f38= 1&amp;u=3Dhttps%3A%2F%2Fwww.isc.org%2Fcontact%2F</a> for more information.<=



    bind-users mailing list<br>
    bind-users@lists.isc.org<br>
    <a href=3D"https://protect2.fireeye.com/v1/url?k=3Dc89e11e0-960017c5-c89928= 3f-869600a3c855-b48f3ef414cf2960&amp;q=3D1&amp;e=3D92485019-1c68-41ca-b239-= 1b00b6f4f381&amp;u=3Dhttps%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fbin= d-users">https://protect2.fireeye.com/v1/url?k=3Dc89e11e0-960017c5-c899283f= -869600a3c855-b48f3ef414cf2960&amp;q=3D1&amp;e=3D92485019-1c68-41ca-b239-1b= 00b6f4f381&amp;u=3Dhttps%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fbind-= users</a><br>
    </div>
    </span></font></div>
    </body>
    </html>

    --_000_HK2PR06MB35234BDBD4902D5C9CFD3EB7CC640HK2PR06MB3523apcp_--
    --- Synchronet 3.18a-Linux NewsLink 1.113
  • From Reindl Harald@h.reindl@thelounge.net to bind-users on Thu Jul 9 12:31:00 2020
    From Newsgroup: comp.protocols.dns.bind



    Am 09.07.20 um 12:08 schrieb Adrian van Bloois:
    When I start bind 9.16.x with systemctl I get:

    Failed to start named.service: Unit is not loaded properly: Bad message.
    See system logs and 'systemctl status named.service' for details.


    I get no messages in the logs.
    Systemctl status named.service says:
    * named.service - Berkeley Internet Name Domain (DNS)
    Loaded: error (Reason: Bad message)
    Active: inactive (dead)

    These messages are not very helpful, any ideas???

    what about post the systemd-unit and besides that i find it unlikely
    that "journalctl" don't show any errors directly after try to restart
    (and yes you do "systemctl daemon-reload" and "systemctl restart named"
    in doubt)

    "systemctl daemon-reload" alone triggers in most cases messages when
    unitfiles are broken

    ----------------------------------

    similar issue with "Bad message" because nonsense in the unit-file

    https://www.raspberrypi.org/forums/viewtopic.php?t=173783

    Change that first line! Comment lines must begin with either # or ;

    That was the issue indeed ! Since I copy-pasted that from the Internet,
    I thought it was legit ... And then I don't really understand why the
    start command was working.
    --- Synchronet 3.18a-Linux NewsLink 1.113