Re: [Bacula-users] Job is waiting on Storage

2017-07-21 Thread Ana Emília M . Arruda
Hello Jim,

I am glad to hear that my last email helped you. Thank you very much for
sharing your results with us :-).

I would say it is quite ambitious to have the same autochanger dealing with
different media types, even having specific devices for each medya type. I
hope this do not cause confusion in the future :-).

Regarding the strange behavior you reported due to using together Maximum
Concurrent Jobs, UseVolumeOnce, and Maximum Volume Jobs, please find some
explanation I collected from the Main Manual:

* about UseVolumeOnce:

"This directive will most likely be phased out (deprecated), so you are
recommended to use Maximum Volume Jobs = 1 instead."

* about MaximumVolumeJobs:

"If you are running multiple simultaneous jobs, this directive may not work
correctly because when a
drive is reserved for a job, this directive is not taken into account, so
multiple jobs may try to start
writing to the Volume. At some point, when the Media record is updated,
multiple simultaneous jobs
may fail since the Volume can no longer be written."

I was able to see this behavior a few times. It happens very often if too
many concurrent jobs are run.

The first thing a job does is to reserve a volume. Suppose you have a
single Storage resource (a disk device, for example), allowed to run 5
concurrent jobs.
Also, that MaximumVolumeJobs is set to 4, for example.
The 5 jobs started simultaneously will reserve the same device/volume, but
the 4th job will mark the volume as "Used" and the 5th job will hang
because it will not go for another volume.

Thus it is strongly recommended, if using concurrent jobs per device to not
set a value for "MaximumVolumeJobs" greater than 1.

Hope this helps, again.

Best,
Ana

On Tue, Jul 18, 2017 at 1:26 PM, Jim Richardson  wrote:

> Ana,
>
>
>
> Thank you very much for your response.  I understand what you are saying
> and have adjusted my configuration.  I have tested the jobs and I am now
> seem to get the behavior I am looking for.  Just a couple of notes.
>
>
>
> It seems Bacula has unpredictable behavior when using Disk based
> autochangers, a single file device, and a combination of a Maximum
> Concurrent Jobs, UseVolumeOnce, and Maximum Volume Jobs.  This behavior
> manifests itself in two ways.  One is the Waiting on Storage the other is
> that jobs that start at the same time get confused and begin to use volumes
> for other jobs the job then complains bacula-dir JobId 994: Error:
> sql_create.c:387 Volume " D-994-D2D-HRMS-App.2017-07-17_19.00.00_02.bak "
> already exists.
>
>
>
> From my changes/testing, thanks to your guidance, the solution to both
> seems to have the same number of file based devices as you want to have
> jobs running concurrently.  This seems to avoid the “Waiting on Storage”
> message and allows for expected concurrency without all the unpredictable
> behavior.
>
>
>
> I will continue to monitor the behavior over the next weekly cycle and let
> you know if the configuration proves to produce the expected results.
>
>
>
> # /etc/bacula/bacula-sd.conf
>
> Autochanger {
>
>   Name = FileChgr
>
>   Device = DailyDevice1, DailyDevice2, DailyDevice3, WeeklyDevice1,
> WeeklyDevice2, WeeklyDevice3, MonthlyDevice1, MonthlyDevice2, MonthlyDevice3
>
>   Changer Command = ""
>
>   Changer Device = /dev/null
>
> }
>
>
>
> Device {
>
>   Name = DailyDevice1
>
>   Media Type = DailyDisk
>
>   Archive Device = /backup/bacula/daily
>
>   Autochanger = yes;
>
>   LabelMedia = yes;   # lets Bacula label unlabeled media
>
>   Random Access = Yes;
>
>   AutomaticMount = yes;   # when device opened, read it
>
>   RemovableMedia = no;
>
>   AlwaysOpen = no;
>
>   Maximum Concurrent Jobs = 1
>
> }
>
>
>
> Device {
>
>   Name = DailyDevice2
>
>   Media Type = DailyDisk
>
>   Archive Device = /backup/bacula/daily
>
>   Autochanger = yes;
>
>   LabelMedia = yes;   # lets Bacula label unlabeled media
>
>   Random Access = Yes;
>
>   AutomaticMount = yes;   # when device opened, read it
>
>   RemovableMedia = no;
>
>   AlwaysOpen = no;
>
>   Maximum Concurrent Jobs = 1
>
> }
>
>
>
> Device {
>
>   Name = DailyDevice3
>
>   Media Type = DailyDisk
>
>   Archive Device = /backup/bacula/daily
>
>   Autochanger = yes;
>
>   LabelMedia = yes;   # lets Bacula label unlabeled media
>
>   Random Access = Yes;
>
>   AutomaticMount = yes;   # when device opened, read it
>
>   RemovableMedia = no;
>
>   AlwaysOpen = no;
>
>   Maximum Concurrent Jobs = 1
>
> }
>
>
>
> Device {
>
>   Name = MonthlyDevice1
>
>   Media Type = MonthlyDisk
>
>   Archive Device = /backup/bacula/monthly
>
>   Autochanger = yes;
>
>   LabelMedia = yes;   # lets Bacula label unlabeled media
>
>   Random Access = Yes;
>
>   AutomaticMount = yes;   # when device opened, read it
>
>   RemovableMedia = no;
>
>   AlwaysOpen = no;
>
>   Maximum Concurrent Jobs = 1
>
> }
>
>
>
> Device {
>
>   

[Bacula-users] Bacula kills tape drive and autoloader

2017-07-21 Thread Hicks, Daniel CTR OSD DMEA
Hello all

I have been working on adding a HP Overland 8 tape drive to my Bacula backup 
system.

I have the system recognizing the tape and autoloader.

I can run mt and mtx command. I can write to and read from the tapes. I was 
able to successfully run btape test and autochanger but when I ran the (fill) 
test the device would be removed from /dev and the test would fail. I then need 
to power cycle the device.

I have looked at dmesg and there is nothing reported about btape or the 
devices. I have rebooted the server. I have reset the device to factory 
default. I have also powered the device off for at least 15 minutes.

Any advice would be great.

Daniel Hicks
Senior Systems Analyst
FutureWorld Technologies Inc.
DMEA IT Support

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] Bacula manual is too outdated

