I'm working on setting up bareos on a fresh ubuntu 24.04 install and i keep running into an issue when trying to label barcodes:
admin@secbackup-01:~$ sudo bconsole
Connecting to Director localhost:9101
Encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
1000 OK: bareos-dir Version: 24.0.1~pre10.a2e4f6ebf (22 December 2024)
Bareos community build (UNSUPPORTED).
Get professional support from
https://www.bareos.comYou are connected using the default console
Enter a period (.) to cancel a command.
*label barcodes
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Automatically selected Storage: MSL3040-Storage
Select Drive:
1: Drive 0
2: Drive 1
Select drive (1-2): 1
Connecting to Storage daemon MSL3040-Storage at secbackup-01:9103 ...
3306 Issuing autochanger "list" command.
The following Volumes will be labeled:
Slot Volume
==============
1 100002
2 100030
3 100003
4 100004
5 100005
6 100006
7 100007
8 100008
9 100009
10 100010
11 100011
12 100012
13 100013
14 100014
15 100015
16 100016
17 100017
18 100018
19 100019
20 100020
21 100021
22 100037
23 100038
24 100039
25 100100
26 100031
27 100032
28 100033
29 100034
30 100035
31 100026
32 100027
33 100028
34 100029
35 100001
Do you want to label these Volumes? (yes|no): yes
Defined Pools:
1: Incremental
2: Full
3: Differential
4: Scratch
Select the Pool (1-4): 4
Media record for Slot 1 Volume "100002" already exists.
Connecting to Storage daemon MSL3040-Storage at secbackup-01:9103 ...
Sending label command for Volume "100030" Slot 2 ...
3307 Issuing autochanger "unload slot 1, drive 0" command.
3307 Issuing autochanger "unload slot 2, drive 1" command.
3997 Bad autochanger "unload slot 2, drive 1": ERR=Child exited with code 1.
Label command failed for Volume 100030.
Media record for Slot 3 Volume "100003" already exists.
Media record for Slot 4 Volume "100004" already exists.
Media record for Slot 5 Volume "100005" already exists.
Sending label command for Volume "100006" Slot 6 ...
3304 Issuing autochanger "load slot 6, drive 0" command.
3305 Autochanger "load slot 6, drive 0", status is OK.
3000 OK label. VolFiles=1 VolBytes=64512 Volume="100006" Device="TapeDrive1" (/dev/tape/by-id/scsi-35001438031be606b-nst)
Catalog record for Volume "100006", Slot 6 successfully created.
Sending label command for Volume "100007" Slot 7 ...
3307 Issuing autochanger "unload slot 6, drive 0" command.
3304 Issuing autochanger "load slot 7, drive 0" command.
3305 Autochanger "load slot 7, drive 0", status is OK.
3920 Cannot label Volume because it is already labeled: "100006"
Label command failed for Volume 100007.
Sending label command for Volume "100008" Slot 8 ...
3307 Issuing autochanger "unload slot 7, drive 0" command.
3304 Issuing autochanger "load slot 8, drive 0" command.
3305 Autochanger "load slot 8, drive 0", status is OK.
3920 Cannot label Volume because it is already labeled: "100006"
Label command failed for Volume 100008.
Sending label command for Volume "100009" Slot 9 ...
3307 Issuing autochanger "unload slot 8, drive 0" command.
3304 Issuing autochanger "load slot 9, drive 0" command.
3305 Autochanger "load slot 9, drive 0", status is OK.
3920 Cannot label Volume because it is already labeled: "100006"
Label command failed for Volume 100009.
Sending label command for Volume "100010" Slot 10 ...
3307 Issuing autochanger "unload slot 9, drive 0" command.
It seems like its not actually ejecting the tape and inserting the new one. Running a manual btape test works correctly with the auto changer so I'm stumped. Below is the configs i've setup for the system: