<div dir="ltr"><div><div><div><div>I had done an upgrade of some packages. I listed those at the end of my first message. I don&#39;t think any of them had anything to do with cyrus, though. But i&#39;d rebooted the server afterwards; i think that&#39;s why the problem with cyrus began to appear.<br></div><div><br># zgrep cyrus-imapd /var/log/apt/<br></div><br>I had already tried that. Nothing at all.<br><br># sh -x /etc/init.d/cyrus-imapd start<br>+ LC_ALL=C<br>+ export LC_ALL<br>+ PATH=/sbin:/usr/sbin:/bin:/usr/bin<br>+ PATH=/sbin:/usr/sbin:/bin:/usr/bin<br>+ NAME=cyrmaster<br>+ DAEMON=/usr/sbin/cyrmaster<br>+ PIDFILE=/var/run/cyrmaster.pid<br>+ DESC=Cyrus IMAPd<br>+ test -x /usr/sbin/cyrmaster<br>+ exit 0<br><br>Good idea about shell debugging, thanks. In any case, it&#39;s failing because cyrmaster no longer exists. :-(<br></div></div><br></div>Bron: no, nothing in syslog. I&#39;d checked that first thing.<br><br>I&#39;m mystified as to what has happened. I think i&#39;ll try to (re)install those packages and see what comes of it. But, realistically, it looks like i should rebuild the server.<br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 28, 2015 at 8:49 PM, Nic Bernstein <span dir="ltr">&lt;<a href="mailto:nic@onlight.com" target="_blank">nic@onlight.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    You told us that you had run some apt commands prior to this
    problem, but you haven&#39;t told us what they were.  If you tried to
    install something which &quot;replaces&quot; cyrus-imapd, you may have forced
    its removal.<br>
    <br>
    What does &quot;zgrep cyrus-imapd /var/og/apt/*&quot; show?<br>
        -nic<div><div class="h5"><br>
    <br>
    <div>On 04/28/2015 07:38 PM, lowpass wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Gadzooks! It appears that the server is actually
        missing some things.<br>
        <br>
        # ls -l /usr/sbin/cyr*<br>
        -rwxr-xr-x 1 root root 2046 Mar  3  2014 /usr/sbin/cyrus<br>
        <br>
        # ls -l /usr/lib/cyrus/bin/<br>
        total 24<br>
        drwxr-xr-x 2 root root 4096 Apr 27 18:29 ./<br>
        drwxr-xr-x 3 root root 4096 Apr 27 18:29 ../<br>
        -rwxr-xr-x 1 root root 2945 Mar  3  2014 init-helper*<br>
        -rwxr-xr-x 1 root root 4018 Mar  3  2014 makedirs*<br>
        -rwxr-xr-x 1 root root 4965 Mar  3  2014 upgrade-db*<br>
        <br>
        # dpkg --get-selections | grep cyr<br>
        cyrus-admin-2.4                    install<br>
        cyrus-clients-2.4                install<br>
        cyrus-common                    install<br>
        cyrus-common-2.4                deinstall<br>
        cyrus-imapd-2.4                    deinstall<br>
        libcyrus-imap-perl24            install<br>
        <br>
        hmmm ...<br>
        <br>
        # dpkg-query -s cyrus-common-2.4<br>
        Package: cyrus-common-2.4<br>
        Status: deinstall ok config-files<br>
        ...<br>
        # dpkg-query -s cyrus-imapd-2.4<br>
        Package: cyrus-imapd-2.4<br>
        Status: deinstall ok config-files<br>
        <br>
        This is saying that the packages have been selected for removal.
        But, a) I certainly have not done so; and b) they already seem
        to be gone. And i see nothing at all about them in appt&#39;s
        history logs.<br>
        <br>
        Deep breaths.<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Apr 28, 2015 at 7:49 PM,
          lowpass <span dir="ltr">&lt;<a href="mailto:zijn.digital@gmail.com" target="_blank">zijn.digital@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>
                <div>
                  <div>
                    <div>Thanks for the quick response, Bron. The
                      symlink is ok.<br>
                      <br>
                      # ls -l /var/run<br>
                      lrwxrwxrwx 1 root root 4 Oct 18  2014 /var/run
                      -&gt; /run/<br>
                      <br>
                    </div>
                    I tried creating the dir myself as you suggested:<br>
                    <br>
                    # mkdir /run/cyrus<br>
                    # chown cyrus /run/cyrus/<br>
                    # service cyrus-imapd start<br>
                  </div>
                  [nothing]<br>
                  <br>
                </div>
                <div>I tried removing the --quiet flag from the startup
                  script with same (non) results.<br>
                </div>
                <div><br>
                </div>
                What about the pid? As i understand, it&#39;s not cyrus that
                creates that on startrup. In any case, it&#39;s NOT being
                created. From /etc/init.d/cyrus-imapd:<br>
                <br>
                NAME=cyrmaster<br>
                PIDFILE=&quot;/var/run/${NAME}.pid&quot;<br>
                <br>
              </div>
              I&#39;ve posted a message on the Ubuntu forum as well, as i&#39;ve
              a feeling the problem is not with cyrus. I was hoping,
              though, that another cyrus user might have run into this.<br>
            </div>
            <div class="gmail_extra"><br>
              <div class="gmail_quote">
                <div>
                  <div>On Tue, Apr 28, 2015 at 6:55 PM, Bron
                    Gondwana <span dir="ltr">&lt;<a href="mailto:brong@fastmail.fm" target="_blank">brong@fastmail.fm</a>&gt;</span>
                    wrote:<br>
                  </div>
                </div>
                <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div>
                    <div>
                      <div><span>
                          <div> </div>
                          <div>On Wed, Apr 29, 2015, at 08:46 AM,
                            lowpass wrote:<br>
                          </div>
                          <blockquote type="cite">
                            <div dir="ltr">I do have socket and lock
                              dirs under /var/lib/cyrus but they were
                              last modified several years ago and seem
                              to be left over from some other config.
                              Other dirs there have seen more recent
                              activity. Everything seems to be pointing
                              towards the socket &amp; lock dirs being
                              created under /run but there&#39;s nothing
                              there.<br>
                            </div>
                          </blockquote>
                          <div> </div>
                        </span>
                        <div>/run is a tmpfs which gets created fresh on
                          each reboot.<br>
                        </div>
                        <div> </div>
                        <div>Cyrus starts as user &#39;cyrus&#39; and has no
                          permission to create the directories it needs.<br>
                        </div>
                        <div> </div>
                        <div>Your init script should create the
                          directories - but if you moved them somewhere
                          other than where the package expects them to
                          be, then it won&#39;t create intermediate
                          directories for you.<br>
                        </div>
                        <div> </div>
                        <div>So, here&#39;s the thing:<br>
                        </div>
                        <div> </div>
                        <div>1) double check that /var/run and /run are
                          the same place - they&#39;re mostly a symlink in
                          recent Debian/Ubuntu systems.  If not, I
                          suggest that you audit your configuration to
                          be all in /var/run or all in /run (probably a
                          good idea anyway for more consistency.<br>
                        </div>
                        <div> </div>
                        <div>2) run these commands as root:<br>
                        </div>
                        <div> </div>
                        <div>mkdir /run/cyrus<br>
                        </div>
                        <div>chown cyrus /run/cyrus<br>
                        </div>
                        <div> </div>
                        <div>3) either put those commands in a startup
                          script that runs before Cyrus starts, or edit
                          the init script for Cyrus - though note that
                          if you edit the init script, you&#39;ll have to
                          re-apply those edits on upgrade.<br>
                        </div>
                        <div> </div>
                        <div>Unfortunately, this isn&#39;t something we can
                          fix in the Cyrus binaries.  They try to create
                          the directories, but they just plain don&#39;t
                          have permissions to do so at that stage of the
                          process.<br>
                        </div>
                        <div> </div>
                        <div>Regards,<br>
                        </div>
                        <div> </div>
                        <div>Bron.<br>
                        </div>
                        <div> </div>
                        <div>
                          <div>--<br>
                          </div>
                          <div>Bron Gondwana<br>
                          </div>
                          <div><a href="mailto:brong@fastmail.fm" target="_blank">brong@fastmail.fm</a><br>
                          </div>
                          <div> </div>
                        </div>
                        <div> </div>
                      </div>
                      <br>
                    </div>
                  </div>
                  ----<br>
                  Cyrus Home Page: <a href="http://www.cyrusimap.org/" target="_blank">http://www.cyrusimap.org/</a><br>
                  List Archives/Info: <a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" target="_blank">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br>
                  To Unsubscribe:<br>
                  <a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a><br>
                </blockquote>
              </div>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>----
Cyrus Home Page: <a href="http://www.cyrusimap.org/" target="_blank">http://www.cyrusimap.org/</a>
List Archives/Info: <a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" target="_blank">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
    </blockquote>
    <br>
    </div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">-- 
Nic Bernstein                             <a href="mailto:nic@onlight.com" target="_blank">nic@onlight.com</a>
Onlight llc.                              <a href="http://www.onlight.com" target="_blank">www.onlight.com</a>
219 N. Milwaukee St., Ste. 2A                  v. <a href="tel:414.272.4477" value="+14142724477" target="_blank">414.272.4477</a>
Milwaukee, Wisconsin  53202                  f. <a href="tel:414.290.0335" value="+14142900335" target="_blank">414.290.0335</a>
</pre>
  </font></span></div>

</blockquote></div><br></div>