2017-07-21 Thread Kern Sibbald

  
  
Hello Wanderlei,


On 07/21/2017 07:23 PM, Wanderlei
  Huttel wrote:


  
Hello Kern,


Thanks for answer. 
Bacula Enterprise manual is better documented than Bacula
  Community or is the same? 

  

It is better and it is prettier.

  
I don't know if there are some information in the manual of
  Bacula Enterprise that could not be shared with community,
  because the license doesn't allow or another thing, etc, , bit
  if there's no problem and Bacula Enterprise are well
  documented,  can you would release this manual for the
  community too?
  

No, we are not going to release the manual to the community for a
number of reasons: 1. There are features described in the manual
that are not available in the community.  2. They are not
particularly interested in having competitors see it, because there
is a fairly substantial amount of money that goes into keeping it up
to date and improving it with new graphics and information.  3. It
looks nicer than the community manual.  4. The Bacula Enterprise
users already complain that the manuals are very similar.



  


If in the future there's some project for translate the
  manual  for the portuguese brazilian, and I have time, I can
  help you.
  

That would be very welcome.  There are quite a number of requests to
have the Bacula messages within the program translated into various
languages.  I would start with that since it is a much smaller
project and also important for non-English speakers.

Best regards,
Kern

  



  

  

  

  
Best Regards


Wanderlei Hüttel

http://www.huttel.com.br
  

  

  

  
  
  2017-07-21 14:00 GMT-03:00 Kern
Sibbald :

  
Hello Wanderlei,
Unfortunately, the community has rarely contributed
  to the manual, though they have feed in lots of
  information that I have put in the manual.  Perhaps 1
  of every 20 submissions comes with documentation.  So
  it all falls on my back.  There is one exception to
  that, and it is the Enterprise manual, which is
  improving.  I have a project going with Bacula Systems
  to ensure that there is only one manual source rather
  than the two that currently exist.  Consequently there
  is a chance that within the next 6 months to a year
  that the manual will improve.
Developers including me detest writing
  documentation.  I write it because otherwise I spend
  too much time on support.  Even with a perfect manual,
  I spend too much time on support, because a lot of
  people do not read it.  Those are just facts of nature
  that we must live with unless a fairy goddess comes
  along and sprinkles some mother tongue technical
  person with fairy dust that causes him/her to get
  interested in the manual.
Best regards,
Kern


   
On
  07/21/2017 06:38 PM, Wanderlei Huttel wrote:

  


  

  
Hello Kern
  
  Always when is necessary to take a look
in the manual is painful, because there are
a lot of new features and improvements that
not well documented and many times when we
doesn't achieve what we want, we give up.
  
  
  How could the bacula community could help
to keep manual up to date? In the last
releases it looks only "new features" was
updated.
There are many settings it would be
interesting to have more examples to be
clearly.
  
  

Re: [Bacula-users] [Bacula-devel] Bacula manual is too outdated

2017-07-21 Thread Wanderlei Huttel
Hello Kern,

Thanks for answer.
Bacula Enterprise manual is better documented than Bacula Community or is
the same?
I don't know if there are some information in the manual of Bacula
Enterprise that could not be shared with community, because the license
doesn't allow or another thing, etc, , bit if there's no problem and Bacula
Enterprise are well documented,  can you would release this manual for the
community too?

If in the future there's some project for translate the manual  for the
portuguese brazilian, and I have time, I can help you.


Best Regards

*Wanderlei Hüttel*
http://www.huttel.com.br

2017-07-21 14:00 GMT-03:00 Kern Sibbald :

> Hello Wanderlei,
>
> Unfortunately, the community has rarely contributed to the manual, though
> they have feed in lots of information that I have put in the manual.
> Perhaps 1 of every 20 submissions comes with documentation.  So it all
> falls on my back.  There is one exception to that, and it is the Enterprise
> manual, which is improving.  I have a project going with Bacula Systems to
> ensure that there is only one manual source rather than the two that
> currently exist.  Consequently there is a chance that within the next 6
> months to a year that the manual will improve.
>
> Developers including me detest writing documentation.  I write it because
> otherwise I spend too much time on support.  Even with a perfect manual, I
> spend too much time on support, because a lot of people do not read it.
> Those are just facts of nature that we must live with unless a fairy
> goddess comes along and sprinkles some mother tongue technical person with
> fairy dust that causes him/her to get interested in the manual.
>
> Best regards,
>
> Kern
>
> On 07/21/2017 06:38 PM, Wanderlei Huttel wrote:
>
> Hello Kern
>
> Always when is necessary to take a look in the manual is painful, because
> there are a lot of new features and improvements that not well documented
> and many times when we doesn't achieve what we want, we give up.
>
> How could the bacula community could help to keep manual up to date? In
> the last releases it looks only "new features" was updated.
> There are many settings it would be interesting to have more examples to
> be clearly.
>
>
> Best Regards
>
> *Wanderlei Hüttel*
> http://www.huttel.com.br
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> ___
> Bacula-devel mailing 
> listBacula-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/bacula-devel
>
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] Bacula manual is too outdated

2017-07-21 Thread Kern Sibbald

  
  
Hello Wanderlei,
Unfortunately, the community has rarely contributed to the
  manual, though they have feed in lots of information that I have
  put in the manual.  Perhaps 1 of every 20 submissions comes with
  documentation.  So it all falls on my back.  There is one
  exception to that, and it is the Enterprise manual, which is
  improving.  I have a project going with Bacula Systems to ensure
  that there is only one manual source rather than the two that
  currently exist.  Consequently there is a chance that within the
  next 6 months to a year that the manual will improve.
Developers including me detest writing documentation.  I write it
  because otherwise I spend too much time on support.  Even with a
  perfect manual, I spend too much time on support, because a lot of
  people do not read it.  Those are just facts of nature that we
  must live with unless a fairy goddess comes along and sprinkles
  some mother tongue technical person with fairy dust that causes
  him/her to get interested in the manual.
Best regards,
Kern


On 07/21/2017 06:38 PM, Wanderlei
  Huttel wrote:


  
Hello Kern
  
  Always when is necessary to take a look in the manual is
painful, because there are a lot of new features and
improvements that not well documented and many times when we
doesn't achieve what we want, we give up.
  
  
  How could the bacula community could help to keep manual
up to date? In the last releases it looks only "new
features" was updated.
There are many settings it would be interesting to have more
examples to be clearly.
  
  




  

  

  

  Best Regards
  
  
  Wanderlei Hüttel
  
  http://www.huttel.com.br

  

  

  

  
  
  
  
  --
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
  
  
  
  ___
Bacula-devel mailing list
bacula-de...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel



  


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Connection error

2017-07-21 Thread Wanderlei Huttel
It looks you server  mufasa.homecomfort.at is not accepting incoming
packages from port 9103, you can try the command below to test:
telnet  mufasa.homecomfort.at 9103

Should be return something like this:

Trying mufasa.homecomfort.at...
Connected to mufasa.homecomfort.at.
Escape character is '^]'.
^CConnection closed by foreign host.


Best Regards

*Wanderlei Hüttel*
http://www.huttel.com.br

2017-07-21 13:37 GMT-03:00 Jose Alberto :

> I view:
>
> SD termination status:  Waiting on FD
>
> Your client Bacula-FD   test ping or connect with DNS  a
> mufasa.homecomfort.at 
>
>
> in bacula-fd   test pingmufasa.homecomfort.at
> 
>
>
> add  mufasa.homecomfort.at  on hosts
> file of your client.
>
>
>
>
>
> On Fri, Jul 21, 2017 at 6:40 AM, Andreas Theofilu / Sikom - Essra GmbH <
> andreas.theof...@sikom-essra.at> wrote:
>
>> Hi,
>>
>> I've here a Bacula server running on  Ubuntu server 17.04. This server
>> backup several other machines on the network, where some of them are
>> Windows machines. This worked well until a few days ago one of the Windows
>> machines have permanent connection errors to the director. I get the
>> following error (Look at the red marked line!):
>>
>> 20-Jul 23:05 mufasa-dir JobId 625: Start Backup JobId 625,
>> Job=lion.2017-07-20_23.05.00_28
>> 20-Jul 23:05 mufasa-dir JobId 625: Using Device "FileStorageLion" to
>> write.
>> 20-Jul 23:05 lion-fd JobId 625: Warning: lib/bsock.c:223 Could not
>> connect to Storage daemon on mufasa.homecomfort.at:9103. ERR=Der Vorgang
>> wurde erfolgreich beendet.
>>
>> Retrying ...
>> 20-Jul 23:21 lion-fd JobId 625: Warning: lib/bsock.c:223 Could not
>> connect to Storage daemon on mufasa.homecomfort.at:9103. ERR=Der Vorgang
>> wurde erfolgreich beendet.
>>
>> Retrying ...
>> 20-Jul 23:35 lion-fd JobId 625: Fatal error: lib/bsock.c:229 Unable to
>> connect to Storage daemon on mufasa.homecomfort.at:9103. ERR=Der Vorgang
>> wurde erfolgreich beendet.
>>
>> 20-Jul 23:35 lion-fd JobId 625: Fatal error: filed/job.c:2140 Failed to
>> connect to Storage daemon: mufasa.homecomfort.at:9103
>> 20-Jul 23:35 mufasa-dir JobId 625: Fatal error: Bad response to Storage
>> command: wanted 2000 OK storage
>> , got 2902 Bad storage
>>
>> 20-Jul 23:35 mufasa-dir JobId 625: Error: Bacula mufasa-dir 7.4.4
>> (202Sep16):
>>   Build OS:   x86_64-pc-linux-gnu ubuntu 17.04
>>   JobId:  625
>>   Job:lion.2017-07-20_23.05.00_28
>>   Backup Level:   Incremental, since=2017-07-09 23:05:02
>>   Client: "lion-fd" 7.4.4 (28Sep16) Microsoft Standard
>> Edition (build 9200), 64-bit,Cross-compile,Win64
>>   FileSet:"Lion Full Set" 2017-05-27 23:05:00
>>   Pool:   "Lion" (From Job resource)
>>   Catalog:"MyCatalog" (From Client resource)
>>   Storage:"FileLion" (From Job resource)
>>   Scheduled time: 20-Jul-2017 23:05:00
>>   Start time: 20-Jul-2017 23:05:02
>>   End time:   20-Jul-2017 23:35:03
>>   Elapsed time:   30 mins 1 sec
>>   Priority:   10
>>   FD Files Written:   0
>>   SD Files Written:   0
>>   FD Bytes Written:   0 (0 B)
>>   SD Bytes Written:   0 (0 B)
>>   Rate:   0.0 KB/s
>>   Software Compression:   None
>>   Snapshot/VSS:   yes
>>   Encryption: no
>>   Accurate:   no
>>   Volume name(s):
>>   Volume Session Id:  213
>>   Volume Session Time:1498489748
>>   Last Volume Bytes:  28,140,438,693 (28.14 GB)
>>   Non-fatal FD errors:2
>>   SD Errors:  0
>>   FD termination status:  Error
>>   SD termination status:  Waiting on FD
>>   Termination:*** Backup Error ***
>>
>> The machines can see each other. On the Windows machine the firewall is
>> currently disabled, and on the Linux machine I'm sure the ports are open,
>> because all other machines have no problems. Beside that it seems, that the
>> Windows machine starts the backup and is working for a while.
>>
>> What could be the problem? What can I try?
>>
>> A.T.
>>
>>
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>>
>
>
> --
> #
> #   Sistema Operativo: Debian  #
> #Caracas, Venezuela  #
> #
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! 

[Bacula-users] Bacula manual is too outdated

2017-07-21 Thread Wanderlei Huttel
Hello Kern

Always when is necessary to take a look in the manual is painful, because
there are a lot of new features and improvements that not well documented
and many times when we doesn't achieve what we want, we give up.

How could the bacula community could help to keep manual up to date? In the
last releases it looks only "new features" was updated.
There are many settings it would be interesting to have more examples to be
clearly.


Best Regards

*Wanderlei Hüttel*
http://www.huttel.com.br
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Connection error

2017-07-21 Thread Jose Alberto
I view:

SD termination status:  Waiting on FD

Your client Bacula-FD   test ping or connect with DNS  a
mufasa.homecomfort.at 


in bacula-fd   test pingmufasa.homecomfort.at



add  mufasa.homecomfort.at  on hosts
file of your client.





On Fri, Jul 21, 2017 at 6:40 AM, Andreas Theofilu / Sikom - Essra GmbH <
andreas.theof...@sikom-essra.at> wrote:

> Hi,
>
> I've here a Bacula server running on  Ubuntu server 17.04. This server
> backup several other machines on the network, where some of them are
> Windows machines. This worked well until a few days ago one of the Windows
> machines have permanent connection errors to the director. I get the
> following error (Look at the red marked line!):
>
> 20-Jul 23:05 mufasa-dir JobId 625: Start Backup JobId 625,
> Job=lion.2017-07-20_23.05.00_28
> 20-Jul 23:05 mufasa-dir JobId 625: Using Device "FileStorageLion" to write.
> 20-Jul 23:05 lion-fd JobId 625: Warning: lib/bsock.c:223 Could not connect
> to Storage daemon on mufasa.homecomfort.at:9103. ERR=Der Vorgang wurde
> erfolgreich beendet.
>
> Retrying ...
> 20-Jul 23:21 lion-fd JobId 625: Warning: lib/bsock.c:223 Could not connect
> to Storage daemon on mufasa.homecomfort.at:9103. ERR=Der Vorgang wurde
> erfolgreich beendet.
>
> Retrying ...
> 20-Jul 23:35 lion-fd JobId 625: Fatal error: lib/bsock.c:229 Unable to
> connect to Storage daemon on mufasa.homecomfort.at:9103. ERR=Der Vorgang
> wurde erfolgreich beendet.
>
> 20-Jul 23:35 lion-fd JobId 625: Fatal error: filed/job.c:2140 Failed to
> connect to Storage daemon: mufasa.homecomfort.at:9103
> 20-Jul 23:35 mufasa-dir JobId 625: Fatal error: Bad response to Storage
> command: wanted 2000 OK storage
> , got 2902 Bad storage
>
> 20-Jul 23:35 mufasa-dir JobId 625: Error: Bacula mufasa-dir 7.4.4
> (202Sep16):
>   Build OS:   x86_64-pc-linux-gnu ubuntu 17.04
>   JobId:  625
>   Job:lion.2017-07-20_23.05.00_28
>   Backup Level:   Incremental, since=2017-07-09 23:05:02
>   Client: "lion-fd" 7.4.4 (28Sep16) Microsoft Standard
> Edition (build 9200), 64-bit,Cross-compile,Win64
>   FileSet:"Lion Full Set" 2017-05-27 23:05:00
>   Pool:   "Lion" (From Job resource)
>   Catalog:"MyCatalog" (From Client resource)
>   Storage:"FileLion" (From Job resource)
>   Scheduled time: 20-Jul-2017 23:05:00
>   Start time: 20-Jul-2017 23:05:02
>   End time:   20-Jul-2017 23:35:03
>   Elapsed time:   30 mins 1 sec
>   Priority:   10
>   FD Files Written:   0
>   SD Files Written:   0
>   FD Bytes Written:   0 (0 B)
>   SD Bytes Written:   0 (0 B)
>   Rate:   0.0 KB/s
>   Software Compression:   None
>   Snapshot/VSS:   yes
>   Encryption: no
>   Accurate:   no
>   Volume name(s):
>   Volume Session Id:  213
>   Volume Session Time:1498489748
>   Last Volume Bytes:  28,140,438,693 (28.14 GB)
>   Non-fatal FD errors:2
>   SD Errors:  0
>   FD termination status:  Error
>   SD termination status:  Waiting on FD
>   Termination:*** Backup Error ***
>
> The machines can see each other. On the Windows machine the firewall is
> currently disabled, and on the Linux machine I'm sure the ports are open,
> because all other machines have no problems. Beside that it seems, that the
> Windows machine starts the backup and is working for a while.
>
> What could be the problem? What can I try?
>
> A.T.
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>


-- 
#
#   Sistema Operativo: Debian  #
#Caracas, Venezuela  #
#
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] How to scheduling the last day of a month?

2017-07-21 Thread Wanderlei Huttel
Reading the manual, there is an option to run schedules in the last day,
but I've tried and didn't work.
Run = Level=FullPool=Diaria on July lastday at 21:30
Scheduling the Last Day of a Month
This version of Bacula now permits specifying the lastday keyword in the
run directive of a Schedule resource. If lastday is specified, it will
apply only to those months specified on the run directive. Note: by default
all months are specified.
Best Regards

*Wanderlei Hüttel*
http://www.huttel.com.br
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Connection error

2017-07-21 Thread Kern Sibbald

  
  
Hello,
The problem is not with the line marked in red.  The problem is
  clearly shown on the first "warning" message from the FD (3rd line
  of output).
You can turn on a debug level of say 500 in the storage daemon
  and run it in the foreground, then capture the output.  If you do
  not see the FD attempting to connect, then you have a problem of
  connectivity in your network (e.g. a firewall, bad switch, Windows
  ...).
stop the SD
then run it:
cd 
./bacula-sd -d200 -sf

Then run the job for lion-fd, and see if it can reach the SD.  If
so, you should see why the SD is rejecting it.  If not, you need to
fix your network.

Best regards,
Kern

On 07/21/2017 12:40 PM, Andreas
  Theofilu / Sikom - Essra GmbH wrote:


  
  Hi,
  
  
  I've here a Bacula server running on  Ubuntu server 17.04.
This server backup several other machines on the network, where
some of them are Windows machines. This worked well until a few
days ago one of the Windows machines have permanent connection
errors to the director. I get the following error (Look at the
red marked line!):
  
  
  20-Jul 23:05 mufasa-dir
  JobId 625: Start Backup JobId 625,
  Job=lion.2017-07-20_23.05.00_28
20-Jul 23:05 mufasa-dir
  JobId 625: Using Device "FileStorageLion" to write.
20-Jul 23:05 lion-fd JobId
  625: Warning: lib/bsock.c:223 Could not connect to Storage
  daemon on mufasa.homecomfort.at:9103. ERR=Der Vorgang wurde
  erfolgreich beendet.

Retrying ...
20-Jul 23:21 lion-fd JobId
  625: Warning: lib/bsock.c:223 Could not connect to Storage
  daemon on mufasa.homecomfort.at:9103. ERR=Der Vorgang wurde
  erfolgreich beendet.

Retrying ...
20-Jul 23:35 lion-fd JobId
  625: Fatal error: lib/bsock.c:229 Unable to connect to Storage
  daemon on mufasa.homecomfort.at:9103. ERR=Der Vorgang wurde
  erfolgreich beendet.

20-Jul 23:35 lion-fd JobId
  625: Fatal error: filed/job.c:2140 Failed to connect to
  Storage daemon: mufasa.homecomfort.at:9103
20-Jul
23:35 mufasa-dir JobId 625: Fatal error: Bad response to
Storage command: wanted 2000 OK storage
  , got 2902 Bad storage

