Re: [Bacula-users] Why Baculum no show New Object (but yes on dir.conf)

2021-11-18 Thread Marcin Haba
Hello Jose,

OK. It is the reload command problem. The Director debug should give
more light on that.

Best regards,
Marcin Haba (gani)

On Thu, 18 Nov 2021 at 20:21, Jose Alberto  wrote:
>
> It is in the loading of new objects (they can be client, fileset or 
> schedules).
>
> I complete the data, save it and do everything right, without error, but it 
> is not displayed. However, in the .conf it is.
>
> It has happened to me on 2 occasions when I have JOB running of more than 1TB
>
> On Thu, Nov 18, 2021 at 2:13 PM Marcin Haba  wrote:
>>
>> Hello Jose,
>>
>> If the reload command does not refresh configuration using bconsole,
>> it will not work with Baculum either.
>>
>> For the debug, if this reload problem happens, a good test could be to
>> enable it and run 'reload' in bconsole. At the end you can check the
>> content of the trace file.
>>
>> For the error on data load or edit, what exactly do you mean? What
>> error message do you see?
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Thu, 18 Nov 2021 at 12:19, Jose Alberto  wrote:
>> >
>> > Baculum  11.0.5.4
>> >
>> > Thanks Marcin for responding.
>> >
>> > Yes, I have reloaded from baculum and from bconsole, but the changes are 
>> > not activated. They are in the dir.conf but they are not activated. Forced 
>> > must restart catalog and dir for the changes to take effect and if there 
>> > is a job running I must wait for it to finish.
>> >
>> > What catches my attention is the postgres process q8e refers to the 
>> > database bacula with the user bacula, in idle state (I see that with a pf 
>> > -ef | grep bacula)
>> >
>> > As we are currently in a deployment of incorporation of new clients (30) 
>> > and running the backups immediately, it is likely that it could happen 
>> > again and I will apply the debug that you have recommended.
>> >
>> > The other thing that occurs to me, is an error in the data load or 
>> > edition. Although if it were so, it would be reflected as a syntax error.
>> >
>> >
>> >
>> > On Wed, Nov 17, 2021 at 10:32 PM Marcin Haba  wrote:
>> >>
>> >> Hello Jose,
>> >>
>> >> It looks that for some reason there isn't executed bconsole 'reload'
>> >> command after saving the new Bacula config. If for your Baculum user
>> >> you use restricted access by the Bacula Console ACL function, I would
>> >> propose to check if allowed Console {} resource config the 'reload'
>> >> command is defined. If not, then it can be the reason.
>> >>
>> >> I would also propose to do a test if the 'reload' command works from
>> >> Baculum. It can be done on the Baculum web console page (under the
>> >> console menu button at the top left side of the interface). You could
>> >> try to change something manually by editing bacula-dir.conf (eg. add a
>> >> job or change a directive value) and then in Baculum in the web
>> >> console run 'reload' command and check if this new change is available
>> >> on the interface.
>> >>
>> >> If it happens randomly with long time running jobs, as you described,
>> >> it can be that for some unknown reason the 'reload' command couldn't
>> >> be applied. If from the Console ACL side the reload command can be
>> >> executed, then before adding a new resource from Baculum I would
>> >> propose to enable debug both in Bacula Director and in Baculum API and
>> >> Baculum Web. For Bacula Director it can be bconsole command:
>> >>
>> >> setdebug level=400 trace=1 options=t dir
>> >>
>> >> In Bacula Director working directory will be created a file named
>> >> .trace
>> >>
>> >> In Baculum API and Baculum Web is possible to enable debug in the
>> >> application settings page on the interface. Debug files will be in the
>> >> web server document root directory in location
>> >> protected/API/Logs/baculum-api.log and
>> >> protected/Web/Logs/baculum-web.log.
>> >>
>> >> Once the debug is enabled, then please try to add a resource to Bacula
>> >> by Baculum Web. At the end please check all debug files if there is
>> >> something wrong.
>> >>
>> >> What Bacula and Baculum version are you using?
>> >>
>> >> Best regards,
>> >> Marcin Haba (gani)
>> >>
>> >> On Thu, 18 Nov 2021 at 00:21, Jose Alberto  wrote:
>> >> >
>> >> > It has happened to me, on 2 occasions, when they run jobs that last 
>> >> > more than 10 hours. When creating objects using the baculum, they are 
>> >> > not reflected. For example, if I add a client it is not reflected in 
>> >> > the baculum or in the bconsole (client status), but in the 
>> >> > bacula-dir.conf. It is as if the objects remain pending to be 
>> >> > activated. To solve I have 2 options to restart catalog and director or 
>> >> > wait for the job to finish and restart catalog and director. It has 
>> >> > only happened to me with backups that last 10 hours or more. The funny 
>> >> > thing about a Postgres process (ps -ef) in state: idle
>> >> >
>> >> > --
>> >> > #
>> >> > #   Sistema Operativo: Debian  #
>> >> > #Caracas, Venezuela  #
>>

