Issue fixed. Needed to set the PATH variable with the following first before running the dump from cron:
export PATH=$PATH:/opt/xcat/sbin/ Though a more verbose error message may have made this a bit easier to troubleshoot. -SS- From: Sajesh Singh Sent: Tuesday, September 22, 2020 1:04 PM To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net> Subject: RE: [xcat-user] dumpxCATdb not working from cron Using the -V flag in cron returns the following error: [1:01 PM] Sajesh Singh Command failed: tabdump 2>&1. Error message: . Error running tabdump to get list of tables Which seems to point to the following section of code: # Dump using xCAT utilities my @output = xCAT::Utils->runcmd("tabdump", 0); if ($::RUNCMD_RC != 0) { # error xCAT::MsgUtils->message("E", "Error running tabdump to get list of tables"); exit 1; } I am able to do a tabdump of the site table from a cron script. -SS- -- From: Mark Gurevich <gurev...@us.ibm.com<mailto:gurev...@us.ibm.com>> Sent: Tuesday, September 22, 2020 12:42 PM To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net<mailto:xcat-user@lists.sourceforge.net>> Subject: Re: [xcat-user] dumpxCATdb not working from cron EXTERNAL SENDER 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 [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<mailto:ssi...@amnh.org>> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net<mailto: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<mailto:xCAT-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/xcat-user<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fxcat-user&data=01%7C01%7Cssingh%40amnh.org%7C1a4d0a9a1ee140d628ae08d85f168b2a%7Cbe0003e8c6b9496883aeb34586974b76%7C0&sdata=49AITm9xzRSH11YB1bJprzYjghMmGRrYjT4Zr4HN6W8%3D&reserved=0>
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user