Forum Discussion

baumkuchen's avatar
baumkuchen
Level 3
2 years ago
Solved

Failed to create XBSA object - 3

Hello, I am trying to run a postgresql backup in a Linux environment and i'm getting error message

"Failed to create XBSA object - 3"

Does anyone know how to solve this?

----------------------------------------------------------------LOG-----------------------------------------------------------------------------------

2023-09-04 16:08:43 DEBUGS: DB_PORT => 5432
2023-09-04 16:08:43 DEBUGS: DB_USER => postgres
2023-09-04 16:08:43 DEBUGS: MASTER_SERVER_NAME => centervtl
2023-09-04 16:08:43 DEBUGS: NBPGSQL_LOG_LEVEL => 4
2023-09-04 16:08:43 DEBUGS: OPERATION => backup
2023-09-04 16:08:43 DEBUGS: PGSQL_LIB_INSTALL_PATH => /usr/lib64
2023-09-04 16:08:43 DEBUGS: POLICY_NAME => testpgsql
2023-09-04 16:08:43 DEBUGS: SCHEDULE_NAME => FULL
2023-09-04 16:08:43 DEBUGS: Loading PostgreSQL library - /usr/lib64/libpq.so
2023-09-04 16:08:43 INFO: PostgreSQL data directory: /var/lib/pgsql/data
2023-09-04 16:08:43 DEBUGS: PostgreSQL archive_command: test ! -f /var/lib/pgsql/arc%f && cp %p /var/lib/pgsql/arc/%f
2023-09-04 16:08:43 INFO: PostgreSQL WAL directory: /var/lib/pgsql/arc
2023-09-04 16:08:44 DEBUGS: Logical Volume Device Name: /dev/mapper/rhel-root
2023-09-04 16:08:48 DEBUGS: Logical Volume Name: root
2023-09-04 16:08:48 DEBUGS: Volume Group Name: rhel
2023-09-04 16:08:48 DEBUGS: LVM snapshot command: sudo lvcreate --snapshot --name pgsqlsnap_1693811327 --size 1MB /dev/rhel/root
2023-09-04 16:08:48 DEBUGS: Snapshot Device Name: /dev/rhel/pgsqlsnap_1693811327
2023-09-04 16:08:48 DEBUGS: Snapshot FileSystem Type: xfs
2023-09-04 16:08:48 DEBUGS: Mount Point: /
2023-09-04 16:08:48 INFO: Snapshot Mount Dir: /mnt/pgsqlsnap_1693811327/var/lib/pgsql/data
2023-09-04 16:08:49 INFO: Backup initiated from XBSA ...
2023-09-04 16:08:49 INFO: PostgreSQL version: 9.2.24
2023-09-04 16:08:49 INFO: PostgreSQL database backup is in progress...
2023-09-04 16:08:50 ERR: Failed to create XBSA object - 3
2023-09-04 16:08:50 ERR: Error! The backup has failed.
2023-09-04 16:08:50 ERR: Error occurred while performing backup
2023-09-04 16:08:50 DEBUGS: Unmounted the snapshot directory: /mnt/pgsqlsnap_1693811327
2023-09-04 16:08:51 DEBUGS: Removed the mount directory: /mnt/pgsqlsnap_1693811327
2023-09-04 16:08:51 DEBUGS: Removed the snapshot: pgsqlsnap_1693811327: Logical volume "pgsqlsnap_1693811327" successfully removed

    • baumkuchen's avatar
      baumkuchen
      Level 3

      Yes, I set it up the same as the guide and tried to solve it with the Trouble Shooting chapter

      I've couldn't find related logs except the logs at  install_path/nbpgsql.log

      I've tried to find XBSA  and followed the location of the guide(<NetBackup_install_path>/netbackup/logs/exten_client), but there was nothing.

       

      • baumkuchen's avatar
        baumkuchen
        Level 3

        I've found additional error logs at the exten_client.

        --------------------------------------------------------------------LOG--------------------------------------------------------------------

        09:42:25.921 [8382] <16> CreateNewImage: ERR - serverResponse() failed
        09:42:25.921 [8382] <16> VxBSACreateObject: ERR - Could not create new image with file /PGSQL/PG_VERSION.
        09:42:25.921 [8382] <8> close_image: Session being terminated abnormally, cleaning up
        09:42:25.921 [8382] <4> close_image: INF - backup FAILED
        09:42:25.921 [8382] <4> close_image: INF ---- end of Backup ---
        09:42:25.921 [8382] <16> Backup: BSACreateObject: System detected error, operation aborted.
        09:42:25.921 [8382] <2> bsa_CloseDebugFD: DBG - bCloseDebug flag is set.
        10:10:48.090 [10426] <16> serverResponse: ERR - server exited with status 241: the specified schedule is the wrong type for this request
        10:10:48.091 [10426] <16> CreateNewImage: ERR - serverResponse() failed
        10:10:48.091 [10426] <16> VxBSACreateObject: ERR - Could not create new image with file /PGSQL/PG_VERSION.
        10:10:48.091 [10426] <8> close_image: Session being terminated abnormally, cleaning up
        10:10:48.091 [10426] <4> close_image: INF - backup FAILED
        10:10:48.091 [10426] <4> close_image: INF ---- end of Backup ---
        10:10:48.091 [10426] <16> Backup: BSACreateObject: System detected error, operation aborted.
        10:10:48.091 [10426] <2> bsa_CloseDebugFD: DBG - bCloseDebug flag is set.

    • baumkuchen's avatar
      baumkuchen
      Level 3

      I've solved this issue by editing SCHEDULE_NAME in the nbpgsql.conf

      Thanks!