Re: [Bacula-users] Why Baculum no show New Object (but yes on dir.conf)

2021-11-18 Thread Jose Alberto
It is in the loading of new objects (they can be client, fileset or
schedules).

I complete the data, save it and do everything right, without error, but it
is not displayed. However, in the .conf it is.

It has happened to me on 2 occasions when I have JOB running of more than
1TB

On Thu, Nov 18, 2021 at 2:13 PM Marcin Haba  wrote:

> Hello Jose,
>
> If the reload command does not refresh configuration using bconsole,
> it will not work with Baculum either.
>
> For the debug, if this reload problem happens, a good test could be to
> enable it and run 'reload' in bconsole. At the end you can check the
> content of the trace file.
>
> For the error on data load or edit, what exactly do you mean? What
> error message do you see?
>
> Best regards,
> Marcin Haba (gani)
>
> On Thu, 18 Nov 2021 at 12:19, Jose Alberto  wrote:
> >
> > Baculum  11.0.5.4
> >
> > Thanks Marcin for responding.
> >
> > Yes, I have reloaded from baculum and from bconsole, but the changes are
> not activated. They are in the dir.conf but they are not activated. Forced
> must restart catalog and dir for the changes to take effect and if there is
> a job running I must wait for it to finish.
> >
> > What catches my attention is the postgres process q8e refers to the
> database bacula with the user bacula, in idle state (I see that with a pf
> -ef | grep bacula)
> >
> > As we are currently in a deployment of incorporation of new clients (30)
> and running the backups immediately, it is likely that it could happen
> again and I will apply the debug that you have recommended.
> >
> > The other thing that occurs to me, is an error in the data load or
> edition. Although if it were so, it would be reflected as a syntax error.
> >
> >
> >
> > On Wed, Nov 17, 2021 at 10:32 PM Marcin Haba 
> wrote:
> >>
> >> Hello Jose,
> >>
> >> It looks that for some reason there isn't executed bconsole 'reload'
> >> command after saving the new Bacula config. If for your Baculum user
> >> you use restricted access by the Bacula Console ACL function, I would
> >> propose to check if allowed Console {} resource config the 'reload'
> >> command is defined. If not, then it can be the reason.
> >>
> >> I would also propose to do a test if the 'reload' command works from
> >> Baculum. It can be done on the Baculum web console page (under the
> >> console menu button at the top left side of the interface). You could
> >> try to change something manually by editing bacula-dir.conf (eg. add a
> >> job or change a directive value) and then in Baculum in the web
> >> console run 'reload' command and check if this new change is available
> >> on the interface.
> >>
> >> If it happens randomly with long time running jobs, as you described,
> >> it can be that for some unknown reason the 'reload' command couldn't
> >> be applied. If from the Console ACL side the reload command can be
> >> executed, then before adding a new resource from Baculum I would
> >> propose to enable debug both in Bacula Director and in Baculum API and
> >> Baculum Web. For Bacula Director it can be bconsole command:
> >>
> >> setdebug level=400 trace=1 options=t dir
> >>
> >> In Bacula Director working directory will be created a file named
> >> .trace
> >>
> >> In Baculum API and Baculum Web is possible to enable debug in the
> >> application settings page on the interface. Debug files will be in the
> >> web server document root directory in location
> >> protected/API/Logs/baculum-api.log and
> >> protected/Web/Logs/baculum-web.log.
> >>
> >> Once the debug is enabled, then please try to add a resource to Bacula
> >> by Baculum Web. At the end please check all debug files if there is
> >> something wrong.
> >>
> >> What Bacula and Baculum version are you using?
> >>
> >> Best regards,
> >> Marcin Haba (gani)
> >>
> >> On Thu, 18 Nov 2021 at 00:21, Jose Alberto  wrote:
> >> >
> >> > It has happened to me, on 2 occasions, when they run jobs that last
> more than 10 hours. When creating objects using the baculum, they are not
> reflected. For example, if I add a client it is not reflected in the
> baculum or in the bconsole (client status), but in the bacula-dir.conf. It
> is as if the objects remain pending to be activated. To solve I have 2
> options to restart catalog and director or wait for the job to finish and
> restart catalog and director. It has only happened to me with backups that
> last 10 hours or more. The funny thing about a Postgres process (ps -ef) in
> state: idle
> >> >
> >> > --
> >> > #
> >> > #   Sistema Operativo: Debian  #
> >> > #Caracas, Venezuela  #
> >> > #
> >> > ___
> >> > 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

