Not specifically with dumpxCATdb, but generally I have this type of thing happen from time to time. I found two common causes that tend to be fairly easy to troubleshoot.
It is often caused by SELinux (when run from the command line, SELinux usually does not restrict what you can do, but when run from a daemon, it does). If you have SELinux enabled, you could temporarily set it to Permissive, and see if the script works. The other thing that can affect whether/how a script runs is the environment. Maybe dumpxCATdb depends on some environment variables that are only present when run from a command line. _______________________________________________________________________ Kevin Keane | Systems Architect | University of San Diego ITS | kke...@sandiego.edu *Pronouns: he/him/his*Maher Hall, 162 |5998 Alcalá Park | San Diego, CA 92110-2492 | 619.260.6859 | Text: 760-721-8339 *REMEMBER! **No one from IT at USD will ever ask to confirm or supply your password*. These messages are an attempt to steal your username and password. Please do not reply to, click the links within, or open the attachments of these messages. Delete them! On Tue, Sep 22, 2020 at 9:42 AM Mark Gurevich <gurev...@us.ibm.com> wrote: > You can try running "dumpxCATdb" with the "-V" verbose flag. > You can also try to see if DB is accessible from cron, by doing "tabdump > site" from the cron. > > Mark Gurevich > Poughkeepsie Development Lab > HPC Software Development - xCAT > > "If we knew what it was we were doing, it would not be called research, > would it?" > --Albert Einstein > > > > [image: Inactive hide details for Sajesh Singh ---09/22/2020 12:26:07 > PM---CentOS: 8.1 xCat: 2.16]Sajesh Singh ---09/22/2020 12:26:07 > PM---CentOS: 8.1 xCat: 2.16 > > From: Sajesh Singh <ssi...@amnh.org> > To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net> > Date: 09/22/2020 12:26 PM > Subject: [EXTERNAL] [xcat-user] dumpxCATdb not working from cron > ------------------------------ > > > > CentOS: 8.1 > > xCat: 2.16 > > Trying to do a nightly dump of the xCat DB from cron, but the dumpxCATdb > does not seem to work. It creates the directory as expected, but does > nothing after. No errors. I am able to run the script from an interactive > shell successfully as the same user it runs from cron as. Has anyone > encountered this issue with the dumpxCATdb script before? > > -SS-_______________________________________________ > xCAT-user mailing list > xCAT-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xcat-user > > > > _______________________________________________ > xCAT-user mailing list > xCAT-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xcat-user >
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user