Hello,
my Bacularis / Bacula installation is running on a virtual Proxmox
machine. The PostgreSQL cluster sits behind an HAProxy. The PostgreSQL
server runs on 3 nodes (etcd & Patroni). The connection between the
Bacula Catalog and the PostgreSQL cluster is encrypted via TLS. I have
this error messages for your reference.

...
31-May 23:30 bacula-dir JobId 4: Fatal error: bdb.h:146 bdb.h:146 query
SELECT
MediaId,VolumeName,VolJobs,VolFiles,VolBlocks,VolBytes,VolABytes,VolHol
eBytes,VolHoles,VolMounts,VolErrors,VolWrites,Media.MaxVolBytes,Media.V
olCapacityBytes,MediaType,VolStatus,Media.PoolId,Media.VolRetention,Med
ia.VolUseDuration,Media.MaxVolJobs,Media.MaxVolFiles,Media.Recycle,Slot
,FirstWritten,LastWritten,InChanger,EndFile,EndBlock,VolType,VolParts,V
olCloudParts,LastPartBytes,Media.LabelType,LabelDate,StorageId,Media.En
abled,LocationId,RecycleCount,InitialWrite,Media.ScratchPoolId,Media.Re
cyclePoolId,VolReadTime,VolWriteTime,Media.ActionOnPurge,Media.CacheRet
ention,Protected,UseProtect,VolEncrypted,Pool.Name FROM Media JOIN Pool
USING (PoolId) WHERE VolumeName='Full-0001' failed:
SSL SYSCALL error: EOF detected
31-May 23:31 bacula-dir JobId 4: Error: Unable to get Media record for
Volume Full-0001: ERR=Media record for Volume Name "Full-0001" not
found in Catalog.
31-May 23:32 bacula-sd JobId 4: Fatal error: Error getting Volume info:
1991 Catalog Request for vol=Full-0001 failed: Query failed: INSERT
INTO Log (JobId, Time, LogText) VALUES (4,'2026-05-31
23:31:42','bacula-dir JobId 4: Error: Unable to get Media record for
Volume Full-0001: ERR=Media record for Volume Name "Full-0001" not
found in Catalog.
'): ERR=no connection to the server
31-May 23:34 bacula-dir JobId 4: Fatal error: bdb.h:146 bdb.h:146 query
SELECT MAX(VolIndex) from JobMedia WHERE JobId=4 failed:
no connection to the server
31-May 23:35 bacula-dir JobId 4: Fatal error: bdb.h:145 bdb.h:145
insert INSERT INTO JobMedia
(JobId,MediaId,FirstIndex,LastIndex,StartFile,EndFile,StartBlock,EndBlo
ck,VolIndex) VALUES (4,1,1,3861,0,0,239,999936226,1) failed:
no connection to the server
31-May 23:36 bacula-dir JobId 4: Fatal error: Catalog error creating
JobMedia record. sql_create.c:132 Create JobMedia record INSERT INTO
JobMedia
(JobId,MediaId,FirstIndex,LastIndex,StartFile,EndFile,StartBlock,EndBlo
ck,VolIndex) VALUES (4,1,1,3861,0,0,239,999936226,1) failed: ERR=no
connection to the server
31-May 23:37 bacula-sd JobId 4: Fatal error: Error creating JobMedia
records: 1992 Create JobMedia error
31-May 23:37 nsthwme02-fd JobId 4: Error: bsock.c:395 Wrote 16968 bytes
to Storage daemon:bacula.intern.harnet.de:9103, but only 0 accepted.
31-May 23:37 bacula-sd JobId 4: Elapsed time=00:09:18, Transfer
rate=16.10 M Bytes/second
31-May 23:37 nsthwme02-fd JobId 4: Fatal error: backup.c:1007 Network
send error to SD. ERR=Die Verbindung wurde vom Kommunikationspartner
zurückgesetzt
31-May 23:37 nsthwme02-fd JobId 4: Error: bsock.c:275 Socket has
errors=1 on call to Storage daemon:bacula.intern.harnet.de:9103
31-May 23:43 bacula-dir JobId 4: Error: bdb.h:144 bdb.h:144 update
UPDATE Job SET JobStatus='f',EndTime='2026-05-31
23:42:32',ClientId=2,JobBytes=8992130740,ReadBytes=8992196276,JobFiles=
190386,JobErrors=5,VolSessionId=1,VolSessionTime=1780262801,PoolId=4,Fi
leSetId=3,JobTDate=1780263752,RealEndTime='2026-05-31
23:42:32',HasBase=0,PurgedFiles=0,Rate=10480.3,CompressRatio=0.0,WriteS
torageId=3,LastReadStorageId=0,StatusInfo='',LastReadDevice='',WriteDev
ice='NFS-Share-Harbich',Encrypted=0 WHERE JobId=4 failed:
no connection to the server
31-May 23:44 bacula-dir JobId 4: Warning: Error updating job record.
Query failed: INSERT INTO Log (JobId, Time, LogText) VALUES (4,'2026-
05-31 23:43:22','bacula-dir JobId 4: Error: bdb.h:144 bdb.h:144 update
UPDATE Job SET JobStatus=''f'',EndTime=''2026-05-31
23:42:32'',ClientId=2,JobBytes=8992130740,ReadBytes=8992196276,JobFiles
=190386,JobErrors=5,VolSessionId=1,VolSessionTime=1780262801,PoolId=4,F
ileSetId=3,JobTDate=1780263752,RealEndTime=''2026-05-31
23:42:32'',HasBase=0,PurgedFiles=0,Rate=10480.3,CompressRatio=0.0,Write
StorageId=3,LastReadStorageId=0,StatusInfo='''',LastReadDevice='''',Wri
teDevice=''NFS-Share-Harbich'',Encrypted=0 WHERE JobId=4 failed:
no connection to the server
'): ERR=no connection to the server
31-May 23:45 bacula-dir JobId 4: Fatal error: bdb.h:146 bdb.h:146 query
SELECT
VolSessionId,VolSessionTime,PoolId,StartTime,EndTime,JobFiles,JobBytes,
JobTDate,Job,JobStatus,Type,Level,ClientId,Job.Name AS
Name,PriorJobId,RealEndTime,JobId,FileSetId,SchedTime,RealStartTime,Rea
dBytes,HasBase,PurgedFiles,PriorJob,Comment,Reviewed,isVirtualFull,Writ
eStorageId,LastReadStorageId,StatusInfo,LastReadDevice,WriteDevice,Encr
ypted, Client.Name AS Client FROM Job JOIN Client USING (ClientId)
WHERE JobId=4 failed:
no connection to the server
31-May 23:46 bacula-dir JobId 4: Warning: Error getting Job record for
Job report: ERR=Query failed: INSERT INTO Log (JobId, Time, LogText)
VALUES (4,'2026-05-31 23:45:52','bacula-dir JobId 4: Fatal error:
bdb.h:146 bdb.h:146 query SELECT
VolSessionId,VolSessionTime,PoolId,StartTime,EndTime,JobFiles,JobBytes,
JobTDate,Job,JobStatus,Type,Level,ClientId,Job.Name AS
Name,PriorJobId,RealEndTime,JobId,FileSetId,SchedTime,RealStartTime,Rea
dBytes,HasBase,PurgedFiles,PriorJob,Comment,Reviewed,isVirtualFull,Writ
eStorageId,LastReadStorageId,StatusInfo,LastReadDevice,WriteDevice,Encr
ypted, Client.Name AS Client FROM Job JOIN Client USING (ClientId)
WHERE JobId=4 failed:
no connection to the server
'): ERR=no connection to the server
31-May 23:48 bacula-dir JobId 4: Fatal error: bdb.h:146 bdb.h:146 query
SELECT ClientId,Name,Uname,AutoPrune,FileRetention,JobRetention FROM
Client WHERE Client.Name='nsthwme02-fd' failed:
no connection to the server
31-May 23:49 bacula-dir JobId 4: Warning: Error getting Client record
for Job report: ERR=Client record not found in Catalog.
31-May 23:50 bacula-dir JobId 4: Fatal error: bdb.h:146 bdb.h:146 query
SELECT
MediaId,VolumeName,VolJobs,VolFiles,VolBlocks,VolBytes,VolABytes,VolHol
eBytes,VolHoles,VolMounts,VolErrors,VolWrites,Media.MaxVolBytes,Media.V
olCapacityBytes,MediaType,VolStatus,Media.PoolId,Media.VolRetention,Med
ia.VolUseDuration,Media.MaxVolJobs,Media.MaxVolFiles,Media.Recycle,Slot
,FirstWritten,LastWritten,InChanger,EndFile,EndBlock,VolType,VolParts,V
olCloudParts,LastPartBytes,Media.LabelType,LabelDate,StorageId,Media.En
abled,LocationId,RecycleCount,InitialWrite,Media.ScratchPoolId,Media.Re
cyclePoolId,VolReadTime,VolWriteTime,Media.ActionOnPurge,Media.CacheRet
ention,Protected,UseProtect,VolEncrypted,Pool.Name FROM Media JOIN Pool
USING (PoolId) WHERE VolumeName='Full-0001' failed:
no connection to the server
31-May 23:51 bacula-dir JobId 4: Warning: Error getting Media record
for Volume "Full-0001": ERR=Media record for Volume Name "Full-0001"
not found in Catalog.
31-May 23:53 bacula-dir JobId 4: Fatal error: bdb.h:146 bdb.h:146 query
SELECT VolumeName,MAX(VolIndex) FROM JobMedia,Media WHERE
JobMedia.JobId=4 AND JobMedia.MediaId=Media.MediaId GROUP BY VolumeName
ORDER BY 2 ASC failed:
no connection to the server
31-May 23:54 bacula-dir JobId 4: Error: Bacula bacula-dir 15.0.3
(25Mar25):
  Build OS:               x86_64-pc-linux-gnu debian trixie/sid
  JobId:                  4
  Job:                    backup-nsthwme02-fd.2026-05-31_23.28.11_24
  Backup Level:           Full (upgraded from Incremental)
  Client:                 "nsthwme02-fd"
  FileSet:                "LinuxClient" 2026-05-31 20:05:52
  Pool:                   "Full" (From Job FullPool override)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "NFS-Share-Harbich" (From Pool resource)
  Scheduled time:         31-May-2026 23:28:11
  Start time:             31-May-2026 23:28:14
  End time:               31-May-2026 23:42:32
  Elapsed time:           14 mins 18 secs
  Priority:               10
  FD Files Written:       190,386
  SD Files Written:       190,242
  FD Bytes Written:       8,992,130,740 (8.992 GB)
  SD Bytes Written:       8,985,943,962 (8.985 GB)
  Rate:                   10480.3 KB/s
  Software Compression:   None
  Comm Line Compression:  None
  Snapshot/VSS:           no
  Encryption:             no
  Accurate:               no
  Volume name(s):       
  Volume Session Id:      1
  Volume Session Time:    1780262801
  Last Volume Bytes:      0 (0 B)
  Non-fatal FD errors:    5
  SD Errors:              1
  FD termination status:  Error
  SD termination status:  Error
  Termination:            *** Backup Error ***
...

I am unsure what is causing this error.
Best regards, Stefan Harbich


_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to