20-Jul 23:35 mufasa-dir
  JobId 625: Error: Bacula mufasa-dir 7.4.4 (202Sep16):
  Build OS:  
  x86_64-pc-linux-gnu ubuntu 17.04
  JobId: 
  625
  Job:   
  lion.2017-07-20_23.05.00_28
  Backup Level:  
  Incremental, since=2017-07-09 23:05:02
  Client:
  "lion-fd" 7.4.4 (28Sep16) Microsoft Standard Edition (build
  9200), 64-bit,Cross-compile,Win64
  FileSet:   
  "Lion Full Set" 2017-05-27 23:05:00
  Pool:  
  "Lion" (From Job resource)
  Catalog:   
  "MyCatalog" (From Client resource)
  Storage:   
  "FileLion" (From Job resource)
  Scheduled time:
  20-Jul-2017 23:05:00
  Start time:
  20-Jul-2017 23:05:02
  End time:  
  20-Jul-2017 23:35:03
  Elapsed time:  
  30 mins 1 sec
  Priority:  
  10
  FD Files Written:  
  0
  SD Files Written:  
  0
  FD Bytes Written:  
  0 (0 B)
  SD Bytes Written:  
  0 (0 B)
  Rate:  
  0.0 KB/s
  Software Compression:  
  None
  Snapshot/VSS:  
  yes
  Encryption:
  no
  Accurate:  
  no
  Volume name(s): 
  Volume Session Id: 
  213
  Volume Session Time:   
  1498489748
  Last Volume Bytes: 
  28,140,438,693 (28.14 GB)
  Non-fatal FD errors:   
  2
  SD Errors: 
  0
  FD termination status: 
  Error
  SD termination status: 
  Waiting on FD
  Termination:   
  *** Backup Error ***
  
  
  The machines can see each other. On the Windows machine the
firewall is currently disabled, and on the Linux machine I'm
sure the ports are open, because all other machines have no
problems. Beside that it seems, that the Windows machine starts
the backup and is working for a while.
  
  
  What could be the problem? What can I try?
  
  
  A.T.
  
  
  
  
  
  

[Bacula-users] Connection error

2017-07-21 Thread Andreas Theofilu / Sikom - Essra GmbH
Hi,

I've here a Bacula server running on  Ubuntu server 17.04. This server backup 
several other machines on the network, where some of them are Windows machines. 
This worked well until a few days ago one of the Windows machines have 
permanent connection errors to the director. I get the following error (Look at 
the red marked line!):

20-Jul 23:05 mufasa-dir JobId 625: Start Backup JobId 625, 
Job=lion.2017-07-20_23.05.00_28
20-Jul 23:05 mufasa-dir JobId 625: Using Device "FileStorageLion" to write.
20-Jul 23:05 lion-fd JobId 625: Warning: lib/bsock.c:223 Could not connect to 
Storage daemon on mufasa.homecomfort.at:9103. ERR=Der Vorgang wurde erfolgreich 
beendet.

Retrying ...
20-Jul 23:21 lion-fd JobId 625: Warning: lib/bsock.c:223 Could not connect to 
Storage daemon on mufasa.homecomfort.at:9103. ERR=Der Vorgang wurde erfolgreich 
beendet.

Retrying ...
20-Jul 23:35 lion-fd JobId 625: Fatal error: lib/bsock.c:229 Unable to connect 
to Storage daemon on mufasa.homecomfort.at:9103. ERR=Der Vorgang wurde 
erfolgreich beendet.

20-Jul 23:35 lion-fd JobId 625: Fatal error: filed/job.c:2140 Failed to connect 
to Storage daemon: mufasa.homecomfort.at:9103
20-Jul 23:35 mufasa-dir JobId 625: Fatal error: Bad response to Storage 
command: wanted 2000 OK storage
, got 2902 Bad storage

20-Jul 23:35 mufasa-dir JobId 625: Error: Bacula mufasa-dir 7.4.4 (202Sep16):
  Build OS:   x86_64-pc-linux-gnu ubuntu 17.04
  JobId:  625
  Job:lion.2017-07-20_23.05.00_28
  Backup Level:   Incremental, since=2017-07-09 23:05:02
  Client: "lion-fd" 7.4.4 (28Sep16) Microsoft Standard Edition 
(build 9200), 64-bit,Cross-compile,Win64
  FileSet:"Lion Full Set" 2017-05-27 23:05:00
  Pool:   "Lion" (From Job resource)
  Catalog:"MyCatalog" (From Client resource)
  Storage:"FileLion" (From Job resource)
  Scheduled time: 20-Jul-2017 23:05:00
  Start time: 20-Jul-2017 23:05:02
  End time:   20-Jul-2017 23:35:03
  Elapsed time:   30 mins 1 sec
  Priority:   10
  FD Files Written:   0
  SD Files Written:   0
  FD Bytes Written:   0 (0 B)
  SD Bytes Written:   0 (0 B)
  Rate:   0.0 KB/s
  Software Compression:   None
  Snapshot/VSS:   yes
  Encryption: no
  Accurate:   no
  Volume name(s):
  Volume Session Id:  213
  Volume Session Time:1498489748
  Last Volume Bytes:  28,140,438,693 (28.14 GB)
  Non-fatal FD errors:2
  SD Errors:  0
  FD termination status:  Error
  SD termination status:  Waiting on FD
  Termination:*** Backup Error ***

