Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find any slots #3

Open
sruckh opened this issue Apr 11, 2019 · 1 comment
Open

Can't find any slots #3

sruckh opened this issue Apr 11, 2019 · 1 comment

Comments

@sruckh
Copy link

sruckh commented Apr 11, 2019

I have tried to follow the steps from this document: http://bit.ly/2VFukBx.

I am trying to use backblaze as my cloud backend. I have gotten rclone to backup files to my backblaze bucket.

When I execute the following ( label barcodes storage=Cloud_b2 pool=Offsite ) from bconsole, the following is returned.

3306 Issuing autochanger "slots" command.
Device "rclone_b2" has 0 slots.
No slots in changer to scan.

I am using bacula v9.4.2. My bacula storage daemon starts, and so does the director.

I added the following in rclone-changer:

""" 14 Rclone contains logic to convert simple commands to full rclone command line 15 calls with error handling 16 """ 17 #===================================================== 18 # Default params config 19 #===================================================== 20 rclone = '/usr/local/bin/rclone' 21 config = '/opt/bacula/etc/rclone.conf' 22 logFile = '/opt/bacula/working/rclone.log' 23 logChanger = '/opt/bacula/working/rclone-changer.log' 24 lockFile = '/opt/bacula/working/.rclonelock' 25 stateFile = '/opt/bacula/working/rclone-changer.state' 26 slots = 100 27 #===================================================== 28 options = [] 29 30 @staticmethod

The paths are all correct, and bacula user has write access to directories mentioned above.

I even tried to add some simple code to write to a file just to see if rclone-changer gets called, and that code never got executed so I don't think anything with rclone-changer even got executed. I am not totally sure what the connection is from bconsole to rclone-changer and what actually happens when issuing the "label" command.

Here are parts from bacula-sd.conf

67 Autochanger { 68 Name = "rclone_b2" 69 Device = BaculaVTL 70 Changer Device = 'BaculaVTL:BaculaVTL' 71 Changer Command = "/usr/local/bin/rclone-changer %c %o %S %a" 72 }
 74 Device {
 75     Name = BaculaVTL
 76     Media Type = BaculaVTL
 77     Maximum Changer Wait = 18000
 78     Archive Device = /zfsstore/backups/bacula/vtape/tape
 79     Autochanger = yes
 80     LabelMedia = yes;
 81     Random Access = Yes;
 82     AutomaticMount = no;
 83     RemovableMedia = no;
 84     AlwaysOpen = no;
 85     Spool Directory = /zfsstore/backups/bacula/bacula-spool
 86     Maximum Spool Size = 419430400
 87 }

Here are the parts from bacula-dir.conf

238 Autochanger {
239 Name = Cloud_b2
240 Address = firewall
241 SDPort = 9103
242 Password = "secret"
243 Device = rclone_b2
244 Media Type = BaculaVTL
245 Autochanger = Cloud_b2
246 Maximum Concurrent Jobs = 10
247 }

319 Pool {
320     Name = Offsite
321     Pool Type = Backup
322     Recycle = yes
323     AutoPrune = yes
324     Storage = Cloud_b2
325     Maximum Volume Bytes = 1073741824
326     AutoPrune = yes
327     Volume Retention = 4 weeks
328 }

I don't know if I am missing some initialization step, or something else. I would have thought virtual tape files would have been created for the number of slots configured in rclone-changer, but since it does not look like rclone-changer ever gets called. I am not sure what to do next.

@Onepamopa
Copy link

Has anyone been able to find a solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants