Forum Discussion

traghav86's avatar
traghav86
Level 5
8 years ago

29 <failed trying to exec a command>

Good day 

Please assist with below sybase backup failure, Sybase is running on Linux and 

01/01/2016 20:56:30 - Info nbjm (pid=6636) starting backup job (jobid=15896) for client XXXXX, policy XXXXX_sybase, schedule Daily_Full
01/01/2016 20:56:30 - Info nbjm (pid=6636) requesting MEDIA_SERVER_WITH_ATTRIBUTES resources from RB for backup job (jobid=15896, request id:{4800ABF7-3E31-499B-A710-40D8CE8DB701})
01/01/2016 20:56:30 - requesting resource XXXXX-stu
01/01/2016 20:56:30 - requesting resource XXXXX.NBU_CLIENT.MAXJOBS.XXXXX
01/01/2016 20:56:30 - requesting resource XXXXX.NBU_POLICY.MAXJOBS.XXXXX_sybase
01/01/2016 20:56:30 - granted resource XXXXX.NBU_CLIENT.MAXJOBS.XXXXX
01/01/2016 20:56:30 - granted resource XXXXX.NBU_POLICY.MAXJOBS.XXXXX_sybase
01/01/2016 20:56:30 - granted resource XXXXX-stu
01/01/2016 20:56:31 - estimated 0 kbytes needed
01/01/2016 20:56:31 - Info nbjm (pid=6636) started backup (backupid=XXXXX_1497293790) job for client XXXXX, policy XXXXX_sybase, schedule Daily_Full on storage unit XXXXX-stu
01/01/2016 20:56:31 - started process bpbrm (pid=7000)
01/01/2016 20:56:48 - Info bpbrm (pid=7000) XXXXX is the host to backup data from
01/01/2016 20:56:48 - Info bpbrm (pid=7000) reading file list for client
01/01/2016 20:56:51 - connecting
01/01/2016 20:57:02 - Info bpbrm (pid=7000) starting bphdb on client
01/01/2016 20:57:02 - Info bphdb (pid=25672) Backup started
01/01/2016 20:57:02 - Info bphdb (pid=25672) Processing sybase_SLH_backup.sh
01/01/2016 20:57:02 - Info bphdb (pid=25672) Waiting for the child status
01/01/2016 20:57:02 - connected; connect time: 0:00:00
01/01/2016 20:57:03 - Error bpbrm (pid=7000) from client XXXXX: ERR - Script exited with status = 29 <failed trying to exec a command>
01/01/2016 20:57:03 - Error bpbrm (pid=7000) from client XXXXX: ERR - bphdb exit status = 6: the backup failed to back up the requested files
01/01/2016 20:57:14 - Info bphdb (pid=25672) done. status: 6: the backup failed to back up the requested files
01/01/2016 20:57:14 - end writing
the backup failed to back up the requested files (6)

  • Marianne's avatar
    Marianne
    8 years ago

    This is a completely different status code to 29.

    NetBackup status code 245: the specified policy is not of the correct client type

    All I can suggest is to carefully work through this excellent article:
    https://vox.veritas.com/t5/Articles/Netbackup-for-Sybase-step-by-step/ta-p/810308

    Open the .pdf attachment. Skip to +- p.24 and work with your Sybase admin to double-check the script.
    Editing the script is covered in detail from p.27 onwards.

    Important to know that when the policy is initiated from the master, the script on the client is run as root.
    So, the user name and password in the script must be correct and policy/schedule names in the script must be double-checked

     

     

  • Marianne's avatar
    Marianne
    8 years ago

    That snippet does not help at all.

    According to the Sybase doc, 2 policies are needed. 
    A Sybase policy and a Standard policy with User Shedule.

    Can you confirm that all are in place?

  • Marianne's avatar
    Marianne
    8 years ago

    The doc that I shared explains it CLEARLY.

    I am sure the Sybase for NBU manual as well.

    I am not a database expert, that is why I use the documentation whenever I need to assist with database backups.

  • Hi,

    This information is not enough, you only sent the Detailed Status of job. Please send us these logs.

    /usr/openv/netbackup/logs/bphdb
    /usr/openv/netbackup/logs/sybackup

    Thanks.

    Regards,

    Thiago Ribeiro

  • It has happened to me several times, as they say several times in this post is simply that they are not declared or the name of the server, or the name of the policy or the name of the schedule EXACTLY in the script as in the policy itself, just check twice.