The machines can see each other. On the Windows machine the firewall is 
currently disabled, and on the Linux machine I'm sure the ports are open, 
because all other machines have no problems. Beside that it seems, that the 
Windows machine starts the backup and is working for a while.

What could be the problem? What can I try?

A.T.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum and LDAP authentication

2017-07-21 Thread Marcin Haba
Hello Daniel,

I think that it isn't possible to use LDAP authentication with the Baculum 7.4.

The Baculum 7.4 uses auth user file (baculum.users) to store users and
this file is used both by web server and the Baculum itself.

In the Baculum version 9.0 there are two baculum.users files: one for
the web GUI and one for the API part. Also the meaning of the
baculum.users file is changed in 9.0 because it is used only by web
server, and the Baculum GUI and Baculum API only enable to save users
to these files.

I think that more possible it could be use LDAP authentication with
the Baculum 9.0 (for Web GUI or API or both) but the important note is
that in 9.0 the restricted consoles support is a bit changed.
Restricted consoles are possible to define for OAuth2 per API client,
but for Basic authentication the restricted consoles are unavailable.

If you don't use restricted consoles then you can try with 9.0
version. Next week should be available binary packages for this
version.

Best regards.
Marcin Haba (gani)

On 21 July 2017 at 09:32, Daniel Heitepriem
 wrote:
> Hi everyone,
>
> I'm trying to get Baculum to work with LDAP authentication. The basic
> authentication when accessing the wizard of a fresh install is working fine
> but after completing the wizard I'm stuck as I get the error "Error 6 -
> authorization to Baculum error." and no error in Apache error log nor in
> baculum.dbg Below is my Apache Auth-config for Baculum and the content of
> baculum.dbg.
>
> Apache config:
> 
> Order allow,deny
> Allow from all
> Options +FollowSymLinks
> RewriteEngine On
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule ^(.*)$ index.php/$1 [L]
> AuthName "Baculum Auth"
> AuthBasicProvider ldap
> AuthType Basic
> AuthLDAPURL
> "ldap://IP:389/ou=staff,ou=people,dc=example,dc=com?uid;
> AuthLDAPBindDN "cn=baculum,ou=LDAPauth,dc=example,dc=com"
> AuthLDAPBindPassword "SecretPassword"
> Require valid-user
> LDAPReferrals Off
> 
>
> baculum.dbg:
> Jul 21 07:31:52 [Debug] [Application] Command=setUrlParams, Output=
>
> EXECUTE URL ==> http://10.1.10.243:9095/directors?director= <==
>
> , File=/opt/baculum/protected/Class/API.php, Line=138 (line 89,
> /opt/baculum/protected/Class/Logging.php)
> Jul 21 07:31:53 [Debug] [Application] Command=preParseOutput,
> Output={"output":"Problem with authorization to Baculum WebGUI.","error":6},
> File=/opt/baculum/protected/Class/API.php, Line=256 (line 89,
> /opt/baculum/protected/Class/Logging.php)
> Jul 21 07:31:53 [Debug] [Application] Command=preParseOutput,
> Output=stdClass Object
> (
> [output] => Problem with authorization to Baculum WebGUI.
> [error] => 6
> )
> , File=/opt/baculum/protected/Class/API.php, Line=277 (line 89,
> /opt/baculum/protected/Class/Logging.php)
>
> Thanks in advance and regards,
> Daniel
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Baculum and LDAP authentication

2017-07-21 Thread Daniel Heitepriem

Hi everyone,

I'm trying to get Baculum to work with LDAP authentication. The basic 
authentication when accessing the wizard of a fresh install is working 
fine but after completing the wizard I'm stuck as I get the error "Error 
6 - authorization to Baculum error." and no error in Apache error log 
nor in baculum.dbg Below is my Apache Auth-config for Baculum and the 
content of baculum.dbg.


Apache config:

Order allow,deny
Allow from all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [L]
AuthName "Baculum Auth"
AuthBasicProvider ldap
AuthType Basic
AuthLDAPURL 
"ldap://IP:389/ou=staff,ou=people,dc=example,dc=com?uid;

AuthLDAPBindDN "cn=baculum,ou=LDAPauth,dc=example,dc=com"
AuthLDAPBindPassword "SecretPassword"
Require valid-user
LDAPReferrals Off


baculum.dbg:
Jul 21 07:31:52 [Debug] [Application] Command=setUrlParams, Output=

EXECUTE URL ==> http://10.1.10.243:9095/directors?director= <==

