Impact of the bug
CRAB
Describe the bug
a block can not be migrated from global to phys03 due to "malformed SQL statement"
How to reproduce it
try again to migrate block
/QCD_Bin-PT-15to7000_Par-PT-flat2022_TuneCP5_13p6TeV_pythia8/Run3Winter26Digi-150X_mcRun3_2026_realistic_v4-v4/GEN-SIM-RAW#32b9e041-56b8-4ca1-ab62-42865ba17568
from 'prod/global' to 'prod/phys03'.
May need to remove any existing migration for that block. E.g. along the lines of https://github.com/dmwm/CRABServer/blob/master/scripts/Utils/RemoveFailedMigration.py
Expected behavior
blocks should always be migrated w/o errors
Additional context and error message
from /cephfs/product/dbs-logs/dbs2go-phys03-migration-644c89d6cb-rvbn9.log-20260424 on vocms0755
[2026-04-24 07:46:02.065996318 +0000 UTC m=+70695.377961860] bulkblocks2.go:933: 8be5afa72544a45a50ec6d241b49ec09939a1f7b1eca9fcc848f6a5ad4
fe26e4 unable to find dataset_id for /QCD_Bin-PT-15to7000_Par-PT-flat2022_TuneCP5_13p6TeV_pythia8/Run3Winter26GS-150X_mcRun3_2026_realistic
_v2-v4/GEN-SIM, error DBSError Code:103 Description:DBS DB query error, e.g. mailformed SQL statement Function:dbs.GetID Message: Error: sq
l: no rows in result set
[2026-04-24 07:46:02.385482271 +0000 UTC m=+70695.697447803] migrate.go:1116: insert bulkblocks for mid 6503521 error DBSError Code:131 Des
cription:Not defined Function:dbs.bulkblocks.InsertBulkBlocksConcurrently Message:8be5afa72544a45a50ec6d241b49ec09939a1f7b1eca9fcc848f6a5ad
4fe26e4 unable to find dataset_id for /QCD_Bin-PT-15to7000_Par-PT-flat2022_TuneCP5_13p6TeV_pythia8/Run3Winter26GS-150X_mcRun3_2026_realisti
c_v2-v4/GEN-SIM, error DBSError Code:103 Description:DBS DB query error, e.g. mailformed SQL statement Function:dbs.GetID Message: Error: s
ql: no rows in result set Error: nested DBSError Code:103 Description:DBS DB query error, e.g. mailformed SQL statement Function:dbs.GetID
Message: Error: sql: no rows in result set
[2026-04-24 07:46:02.385977374 +0000 UTC m=+70695.697942906] migrate.go:1119: insert block dump record failed with DBSError Code:131 Descri
ption:Not defined Function:dbs.bulkblocks.InsertBulkBlocksConcurrently Message:8be5afa72544a45a50ec6d241b49ec09939a1f7b1eca9fcc848f6a5ad4fe
26e4 unable to find dataset_id for /QCD_Bin-PT-15to7000_Par-PT-flat2022_TuneCP5_13p6TeV_pythia8/Run3Winter26GS-150X_mcRun3_2026_realistic_v
2-v4/GEN-SIM, error DBSError Code:103 Description:DBS DB query error, e.g. mailformed SQL statement Function:dbs.GetID Message: Error: sql:
no rows in result set Error: nested DBSError Code:103 Description:DBS DB query error, e.g. mailformed SQL statement Function:dbs.GetID Mes
sage: Error: sql: no rows in result set
[2026-04-24 07:46:02.3862927 +0000 UTC m=+70695.698258232] migrate.go:1378: update migration request 6503521 to status 3
The first message unable to find dataset_id is strange/worrying, since
belforte@lxplus802/Pub> dasgoclient --query 'dataset dataset= /QCD_Bin-PT-15to7000_Par-PT-flat2022_TuneCP5_13p6TeV_pythia8/Run3Winter26GS-150X_mcRun3_2026_realistic_v2-v4/GEN-SIM' --json|jq|grep dataset_id
"dataset_id": 15535052,
"dataset_id": 15535052,
"dataset_id": 15535052,
belforte@lxplus802/Pub>
belforte@lxplus802/Pub>
Impact of the bug
CRAB
Describe the bug
a block can not be migrated from global to phys03 due to "malformed SQL statement"
How to reproduce it
try again to migrate block
from 'prod/global' to 'prod/phys03'.
May need to remove any existing migration for that block. E.g. along the lines of https://github.com/dmwm/CRABServer/blob/master/scripts/Utils/RemoveFailedMigration.py
Expected behavior
blocks should always be migrated w/o errors
Additional context and error message
from
/cephfs/product/dbs-logs/dbs2go-phys03-migration-644c89d6cb-rvbn9.log-20260424on vocms0755The first message
unable to find dataset_idis strange/worrying, since