On 13.05.21 08:36, Andrea Venturoli wrote:
12-May 22:45 jack-dir JobId 8096: Error: sql_create.c:439 Create DB
Media record INSERT INTO Media
(VolumeName,MediaType,MediaTypeId,PoolId,MaxVolBytes,VolCapacityBytes,Recycle,VolRetention,VolUseDuration,MaxVolJobs,MaxVolFiles,VolStatus,Slot,VolBytes,InChanger,VolReadTime,VolWriteTime,VolType,VolParts,VolCloudParts,LastPartBytes,EndFile,EndBlock,LabelType,StorageId,DeviceId,LocationId,ScratchPoolId,RecyclePoolId,Enabled,ActionOnPurge,CacheRetention)VALUES
('Inc4403','File',0,4,53687091200,0,1,7776000,0,1,0,'Append',0,0,0,0,0,0,0,0,'0',0,0,0,3,0,0,0,0,1,1,0)
failed. ERR=ERROR: duplicate key value violates unique constraint
"media_volumename_id"
DETAIL: Key (volumename)=(Inc4403) already exists.
In the end this seems to be only annoying, as jobs with "warnings" must
be better checked.
Or am I missing something?
If you are compiling from source, better use the head of the Bacula-9.6
branch from GIT instead of the published sources, as they miss some patches.
For your case in particular, you need to add this patch:
--- a/src/dird/dird.c 2021-01-19 15:25:16.233573546 -0500
+++ b/src/dird/dird.c 2021-01-19 15:26:23.884070798 -0500
@@ -1263,11 +1263,11 @@
}
if (catalog->db_driver) {
/* To copy dbdriver field into "CAT" catalog resource class
(local)
* from dbdriver in "BDB" catalog DB Interface class (global)
*/
- bstrncpy(catalog->db_driver, BDB_db_driver, db_driver_len);
+ bstrncpy(catalog->db_driver, BDB_db_driver, db_driver_len+1);
}
}
if (!db || !db_open_database(NULL, db)) {
Pmsg2(000, _("Could not open Catalog \"%s\", database
\"%s\".\n"),
Grüße,
Sven.
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users