Re: [Bacula-users] Why Baculum no show New Object (but yes on dir.conf)

2021-11-18 Thread Marcin Haba
Hello Jose,

If the reload command does not refresh configuration using bconsole,
it will not work with Baculum either.

For the debug, if this reload problem happens, a good test could be to
enable it and run 'reload' in bconsole. At the end you can check the
content of the trace file.

For the error on data load or edit, what exactly do you mean? What
error message do you see?

Best regards,
Marcin Haba (gani)

On Thu, 18 Nov 2021 at 12:19, Jose Alberto  wrote:
>
> Baculum  11.0.5.4
>
> Thanks Marcin for responding.
>
> Yes, I have reloaded from baculum and from bconsole, but the changes are not 
> activated. They are in the dir.conf but they are not activated. Forced must 
> restart catalog and dir for the changes to take effect and if there is a job 
> running I must wait for it to finish.
>
> What catches my attention is the postgres process q8e refers to the database 
> bacula with the user bacula, in idle state (I see that with a pf -ef | grep 
> bacula)
>
> As we are currently in a deployment of incorporation of new clients (30) and 
> running the backups immediately, it is likely that it could happen again and 
> I will apply the debug that you have recommended.
>
> The other thing that occurs to me, is an error in the data load or edition. 
> Although if it were so, it would be reflected as a syntax error.
>
>
>
> On Wed, Nov 17, 2021 at 10:32 PM Marcin Haba  wrote:
>>
>> Hello Jose,
>>
>> It looks that for some reason there isn't executed bconsole 'reload'
>> command after saving the new Bacula config. If for your Baculum user
>> you use restricted access by the Bacula Console ACL function, I would
>> propose to check if allowed Console {} resource config the 'reload'
>> command is defined. If not, then it can be the reason.
>>
>> I would also propose to do a test if the 'reload' command works from
>> Baculum. It can be done on the Baculum web console page (under the
>> console menu button at the top left side of the interface). You could
>> try to change something manually by editing bacula-dir.conf (eg. add a
>> job or change a directive value) and then in Baculum in the web
>> console run 'reload' command and check if this new change is available
>> on the interface.
>>
>> If it happens randomly with long time running jobs, as you described,
>> it can be that for some unknown reason the 'reload' command couldn't
>> be applied. If from the Console ACL side the reload command can be
>> executed, then before adding a new resource from Baculum I would
>> propose to enable debug both in Bacula Director and in Baculum API and
>> Baculum Web. For Bacula Director it can be bconsole command:
>>
>> setdebug level=400 trace=1 options=t dir
>>
>> In Bacula Director working directory will be created a file named
>> .trace
>>
>> In Baculum API and Baculum Web is possible to enable debug in the
>> application settings page on the interface. Debug files will be in the
>> web server document root directory in location
>> protected/API/Logs/baculum-api.log and
>> protected/Web/Logs/baculum-web.log.
>>
>> Once the debug is enabled, then please try to add a resource to Bacula
>> by Baculum Web. At the end please check all debug files if there is
>> something wrong.
>>
>> What Bacula and Baculum version are you using?
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Thu, 18 Nov 2021 at 00:21, Jose Alberto  wrote:
>> >
>> > It has happened to me, on 2 occasions, when they run jobs that last more 
>> > than 10 hours. When creating objects using the baculum, they are not 
>> > reflected. For example, if I add a client it is not reflected in the 
>> > baculum or in the bconsole (client status), but in the bacula-dir.conf. It 
>> > is as if the objects remain pending to be activated. To solve I have 2 
>> > options to restart catalog and director or wait for the job to finish and 
>> > restart catalog and director. It has only happened to me with backups that 
>> > last 10 hours or more. The funny thing about a Postgres process (ps -ef) 
>> > in state: idle
>> >
>> > --
>> > #
>> > #   Sistema Operativo: Debian  #
>> > #Caracas, Venezuela  #
>> > #
>> > ___
>> > 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
>
>
>
> --
> #
> #   Sistema Operativo: Debian  #
> #Caracas, Venezuela  #
> #



