Re: [Bacula-users] Baculum recovery does not show directory structure 13.

2022-11-08 Thread Marcin Haba
Hello Magdalena,

Thanks for providing the outputs. They look correct. So, maybe let's look
at the problem from the opposite side.

Could you look at the javascript console in the web browser when you go
through the file browser in the restore wizard? Usually it is available
after clicking F12, then the tab 'Console'. Are you seeing there any error?
Or maybe you use some plugins in the web browser? Sometimes plugins can
disturb application working, so maybe you can also do a try with different
web browser without plugins?

Thanks in advance for your feedback from tests.

Best regards,
Marcin Haba (gani)

On Tue, 8 Nov 2022 at 09:28, Magdalena Sobczak 
wrote:

> Hi Marcin,
> thank you for your rapid answer.
>
> bconsole output:
>
> # this  one seems to  be correct, indeed  should be "etc"
> *.bvfs_lsdirs jobid="24" pathid="768" limit="2000"
> 768 0 0 0 A A A A A A A A A A A A A A .
> 771 0 0 0 A A A A A A A A A A A A A A ..
> 3 0 41166 24 P0A M EHt BZ A A A BAA BAA I BjaMgU BjaMfN BjaMfN A A C etc/
>
> # Here  output is exactly  nothing
> *.bvfs_lsfiles jobid="24" pathid="768" limit="2000"
> *
> *.bvfs_clear_cache yes
> OK
> *.bvfs_update jobid="24"
> *
> *.bvfs_lsdirs jobid="24" pathid="768" limit="2000"
> 768 0 0 0 A A A A A A A A A A A A A A .
> 771 0 0 0 A A A A A A A A A A A A A A ..
> 3 0 41166 24 P0A M EHt BZ A A A BAA BAA I BjaMgU BjaMfN BjaMfN A A C etc/
> *.bvfs_lsfiles jobid="24" pathid="768" limit="2000"
> *
>
> Pozdrawiam /  Regards
>
> Magdalena Sobczak
>
>
>
> On Tue, Nov 8, 2022 at 4:16 AM Marcin Haba  wrote:
>
>> Hello Magdalena,
>>
>> Your command outputs look to be correct. Could you also show us debug
>> from clicking on the / (root directory) action in the restore wizard?
>>
>> Baculum in the restore wizard uses Bvfs cache to list directories/files
>> from backup. The bconsole commands below can help to see if it is something
>> wrong with Bvfs or with Baculum itself. Could I ask you about running them
>> and checking if they return any output?
>>
>> .bvfs_lsdirs jobid="24" pathid="768" limit="2000"
>>
>> .bvfs_lsfiles jobid="24" pathid="768" limit="2000"
>>
>> If they will not list files or directories, it can mean that something
>> happened wrong with Bvfs cache. Then you can debug it to find a source of
>> the problem on the Director side or you can try to clear Bvfs cache:
>>
>> .bvfs_clear_cache yes
>>
>> and then generate it for this job:
>>
>> .bvfs_update jobid="24"
>>
>> Thanks in advance for letting us know.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Tue, 8 Nov 2022 at 00:15, Magdalena Sobczak <
>> maddalena.sobc...@gmail.com> wrote:
>>
>>> Hi,
>>> I've just installed baculum from branch-13. Everything seems to work
>>> properly, but restore.
>>> When at directory structure page (where  normally I should be able to
>>> choose directory / files) , there is only  / visible (with FileSet include
>>> /etc). (Please check below output log for JobId24)
>>>
>>> Another example with FileSet include on /docker/Containers/Jenkins,
>>> restore page showing only  / at the  beginning, but  when entering on /, I
>>> can see docker, the Containers and after only .
>>>
>>> This is very similar to another thread I've found but it was also
>>> related to version 11 of Baculum, and provided patch is implemented  at
>>> version 13.:
>>> Thread: [Bacula-users] When recovering Baculum does not show directory
>>> structure. Client TrueNas | Bacula (sourceforge.net)
>>> 
>>>
>>> When trying to restore using bconsole, the is no issue, I can see
>>> directories, files I can choose what I want, so  the conclusion is that is
>>> baculum related issue.
>>>
>>> *bconsole files listing:*
>>> [...]
>>> | /etc/iscsi/ |
>>> | /etc/runit/runsvdir/default/ssh |
>>> | /etc/runit/runsvdir/default/ |
>>> | /etc/runit/runsvdir/ |
>>> | /etc/runit/ |
>>> | /etc/mke2fs.conf |
>>> | /etc/pam.conf |
>>> | /etc/|
>>> +--+
>>>
>>> +---+-+-+--+---+--+---+---+
>>> | JobId | Name| StartTime   | Type | Level |
>>> JobFiles | JobBytes  | JobStatus |
>>>
>>> +---+-+-+--+---+--+---+---+
>>> |24 | cd-1 FULL   | 2022-11-07 19:03:57 | B| F
>>>  |1,438 | 1,939,649 | T |
>>>
>>> +---+-+-+--+---+--+---+---+
>>> list files  jobid=24
>>>
>>> *API debug output*
>>> Connecting to Director cs-a:9101
>>> 1000 OK: 10002 cs-a.atlantis.home-dir Version: 13.0.1 (05 August 2022)
>>> Enter a period to cancel a command.
>>> gui on
>>> .bvfs_lsdirs jobid="24" path="" limit="2000"
>>> Using Catalog "Atlantis_MySQL_Catalog"
>>> 771 0 0 0 A A A A A A A A A A A A A A .
>>> 768 0 0 0 A A A A A A A A A A A A A A /

