Menu

cron errors

Help
2004-03-21
2004-03-22
  • Nick Twaddell

    Nick Twaddell - 2004-03-21

    everytime a command gets ran by a cronjob i get this errror

    Mar 20 18:05:00 ns1 /usr/sbin/cron[26886]: (root) CMD (/usr/libexec/atrun)
    Mar 20 18:05:00 ns1 cron[26886]: NSSWITCH(nss_method_lookup): mysql, group, setgrent, not found
    Mar 20 18:05:00 ns1 cron[26886]: NSSWITCH(nss_method_lookup): mysql, group, getgrent_r, not found
    Mar 20 18:05:00 ns1 cron[26886]: NSSWITCH(nss_method_lookup): mysql, group, endgrent, not found
    Mar 20 18:05:00 ns1 cron[26886]: NSSWITCH(nss_method_lookup): mysql, passwd, endpwent, not found

    do you guys know what might be causing this?

     
    • Ben Goodwin

      Ben Goodwin - 2004-03-21

      Is this FreeBSD?  Did you restart cron (or reboot) after installing libnss-mysql?  What version of libnss-mysql and FreeBSD (or whatever OS)?

       
      • Nick Twaddell

        Nick Twaddell - 2004-03-21

        yup, and i added ldconfig_paths="/usr/lib/compat /usr/X11R6/lib /usr/local/lib /usr/local/lib/mysql" to my rc.conf

        im using freebsd 5.2.1 and libnss-mysql 1.1

         
        • Ben Goodwin

          Ben Goodwin - 2004-03-22

          Odd.  I can't reproduce this.  Can you add a cron entry that runs as a MySQL user which runs every minute and touches /tmp/something and see if /tmp/something is owned by said MySQL user?  I have no problems doing that, and I don't get any of those messages.
          Is this a fresh 5.2.1-RELEASE box, or have you cvsup'ed at all?  What do these commands return:

          mysql --version
          ident /usr/lib/nss_mysql.so.1

          If you feel OK with giving me root access to the box I could probably figure this out much more quickly, especially since I can't reproduce this.  That's obviously your call...

           
          • Nick Twaddell

            Nick Twaddell - 2004-03-22

            actually it seems to be working good now.

             

Log in to post a comment.