, File=/opt/baculum/protected/Class/API.php, Line=138 (line 89, 
/opt/baculum/protected/Class/Logging.php)
Jul 21 07:31:53 [Debug] [Application] Command=preParseOutput, 
Output={"output":"Problem with authorization to Baculum 
WebGUI.","error":6}, File=/opt/baculum/protected/Class/API.php, Line=256 
(line 89, /opt/baculum/protected/Class/Logging.php)
Jul 21 07:31:53 [Debug] [Application] Command=preParseOutput, 
Output=stdClass Object

(
[output] => Problem with authorization to Baculum WebGUI.
[error] => 6
)
, File=/opt/baculum/protected/Class/API.php, Line=277 (line 89, 
/opt/baculum/protected/Class/Logging.php)


Thanks in advance and regards,
Daniel

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Btape Test - Append Files Test

2017-07-21 Thread Kern Sibbald

  
  
Hello Aaron,l


On 07/21/2017 01:21 AM, Aaron
  Greenblatt wrote:


  

  

  
Hi Everyone,
  

Thanks for your help!

  
  I looked around in HP's Library and Tape Tools software
  and couldn't find anything similar to a "Read Past
  Filemark" setting - the settings were limited to disabling
  the eject button and something else that didn't look very
  useful. I'm sure that HP has a this setting buried
  somewhere, but I'd expect that one has to call HP support
  to enable it.
  

Meanwhile, I installed Bacula 7.4.7 and the test passes in
that version. I think the answer for now is to use version
7.4.7 to get my backup server running.
  

  


If Bacula 7.4.7 works, I suggest that you stick with it until I can
test btape on 9.0.0.  


  

  
  
  Is there any sort of information that would be useful for you
  from versions 9.0.0 or 9.0.1 (both gave me the same problem)?

  

Yes, I would appreciate it if you would open a ticket on this.  You
can simply copy the contents of your emails into it -- the first
email and this email.

Best regards,
Kern


  


Thanks,

Aaron

  
  
On Thu, Jul 20, 2017 at 11:48 AM, Kern
  Sibbald 
  wrote:
  

  Hello Jim,
  Very interesting!  Thanks for telling us.
  Best regards,
  Kern
  
  
 
  On
07/20/2017 08:30 PM, Jim Richardson wrote:
  
  

  Be sure to factory default
your tape drive.  I had the exact issue with my
LTO7.  The drive was used in a non-linux
environment before.  My steps to factory reset
are a pain, but they got me working.  Yours may
be different.  Manufacturer dependent.
   
  #
Steps
  1.
Install non-RAID HBA
  2.
install lin_tape & lin_taped
  3.
install ITDT
  4.
run full set of tests in ITDT
  5.
factory default settings - Specifically the
"Read Past Filemark" setting MUST BE no
  

  http://www-01.ibm.com/support/docview.wss?uid=ssg1S7002972&aid=1
  6.
remove lin_tape & lin_taped
  7.
rmmod st
  8.
modprob st
  9.
power cycle library
  10.
Bacula configuration
  11.
btape test
   
  #
tapeinfo -f /dev/nst0
  Product
Type: Tape Drive
  Vendor
ID: 'IBM '
  Product
ID: 'ULT3580-HH7 '
  Revision:
'G9Q1'
  Attached
Changer API: No
  SerialNumber:
'1097000515'
  MinBlock:
1
  MaxBlock:
8388608
  SCSI
ID: 1
  SCSI
LUN: 0
  Ready:
yes
  BufferedMode:
yes
  Medium
Type: 0x78
  Density
Code: 0x5c
  BlockSize:
0
  DataCompEnabled:
yes
  DataCompCapable:
yes
  DataDeCompEnabled:
yes
  CompType:
0xff
  DeCompType:
0xff
  BOP:
yes
  Block
   

Re: [Bacula-users] unable to upgrade bacula database from 14 to 15

2017-07-21 Thread Daniel Heitepriem

Hi,

what is your database name of your catalog database? If you open 
"update_mysql_tables" with an editor you can see that there is a line called


"db_name=bacula"

which is used further down to access the database. If your catalog has 
another name you have to adjust it in the script.


Regards,
Daniel

Am 20.07.17 um 23:15 schrieb Thing:
root@vuwunicobculat1:/etc/bacula# 
/usr/share/bacula-director/update_mysql_tables -u root -p


This script will update a Bacula MySQL database from version 12-14 to 15

Depending on the current version of your catalog,
you may have to run this script multiple times.

Enter password:
ERROR 1049 (42000): Unknown database 'XXX_DBNAME_XXX'

Unable to detect database version, you can specify connection information
on the command line.
Error. Cannot upgrade this database.
root@vuwunicobculat1:/etc/bacula#



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [9.0.0] Disabled Jobs don't show in log, "run"-Command nor in Job table

2017-07-21 Thread Uwe Schuerkamp
On Thu, Jul 20, 2017 at 05:39:56PM +0200, Kern Sibbald wrote:
> This is a feature that was requested by users.
> 
> Jobs that are disabled are no longer listed in the list of jobs available to
> be run.  If you manually run a disabled job, it will still run.
> 
> Best regards,
> 
> Kern
> 
> 

Thanks for the clarification, Kern.

All the best, Uwe

--
Uwe Schürkamp | email: 
Senior Service Manager | Phone: [+49] 5241 - 80 82 423
Arvato Systems S4M GmbH | Sitz Köln | Amtsgericht Köln HRB 27038
Geschäftsführer: Ralf Schürmann | Dr. Manfred Heinen







--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users