Re: [Bacula-users] Setting the to address for Bacula GDB traceback

2022-11-08 Thread Martin Simmons
> On Tue, 08 Nov 2022 11:22:07 -0500, Dan Langille said:
> 
> On Mon, Nov 7, 2022, at 10:59 AM, Martin Simmons wrote:
> >> On Sun, 6 Nov 2022 20:00:55 -0500, Dan Langille said:
> >> 
> >> I'm getting some traceback emails like this:
> >> 
> >> From: root@localhost
> >> Subject: Bacula GDB traceback of bacula-dir on bacula.int.example.org
> >> Sender: bac...@bacula.int.example.org
> >> To: root@localhost
> >> 
> >> There is no 'root@localhost' defined with my bacula-dir configuation.
> >> 
> >> [bacula dan /usr/local/etc/bacula] % sudo grep root@localhost * 0:56:01
> >> bacula-dir.conf:#  mail = root@localhost = all, !skipped, saved
> >> bacula-dir.conf.sample:  mail = root@localhost = all, !skipped
> >> bacula-dir.conf.sample:  operator = root@localhost = mount
> >> bacula-dir.conf.sample:  mail = root@localhost = all, !skipped
> >> 
> >> The above are either comments or .sample - none should be active.
> >> 
> >> Where is this address coming from?
> >
> > It is the default for dump_email in configure (used in 
> > scripts/btraceback.in).
> 
> Confirmed, I found it in there. Thank you.
> 
> I will probably modify the FreeBSD port to accomomdate local changes to this 
> script.
> 
> While looking around, I found these:
> 
> [pkg01 dan ~/ports/head/sysutils/bacula9-server] % grep -r root *
> Makefile: --with-dump-email=root@localhost \
> Makefile: --with-job-email=root@localhost \
> 
> Those are configuration arguments for building DIR, SD, and FD. If those are 
> specified at build time, it might be difficult for users to modify them. I'm 
> wondering if they are still used or if they are deprecated. Sorry, I can't 
> search the code just now.

--with-dump-email controls the value of dump_email, which is only used for
scripts/btraceback.

--with-job-email controls the value used for the Messages resources in the
generated bacula-dir.conf.

Both of these send emails to the server set by --with-smtp-host, which
defaults to localhost.

__Martin


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


Re: [Bacula-users] Setting the to address for Bacula GDB traceback

2022-11-08 Thread Dan Langille

On Mon, Nov 7, 2022, at 10:59 AM, Martin Simmons wrote:
>> On Sun, 6 Nov 2022 20:00:55 -0500, Dan Langille said:
>> 
>> I'm getting some traceback emails like this:
>> 
>> From: root@localhost
>> Subject: Bacula GDB traceback of bacula-dir on bacula.int.example.org
>> Sender: bac...@bacula.int.example.org
>> To: root@localhost
>> 
>> There is no 'root@localhost' defined with my bacula-dir configuation.
>> 
>> [bacula dan /usr/local/etc/bacula] % sudo grep root@localhost * 0:56:01
>> bacula-dir.conf:#  mail = root@localhost = all, !skipped, saved
>> bacula-dir.conf.sample:  mail = root@localhost = all, !skipped
>> bacula-dir.conf.sample:  operator = root@localhost = mount
>> bacula-dir.conf.sample:  mail = root@localhost = all, !skipped
>> 
>> The above are either comments or .sample - none should be active.
>> 
>> Where is this address coming from?
>
> It is the default for dump_email in configure (used in scripts/btraceback.in).

Confirmed, I found it in there. Thank you.

I will probably modify the FreeBSD port to accomomdate local changes to this 
script.

While looking around, I found these:

[pkg01 dan ~/ports/head/sysutils/bacula9-server] % grep -r root *
Makefile:   --with-dump-email=root@localhost \
Makefile:   --with-job-email=root@localhost \

Those are configuration arguments for building DIR, SD, and FD. If those are 
specified at build time, it might be difficult for users to modify them. I'm 
wondering if they are still used or if they are deprecated. Sorry, I can't 
search the code just now.

-- 
  Dan Langille
  d...@langille.org


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


Re: [Bacula-users] Baculum recovery does not show directory structure 13.

2022-11-08 Thread Magdalena Sobczak
Hi Marcin,
thank you for your rapid answer.

bconsole output:

# this  one seems to  be correct, indeed  should be "etc"
*.bvfs_lsdirs jobid="24" pathid="768" limit="2000"
768 0 0 0 A A A A A A A A A A A A A A .
771 0 0 0 A A A A A A A A A A A A A A ..
3 0 41166 24 P0A M EHt BZ A A A BAA BAA I BjaMgU BjaMfN BjaMfN A A C etc/