-- 
"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



Re: [Bacula-users] Fileset override in Schedule resource

2021-11-18 Thread Shaligram Bhagat, Yateen (Nokia - IN/Bangalore)
Hi Radoslaw,

Thanks, please see my comments in-line

Regards,
Yateen

From: Radosław Korzeniewski 
Sent: Monday, November 15, 2021 4:36 PM
To: Shaligram Bhagat, Yateen (Nokia - IN/Bangalore) 

Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Fileset override in Schedule resource

Hello,

pt., 12 lis 2021 o 03:39 Shaligram Bhagat, Yateen (Nokia - IN/Bangalore) 
mailto:yateen.shaligram_bha...@nokia.com>> 
napisał(a):
Hi Radoslaw,

Thanks.
Well, that is what I thought.

But my requirement is different.
There are hundreds of clients and I want to create yearly archives (at present 
for past years and  later for future years too)  for each of them.

What do you mean "yearly archives"? Is it a backup job? A cloned/migrated job 
to the other storage? Something else?

Yateen : We have hundreds of lab Linux servers (let’s say 200), each getting 
data generated every day, organized in sub dirs like  //
The data generated in the past years is no longer required usually, but may be 
needed just in case.  We call this data as archive data and want to have job 
that will run for each past year data and create an yearly archive (aone time 
activity). So instead of creating 200 servers X 5 years = 1000 jobs, I want to 
minimize the number of jobs. I intend to do so by creating only 200 archive 
jobs, with variable fileset mechanism. I think this is what you have suggested 
too.


This will create a job inventory that will run into thousand.

What is a "job inventory"? I never heard of it in Bacula.
Bacula has no problem handling hundreds of thousands of jobs.
Yateen : As explained above, Job inventory means number of Jobs configured. I 
know that, Bacula has no limit on handling hundreds of them, but as an admin I 
intend to keep the list as minimum as possible by having some creativity.


The simplest way could be to create one single archive job for each client and 
run it with a fileset defined for each year.

How is your filesets for this feature defined?
Why do you need to change filesets? It is so strange.

Yateen : Explained above.

I wonder why there is no fileset override for  a job in the schedule resource, 
when there are so many other overrides provided.
This requirement may be an enhancement candidate ??

