Hi, Michael,
We’re now trying the upgrading process, and get stuck in the step of updating from cta-4.6.0 to cta-4.6.1.
The cta-catalogue-schema-verify says successes, while the cta-taped fails to start.
$ cta-catalogue-schema-verify /etc/cta/cta-catalogue.conf
Schema version : 4.6
Checking indexes...
SUCCESS
Checking tables, columns and constraints...
SUCCESS
Status of the checking : SUCCESS
And part of cta-taped log are
Jun 13 11:02:13 test-tape01.ihep.ac.cn cta-taped[207116]: LVL="CRIT" PID="207116" TID="207116" MSG="In DriveHandler::runChild(): failed to set drive down" SubprocessName="drive:test01" tapeDrive="test01"
Message="createTapeDrive: executeNonQuery failed: executeNonQuery failed for SQL statement INSERT INTO DRIVE_STATE( DRIVE_NAME, HOST, LOGICAL_LIBRARY, SESSION_ID, BYTES...: Executing non query statement: Database library reported: ERROR: null value in column 'disk_system_name' of relation 'drive_state' violates not-null constraintDETAIL: Failing row contains (test01, test-tape01, ts2900, null, null, null, null, null, null, null, null, null, null, 1655089333, null, null, null, null, NO_MOUNT, DOWN, 0, 0, null, null, 4.6.3-1, null, null, null, NO_MOUNT, null, null, null, null, /dev/nst0, smc0, null, null, null, NO_USER, test-tape01, 1655089333, NO_USER, test-tape01, 1655089333, null, null, null). (DB Result Status:7 SQLState:23502)"
Backtrace="/lib64/libctacommon.so.0(cta::exception::Backtrace::Backtrace(bool)+0x69) [0x7f1f01150ff7] /lib64/libctacommon.so.0(cta::exception::Exception::Exception(std::string const&, bool)+0x89) [0x7f1f0115285b]
/lib64/libctardbmswrapper.so.0(cta::rdbms::wrapper::Postgres::ThrowInfo(pg_conn const*, pg_result const*, std::string const&)+0x4b3) [0x7f1f0145cd5b]
/lib64/libctardbmswrapper.so.0(cta::rdbms::wrapper::PostgresStmt::throwDB(pg_result const*, std::string const&)+0x4a) [0x7f1f01468b0a]
/lib64/libctardbmswrapper.so.0(cta::rdbms::wrapper::PostgresStmt::throwDBIfNotStatus(pg_result const*, ExecStatusType, std::string const&)+0x53) [0x7f1f01468b9b]
/lib64/libctardbmswrapper.so.0(cta::rdbms::wrapper::PostgresStmt::executeNonQuery()+0x24c) [0x7f1f014665ee] /lib64/libctardbms.so.0(cta::rdbms::Stmt::executeNonQuery()+0x50) [0x7f1f016e17aa]
/lib64/libctacatalogue.so.0(cta::catalogue::RdbmsCatalogue::createTapeDrive(cta::common::dataStructures::TapeDrive const&)+0xe3) [0x7f1f01b4176f]
/lib64/libctacatalogue.so.0(cta::catalogue::CatalogueRetryWrapper::createTapeDrive(cta::common::dataStructures::TapeDrive const&)::{lambda()#1}::operator()() const+0x4b) [0x7f1f01a48e65]
/lib64/libctacatalogue.so.0(std::result_of<cta::catalogue::CatalogueRetryWrapper::createTapeDrive(cta::common::dataStructures::TapeDrive const&)::{lambda()#1} ()>::type cta::catalogue::retryOnLostConnection<cta::catalogue::CatalogueRetryWrapper::createTapeDrive(cta::common::dataStructures::TapeDrive const&)::{lambda()#1}>(cta::log::Logger&, std::result_of const&, unsigned int)+0x5c) [0x7f1f01a80a8c]
/lib64/libctacatalogue.so.0(cta::catalogue::CatalogueRetryWrapper::createTapeDrive(cta::common::dataStructures::TapeDrive const&)+0x4d) [0x7f1f01a48ec9]
/lib64/libctacatalogue.so.0(cta::TapeDrivesCatalogueState::createTapeDriveStatus(cta::common::dataStructures::DriveInfo const&, cta::common::dataStructures::DesiredDriveState const&, cta::common::dataStructures::MountType const&, cta::common::dataStructures::DriveStatus const&, cta::tape::daemon::TpconfigLine const&, cta::common::dataStructures::SecurityIdentity const&, cta::log::LogContext&)+0x1bf) [0x7f1f01b9dd2b]
/lib64/libctascheduler.so.0(cta::Scheduler::createTapeDriveStatus(cta::common::dataStructures::DriveInfo const&, cta::common::dataStructures::DesiredDriveState const&, cta::common::dataStructures::MountType const&, cta::common::dataStructures::DriveStatus const&, cta::tape::daemon::TpconfigLine const&, cta::common::dataStructures::SecurityIdentity const&, cta::log::LogContext&)+0x7e) [0x7f1f03c9fd8a] /usr/bin/cta-taped() [0x47c09e] /usr/bin/cta-taped() [0x49ee10]
/usr/bin/cta-taped() [0x49ddc4] /usr/bin/cta-taped() [0x468533] /usr/bin/cta-taped() [0x46814d]
/usr/bin/cta-taped() [0x467b38] /usr/bin/cta-taped() [0x4559cf] /usr/bin/cta-taped() [0x4560b5]
/lib64/libc.so.6(__libc_start_main+0xf5) [0x7f1efac98555] /usr/bin/cta-taped() [0x455669]"
From the log, cta-taped seems to complain the disk_system_name is null, while we find nowhere to set the drive property. If we drop the constrain, cta-taped can successfully start.
Or we just upgrade to cta-4.7-3.1?