# Here  output is exactly  nothing
*.bvfs_lsfiles jobid="24" pathid="768" limit="2000"
*
*.bvfs_clear_cache yes
OK
*.bvfs_update jobid="24"
*
*.bvfs_lsdirs jobid="24" pathid="768" limit="2000"
768 0 0 0 A A A A A A A A A A A A A A .
771 0 0 0 A A A A A A A A A A A A A A ..
3 0 41166 24 P0A M EHt BZ A A A BAA BAA I BjaMgU BjaMfN BjaMfN A A C etc/
*.bvfs_lsfiles jobid="24" pathid="768" limit="2000"
*

Pozdrawiam /  Regards

Magdalena Sobczak



On Tue, Nov 8, 2022 at 4:16 AM Marcin Haba  wrote:

> Hello Magdalena,
>
> Your command outputs look to be correct. Could you also show us debug from
> clicking on the / (root directory) action in the restore wizard?
>
> Baculum in the restore wizard uses Bvfs cache to list directories/files
> from backup. The bconsole commands below can help to see if it is something
> wrong with Bvfs or with Baculum itself. Could I ask you about running them
> and checking if they return any output?
>
> .bvfs_lsdirs jobid="24" pathid="768" limit="2000"
>
> .bvfs_lsfiles jobid="24" pathid="768" limit="2000"
>
> If they will not list files or directories, it can mean that something
> happened wrong with Bvfs cache. Then you can debug it to find a source of
> the problem on the Director side or you can try to clear Bvfs cache:
>
> .bvfs_clear_cache yes
>
> and then generate it for this job:
>
> .bvfs_update jobid="24"
>
> Thanks in advance for letting us know.
>
> Best regards,
> Marcin Haba (gani)
>
> On Tue, 8 Nov 2022 at 00:15, Magdalena Sobczak <
> maddalena.sobc...@gmail.com> wrote:
>
>> Hi,
>> I've just installed baculum from branch-13. Everything seems to work
>> properly, but restore.
>> When at directory structure page (where  normally I should be able to
>> choose directory / files) , there is only  / visible (with FileSet include
>> /etc). (Please check below output log for JobId24)
>>
>> Another example with FileSet include on /docker/Containers/Jenkins,
>> restore page showing only  / at the  beginning, but  when entering on /, I
>> can see docker, the Containers and after only .
>>
>> This is very similar to another thread I've found but it was also related
>> to version 11 of Baculum, and provided patch is implemented  at version 13.:
>> Thread: [Bacula-users] When recovering Baculum does not show directory
>> structure. Client TrueNas | Bacula (sourceforge.net)
>> 
>>
>> When trying to restore using bconsole, the is no issue, I can see
>> directories, files I can choose what I want, so  the conclusion is that is
>> baculum related issue.
>>
>> *bconsole files listing:*
>> [...]
>> | /etc/iscsi/ |
>> | /etc/runit/runsvdir/default/ssh |
>> | /etc/runit/runsvdir/default/ |
>> | /etc/runit/runsvdir/ |
>> | /etc/runit/ |
>> | /etc/mke2fs.conf |
>> | /etc/pam.conf |
>> | /etc/|
>> +--+
>>
>> +---+-+-+--+---+--+---+---+
>> | JobId | Name| StartTime   | Type | Level |
>> JobFiles | JobBytes  | JobStatus |
>>
>> +---+-+-+--+---+--+---+---+
>> |24 | cd-1 FULL   | 2022-11-07 19:03:57 | B| F |
>>   1,438 | 1,939,649 | T |
>>
>> +---+-+-+--+---+--+---+---+
>> list files  jobid=24
>>
>> *API debug output*
>> Connecting to Director cs-a:9101
>> 1000 OK: 10002 cs-a.atlantis.home-dir Version: 13.0.1 (05 August 2022)
>> Enter a period to cancel a command.
>> gui on
>> .bvfs_lsdirs jobid="24" path="" limit="2000"
>> Using Catalog "Atlantis_MySQL_Catalog"
>> 771 0 0 0 A A A A A A A A A A A A A A .
>> 768 0 0 0 A A A A A A A A A A A A A A /
>> quit
>>
>> 2022-11-07 23:01:40 [Execute] Bconsole.php:237:
>>
>> ===> Command:
>>
>> sudo /usr/sbin/bconsole -c "/etc/bacula/bconsole.conf" -D
>> cs-a.atlantis.home-dir 2>&1 <> gui on
>> .bvfs_lsfiles jobid="24" path="" limit="2000"
>> quit
>> END_OF_DATA
>>
>> ===> Output:
>>
>> Connecting to Director cs-a:9101
>> 1000 OK: 10002 cs-a.atlantis.home-dir Version: 13.0.1 (05 August 2022)
>> Enter a period to cancel a command.
>> gui on
>> .bvfs_lsfiles jobid="24" path="" limit="2000"
>> Using Catalog "Atlantis_MySQL_Catalog"
>> quit
>>
>> Pozdrawiam /  Regards
>> TiaMia
>> ___
>> 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