So I managed to make some progress after bumping up the debug verbosity in
bacula-sd...

1. I didn't have "Plugin Directory = "/opt/bacula/plugins" defined in my
bacula-sd.conf Storage directive, so the cloud plugin was never loaded and
therefore the device could not be loaded.
2. My bacula-dir.conf Storage directive Media Type's didn't match the
"CloudType" specified in the bacula-sd.conf Device directive.

However now when trying to start the copy job, the bacula-sd crashes with
the following log, and attached trace file:

server-sd: askdir.c:290-207676 >dird CatReq JobId=207676 GetVolInfo
VolName=OffsiteCloudFull0000 write=1
server-sd: askdir.c:233-207676 <dird n=31 1000 OK
VolName=OffsiteCloudFull0000 VolJobs=0 VolFiles=0 VolBlocks=0 VolBytes=0
VolABytes=0 VolHoleBytes=0 VolHoles=0 VolMounts=0 VolErrors=0 VolWrites=0
MaxVolBytes=1073741824 VolCapacityBytes=0 VolStatus=Append Slot=0
MaxVolJobs=0 MaxVolFiles=0 InChanger=0 VolReadTime=0 VolWriteTime=0
EndFile=0 EndBlock=0 VolType=0 LabelType=0 MediaId=605 ScratchPoolId=0
VolParts=0 VolCloudParts=0 LastPartBytes=0 Enabled=1 Recycle=1
server-sd: askdir.c:255-207676 do_reqest_vol_info return true slot=0
Volume=OffsiteCloudFull0000 MediaId=605
server-sd: askdir.c:259-207676 Dir returned VolCatAmetaBytes=0
VolCatAdataBytes=0 Status=Append Vol=OffsiteCloudFull0000 MediaId=605
server-sd: mount.c:123-207676 After find_a_volume. Vol=OffsiteCloudFull0000
Slot=0 VolType=0
server-sd: dev.c:506-207676 Notify dcrs of vol change. oldVolume=
NewVolume=OffsiteCloudFull0000
server-sd: dev.c:517-207676 Set NewVol=OffsiteCloudFull0000 in JobId=207676
server-sd: autochanger.c:105-207676 Device "OffsiteCloudStorage"
(/home/backup/offsite_cloud) is not an autochanger
server-sd: mount.c:151-207676 autoload_dev returns 0
server-sd: mount.c:164-207676 (2)Ask=0
server-sd: mount.c:167-207676 Ask=0 autochanger=0
server-sd: mount.c:182-207676 want vol=OffsiteCloudFull0000 devvol=
dev="OffsiteCloudStorage" (/home/backup/offsite_cloud)
server-sd: mount.c:190-207676 Try open Vol=OffsiteCloudFull0000
server-sd: cloud_dev.c:1013-207676 Enter: virtual bool
cloud_dev::open_device(DCR*, int)
server-sd: dev.c:113-207676 Enter: virtual bool DEVICE::open_device(DCR*,
int)
server-sd: signal.c:125-207676 sig=11 Segmentation violation
Bacula interrupted by signal 11: Segmentation violation
Kaboom! bacula-sd, server-sd got signal 11 - Segmentation violation at
16-May-2019 15:44:16. Attempting traceback.
Kaboom! exepath=/opt/bacula/bin/




On Thu, May 16, 2019 at 3:12 PM Mike Benoit <mike.ben...@gmail.com> wrote:

> Currently we have Bacula setup to copy jobs to a separate storage pool
> that is on a remote SSHFS mount, which is working fairly well. However now
> that Bacula (v9.4.2) offers its cloud plugin we would prefer to copy the
> jobs to the cloud instead. When running the copy job we receive the
> following error:
>
> Storage daemon didn't accept Device "OffsiteCloudStorage" command.
>
> Any ideas where I may be going wrong here?
>
> If I try to upload a volume to the cloud through bconsole, it says "Volume
> has been uploaded" immediately, so that isn't working either. Though the
> bconsole cloud command isn't very clear to me, since attempting to do a
> "Upload a volume to the cloud", is it asking for a source or destination
> storage/volumes, and it doesn't seem to ask what cloud device it should
> upload too? Perhaps because we haven't gotten any backups to work to the
> cloud yet, the whole upload part doesn't make sense?
>
> Below are some directives from my config files:
>
> bacula-sd.conf contains:
> -----------------------------------------------------
> Device {
>   Name = OffsiteCloudStorage
>   Device Type = Cloud
>   Cloud = OffsiteCloud
>   Archive Device = /home/backup/offsite_cloud
>   Maximum Part Size = 128MB
>   Maximum File Size = 32G
>   Media Type = CloudType
>   LabelMedia = yes
>   Random Access = yes
>   AutomaticMount = yes
>   RemovableMedia = no
>   AlwaysOpen = no
>   Maximum Concurrent Jobs = 10
> }
>
> Cloud {
>   Name = OffsiteCloud
>   Driver = "S3"
>   HostName = "s3.wasabisys.com"
>   BucketName = "offsitebackup"
>   AccessKey = "<snip>"
>   SecretKey = "<snip>"
>   Protocol = HTTPS
>   UriStyle = VirtualHost
>   Truncate Cache = AfterUpload
>   Upload = EachPart
>   Region = "us-west-1"
> #  MaximumUploadBandwidth = 250Mb/s
> }
>
> bacula-dir.conf contains:
> -----------------------------------------------------
> Storage {
>   Name = OffsiteCloud
>   Address = office.<snip>.com #localhost                # N.B. Use a fully
> qualified name here
>   SDPort = 9103
>   Password = "<snip>"
>   Device = OffsiteCloudStorage
>   Media Type = File
>   Maximum Concurrent Jobs = 25
>   AllowCompression = Yes
> }
>
> Thanks.
>
>

Attachment: bacula.trace
Description: Binary data

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to