Let's assume you have a two totally distinct fileset resources, i.e.

Fileset {
  Name = FS1
  Include {
File = /home
  }
}

Fileset {
  Name = FS2
  Include {
Plugin = "qemu: vm=vm1"
  }
}

and every other day in the Schedule for Incremental level backup you switch 
between them back and forth.
What is your expected result in this case, when you select the most recent 
backup to restore?
The above question is to understand the requirements.

Yateen : I am planning to do something similar.

best regards
--
Radosław Korzeniewski
rados...@korzeniewski.net
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Why Baculum no show New Object (but yes on dir.conf)

2021-11-18 Thread Jose Alberto
Baculum  11.0.5.4

Thanks Marcin for responding.

Yes, I have reloaded from baculum and from bconsole, but the changes are
not activated. They are in the dir.conf but they are not activated. Forced
must restart catalog and dir for the changes to take effect and if there is
a job running I must wait for it to finish.

What catches my attention is the postgres process q8e refers to the
database bacula with the user bacula, in idle state (I see that with a pf
-ef | grep bacula)

As we are currently in a deployment of incorporation of new clients (30)
and running the backups immediately, it is likely that it could happen
again and I will apply the debug that you have recommended.

The other thing that occurs to me, is an error in the data load or edition.
Although if it were so, it would be reflected as a syntax error.



On Wed, Nov 17, 2021 at 10:32 PM Marcin Haba  wrote:

> Hello Jose,
>
> It looks that for some reason there isn't executed bconsole 'reload'
> command after saving the new Bacula config. If for your Baculum user
> you use restricted access by the Bacula Console ACL function, I would
> propose to check if allowed Console {} resource config the 'reload'
> command is defined. If not, then it can be the reason.
>
> I would also propose to do a test if the 'reload' command works from
> Baculum. It can be done on the Baculum web console page (under the
> console menu button at the top left side of the interface). You could
> try to change something manually by editing bacula-dir.conf (eg. add a
> job or change a directive value) and then in Baculum in the web
> console run 'reload' command and check if this new change is available
> on the interface.
>
> If it happens randomly with long time running jobs, as you described,
> it can be that for some unknown reason the 'reload' command couldn't
> be applied. If from the Console ACL side the reload command can be
> executed, then before adding a new resource from Baculum I would
> propose to enable debug both in Bacula Director and in Baculum API and
> Baculum Web. For Bacula Director it can be bconsole command:
>
> setdebug level=400 trace=1 options=t dir
>
> In Bacula Director working directory will be created a file named
> .trace
>
> In Baculum API and Baculum Web is possible to enable debug in the
> application settings page on the interface. Debug files will be in the
> web server document root directory in location
> protected/API/Logs/baculum-api.log and
> protected/Web/Logs/baculum-web.log.
>
> Once the debug is enabled, then please try to add a resource to Bacula
> by Baculum Web. At the end please check all debug files if there is
> something wrong.
>
> What Bacula and Baculum version are you using?
>
> Best regards,
> Marcin Haba (gani)
>
> On Thu, 18 Nov 2021 at 00:21, Jose Alberto  wrote:
> >
> > It has happened to me, on 2 occasions, when they run jobs that last more
> than 10 hours. When creating objects using the baculum, they are not
> reflected. For example, if I add a client it is not reflected in the
> baculum or in the bconsole (client status), but in the bacula-dir.conf. It
> is as if the objects remain pending to be activated. To solve I have 2
> options to restart catalog and director or wait for the job to finish and
> restart catalog and director. It has only happened to me with backups that
> last 10 hours or more. The funny thing about a Postgres process (ps -ef) in
> state: idle
> >
> > --
> > #
> > #   Sistema Operativo: Debian  #
> > #Caracas, Venezuela  #
> > #
> > ___
> > 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
>


-- 
#
#   Sistema Operativo: Debian  #
#Caracas, Venezuela  #
#
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users