Re: [Bacula-users] Baculum error with 15.0.2 catalog Pg

2024-04-23 Thread Marcin Haba
Hello Jose,

Yes, this Baculum from Bullseye repository is a bit older and not adapted
to Bacula 15.

As you could notice, Bacularis is a better choice for that. It has been
prepared and well tested with Bacula version 15.

The general idea of Bacularis for supported Bacula versions is to help
users stop thinking in a way: "Which Bacularis version should I use with
which Bacula version?". It is something that in Bacularis we would like to
avoid. It works with all Bacula versions starting from 9 up till latest.
So, if somebody has a relatively modern Bacula environment, he/she can
always take the latest Bacularis and be sure that it will work.

Best regards,
Marcin Haba (gani)

On Tue, 23 Apr 2024 at 12:55, Jose Alberto  wrote:

> Hi.
>
> I have new installation clean
>
> Debian 12  (ok)
> Bacula 15.0.2  (ok)
> Postgres  (ok)
> Baculum.  (error open dashboard,  show query error), "using the bullseye
> repo, because they are not enabled for debian 12. maybe that's it. "
>
> But with Bacularis  This does not happen.
>
>
> --
> #
> #   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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] baculum + bacula 13.0.4 slow web interface

2024-04-10 Thread Marcin Haba
Hello Unkdef,

Thanks for your feedback.

I would propose to do a test. Could you please go to the application
settings page (the gear wheel icon on the top left side), there please go
to the 'Display options' tab and in an option with label "Job age on the
dashboard job graphs" could you put a value for example 7 days or 3 days?
Once you save it, please check and let us know if loading the dashboard is
faster.

Did you try to tune the database using mysqltuner?

Best regards,
Marcin Haba (gani)

On Wed, 10 Apr 2024 at 10:30, Unkdef unkdef  wrote:

> Please help problem not solved. when i renew page i dont see backups... i
> need to wait 10-20 sec before it appears
>
> вс, 7 апр. 2024 г. в 15:33, Marcin Haba :
>
>> Hello Unkdef,
>>
>> Yes, it does. As Rob mentioned, Bacularis is based on Baculum that
>> supports Russian translations too. The translations are there thanks to
>> Sergey Zhidkov who prepared them.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Sun, 7 Apr 2024 at 10:50, Unkdef unkdef 
>> wrote:
>>
>>>
>>> ok i try bacularis
>>> does bacularis support russian language interface?
>>>
>>> Rob Gerber  7 апреля 2024 г. 01:24:27 написал:
>>>
 Unkdef, one important thing to know is that Bacularis is a friendly
 fork of baculum. It's very similar, and Marcin has been actively
 maintaining it. Marcin is also a baculum developer.

 Basically, Bacularis is the better, more optimized tool.

 This doesn't mean that the source of your problem is certainly baculum,
 but trying the actively maintained and more optimized tool Bacularis is
 certainly a good first step. :)

 Bacularis is available in docker containers if you want to simply load
 a container and give it a try. It is naturally available for bare metal
 installations as well.

 Https://bacularis.app

 Robert Gerber
 402-237-8692
 r...@craeon.net



-- 

"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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] baculum + bacula 13.0.4 slow web interface

2024-04-07 Thread Marcin Haba
Hello Unkdef,

Yes, it does. As Rob mentioned, Bacularis is based on Baculum that supports
Russian translations too. The translations are there thanks to Sergey
Zhidkov who prepared them.

Best regards,
Marcin Haba (gani)

On Sun, 7 Apr 2024 at 10:50, Unkdef unkdef  wrote:

>
> ok i try bacularis
> does bacularis support russian language interface?
>
> Rob Gerber  7 апреля 2024 г. 01:24:27 написал:
>
>> Unkdef, one important thing to know is that Bacularis is a friendly fork
>> of baculum. It's very similar, and Marcin has been actively maintaining it.
>> Marcin is also a baculum developer.
>>
>> Basically, Bacularis is the better, more optimized tool.
>>
>> This doesn't mean that the source of your problem is certainly baculum,
>> but trying the actively maintained and more optimized tool Bacularis is
>> certainly a good first step. :)
>>
>> Bacularis is available in docker containers if you want to simply load a
>> container and give it a try. It is naturally available for bare metal
>> installations as well.
>>
>> Https://bacularis.app
>>
>> Robert Gerber
>> 402-237-8692
>> r...@craeon.net
>>
>> On Sat, Apr 6, 2024, 12:56 PM Unkdef unkdef 
>> wrote:
>>
>>> i use only 45 backup jobs a day...
>>>
>>> Marcin Haba  6 апреля 2024 г. 20:14:30 написал:
>>>
 Hello Unkdef,

 Yes, Baculum 11.0.6 is a bit old and can be a little slow, specially
 for many jobs and MySQL. There exists a couple of techniques to speed it up
 like described here:


 https://baculum.app/doc/brief/troubleshooting.html#the-baculum-job-tables-are-loading-slowly

 or here:


 https://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg72737.html

 If I could suggest something, I would propose to try Bacularis that is
 much faster and contains significant optimizations.

 Best regards,
 Marcin Haba (gani)

 On Fri, 5 Apr 2024 at 09:07, Unkdef unkdef 
 wrote:

> Hello! I use bacula 13.0.4(mysql) and baculum 11.0.6 on Ubuntu 22.04
> Problem: When I refresh page in baculum i wait 10-15 sec before i see
> information of backups and other... how to fix it?
> ___
> 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


>>> ___
>>> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] baculum + bacula 13.0.4 slow web interface

2024-04-07 Thread Unkdef unkdef


ok i try bacularis
does bacularis support russian language interface?
Rob Gerber  7 апреля 2024 г. 01:24:27 написал:
Unkdef, one important thing to know is that Bacularis is a friendly fork of 
baculum. It's very similar, and Marcin has been actively maintaining it. 
Marcin is also a baculum developer.


Basically, Bacularis is the better, more optimized tool.

This doesn't mean that the source of your problem is certainly baculum, but 
trying the actively maintained and more optimized tool Bacularis is 
certainly a good first step. :)


Bacularis is available in docker containers if you want to simply load a 
container and give it a try. It is naturally available for bare metal 
installations as well.


Https://bacularis.app

Robert Gerber
402-237-8692
r...@craeon.net
On Sat, Apr 6, 2024, 12:56 PM Unkdef unkdef  wrote:

i use only 45 backup jobs a day...

Marcin Haba  6 апреля 2024 г. 20:14:30 написал:

Hello Unkdef,

Yes, Baculum 11.0.6 is a bit old and can be a little slow, specially for 
many jobs and MySQL. There exists a couple of techniques to speed it up 
like described here:


https://baculum.app/doc/brief/troubleshooting.html#the-baculum-job-tables-are-loading-slowly

or here:

https://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg72737.html

If I could suggest something, I would propose to try Bacularis that is much 
faster and contains significant optimizations.


Best regards,
Marcin Haba (gani)



On Fri, 5 Apr 2024 at 09:07, Unkdef unkdef  wrote:

Hello! I use bacula 13.0.4(mysql) and baculum 11.0.6 on Ubuntu 22.04
Problem: When I refresh page in baculum i wait 10-15 sec before i see 
information of backups and other... how to fix it?

___
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


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


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


Re: [Bacula-users] baculum + bacula 13.0.4 slow web interface

2024-04-06 Thread Rob Gerber
Unkdef, one important thing to know is that Bacularis is a friendly fork of
baculum. It's very similar, and Marcin has been actively maintaining it.
Marcin is also a baculum developer.

Basically, Bacularis is the better, more optimized tool.

This doesn't mean that the source of your problem is certainly baculum, but
trying the actively maintained and more optimized tool Bacularis is
certainly a good first step. :)

Bacularis is available in docker containers if you want to simply load a
container and give it a try. It is naturally available for bare metal
installations as well.

Https://bacularis.app

Robert Gerber
402-237-8692
r...@craeon.net

On Sat, Apr 6, 2024, 12:56 PM Unkdef unkdef  wrote:

> i use only 45 backup jobs a day...
>
> Marcin Haba  6 апреля 2024 г. 20:14:30 написал:
>
>> Hello Unkdef,
>>
>> Yes, Baculum 11.0.6 is a bit old and can be a little slow, specially for
>> many jobs and MySQL. There exists a couple of techniques to speed it up
>> like described here:
>>
>>
>> https://baculum.app/doc/brief/troubleshooting.html#the-baculum-job-tables-are-loading-slowly
>>
>> or here:
>>
>>
>> https://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg72737.html
>>
>> If I could suggest something, I would propose to try Bacularis that is
>> much faster and contains significant optimizations.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Fri, 5 Apr 2024 at 09:07, Unkdef unkdef 
>> wrote:
>>
>>> Hello! I use bacula 13.0.4(mysql) and baculum 11.0.6 on Ubuntu 22.04
>>> Problem: When I refresh page in baculum i wait 10-15 sec before i see
>>> information of backups and other... how to fix it?
>>> ___
>>> 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
>>
>>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] baculum + bacula 13.0.4 slow web interface

2024-04-06 Thread Unkdef unkdef

i use only 45 backup jobs a day...

Marcin Haba  6 апреля 2024 г. 20:14:30 написал:

Hello Unkdef,

Yes, Baculum 11.0.6 is a bit old and can be a little slow, specially for 
many jobs and MySQL. There exists a couple of techniques to speed it up 
like described here:


https://baculum.app/doc/brief/troubleshooting.html#the-baculum-job-tables-are-loading-slowly

or here:

https://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg72737.html

If I could suggest something, I would propose to try Bacularis that is much 
faster and contains significant optimizations.


Best regards,
Marcin Haba (gani)

On Fri, 5 Apr 2024 at 09:07, Unkdef unkdef  wrote:
Hello! I use bacula 13.0.4(mysql) and baculum 11.0.6 on Ubuntu 22.04
Problem: When I refresh page in baculum i wait 10-15 sec before i see 
information of backups and other... how to fix 
it?___

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


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


Re: [Bacula-users] baculum + bacula 13.0.4 slow web interface

2024-04-06 Thread Marcin Haba
Hello Unkdef,

Yes, Baculum 11.0.6 is a bit old and can be a little slow, specially for
many jobs and MySQL. There exists a couple of techniques to speed it up
like described here:

https://baculum.app/doc/brief/troubleshooting.html#the-baculum-job-tables-are-loading-slowly

or here:

https://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg72737.html

If I could suggest something, I would propose to try Bacularis that is much
faster and contains significant optimizations.

Best regards,
Marcin Haba (gani)

On Fri, 5 Apr 2024 at 09:07, Unkdef unkdef  wrote:

> Hello! I use bacula 13.0.4(mysql) and baculum 11.0.6 on Ubuntu 22.04
> Problem: When I refresh page in baculum i wait 10-15 sec before i see
> information of backups and other... how to fix it?
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum GUI error 5: "Invalid director"

2024-01-17 Thread Marcin Haba
Hello Timothé,

Could you try to log out and log in again to the web interface? Is it
solving this problem?

Thanks in advance for letting us know.

Best regards,
Marcin Haba (gani)

On Thu, 18 Jan 2024 at 02:39, timothe pennec  wrote:
>
> Hello everyone,
>
> I'm new in bacula and baculum, i've one server fine running since one year 
> without issue.
> The server got full disk and i've decided to remove one volume file 
> /backup/Vol1 (cause i don't care loosing data if i can force full backup soon)
>
> Now when i'm connecting to the GUI i got one popup with "Error 5 : Invalid 
> director"
>
> I can running bconsole without issue :
>
> # bconsole
> Connecting to Director 127.0.0.1:9101
> 1000 OK: 10002 bacula-dir Version: 13.0.3 (02 May 2023)
> Enter a period to cancel a command.
> *version
> bacula-dir Version: 13.0.3 (02 May 2023) 
> x86_64-pc-linux-gnu-bacula-enterprise ubuntu 22.04
>
> All bacula-dir bacula-fd and bacula-sd is currently running (systemctl status)
>
> I don't find anything about this error on internet and i get stuck now.
>
> Best regards.
> Timothé
> ___
> 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


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


Re: [Bacula-users] Baculum and disable job...

2023-08-29 Thread Marco Gaiarin
Mandi! Lionel PLASSE
  In chel di` si favelave...

> In baculum there is an "enabled" checkbox for jobs.
> It's possible to disable schedules too

Mmmmhhh... i really don't find it; probably not in version 9.6.6.3?


Thanks.

-- 
  ...mi dispiace solo un po' per gli svizzeri, ieri hanno giocato una
  partita di merda, oggi gli arriva bossi...(Piccia, il 27/6/2006)




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


Re: [Bacula-users] Baculum and disable job...

2023-08-24 Thread Lionel PLASSE
In baculum there is an "enabled" checkbox for jobs.

It's possible to disable schedules too



-Message d'origine-
De : Marco Gaiarin  
Envoyé : mardi 22 août 2023 14:00
À : bacula-users@lists.sourceforge.net
Objet : [Bacula-users] Baculum and disable job...


I'm using Bacula 9.5 with baculum 9.6.6.3.

I don't see and options to disable the jobs, equivalent to the 'disable'
console command.


I'm missing something? Thanks.

-- 
  ...il ponte di Messina unirà «non due coste ma due cosche».
(Niki Vendola)




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


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


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-08-02 Thread Marcin Haba
Hi Lorraine,

That's great news. Thanks for letting us know that it started working on
the new vm.

Best regards,
Marcin Haba (gani)

On Thu, 3 Aug 2023 at 07:43, Lorraine 
wrote:

> Hi Marcin, I have ended up blowing away the vm and starting over.  This
> has allowed me to progress with the Install Wizard and I am  no longer
> getting the errors.
>
> Thanks again for all your help.  Not sure where I went wrong but just glad
> that I am able to move past this issue.
>
> Regards
> Lorraine
>
>
> On 3 Aug 2023, at 3:03 pm, Lorraine 
> wrote:
>
> Hi Marcin,  please see below output:
>
> [root@nbipbac12 httpd]# sudo -u apache sudo -l
> Matching Defaults entries for apache on nbipbac12:
> !visiblepw, always_set_home, match_group_by_gid,
> always_query_group_plugin, env_reset, env_keep="COLORS DISPLAY HOSTNAME
> HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1
> PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE
> LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY
> LC_NAME LC_NUMERIC LC_PAPER
> LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET
> XAUTHORITY", secure_path=/sbin\:/bin\:/usr/sbin\:/usr/bin, !requiretty
>
> User apache may run the following commands on nbipbac12:
> (root) NOPASSWD: /opt/bacula/bin/bconsole
> (ALL) NOPASSWD: ALL
>
> Also I tried the following without issue:
>
> [root@nbipbac12 httpd]# sudo -u apache sudo /opt/bacula/bin/bconsole
> Connecting to Director nbipbac02.local.netbi.net.au:9101
> 1000 OK: 10002 nbipbac02-dir Version: 13.0.3 (02 May 2023)
> Enter a period to cancel a command.
> *
>
> Regards
> Lorraine
>
>
> On 3 Aug 2023, at 2:01 pm, Marcin Haba  wrote:
>
> sudo -u apache sudo /opt/bacula/bin/bconsole
>
>
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au
> w: http://www.burgess-consulting.com.au
> m: +64-21-988-950
> ddi: +61 2 8077 4296
> Suite 802, 210 Clarence St, Sydney 2000, NSW
>
>
> 
>
>
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au
> w: http://www.burgess-consulting.com.au
> m: +64-21-988-950
> ddi: +61 2 8077 4296
> Suite 802, 210 Clarence St, Sydney 2000, NSW
>
>
>
>

-- 
"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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-08-02 Thread Lorraine via Bacula-users
Hi Marcin, I have ended up blowing away the vm and starting over.  This has 
allowed me to progress with the Install Wizard and I am  no longer getting the 
errors.

Thanks again for all your help.  Not sure where I went wrong but just glad that 
I am able to move past this issue.

Regards
Lorraine


> On 3 Aug 2023, at 3:03 pm, Lorraine  
> wrote:
> 
> Hi Marcin,  please see below output:
> 
> [root@nbipbac12 httpd]# sudo -u apache sudo -l
> Matching Defaults entries for apache on nbipbac12:
> !visiblepw, always_set_home, match_group_by_gid, 
> always_query_group_plugin, env_reset, env_keep="COLORS DISPLAY HOSTNAME 
> HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1
> PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE 
> LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME 
> LC_NUMERIC LC_PAPER
> LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET 
> XAUTHORITY", secure_path=/sbin\:/bin\:/usr/sbin\:/usr/bin, !requiretty
> 
> User apache may run the following commands on nbipbac12:
> (root) NOPASSWD: /opt/bacula/bin/bconsole
> (ALL) NOPASSWD: ALL
> 
> Also I tried the following without issue:
> 
> [root@nbipbac12 httpd]# sudo -u apache sudo /opt/bacula/bin/bconsole
> Connecting to Director nbipbac02.local.netbi.net.au:9101 
> 
> 1000 OK: 10002 nbipbac02-dir Version: 13.0.3 (02 May 2023)
> Enter a period to cancel a command.
> *
> 
> Regards
> Lorraine
> 
> 
>> On 3 Aug 2023, at 2:01 pm, Marcin Haba > > wrote:
>> 
>> sudo -u apache sudo /opt/bacula/bin/bconsole
> 
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au 
> 
> w: http://www.burgess-consulting.com.au 
> 
> m: +64-21-988-950
> ddi: +61 2 8077 4296
> Suite 802, 210 Clarence St, Sydney 2000, NSW
> 
> 
> 
> 

Burgess Systems Consulting
e: lorra...@burgess-consulting.com.au
w: http://www.burgess-consulting.com.au
m: +64-21-988-950
ddi: +61 2 8077 4296
Suite 802, 210 Clarence St, Sydney 2000, NSW




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


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-08-02 Thread Lorraine via Bacula-users
Hi Marcin,  please see below output:

[root@nbipbac12 httpd]# sudo -u apache sudo -l
Matching Defaults entries for apache on nbipbac12:
!visiblepw, always_set_home, match_group_by_gid, always_query_group_plugin, 
env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", 
env_keep+="MAIL PS1
PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE 
LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME 
LC_NUMERIC LC_PAPER
LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET 
XAUTHORITY", secure_path=/sbin\:/bin\:/usr/sbin\:/usr/bin, !requiretty

User apache may run the following commands on nbipbac12:
(root) NOPASSWD: /opt/bacula/bin/bconsole
(ALL) NOPASSWD: ALL

Also I tried the following without issue:

[root@nbipbac12 httpd]# sudo -u apache sudo /opt/bacula/bin/bconsole
Connecting to Director nbipbac02.local.netbi.net.au:9101
1000 OK: 10002 nbipbac02-dir Version: 13.0.3 (02 May 2023)
Enter a period to cancel a command.
*

Regards
Lorraine


> On 3 Aug 2023, at 2:01 pm, Marcin Haba  wrote:
> 
> sudo -u apache sudo /opt/bacula/bin/bconsole

Burgess Systems Consulting
e: lorra...@burgess-consulting.com.au
w: http://www.burgess-consulting.com.au
m: +64-21-988-950
ddi: +61 2 8077 4296
Suite 802, 210 Clarence St, Sydney 2000, NSW




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


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-08-02 Thread Marcin Haba
Hello Lorraine,

It is interesting. Thanks for your feedback. Internally to connect to
bconsole Bacularis does the same as this shell command does (adapted to
your problem):

# sudo -u apache sudo /opt/bacula/bin/bconsole

The 'sudo -u apache' switches user to 'apache' user to be the same user as
PHP user. Once we are the 'apache' user then the regular sudo command is
executed 'sudo /opt/bacula/bin/bconsole'.

If the above command will work, then Bacularis will work the same
automatically.

Could you show us the output from this command?

# sudo -u apache sudo -l

It will list allowed commands for the apache user. Thanks.

Good luck.

Best regards,
Marcin Haba (gani)

On Thu, 3 Aug 2023 at 01:47, Lorraine 
wrote:

> Morning Marcin, Thank you for the update.
> I tried the alternate sudo entry but still had no luck.  I also set
> "SELINUX=disabled”  in /etc/selinux/config but nothing seems to get past
> this error.
> I will continue to troubleshoot and let you know if I find anything.
>
> Regards
> Lorraine
>
> On 3 Aug 2023, at 7:59 am, Marcin Haba  wrote:
>
> Hello Lorraine,
>
> In your Bacularis sudoers file you use switching from apache user to
> bacula user. It is correct but unfortunately Bacularis does not support it.
> To work with this setting Bacularis needs to know about bacula user and use
> internally "sudo -u bacula" sudo parameter to let know sudo about target
> user.
>
> If you want you can omit the bacula user in sudo and then will be used the
> default target user which is root.
>
> Defaults:apache !requiretty
> apache ALL = NOPASSWD: /opt/bacula/bin/bconsole
>
> In the future we will add support for -u sudo parameter.
>
> Best regards,
> Marcin Haba (gani)
>
> On Wed, 2 Aug 2023 at 08:43, Lorraine 
> wrote:
>
>> Hi, Yes I installed the following:
>>
>> [root@nbipbac12 bin]# yum list installed | grep bacularis-selinux
>> bacularis-selinux.noarch   2.1.2-1.el8
>>   @bacularis-app
>>
>> Regards
>> Lorraine
>>
>>
>>
>>
>> On 2 Aug 2023, at 6:16 pm, Marcin Haba  wrote:
>>
>> SELinux
>>
>>
>> Burgess Systems Consulting
>> e: lorra...@burgess-consulting.com.au
>> w: http://www.burgess-consulting.com.au
>> m: +64-21-988-950
>> ddi: +61 2 8077 4296
>> Suite 802, 210 Clarence St, Sydney 2000, NSW
>>
>>
>> 
>>
>>
>
> --
> "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
>
>
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au
> w: http://www.burgess-consulting.com.au
> m: +64-21-988-950
> ddi: +61 2 8077 4296
> Suite 802, 210 Clarence St, Sydney 2000, NSW
>
>
>
>

-- 
"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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-08-02 Thread Lorraine via Bacula-users
Morning Marcin, Thank you for the update.  
I tried the alternate sudo entry but still had no luck.  I also set 
"SELINUX=disabled”  in /etc/selinux/config but nothing seems to get past this 
error.
I will continue to troubleshoot and let you know if I find anything.

Regards
Lorraine

> On 3 Aug 2023, at 7:59 am, Marcin Haba  wrote:
> 
> Hello Lorraine,
> 
> In your Bacularis sudoers file you use switching from apache user to bacula 
> user. It is correct but unfortunately Bacularis does not support it. To work 
> with this setting Bacularis needs to know about bacula user and use 
> internally "sudo -u bacula" sudo parameter to let know sudo about target user.
> 
> If you want you can omit the bacula user in sudo and then will be used the 
> default target user which is root.
> 
> Defaults:apache !requiretty
> apache ALL = NOPASSWD: /opt/bacula/bin/bconsole
> 
> In the future we will add support for -u sudo parameter.
> 
> Best regards,
> Marcin Haba (gani)
> 
> On Wed, 2 Aug 2023 at 08:43, Lorraine  > wrote:
> Hi, Yes I installed the following:
> 
> [root@nbipbac12 bin]# yum list installed | grep bacularis-selinux
> bacularis-selinux.noarch   2.1.2-1.el8
>  @bacularis-app
> 
> Regards
> Lorraine
> 
> 
> 
> 
>> On 2 Aug 2023, at 6:16 pm, Marcin Haba > > wrote:
>> 
>> SELinux
> 
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au 
> 
> w: http://www.burgess-consulting.com.au 
> 
> m: +64-21-988-950
> ddi: +61 2 8077 4296
> Suite 802, 210 Clarence St, Sydney 2000, NSW
> 
> 
> 
> 
> 
> 
> -- 
> "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

Burgess Systems Consulting
e: lorra...@burgess-consulting.com.au
w: http://www.burgess-consulting.com.au
m: +64-21-988-950
ddi: +61 2 8077 4296
Suite 802, 210 Clarence St, Sydney 2000, NSW




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


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-08-02 Thread Marcin Haba
Hello Lorraine,

In your Bacularis sudoers file you use switching from apache user to bacula
user. It is correct but unfortunately Bacularis does not support it. To
work with this setting Bacularis needs to know about bacula user and use
internally "sudo -u bacula" sudo parameter to let know sudo about target
user.

If you want you can omit the bacula user in sudo and then will be used the
default target user which is root.

Defaults:apache !requiretty
apache ALL = NOPASSWD: /opt/bacula/bin/bconsole

In the future we will add support for -u sudo parameter.

Best regards,
Marcin Haba (gani)

On Wed, 2 Aug 2023 at 08:43, Lorraine 
wrote:

> Hi, Yes I installed the following:
>
> [root@nbipbac12 bin]# yum list installed | grep bacularis-selinux
> bacularis-selinux.noarch   2.1.2-1.el8
> @bacularis-app
>
> Regards
> Lorraine
>
>
>
>
> On 2 Aug 2023, at 6:16 pm, Marcin Haba  wrote:
>
> SELinux
>
>
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au
> w: http://www.burgess-consulting.com.au
> m: +64-21-988-950
> ddi: +61 2 8077 4296
> Suite 802, 210 Clarence St, Sydney 2000, NSW
>
>
>
>

-- 
"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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-08-01 Thread Lorraine via Bacula-users
Hi, Yes I installed the following:

[root@nbipbac12 bin]# yum list installed | grep bacularis-selinux
bacularis-selinux.noarch   2.1.2-1.el8  
   @bacularis-app

Regards
Lorraine




> On 2 Aug 2023, at 6:16 pm, Marcin Haba  wrote:
> 
> SELinux

Burgess Systems Consulting
e: lorra...@burgess-consulting.com.au
w: http://www.burgess-consulting.com.au
m: +64-21-988-950
ddi: +61 2 8077 4296
Suite 802, 210 Clarence St, Sydney 2000, NSW




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


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-08-01 Thread Marcin Haba
Hello Lorraine,

Thanks for the details about your installation.

This error is a permission problem. Please make sure that you installed the
bacularis-selinux package if you have SELinux enabled in your system. Did
you install it?

Best regards,
Marcin Haba (gani)

On Wed, 2 Aug 2023 at 08:07, Lorraine 
wrote:

> Hi Marcin, Thanks for the explanation.
>
> Our current bacula configuration consists of the Director & Storage Deamon
> reside on a Linux 7.9 VM so unfortunately this rules out doing a simple
> setup of the Bacularis Web Interface/API install onto the same host.  I
> have created a new Linux 8.8 specifically for the Bacularis Web
> Interface/API.  I performed the install steps for Bacularis & I also
> installed Bacula-client for access to bconsole .
>
> It is the Bacularis Install Wizard where I am having issues.  I can make a
> connection to the Bacula Catalog Database ok, however, when it comes to
> connecting to bconsole I am experiencing sudo issues with the following
> error:
>
> "Problem with connection to bconsole. Output=>sudo: unable to open
> /run/sudo/ts/apache: Permission denied We trust you have received the usual
> lecture from the local System Administrator. It usually boils down to these
> three things: #1) Respect the privacy of others. #2) Think before you type.
> #3) With great power comes great responsibility. sudo: a terminal is
> required to read the password; either use the -S option to read from
> standard input or configure an askpass helper, Exitcode=>1”
>
> Any advice would be appreciated.
>
> Regards
> Lorraine
>
> On 2 Aug 2023, at 4:49 pm, Marcin Haba  wrote:
>
> Hello Lorraine,
>
> We don't provide rpm packages for CentOS 7 because in the system repos it
> does not have PHP >= 7.4. There is an old PHP 5.4. If you will be able to
> install on CentOS 7 host PHP >= 7.4 or greater (for example from REMI
> repository) then you can install Bacularis by Composer and it will work.
>
> For your question about installation, it depends on how you want to work
> with remote Bacula hosts. Typical installation is with one Bacularis web
> interface and many Bacularis API hosts. The web interface manages all the
> API hosts. Each API host can be configured with the following capabilities:
>
> 1) catalog connection
> 2) bconsole connection
> 3) Bacula configuration settings
> 4) Actions (Bacula components start/stop/restart)
> 5) Bacula software management (install/upgrade/remove)
>
> For hosts with Bacula clients and storage daemons useful is to have
> installed the API instance with 3) and 4) (and also 5)) but it is not
> mandatory if you are not going to change file daemon configuration via web.
> For hosts with Directors 1) and 2), 3), 4) and/or 5) can be set. All the
> API capabilities are independent and depends on what you would like to
> share on each API host, for example a host with 2) (bconsole access) and 4)
> (Actions).
>
> For new Bacularis installations you can start simple - with the web
> interface and API instance on the Director host. There is not need to
> install Bacularis on every Bacula FD and SD host until you want to work
> with its configuration on the web interface. The FDs and SDs will be
> available for administrative work on the interface anyway.
>
> The Bacularis API and Bacula component deployment on the remote hosts can
> be done via the web interface or manually. Here you can find example video
> guide with deploying Bacularis and Bacula client on a new host:
>
> https://www.youtube.com/watch?v=wsayzd7CsuU
>
> Good luck. In case questions or problems, please let us know.
>
> Best regards,
> Marcin Haba (gani)
>
> On Wed, 2 Aug 2023 at 05:01, Lorraine 
> wrote:
>
>> Hello Marcin,
>>
>> Thank you for your help.  Looks like bacularis needs to be installed
>> alongside bacula ( on the same machine ) is this assumption correct?  Also,
>> do you know if there is a bacularis release for linux 7.9?
>>
>> Regards
>> Lorraine
>>
>> On 1 Aug 2023, at 4:49 pm, Marcin Haba  wrote:
>>
>> Hello Lorraine,
>>
>> Great. For troubleshooting usually it is good to visit the Bacularis
>> documentation and the "Troubleshooting" chapter here:
>>
>> https://bacularis.app/doc/brief/troubleshooting.html
>>
>> Good luck.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Tue, 1 Aug 2023 at 06:37, Lorraine 
>> wrote:
>>
>>> Thank you Marcin
>>>
>>> I am currently troubleshooting install of Bacularis so hopefully I can
>>> use this tool instead
>>>
>>> Regards
>>> Lorraine
>>>
>>> On 31 Jul 2023, at 7:10 pm, Marcin Haba  wrote:
>>>
>>> Hello Lorraine,
>>>
>>> About a month ago I ported from Bacularis a change to enable PostgreSQL
>>> 15 support in Baculum. Unfortunately there has not been released any
>>> Baculum version with this change yet.
>>>
>>> So, please wait on the new Baculum release or use Bacularis.
>>>
>>> Best regards,
>>> Marcin Haba (gani)
>>>
>>> On Mon, 31 Jul 2023 at 08:28, Lorraine via Bacula-users <
>>> bacula-users@lists.sourceforge.net> wrote:
>>>
 Hi, 

Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-08-01 Thread Marcin Haba
Hello Lorraine,

We don't provide rpm packages for CentOS 7 because in the system repos it
does not have PHP >= 7.4. There is an old PHP 5.4. If you will be able to
install on CentOS 7 host PHP >= 7.4 or greater (for example from REMI
repository) then you can install Bacularis by Composer and it will work.

For your question about installation, it depends on how you want to work
with remote Bacula hosts. Typical installation is with one Bacularis web
interface and many Bacularis API hosts. The web interface manages all the
API hosts. Each API host can be configured with the following capabilities:

1) catalog connection
2) bconsole connection
3) Bacula configuration settings
4) Actions (Bacula components start/stop/restart)
5) Bacula software management (install/upgrade/remove)

For hosts with Bacula clients and storage daemons useful is to have
installed the API instance with 3) and 4) (and also 5)) but it is not
mandatory if you are not going to change file daemon configuration via web.
For hosts with Directors 1) and 2), 3), 4) and/or 5) can be set. All the
API capabilities are independent and depends on what you would like to
share on each API host, for example a host with 2) (bconsole access) and 4)
(Actions).

For new Bacularis installations you can start simple - with the web
interface and API instance on the Director host. There is not need to
install Bacularis on every Bacula FD and SD host until you want to work
with its configuration on the web interface. The FDs and SDs will be
available for administrative work on the interface anyway.

The Bacularis API and Bacula component deployment on the remote hosts can
be done via the web interface or manually. Here you can find example video
guide with deploying Bacularis and Bacula client on a new host:

https://www.youtube.com/watch?v=wsayzd7CsuU

Good luck. In case questions or problems, please let us know.

Best regards,
Marcin Haba (gani)

On Wed, 2 Aug 2023 at 05:01, Lorraine 
wrote:

> Hello Marcin,
>
> Thank you for your help.  Looks like bacularis needs to be installed
> alongside bacula ( on the same machine ) is this assumption correct?  Also,
> do you know if there is a bacularis release for linux 7.9?
>
> Regards
> Lorraine
>
> On 1 Aug 2023, at 4:49 pm, Marcin Haba  wrote:
>
> Hello Lorraine,
>
> Great. For troubleshooting usually it is good to visit the Bacularis
> documentation and the "Troubleshooting" chapter here:
>
> https://bacularis.app/doc/brief/troubleshooting.html
>
> Good luck.
>
> Best regards,
> Marcin Haba (gani)
>
> On Tue, 1 Aug 2023 at 06:37, Lorraine 
> wrote:
>
>> Thank you Marcin
>>
>> I am currently troubleshooting install of Bacularis so hopefully I can
>> use this tool instead
>>
>> Regards
>> Lorraine
>>
>> On 31 Jul 2023, at 7:10 pm, Marcin Haba  wrote:
>>
>> Hello Lorraine,
>>
>> About a month ago I ported from Bacularis a change to enable PostgreSQL
>> 15 support in Baculum. Unfortunately there has not been released any
>> Baculum version with this change yet.
>>
>> So, please wait on the new Baculum release or use Bacularis.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Mon, 31 Jul 2023 at 08:28, Lorraine via Bacula-users <
>> bacula-users@lists.sourceforge.net> wrote:
>>
>>> Hi, Does Baculum work with postgresql-15 ?
>>>
>>> I have the same issue as -
>>> https://sourceforge.net/p/bacula/mailman/bacula-users/thread/DB9P190MB1481FDBC055FEB2EDA24A7F8FD5EA%40DB9P190MB1481.EURP190.PROD.OUTLOOK.COM/#msg37859480
>>> 
>>>
>>> The outcome of that thread was to downgrade, this is not an option for
>>> me.  Will baculum be releasing a patch for this issue with postgresql-15?
>>>
>>> Regards
>>> Lorrain
>>>
>>> Burgess Systems Consulting
>>> e: lorra...@burgess-consulting.com.au
>>> w: http://www.burgess-consulting.com.au
>>> m: +64-21-988-950
>>> ddi: +61 2 8077 4296
>>> Suite 802, 210 Clarence St, Sydney 2000, NSW
>>>
>>>
>>> 
>>>
>>> ___
>>> 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
>>
>>
>> Burgess Systems Consulting
>> e: lorra...@burgess-consulting.com.au
>> w: http://www.burgess-consulting.com.au
>> m: +64-21-988-950
>> ddi: +61 2 8077 4296
>> Suite 802, 210 Clarence St, Sydney 2000, NSW
>>
>>
>> 
>>
>>
>
> --
> "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
>
>
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au
> w: htt

Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-08-01 Thread Lorraine via Bacula-users
Hello Marcin, 

Thank you for your help.  Looks like bacularis needs to be installed alongside 
bacula ( on the same machine ) is this assumption correct?  Also, do you know 
if there is a bacularis release for linux 7.9?

Regards
Lorraine

> On 1 Aug 2023, at 4:49 pm, Marcin Haba  wrote:
> 
> Hello Lorraine,
> 
> Great. For troubleshooting usually it is good to visit the Bacularis 
> documentation and the "Troubleshooting" chapter here:
> 
> https://bacularis.app/doc/brief/troubleshooting.html 
> 
> 
> Good luck.
> 
> Best regards,
> Marcin Haba (gani)
> 
> On Tue, 1 Aug 2023 at 06:37, Lorraine  > wrote:
> Thank you Marcin
> 
> I am currently troubleshooting install of Bacularis so hopefully I can use 
> this tool instead
> 
> Regards
> Lorraine
> 
>> On 31 Jul 2023, at 7:10 pm, Marcin Haba > > wrote:
>> 
>> Hello Lorraine,
>> 
>> About a month ago I ported from Bacularis a change to enable PostgreSQL 15 
>> support in Baculum. Unfortunately there has not been released any Baculum 
>> version with this change yet.
>> 
>> So, please wait on the new Baculum release or use Bacularis.
>> 
>> Best regards,
>> Marcin Haba (gani)
>> 
>> On Mon, 31 Jul 2023 at 08:28, Lorraine via Bacula-users 
>> > > wrote:
>> Hi, Does Baculum work with postgresql-15 ?  
>> 
>> I have the same issue as - 
>> https://sourceforge.net/p/bacula/mailman/bacula-users/thread/DB9P190MB1481FDBC055FEB2EDA24A7F8FD5EA%40DB9P190MB1481.EURP190.PROD.OUTLOOK.COM/#msg37859480
>>  
>> 
>> 
>> The outcome of that thread was to downgrade, this is not an option for me.  
>> Will baculum be releasing a patch for this issue with postgresql-15?
>> 
>> Regards
>> Lorrain
>> 
>> Burgess Systems Consulting
>> e: lorra...@burgess-consulting.com.au 
>> 
>> w: http://www.burgess-consulting.com.au 
>> 
>> m: +64-21-988-950
>> ddi: +61 2 8077 4296
>> Suite 802, 210 Clarence St, Sydney 2000, NSW
>> 
>> 
>> 
>> 
>> ___
>> 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
> 
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au 
> 
> w: http://www.burgess-consulting.com.au 
> 
> m: +64-21-988-950
> ddi: +61 2 8077 4296
> Suite 802, 210 Clarence St, Sydney 2000, NSW
> 
> 
> 
> 
> 
> 
> -- 
> "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

Burgess Systems Consulting
e: lorra...@burgess-consulting.com.au
w: http://www.burgess-consulting.com.au
m: +64-21-988-950
ddi: +61 2 8077 4296
Suite 802, 210 Clarence St, Sydney 2000, NSW




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


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-07-31 Thread Marcin Haba
Hello Lorraine,

Great. For troubleshooting usually it is good to visit the Bacularis
documentation and the "Troubleshooting" chapter here:

https://bacularis.app/doc/brief/troubleshooting.html

Good luck.

Best regards,
Marcin Haba (gani)

On Tue, 1 Aug 2023 at 06:37, Lorraine 
wrote:

> Thank you Marcin
>
> I am currently troubleshooting install of Bacularis so hopefully I can use
> this tool instead
>
> Regards
> Lorraine
>
> On 31 Jul 2023, at 7:10 pm, Marcin Haba  wrote:
>
> Hello Lorraine,
>
> About a month ago I ported from Bacularis a change to enable PostgreSQL 15
> support in Baculum. Unfortunately there has not been released any Baculum
> version with this change yet.
>
> So, please wait on the new Baculum release or use Bacularis.
>
> Best regards,
> Marcin Haba (gani)
>
> On Mon, 31 Jul 2023 at 08:28, Lorraine via Bacula-users <
> bacula-users@lists.sourceforge.net> wrote:
>
>> Hi, Does Baculum work with postgresql-15 ?
>>
>> I have the same issue as -
>> https://sourceforge.net/p/bacula/mailman/bacula-users/thread/DB9P190MB1481FDBC055FEB2EDA24A7F8FD5EA%40DB9P190MB1481.EURP190.PROD.OUTLOOK.COM/#msg37859480
>> 
>>
>> The outcome of that thread was to downgrade, this is not an option for
>> me.  Will baculum be releasing a patch for this issue with postgresql-15?
>>
>> Regards
>> Lorrain
>>
>> Burgess Systems Consulting
>> e: lorra...@burgess-consulting.com.au
>> w: http://www.burgess-consulting.com.au
>> m: +64-21-988-950
>> ddi: +61 2 8077 4296
>> Suite 802, 210 Clarence St, Sydney 2000, NSW
>>
>>
>> 
>>
>> ___
>> 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
>
>
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au
> w: http://www.burgess-consulting.com.au
> m: +64-21-988-950
> ddi: +61 2 8077 4296
> Suite 802, 210 Clarence St, Sydney 2000, NSW
>
>
>
>

-- 
"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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-07-31 Thread Lorraine via Bacula-users
Thank you Marcin

I am currently troubleshooting install of Bacularis so hopefully I can use this 
tool instead

Regards
Lorraine

> On 31 Jul 2023, at 7:10 pm, Marcin Haba  wrote:
> 
> Hello Lorraine,
> 
> About a month ago I ported from Bacularis a change to enable PostgreSQL 15 
> support in Baculum. Unfortunately there has not been released any Baculum 
> version with this change yet.
> 
> So, please wait on the new Baculum release or use Bacularis.
> 
> Best regards,
> Marcin Haba (gani)
> 
> On Mon, 31 Jul 2023 at 08:28, Lorraine via Bacula-users 
>  > wrote:
> Hi, Does Baculum work with postgresql-15 ?  
> 
> I have the same issue as - 
> https://sourceforge.net/p/bacula/mailman/bacula-users/thread/DB9P190MB1481FDBC055FEB2EDA24A7F8FD5EA%40DB9P190MB1481.EURP190.PROD.OUTLOOK.COM/#msg37859480
>  
> 
> 
> The outcome of that thread was to downgrade, this is not an option for me.  
> Will baculum be releasing a patch for this issue with postgresql-15?
> 
> Regards
> Lorrain
> 
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au 
> 
> w: http://www.burgess-consulting.com.au 
> 
> m: +64-21-988-950
> ddi: +61 2 8077 4296
> Suite 802, 210 Clarence St, Sydney 2000, NSW
> 
> 
> 
> 
> ___
> 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

Burgess Systems Consulting
e: lorra...@burgess-consulting.com.au
w: http://www.burgess-consulting.com.au
m: +64-21-988-950
ddi: +61 2 8077 4296
Suite 802, 210 Clarence St, Sydney 2000, NSW




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


Re: [Bacula-users] Baculum with postgresql-15 SQLSTATE[42804]: Datatype mismatch

2023-07-31 Thread Marcin Haba
Hello Lorraine,

About a month ago I ported from Bacularis a change to enable PostgreSQL 15
support in Baculum. Unfortunately there has not been released any Baculum
version with this change yet.

So, please wait on the new Baculum release or use Bacularis.

Best regards,
Marcin Haba (gani)

On Mon, 31 Jul 2023 at 08:28, Lorraine via Bacula-users <
bacula-users@lists.sourceforge.net> wrote:

> Hi, Does Baculum work with postgresql-15 ?
>
> I have the same issue as -
> https://sourceforge.net/p/bacula/mailman/bacula-users/thread/DB9P190MB1481FDBC055FEB2EDA24A7F8FD5EA%40DB9P190MB1481.EURP190.PROD.OUTLOOK.COM/#msg37859480
> 
>
> The outcome of that thread was to downgrade, this is not an option for
> me.  Will baculum be releasing a patch for this issue with postgresql-15?
>
> Regards
> Lorrain
>
> Burgess Systems Consulting
> e: lorra...@burgess-consulting.com.au
> w: http://www.burgess-consulting.com.au
> m: +64-21-988-950
> ddi: +61 2 8077 4296
> Suite 802, 210 Clarence St, Sydney 2000, NSW
>
>
>
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn connection

2023-07-17 Thread Marcin Haba
Hello Yakup,

Great to hear that it helped. Thanks for your feedback.

Yesterday we released a new Bacularis 2.1.0 that includes the
performance improvement for loading the dashboard. You can read about
it here:

https://bacularis.app/news/57/36/New-release-Bacularis-2.1.0/d,Bacularis%20news%20details

Best regards,
Marcin Haba (gani)

On Mon, 17 Jul 2023 at 09:46, Yakup Kaya  wrote:
>
> Hello Marcin,
>
>
> Thanks a lot! Great support from you, as usual.
>
>
> The compression significantly improved the loading time. Below is a 
> screenshot before and after the compression. Everything is much faster now. I 
> will try to replace Baculum with Bacularis on my installations as well, when 
> I have time to do it.
>
>
> https://snipboard.io/SkuHb6.jpg
>
>
> Kind regards,
>
> Yakup Kaya
>
>
> Mit freundlichen Grüßen / Kind Regards
>
> Yakup Kaya
>
> IT Engineer
>
>
> Phone: +49 (0)7541 / 282-192
>
> www.indra-avitech.aero
>
>
>
> 
> From: Marcin Haba 
> Sent: Saturday, July 15, 2023 20:34
> To: Yakup Kaya
> Cc: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
> connection
>
> Hello Yakup,
>
> Thanks for your feedback.
>
> This mod_gzip module that you indicated is for framework files, not
> for Baculum itself. I would propose to use mod_deflate. First you need
> to make sure that in your Apache instance this module is enabled in
> config:
>
> LoadModule deflate_module modules/mod_deflate.so
>
> And then in Baculum Web Apache config file you can modify 
> tag and add there lines like below:
>
> 
> AddOutputFilterByType DEFLATE text/html
> AddOutputFilterByType DEFLATE text/css
> AddOutputFilterByType DEFLATE application/javascript
> AddOutputFilterByType DEFLATE application/json
>
> ...rest options
> 
>
> After that please restart the web server and enable in the web
> developer tools in the web browser displaying compressed and
> uncompressed response size. In Google Chrome this option is named "Use
> large request rows" in the network console settings. This way you will
> see if compression works.
>
> Independent on enabling the compression I prepared changes to speed up
> loading dashboard page. I added it to Bacularis and then I ported it
> to Baculum. This change significantly improves loading the dashboard
> page. It is available from next release.
>
> Best regards,
> Marcin Haba (gani)
>
> On Fri, 14 Jul 2023 at 08:22, Yakup Kaya  
> wrote:
> >
> > Hello again,
> >
> >
> > I tried mod_deflate, but it did not change anything. I suspect that the 
> > compression is already enabled for js files with mod_gzip in 
> > baculum-web.conf file with the following lines.
> >
> >
> > 
> > mod_gzip_on Yes
> > mod_gzip_dechunk Yes
> > mod_gzip_item_include file \.js$
> > mod_gzip_item_exclude rspheader 
> > ^Content-Encoding:.*gzip.*
> > 
> >
> > Kind regards,
> >
> > Yakup Kaya
> >
> >
> > 
> > From: Yakup Kaya 
> > Sent: Friday, July 14, 2023 07:37
> > To: Marcin Haba
> > Cc: bacula-users@lists.sourceforge.net
> > Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
> > connection
> >
> >
> > Hi Marcin,
> >
> >
> > Thanks a lot for your answer. I will have a look at compression, and share 
> > my results from here. For the number of jobs listed, I already use 100 
> > (default was 15000), but in my case it does not change loading time for the 
> > dashboard. It still gets that 26.65 MB of data and loading time does not 
> > change. But that setting improves the loading time for "Job history" and I 
> > always decrease the default on my installations.
> >
> >
> > Kind regards,
> >
> > Yakup Kaya
> >
> >
> >
> > 
> > From: Marcin Haba 
> > Sent: Friday, July 14, 2023 04:03
> > To: Yakup Kaya
> > Cc: bacula-users@lists.sourceforge.net
> > Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
> > connection
> >
> > Hello Yakup,
> >
> > You can try to enable compression in your web server. Here you can see
> > how it can be done for Apache using mod_deflate module:
> >
> > https://httpd.apache.org/docs/2.4/mod/mod_deflate.html
> >
> > Also, what can speed up the process of loading

Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn connection

2023-07-17 Thread Yakup Kaya
Hello Marcin,


Thanks a lot! Great support from you, as usual.


The compression significantly improved the loading time. Below is a screenshot 
before and after the compression. Everything is much faster now. I will try to 
replace Baculum with Bacularis on my installations as well, when I have time to 
do it.


<https://snipboard.io/SkuHb6.jpg>https://snipboard.io/SkuHb6.jpg<https://snipboard.io/SkuHb6.jpg>


Kind regards,

Yakup Kaya


Mit freundlichen Grüßen / Kind Regards

[Indra Avitech Email]

Yakup Kaya

IT Engineer


Phone: +49 (0)7541 / 282-192

www.indra-avitech.aero<http://www.indra-avitech.aero/>



From: Marcin Haba 
Sent: Saturday, July 15, 2023 20:34
To: Yakup Kaya
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
connection

Hello Yakup,

Thanks for your feedback.

This mod_gzip module that you indicated is for framework files, not
for Baculum itself. I would propose to use mod_deflate. First you need
to make sure that in your Apache instance this module is enabled in
config:

LoadModule deflate_module modules/mod_deflate.so

And then in Baculum Web Apache config file you can modify 
tag and add there lines like below:


AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/json

...rest options


After that please restart the web server and enable in the web
developer tools in the web browser displaying compressed and
uncompressed response size. In Google Chrome this option is named "Use
large request rows" in the network console settings. This way you will
see if compression works.

Independent on enabling the compression I prepared changes to speed up
loading dashboard page. I added it to Bacularis and then I ported it
to Baculum. This change significantly improves loading the dashboard
page. It is available from next release.

Best regards,
Marcin Haba (gani)

On Fri, 14 Jul 2023 at 08:22, Yakup Kaya  wrote:
>
> Hello again,
>
>
> I tried mod_deflate, but it did not change anything. I suspect that the 
> compression is already enabled for js files with mod_gzip in baculum-web.conf 
> file with the following lines.
>
>
> 
> mod_gzip_on Yes
> mod_gzip_dechunk Yes
> mod_gzip_item_include file \.js$
> mod_gzip_item_exclude rspheader 
> ^Content-Encoding:.*gzip.*
> 
>
> Kind regards,
>
> Yakup Kaya
>
>
> 
> From: Yakup Kaya 
> Sent: Friday, July 14, 2023 07:37
> To: Marcin Haba
> Cc: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
> connection
>
>
> Hi Marcin,
>
>
> Thanks a lot for your answer. I will have a look at compression, and share my 
> results from here. For the number of jobs listed, I already use 100 (default 
> was 15000), but in my case it does not change loading time for the dashboard. 
> It still gets that 26.65 MB of data and loading time does not change. But 
> that setting improves the loading time for "Job history" and I always 
> decrease the default on my installations.
>
>
> Kind regards,
>
> Yakup Kaya
>
>
>
> 
> From: Marcin Haba 
> Sent: Friday, July 14, 2023 04:03
> To: Yakup Kaya
> Cc: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
> connection
>
> Hello Yakup,
>
> You can try to enable compression in your web server. Here you can see
> how it can be done for Apache using mod_deflate module:
>
> https://httpd.apache.org/docs/2.4/mod/mod_deflate.html
>
> Also, what can speed up the process of loading pages, you can limit
> the number of jobs loaded to the web interface. It is possible to do
> under the gearwheel icon in the sidebar menu at the top left.
>
> For the dashboard I think we can also improve a bit loading it. I
> noted it on my task list to check in the future. Thanks.
>
> Best regards,
> Marcin Haba (gani)
>
> On Thu, 13 Jul 2023 at 14:11, Yakup Kaya  
> wrote:
> >
> > Hello everybody,
> >
> >
> > On Baculum interface, I have a performance issue on slow remote connections 
> > (it is fast on the local machine). Sometimes it takes around 5 minutes for 
> > the Dashboard to load completely. With inspect element option on Firefox, I 
> > noticed jquery.js is getting 26.65MB of data and it is taking 229530 ms to 
> > load the whole page (because of the slow connection). Initially the 
> > Dashboard comes quickly without the &

Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn connection

2023-07-15 Thread Marcin Haba
Hello Yakup,

Thanks for your feedback.

This mod_gzip module that you indicated is for framework files, not
for Baculum itself. I would propose to use mod_deflate. First you need
to make sure that in your Apache instance this module is enabled in
config:

LoadModule deflate_module modules/mod_deflate.so

And then in Baculum Web Apache config file you can modify 
tag and add there lines like below:


AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/json

...rest options


After that please restart the web server and enable in the web
developer tools in the web browser displaying compressed and
uncompressed response size. In Google Chrome this option is named "Use
large request rows" in the network console settings. This way you will
see if compression works.

Independent on enabling the compression I prepared changes to speed up
loading dashboard page. I added it to Bacularis and then I ported it
to Baculum. This change significantly improves loading the dashboard
page. It is available from next release.

Best regards,
Marcin Haba (gani)

On Fri, 14 Jul 2023 at 08:22, Yakup Kaya  wrote:
>
> Hello again,
>
>
> I tried mod_deflate, but it did not change anything. I suspect that the 
> compression is already enabled for js files with mod_gzip in baculum-web.conf 
> file with the following lines.
>
>
> 
> mod_gzip_on Yes
> mod_gzip_dechunk Yes
> mod_gzip_item_include file \.js$
> mod_gzip_item_exclude rspheader 
> ^Content-Encoding:.*gzip.*
> 
>
> Kind regards,
>
> Yakup Kaya
>
>
> 
> From: Yakup Kaya 
> Sent: Friday, July 14, 2023 07:37
> To: Marcin Haba
> Cc: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
> connection
>
>
> Hi Marcin,
>
>
> Thanks a lot for your answer. I will have a look at compression, and share my 
> results from here. For the number of jobs listed, I already use 100 (default 
> was 15000), but in my case it does not change loading time for the dashboard. 
> It still gets that 26.65 MB of data and loading time does not change. But 
> that setting improves the loading time for "Job history" and I always 
> decrease the default on my installations.
>
>
> Kind regards,
>
> Yakup Kaya
>
>
>
> ____________
> From: Marcin Haba 
> Sent: Friday, July 14, 2023 04:03
> To: Yakup Kaya
> Cc: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
> connection
>
> Hello Yakup,
>
> You can try to enable compression in your web server. Here you can see
> how it can be done for Apache using mod_deflate module:
>
> https://httpd.apache.org/docs/2.4/mod/mod_deflate.html
>
> Also, what can speed up the process of loading pages, you can limit
> the number of jobs loaded to the web interface. It is possible to do
> under the gearwheel icon in the sidebar menu at the top left.
>
> For the dashboard I think we can also improve a bit loading it. I
> noted it on my task list to check in the future. Thanks.
>
> Best regards,
> Marcin Haba (gani)
>
> On Thu, 13 Jul 2023 at 14:11, Yakup Kaya  
> wrote:
> >
> > Hello everybody,
> >
> >
> > On Baculum interface, I have a performance issue on slow remote connections 
> > (it is fast on the local machine). Sometimes it takes around 5 minutes for 
> > the Dashboard to load completely. With inspect element option on Firefox, I 
> > noticed jquery.js is getting 26.65MB of data and it is taking 229530 ms to 
> > load the whole page (because of the slow connection). Initially the 
> > Dashboard comes quickly without the "Last 10 jobs" and the "Database size" 
> > parts. Then it waits 4-5 minutes to load that ~26 MB data and shows the 
> > rest. I wonder why this interface has to get that much data to show the 
> > information presented on Dashboard. Do you have any idea how can I improve 
> > the performance? Unfortunately I cannot change the speed of my remote 
> > connections. The link for the screenshot showing inspect element is below.
> >
> >
> > https://snipboard.io/GslPw9.jpg
> >
> >
> > Details of the system I connect is as follows:
> >
> >
> > Operating system: CentOS Linux release 7.6.1810 (Core)
> >
> > Database used: PostgreSQL (version 9.2.24)
> >
> > Bacula version: 9.6.6-1
> >
> > Baculum version: 9.6.6.1-1
> >
&

Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn connection

2023-07-13 Thread Yakup Kaya
Hello again,


I tried mod_deflate, but it did not change anything. I suspect that the 
compression is already enabled for js files with mod_gzip in baculum-web.conf 
file with the following lines.



mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.js$
mod_gzip_item_exclude rspheader 
^Content-Encoding:.*gzip.*


Kind regards,

Yakup Kaya


From: Yakup Kaya 
Sent: Friday, July 14, 2023 07:37
To: Marcin Haba
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
connection


Hi Marcin,


Thanks a lot for your answer. I will have a look at compression, and share my 
results from here. For the number of jobs listed, I already use 100 (default 
was 15000), but in my case it does not change loading time for the dashboard. 
It still gets that 26.65 MB of data and loading time does not change. But that 
setting improves the loading time for "Job history" and I always decrease the 
default on my installations.


Kind regards,

Yakup Kaya



From: Marcin Haba 
Sent: Friday, July 14, 2023 04:03
To: Yakup Kaya
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
connection

Hello Yakup,

You can try to enable compression in your web server. Here you can see
how it can be done for Apache using mod_deflate module:

https://httpd.apache.org/docs/2.4/mod/mod_deflate.html

Also, what can speed up the process of loading pages, you can limit
the number of jobs loaded to the web interface. It is possible to do
under the gearwheel icon in the sidebar menu at the top left.

For the dashboard I think we can also improve a bit loading it. I
noted it on my task list to check in the future. Thanks.

Best regards,
Marcin Haba (gani)

On Thu, 13 Jul 2023 at 14:11, Yakup Kaya  wrote:
>
> Hello everybody,
>
>
> On Baculum interface, I have a performance issue on slow remote connections 
> (it is fast on the local machine). Sometimes it takes around 5 minutes for 
> the Dashboard to load completely. With inspect element option on Firefox, I 
> noticed jquery.js is getting 26.65MB of data and it is taking 229530 ms to 
> load the whole page (because of the slow connection). Initially the Dashboard 
> comes quickly without the "Last 10 jobs" and the "Database size" parts. Then 
> it waits 4-5 minutes to load that ~26 MB data and shows the rest. I wonder 
> why this interface has to get that much data to show the information 
> presented on Dashboard. Do you have any idea how can I improve the 
> performance? Unfortunately I cannot change the speed of my remote 
> connections. The link for the screenshot showing inspect element is below.
>
>
> https://snipboard.io/GslPw9.jpg
>
>
> Details of the system I connect is as follows:
>
>
> Operating system: CentOS Linux release 7.6.1810 (Core)
>
> Database used: PostgreSQL (version 9.2.24)
>
> Bacula version: 9.6.6-1
>
> Baculum version: 9.6.6.1-1
>
> Baculum API version: 9.6.6.1-1
>
> Authentication method for users: Oauth2
>
> Kind regards,
> Yakup Kaya
>
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn connection

2023-07-13 Thread Yakup Kaya
Hi Marcin,


Thanks a lot for your answer. I will have a look at compression, and share my 
results from here. For the number of jobs listed, I already use 100 (default 
was 15000), but in my case it does not change loading time for the dashboard. 
It still gets that 26.65 MB of data and loading time does not change. But that 
setting improves the loading time for "Job history" and I always decrease the 
default on my installations.


Kind regards,

Yakup Kaya



From: Marcin Haba 
Sent: Friday, July 14, 2023 04:03
To: Yakup Kaya
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
connection

Hello Yakup,

You can try to enable compression in your web server. Here you can see
how it can be done for Apache using mod_deflate module:

https://httpd.apache.org/docs/2.4/mod/mod_deflate.html

Also, what can speed up the process of loading pages, you can limit
the number of jobs loaded to the web interface. It is possible to do
under the gearwheel icon in the sidebar menu at the top left.

For the dashboard I think we can also improve a bit loading it. I
noted it on my task list to check in the future. Thanks.

Best regards,
Marcin Haba (gani)

On Thu, 13 Jul 2023 at 14:11, Yakup Kaya  wrote:
>
> Hello everybody,
>
>
> On Baculum interface, I have a performance issue on slow remote connections 
> (it is fast on the local machine). Sometimes it takes around 5 minutes for 
> the Dashboard to load completely. With inspect element option on Firefox, I 
> noticed jquery.js is getting 26.65MB of data and it is taking 229530 ms to 
> load the whole page (because of the slow connection). Initially the Dashboard 
> comes quickly without the "Last 10 jobs" and the "Database size" parts. Then 
> it waits 4-5 minutes to load that ~26 MB data and shows the rest. I wonder 
> why this interface has to get that much data to show the information 
> presented on Dashboard. Do you have any idea how can I improve the 
> performance? Unfortunately I cannot change the speed of my remote 
> connections. The link for the screenshot showing inspect element is below.
>
>
> https://snipboard.io/GslPw9.jpg
>
>
> Details of the system I connect is as follows:
>
>
> Operating system: CentOS Linux release 7.6.1810 (Core)
>
> Database used: PostgreSQL (version 9.2.24)
>
> Bacula version: 9.6.6-1
>
> Baculum version: 9.6.6.1-1
>
> Baculum API version: 9.6.6.1-1
>
> Authentication method for users: Oauth2
>
> Kind regards,
> Yakup Kaya
>
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn connection

2023-07-13 Thread Marcin Haba
Hello Yakup,

You can try to enable compression in your web server. Here you can see
how it can be done for Apache using mod_deflate module:

https://httpd.apache.org/docs/2.4/mod/mod_deflate.html

Also, what can speed up the process of loading pages, you can limit
the number of jobs loaded to the web interface. It is possible to do
under the gearwheel icon in the sidebar menu at the top left.

For the dashboard I think we can also improve a bit loading it. I
noted it on my task list to check in the future. Thanks.

Best regards,
Marcin Haba (gani)

On Thu, 13 Jul 2023 at 14:11, Yakup Kaya  wrote:
>
> Hello everybody,
>
>
> On Baculum interface, I have a performance issue on slow remote connections 
> (it is fast on the local machine). Sometimes it takes around 5 minutes for 
> the Dashboard to load completely. With inspect element option on Firefox, I 
> noticed jquery.js is getting 26.65MB of data and it is taking 229530 ms to 
> load the whole page (because of the slow connection). Initially the Dashboard 
> comes quickly without the "Last 10 jobs" and the "Database size" parts. Then 
> it waits 4-5 minutes to load that ~26 MB data and shows the rest. I wonder 
> why this interface has to get that much data to show the information 
> presented on Dashboard. Do you have any idea how can I improve the 
> performance? Unfortunately I cannot change the speed of my remote 
> connections. The link for the screenshot showing inspect element is below.
>
>
> https://snipboard.io/GslPw9.jpg
>
>
> Details of the system I connect is as follows:
>
>
> Operating system: CentOS Linux release 7.6.1810 (Core)
>
> Database used: PostgreSQL (version 9.2.24)
>
> Bacula version: 9.6.6-1
>
> Baculum version: 9.6.6.1-1
>
> Baculum API version: 9.6.6.1-1
>
> Authentication method for users: Oauth2
>
> Kind regards,
> Yakup Kaya
>
> ___
> 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


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


Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn connection

2023-07-13 Thread Yakup Kaya
Hello everybody,


On Baculum interface, I have a performance issue on slow remote connections (it 
is fast on the local machine). Sometimes it takes around 5 minutes for the 
Dashboard to load completely. With inspect element option on Firefox, I noticed 
jquery.js is getting 26.65MB of data and it is taking 229530 ms to load the 
whole page (because of the slow connection). Initially the Dashboard comes 
quickly without the "Last 10 jobs" and the "Database size" parts. Then it waits 
4-5 minutes to load that ~26 MB data and shows the rest. I wonder why this 
interface has to get that much data to show the information presented on 
Dashboard. Do you have any idea how can I improve the performance? 
Unfortunately I cannot change the speed of my remote connections. The link for 
the screenshot showing inspect element is below.


https://snipboard.io/GslPw9.jpg


Details of the system I connect is as follows:


Operating system: CentOS Linux release 7.6.1810 (Core)

Database used: PostgreSQL (version 9.2.24)

Bacula version: 9.6.6-1

Baculum version: 9.6.6.1-1

Baculum API version: 9.6.6.1-1

Authentication method for users: Oauth2

Kind regards,
Yakup Kaya
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum Restore Wizard Boxes are Empty

2023-05-28 Thread Marcin Haba
Hello Chris,

Yes, something had to be wrong in the Bvfs cache. Good to hear that you
solved it by clearing it.

Best regards,
Marcin Haba (gani)

On Sat, 27 May 2023 at 22:45, Chris Wilkinson 
wrote:

> I answered my own question when I remembered an old post by Marcin on a
> similar issue. The answer there was to clear the bvfs cache with
> "clear_bvfs_cache yes" in bconsole. This had the desired effect.
>
> -Chris-
>
> On Fri, 26 May 2023, 20:45 Chris Wilkinson, 
> wrote:
>
>> When I use the restore wizard and get to step 3 where the file selection
>> boxes are, I get an empty path box at the top and empty boxes below with
>> this message.
>>
>> "No file found for selected backup. It can mean file records for this
>> backup are pruned. Restoring selected files is not available but if you
>> continue, there will be performed full restore all backup files.
>> Path: 
>>
>> In the past I have typed / in the path box and the selection box then
>> populates. Today this isn't working, the selection box remains empty except
>> for .0 and ..0
>>
>> The file records haven't been pruned since the backup job had just run
>> successfully. If I run the same restore manually, it runs OK and I can
>> follow its progress in Baculum as usual.
>>
>> The one job that the wizard works for is the catalog. This is stored
>> locally whereas for all the non-working restores, volumes are stored on
>> mounted USB disks or CIFS shares
>>
>> I wondered if this might be Bacula not seeing the volumes. Ls on the
>> storage device shows all volumes are owned by bacula:tape, 0x640 and the SD
>> runs as bacula:tape so it doesn't seem to be a permissions issue. Backups
>> are working normally.
>>
>> I turned on debug and ran a restore again but am not seeing anything out
>> of the ordinary in the log file. Its 300k so won't post it here.
>>
>> I'm somewhat stuck now what to check next. Any suggestions would be most
>> welcome.
>>
>> Thanks
>>
>> -Chris-
>>
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum Restore Wizard Boxes are Empty

2023-05-27 Thread Chris Wilkinson
I answered my own question when I remembered an old post by Marcin on a
similar issue. The answer there was to clear the bvfs cache with
"clear_bvfs_cache yes" in bconsole. This had the desired effect.

-Chris-

On Fri, 26 May 2023, 20:45 Chris Wilkinson,  wrote:

> When I use the restore wizard and get to step 3 where the file selection
> boxes are, I get an empty path box at the top and empty boxes below with
> this message.
>
> "No file found for selected backup. It can mean file records for this
> backup are pruned. Restoring selected files is not available but if you
> continue, there will be performed full restore all backup files.
> Path: 
>
> In the past I have typed / in the path box and the selection box then
> populates. Today this isn't working, the selection box remains empty except
> for .0 and ..0
>
> The file records haven't been pruned since the backup job had just run
> successfully. If I run the same restore manually, it runs OK and I can
> follow its progress in Baculum as usual.
>
> The one job that the wizard works for is the catalog. This is stored
> locally whereas for all the non-working restores, volumes are stored on
> mounted USB disks or CIFS shares
>
> I wondered if this might be Bacula not seeing the volumes. Ls on the
> storage device shows all volumes are owned by bacula:tape, 0x640 and the SD
> runs as bacula:tape so it doesn't seem to be a permissions issue. Backups
> are working normally.
>
> I turned on debug and ran a restore again but am not seeing anything out
> of the ordinary in the log file. Its 300k so won't post it here.
>
> I'm somewhat stuck now what to check next. Any suggestions would be most
> welcome.
>
> Thanks
>
> -Chris-
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum Retention Time Units

2023-05-03 Thread Marcin Haba
Hello Chris,

Yes, it is.

To read Bacula configs Baculum uses the Bacula JSON tools. These tools
return values in seconds. If in the future they will support units, Baculum
and Bacularis will support it too.

Best regards,
Marcin Haba (gani)

On Wed, 3 May 2023 at 17:03, Chris Wilkinson  wrote:

> Is it still the case that Baculum writes out Retention time specs always
> in seconds and without a unit specifier rather than with the min/hr/day etc
> unit in the webform?
>
> It does seem so since the dir config has the times as unitless after a
> config is saved. The default unit is seconds I think.
>
> This also seems to apply to size specs where they are always saved in
> bytes.
>
> I'm using v11 and haven't looked at Bacularis yet.
>
> Regards
> Chris Wilkinson
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum UI tweak : adding columns to volume page view

2023-05-02 Thread Lionel PLASSE
Ok cool,

great thanks,


De : Marcin Haba 
Envoyé : lundi 1 mai 2023 13:54
À : Lionel PLASSE 
Cc : bacula-users@lists.sourceforge.net
Objet : Re: [Bacula-users] Baculum UI tweak : adding columns to volume page view

Hello Lionel,

I added this function to Bacularis.

Later I ported it to Baculum:

https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/commit/f867ed2732d10cbb0e789341fd37a3f905b7db51

Now in the application settings (under gearwheel icon at the top left part of 
the interface) are three radio options to set preserving table settings:

1) No time limit (persistent settings)
2) Until end of web browser session
3) For specific time
Keep table settings for: [2][V hours]

Default is selected option 3) with predefined value 2 hours. Users can set in 
the input own time setting or use option 1) for keeping settings all the time 
or use option 2) to keep it until closing the web browser.

Best regards,
Marcin Haba (gani)

On Sun, 30 Apr 2023 at 10:45, Marcin Haba 
mailto:ganius...@gmail.com>> wrote:
Hello Lionel,

The table settings are remembered for 2 hours.

I think that your idea is good to have an option to switch table settings to 
persistent.

I will try to add it in the near future. I will let know in this thread too 
when it is ready.

Thanks.

Best regards,
Marcin Haba (gani)

On Fri, 28 Apr 2023 at 12:27, Lionel PLASSE 
mailto:pla...@cofiem.fr>> wrote:
Hello,


I have not found a way to add a column by default in the Volume page of 
Baculum. I often need to view the "when-expire" column and I'm bored of adding 
it manually eachtime :)

Where can I add  it by default (maybe on php files of baculum but... ). A 
config is possible?

Best regards,


PLASSE Lionel | Administrateur systŠmes et r‚seaux
221 All‚e de F‚tan
01600 TREVOUX | Plan d'accŠs
Tel : 04.37.49.91.39
pla...@cofiem.fr<mailto:pla...@cofiem.fr>
www.cofiem.fr<http://www.cofiem.fr> | 
www.cofiem-robotics.fr<http://www.cofiem-robotics.fr>







___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net<mailto: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


--
"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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum UI tweak : adding columns to volume page view

2023-05-01 Thread Marcin Haba
Hello Lionel,

I added this function to Bacularis.

Later I ported it to Baculum:

https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/commit/f867ed2732d10cbb0e789341fd37a3f905b7db51

Now in the application settings (under gearwheel icon at the top left part
of the interface) are three radio options to set preserving table settings:

1) No time limit (persistent settings)
2) Until end of web browser session
3) For specific time
Keep table settings for: [2][V hours]

Default is selected option 3) with predefined value 2 hours. Users can set
in the input own time setting or use option 1) for keeping settings all the
time or use option 2) to keep it until closing the web browser.

Best regards,
Marcin Haba (gani)

On Sun, 30 Apr 2023 at 10:45, Marcin Haba  wrote:

> Hello Lionel,
>
> The table settings are remembered for 2 hours.
>
> I think that your idea is good to have an option to switch table settings
> to persistent.
>
> I will try to add it in the near future. I will let know in this thread
> too when it is ready.
>
> Thanks.
>
> Best regards,
> Marcin Haba (gani)
>
> On Fri, 28 Apr 2023 at 12:27, Lionel PLASSE  wrote:
>
>> Hello,
>>
>>
>> I have not found a way to add a column by default in the Volume page of
>> Baculum. I often need to view the "when-expire" column and I'm bored of
>> adding it manually eachtime :)
>>
>> Where can I add  it by default (maybe on php files of baculum but... ). A
>> config is possible?
>>
>> Best regards,
>>
>>
>> PLASSE Lionel | Administrateur systŠmes et r‚seaux
>> 221 All‚e de F‚tan
>> 01600 TREVOUX | Plan d'accŠs
>> Tel : 04.37.49.91.39
>> pla...@cofiem.fr
>> www.cofiem.fr | www.cofiem-robotics.fr
>>
>>
>>
>>
>>
>>
>>
>> ___
>> 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
>


-- 
"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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum UI tweak : adding columns to volume page view

2023-04-30 Thread Marcin Haba
Hello Lionel,

The table settings are remembered for 2 hours.

I think that your idea is good to have an option to switch table settings
to persistent.

I will try to add it in the near future. I will let know in this thread too
when it is ready.

Thanks.

Best regards,
Marcin Haba (gani)

On Fri, 28 Apr 2023 at 12:27, Lionel PLASSE  wrote:

> Hello,
>
>
> I have not found a way to add a column by default in the Volume page of
> Baculum. I often need to view the "when-expire" column and I'm bored of
> adding it manually eachtime :)
>
> Where can I add  it by default (maybe on php files of baculum but... ). A
> config is possible?
>
> Best regards,
>
>
> PLASSE Lionel | Administrateur systŠmes et r‚seaux
> 221 All‚e de F‚tan
> 01600 TREVOUX | Plan d'accŠs
> Tel : 04.37.49.91.39
> pla...@cofiem.fr
> www.cofiem.fr | www.cofiem-robotics.fr
>
>
>
>
>
>
>
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum 401 Unauthorized

2023-03-13 Thread Adam Weremczuk

It worked, thank you Marcin.

On 09/03/2023 19:13, Marcin Haba wrote:

Hello Adam,

Thanks for your detailed report.

Described behavior is not dangerous but I agree that it is not too 
natural. It will be fixed in the next release.


For now if you want you can try a patch. I am sending it in attachment. 
It should help for this problem.


Best regards,
Marcin Haba (gani)

On Tue, 7 Mar 2023 at 14:36, Adam Weremczuk > wrote:


Hi all,

Bacula 9.6.7
Baculum 9.6.6
Debian 11.6

It installed and configured fine:

- Catalog API
- Console API
- Config API
- Actions (start, stop restart Bacula services): skipped
- Custom SSL cert added for ports 9095 and 9096

Bacula and Bacula Web seem to be working fine (backups, restores, tape
management, listings etc.).

I've noticed though bursts of 8 x 401 errors
/var/log/apache2/baculum-api-access.log happening every minute, e.g:

192.168.x.x - - [06/Mar/2023:16:35:09 +] "GET
/api/v1/pools?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
192.168.x.x - - [06/Mar/2023:16:35:09 +] "GET
/api/v1/jobs/totals?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
192.168.x.x - - [06/Mar/2023:16:35:09 +] "GET
/api/v1/dbsize?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
192.168.x.x - - [06/Mar/2023:16:36:09 +] "GET
/api/v1/jobs?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
192.168.x.x - - [06/Mar/2023:16:36:09 +] "GET
/api/v1/jobs/?jobstatus=CR&director=bacula-dir HTTP/1.1" 401 3597
"-" "-"
192.168.x.x - - [06/Mar/2023:16:36:09 +] "GET
/api/v1/clients?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
192.168.x.x - - [06/Mar/2023:16:36:09 +] "GET
/api/v1/pools?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"

192.168.x.x is the IP of Bacula director.

No clues in error logs from the same day:

cat /var/log/apache2/error.log.1
[Mon Mar 06 00:00:01.618268 2023] [mpm_prefork:notice] [pid 1881723]
AH00163: Apache/2.4.54 (Debian) OpenSSL/1.1.1n configured -- resuming
normal operations
[Mon Mar 06 00:00:01.618291 2023] [core:notice] [pid 1881723] AH00094:
Command line: '/usr/sbin/apache2'
[Tue Mar 07 00:00:02.124967 2023] [mpm_prefork:notice] [pid 1881723]
AH00171: Graceful restart requested, doing restart

cat /var/log/apache2/baculum-api-error.log.1
[Mon Mar 06 00:00:01.618032 2023] [ssl:warn] [pid 1881723] AH01909:
localhost:443:0 server certificate does NOT include an ID which matches
the server name

cat /var/log/apache2/baculum-web-error.log.1
[Mon Mar 06 00:00:01.617261 2023] [ssl:warn] [pid 1881723] AH01909:
localhost:443:0 server certificate does NOT include an ID which matches
the server name


Daily AIDE log digest gives me this:

   - httpd Begin 

   64.55 MB transferred in 12133 responses  (1xx 0, 2xx 6639, 3xx 6,
4xx
5488, 5xx 0)
          7 Images (0.03 MB),
       3553 Content pages (15.71 MB),
       8573 Other (48.81 MB)

   Requests with error response codes
      400 Bad Request
         /: 2 Time(s)
      401 Unauthorized
         /api/v1/jobs/?jobstatus=CR&director=bacula-dir: 869 Time(s)
         /api/v1/clients?director=bacula-dir: 823 Time(s)
         /api/v1/jobs?director=bacula-dir: 817 Time(s)
         /api/v1/dbsize?director=bacula-dir: 812 Time(s)
         /api/v1/jobs/totals?director=bacula-dir: 812 Time(s)
         /api/v1/pools?director=bacula-dir: 812 Time(s)
         /api/v1/status/client/?name=client1-fd&type= ...
ector=bacula-dir: 148 Time(s)
         /api/v1/clients/4?director=bacula-dir: 74 Time(s)
         /api/v1/jobs/?name=restore&limit=15000&director=bacula-dir: 50
Time(s)
         /api/v1/joblog/64/?show_time=0&director=bacula-dir: 43 Time(s)
         /api/v1/jobs/64?director=bacula-dir: 42 Time(s)
         /api/v1/config?director=bacula-dir: 19 Time(s)
(...)

What authorization is missing and how to fix it?

Regards,
Adam


___
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



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


Re: [Bacula-users] Baculum 11.6 Adding new section block or File/Dir Field error

2023-03-13 Thread Lionel PLASSE
Ok thanks,


PLASSE Lionel | Administrateur systèmes et réseaux 
221 Allée de Fétan
01600 TREVOUX | 
https://www.google.fr/maps/place/221+Allée+de+Fétan,+01600+Trévoux/@45.9445028,4.7581844,17z/data=!4m13!1m7!3m6!1s0x47f4906e98463259:0x32e33a7755284538!2zMjEyIEFsbMOpZSBkZSBGw6l0YW4sIDAxNjAwIFRyw6l2b3V4!3b1!8m2!3d45.9444281!4d4.7578088!3m4!1s0x47f4906e98463259:0x32e33a7755284538!8m2!3d45.9444281!4d4.7578088?hl=fr
Tel : 04.37.49.91.39
pla...@cofiem.fr
https://www.cofiem.fr/ | https://www.cofiem-robotics.fr/

 



De : Marcin Haba  
Envoyé : vendredi 10 mars 2023 19:54
À : Lionel PLASSE 
Cc : bacula-users 
Objet : Re: [Bacula-users] Baculum 11.6 Adding new section block or File/Dir 
Field error

Hello Lionel,

This is a bug that is fixed in Branch-13.0 starting from version 13.0.0.

https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/commit/b706fe1929ae5655eb0899392101f93713e4dffc

Best regards,
Marcin Haba (gani)

On Fri, 10 Mar 2023 at 10:16, Lionel PLASSE <mailto:pla...@cofiem.fr> wrote:
Hello,

I'm testing baculum 11.6 with Bacula 13.0.1 on Debian bullseye , php v 8.2.3 , 
mysql Ver 15.1 Distrib 10.10.3-MariaDB, apache2  

All works good except when I want to add an  option block  or include/exlude 
block in a fileset or add a new single file/directory
  it always focus on the last current field or block and don't create new 
fields or blocks

It is the same in job section when adding a runscript block

In firefox (but don't works on edge/chromium too)
TypeError with message "method_exists(): Argument #1 ($object_or_class) must be 
of type object|string, null given" in 
/usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveControlTemplate.php(37)
Stack trace:
  #0 
/usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveControlTemplate.php(37):
 undefined->method_exists()
  #1 
/usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveTemplate.php(108): 
DirectiveControlTemplate->getCmdParam()
  #2 
/usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveTemplate.php(190): 
DirectiveTemplate->saveValue()
  #3 /usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveTextBox.php(46): 
DirectiveTemplate->getDirectiveValue()
  #4 
/usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveRenderer.php(129): 
DirectiveTextBox->createDirective()
  #5 
/usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveRenderer.php(88): 
DirectiveRenderer->createItem()
  #6 
/usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveRenderer.php(82): 
DirectiveRenderer->createItemInternal()
  #7 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1681):
 DirectiveRenderer->loadState()
  #8 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1250):
 Prado\Web\UI\TControl->loadStateRecursive()
  #9 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControlCollection.php(65):
 Prado\Web\UI\TControl->addedControl()
  #10 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Collections/TList.php(144):
 Prado\Web\UI\TControlCollection->insertAt()
  #11 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/WebControls/TRepeater.php(473):
 Prado\Collections\TList->add()
  #12 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/WebControls/TRepeater.php(637):
 Prado\Web\UI\WebControls\TRepeater->createItemInternal()
  #13 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/WebControls/TRepeater.php(606):
 Prado\Web\UI\WebControls\TRepeater->restoreItemsFromViewState()
  #14 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControlAdapter.php(71):
 Prado\Web\UI\WebControls\TRepeater->loadState()
  #15 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1679):
 Prado\Web\UI\TControlAdapter->loadState()
  #16 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
 Prado\Web\UI\TControl->loadStateRecursive()
  #17 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
 Prado\Web\UI\TControl->loadStateRecursive()
  #18 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
 Prado\Web\UI\TControl->loadStateRecursive()
  #19 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
 Prado\Web\UI\TControl->loadStateRecursive()
  #20 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
 Prado\Web\UI\TControl->loadStateRecursive()
  #21 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
 Prado\Web\UI\TControl->loadStateRecursive()
  #22 
/usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web

Re: [Bacula-users] Baculum 11.6 Adding new section block or File/Dir Field error

2023-03-10 Thread Marcin Haba
Hello Lionel,

This is a bug that is fixed in Branch-13.0 starting from version 13.0.0.

https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/commit/b706fe1929ae5655eb0899392101f93713e4dffc

Best regards,
Marcin Haba (gani)

On Fri, 10 Mar 2023 at 10:16, Lionel PLASSE  wrote:

> Hello,
>
> I'm testing baculum 11.6 with Bacula 13.0.1 on Debian bullseye , php v
> 8.2.3 , mysql Ver 15.1 Distrib 10.10.3-MariaDB, apache2
>
> All works good except when I want to add an  option block  or
> include/exlude block in a fileset or add a new single file/directory
>   it always focus on the last current field or block and don't create new
> fields or blocks
>
> It is the same in job section when adding a runscript block
>
> In firefox (but don't works on edge/chromium too)
> TypeError with message "method_exists(): Argument #1 ($object_or_class)
> must be of type object|string, null given" in
> /usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveControlTemplate.php(37)
> Stack trace:
>   #0
> /usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveControlTemplate.php(37):
> undefined->method_exists()
>   #1
> /usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveTemplate.php(108):
> DirectiveControlTemplate->getCmdParam()
>   #2
> /usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveTemplate.php(190):
> DirectiveTemplate->saveValue()
>   #3
> /usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveTextBox.php(46):
> DirectiveTemplate->getDirectiveValue()
>   #4
> /usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveRenderer.php(129):
> DirectiveTextBox->createDirective()
>   #5
> /usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveRenderer.php(88):
> DirectiveRenderer->createItem()
>   #6
> /usr/share/baculum/htdocs/protected/Web/Portlets/DirectiveRenderer.php(82):
> DirectiveRenderer->createItemInternal()
>   #7
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1681):
> DirectiveRenderer->loadState()
>   #8
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1250):
> Prado\Web\UI\TControl->loadStateRecursive()
>   #9
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControlCollection.php(65):
> Prado\Web\UI\TControl->addedControl()
>   #10
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Collections/TList.php(144):
> Prado\Web\UI\TControlCollection->insertAt()
>   #11
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/WebControls/TRepeater.php(473):
> Prado\Collections\TList->add()
>   #12
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/WebControls/TRepeater.php(637):
> Prado\Web\UI\WebControls\TRepeater->createItemInternal()
>   #13
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/WebControls/TRepeater.php(606):
> Prado\Web\UI\WebControls\TRepeater->restoreItemsFromViewState()
>   #14
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControlAdapter.php(71):
> Prado\Web\UI\WebControls\TRepeater->loadState()
>   #15
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1679):
> Prado\Web\UI\TControlAdapter->loadState()
>   #16
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
> Prado\Web\UI\TControl->loadStateRecursive()
>   #17
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
> Prado\Web\UI\TControl->loadStateRecursive()
>   #18
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
> Prado\Web\UI\TControl->loadStateRecursive()
>   #19
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
> Prado\Web\UI\TControl->loadStateRecursive()
>   #20
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
> Prado\Web\UI\TControl->loadStateRecursive()
>   #21
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1667):
> Prado\Web\UI\TControl->loadStateRecursive()
>   #22
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TPage.php(794):
> Prado\Web\UI\TControl->loadStateRecursive()
>   #23
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TPage.php(340):
> Prado\Web\UI\TPage->loadPageState()
>   #24
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/UI/TPage.php(203):
> Prado\Web\UI\TPage->processCallbackRequest()
>   #25
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/Services/TPageService.php(528):
> Prado\Web\UI\TPage->run()
>   #26
> /usr/share/baculum/htdocs/protected/vendor/pradosoft/prado/framework/Web/Services/TPageService.php(465):
> Prado\Web\Services\TPageService->runPage()
>   #27
> /usr/share/baculum/htdocs/protected/vendor/prado

Re: [Bacula-users] Baculum 401 Unauthorized

2023-03-09 Thread Marcin Haba
Hello Adam,

Thanks for your detailed report.

Described behavior is not dangerous but I agree that it is not too natural.
It will be fixed in the next release.

For now if you want you can try a patch. I am sending it in attachment. It
should help for this problem.

Best regards,
Marcin Haba (gani)

On Tue, 7 Mar 2023 at 14:36, Adam Weremczuk  wrote:

> Hi all,
>
> Bacula 9.6.7
> Baculum 9.6.6
> Debian 11.6
>
> It installed and configured fine:
>
> - Catalog API
> - Console API
> - Config API
> - Actions (start, stop restart Bacula services): skipped
> - Custom SSL cert added for ports 9095 and 9096
>
> Bacula and Bacula Web seem to be working fine (backups, restores, tape
> management, listings etc.).
>
> I've noticed though bursts of 8 x 401 errors
> /var/log/apache2/baculum-api-access.log happening every minute, e.g:
>
> 192.168.x.x - - [06/Mar/2023:16:35:09 +] "GET
> /api/v1/pools?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
> 192.168.x.x - - [06/Mar/2023:16:35:09 +] "GET
> /api/v1/jobs/totals?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
> 192.168.x.x - - [06/Mar/2023:16:35:09 +] "GET
> /api/v1/dbsize?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
> 192.168.x.x - - [06/Mar/2023:16:36:09 +] "GET
> /api/v1/jobs?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
> 192.168.x.x - - [06/Mar/2023:16:36:09 +] "GET
> /api/v1/jobs/?jobstatus=CR&director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
> 192.168.x.x - - [06/Mar/2023:16:36:09 +] "GET
> /api/v1/clients?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
> 192.168.x.x - - [06/Mar/2023:16:36:09 +] "GET
> /api/v1/pools?director=bacula-dir HTTP/1.1" 401 3597 "-" "-"
>
> 192.168.x.x is the IP of Bacula director.
>
> No clues in error logs from the same day:
>
> cat /var/log/apache2/error.log.1
> [Mon Mar 06 00:00:01.618268 2023] [mpm_prefork:notice] [pid 1881723]
> AH00163: Apache/2.4.54 (Debian) OpenSSL/1.1.1n configured -- resuming
> normal operations
> [Mon Mar 06 00:00:01.618291 2023] [core:notice] [pid 1881723] AH00094:
> Command line: '/usr/sbin/apache2'
> [Tue Mar 07 00:00:02.124967 2023] [mpm_prefork:notice] [pid 1881723]
> AH00171: Graceful restart requested, doing restart
>
> cat /var/log/apache2/baculum-api-error.log.1
> [Mon Mar 06 00:00:01.618032 2023] [ssl:warn] [pid 1881723] AH01909:
> localhost:443:0 server certificate does NOT include an ID which matches
> the server name
>
> cat /var/log/apache2/baculum-web-error.log.1
> [Mon Mar 06 00:00:01.617261 2023] [ssl:warn] [pid 1881723] AH01909:
> localhost:443:0 server certificate does NOT include an ID which matches
> the server name
>
>
> Daily AIDE log digest gives me this:
>
>   - httpd Begin 
>
>   64.55 MB transferred in 12133 responses  (1xx 0, 2xx 6639, 3xx 6, 4xx
> 5488, 5xx 0)
>  7 Images (0.03 MB),
>   3553 Content pages (15.71 MB),
>   8573 Other (48.81 MB)
>
>   Requests with error response codes
>  400 Bad Request
> /: 2 Time(s)
>  401 Unauthorized
> /api/v1/jobs/?jobstatus=CR&director=bacula-dir: 869 Time(s)
> /api/v1/clients?director=bacula-dir: 823 Time(s)
> /api/v1/jobs?director=bacula-dir: 817 Time(s)
> /api/v1/dbsize?director=bacula-dir: 812 Time(s)
> /api/v1/jobs/totals?director=bacula-dir: 812 Time(s)
> /api/v1/pools?director=bacula-dir: 812 Time(s)
> /api/v1/status/client/?name=client1-fd&type= ...
> ector=bacula-dir: 148 Time(s)
> /api/v1/clients/4?director=bacula-dir: 74 Time(s)
> /api/v1/jobs/?name=restore&limit=15000&director=bacula-dir: 50
> Time(s)
> /api/v1/joblog/64/?show_time=0&director=bacula-dir: 43 Time(s)
> /api/v1/jobs/64?director=bacula-dir: 42 Time(s)
> /api/v1/config?director=bacula-dir: 19 Time(s)
> (...)
>
> What authorization is missing and how to fix it?
>
> Regards,
> Adam
>
>
> ___
> 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
diff --git a/gui/baculum/protected/Web/Modules/BaculumAPIClient.php b/gui/baculum/protected/Web/Modules/BaculumAPIClient.php
index 61c19cf877..5c5c2e17d7 100644
--- a/gui/baculum/protected/Web/Modules/BaculumAPIClient.php
+++ b/gui/baculum/protected/Web/Modules/BaculumAPIClient.php
@@ -97,8 +97,8 @@ class BaculumAPIClient extends WebModule {
 		if (count($host_cfg) > 0 && $host_cfg['auth_type'] === 'basic') {
 			$userpwd = sprintf('%s:%s', $host_cfg['login'], $host_cfg['password']);
 			curl_setopt($ch, CURLOPT_USERPWD, $userpwd);
+			curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
 		}
-		curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
 		curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
 		curl_setopt($ch

Re: [Bacula-users] Baculum, LDAP and disable the 'server basic auth'...

2023-02-05 Thread Marcin Haba
Hello d09,

Yes, you can. In the documentation is written for the local user
authentication:

"This type of authentication is realized by HTML form in the Baculum Web.
Once this method is enabled, the web server basic authentication can be
disabled."

Best regards,
Marcin Haba (gani)

On Sun, 5 Feb 2023 at 18:00,  wrote:

>
> How do I enable "local user" authentication so I can disable the
> apache-based authentication?  The docs don't say.
>
> ---
>
> On 2/5/2023 6:44 AM, Marcin Haba wrote:
> > Hello Marco,
> >
> > Thanks for confirmation and for the idea to add to the documentation
> > information about disabling the basic authentication.
> >
> > I have added it:
> >
> > https://baculum.app/doc/brief/configuration.html#baculum-web
> > 
> >
> > Best regards,
> > Marcin Haba (gani)
> >
> > On Fri, 3 Feb 2023 at 15:07, Marco Gaiarin  > > wrote:
> >
> > Mandi! Marcin Haba
> >In chel di` si favelave...
> >
> >  > If you use LDAP authentication, all this Apache block with Basic
> > auth can be
> >  > removed. In this place you can write:
> >  >
> >  > # Apache 2.4
> >  > 
> >  >
> >  >Require all granted
> >  >
> >  > 
> >
> > Bingo! It worked!
> >
> >
> > Can be written somewhhere, eg in documentation and/or in the apache
> > virtualhost file example?
> >
> > I've written, for example:
> >
> >  # Apache 2.4
> >  
> >  
> >  # Using 'HTTP Basic' authentication,
> > comment for other method.
> >  #SetEnvIf Request_URI "^/web/redirect$"
> > noauth=1
> >  #
> >  #   
> >  #   
> >  #   Require env noauth
> >  #   Require env
> > REDIRECT_noauth
> >  #   
> >  #   Require all granted
> >  #   
> >  #   
> >  #   AuthType Basic
> >  #   AuthName "Baculum Auth"
> >  #   AuthUserFile
> > /usr/share/baculum/htdocs/protected/Web/Config/baculum.users
> >  #   Require not env noauth
> >  #   Require not env
> REDIRECT_noauth
> >  #   Require valid-user
> >  #   
> >  #
> >
> >  # Using 'Local user' or 'LDAP'
> > authentication, comment for 'HTTP Basic'.
> >  Require all granted
> >  
> >  
> >
> >
> > Thanks!
> >
> >
> > ___
> > 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
> >
> >
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum, LDAP and disable the 'server basic auth'...

2023-02-05 Thread d09


How do I enable "local user" authentication so I can disable the 
apache-based authentication?  The docs don't say.


---

On 2/5/2023 6:44 AM, Marcin Haba wrote:

Hello Marco,

Thanks for confirmation and for the idea to add to the documentation 
information about disabling the basic authentication.


I have added it:

https://baculum.app/doc/brief/configuration.html#baculum-web 



Best regards,
Marcin Haba (gani)

On Fri, 3 Feb 2023 at 15:07, Marco Gaiarin > wrote:


Mandi! Marcin Haba
   In chel di` si favelave...

 > If you use LDAP authentication, all this Apache block with Basic
auth can be
 > removed. In this place you can write:
 >
 > # Apache 2.4
 > 
 >        
 >                Require all granted
 >        
 > 

Bingo! It worked!


Can be written somewhhere, eg in documentation and/or in the apache
virtualhost file example?

I've written, for example:

         # Apache 2.4
         
                 
                         # Using 'HTTP Basic' authentication,
comment for other method.
                         #SetEnvIf Request_URI "^/web/redirect$"
noauth=1
                         #
                         #       
                         #               
                         #                       Require env noauth
                         #                       Require env
REDIRECT_noauth
                         #               
                         #               Require all granted
                         #       
                         #       
                         #               AuthType Basic
                         #               AuthName "Baculum Auth"
                         #               AuthUserFile
/usr/share/baculum/htdocs/protected/Web/Config/baculum.users
                         #               Require not env noauth
                         #               Require not env REDIRECT_noauth
                         #               Require valid-user
                         #       
                         #

                         # Using 'Local user' or 'LDAP'
authentication, comment for 'HTTP Basic'.
                         Require all granted
                 
         


Thanks!


___
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



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



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


Re: [Bacula-users] Baculum, LDAP and disable the 'server basic auth'...

2023-02-05 Thread Marcin Haba
Hello Marco,

Thanks for confirmation and for the idea to add to the documentation
information about disabling the basic authentication.

I have added it:

https://baculum.app/doc/brief/configuration.html#baculum-web

Best regards,
Marcin Haba (gani)

On Fri, 3 Feb 2023 at 15:07, Marco Gaiarin  wrote:

> Mandi! Marcin Haba
>   In chel di` si favelave...
>
> > If you use LDAP authentication, all this Apache block with Basic auth
> can be
> > removed. In this place you can write:
> >
> > # Apache 2.4
> > 
> >
> >Require all granted
> >
> > 
>
> Bingo! It worked!
>
>
> Can be written somewhhere, eg in documentation and/or in the apache
> virtualhost file example?
>
> I've written, for example:
>
> # Apache 2.4
> 
> 
> # Using 'HTTP Basic' authentication, comment for
> other method.
> #SetEnvIf Request_URI "^/web/redirect$" noauth=1
> #
> #   
> #   
> #   Require env noauth
> #   Require env REDIRECT_noauth
> #   
> #   Require all granted
> #   
> #   
> #   AuthType Basic
> #   AuthName "Baculum Auth"
> #   AuthUserFile
> /usr/share/baculum/htdocs/protected/Web/Config/baculum.users
> #   Require not env noauth
> #   Require not env REDIRECT_noauth
> #   Require valid-user
> #   
> #
>
> # Using 'Local user' or 'LDAP' authentication,
> comment for 'HTTP Basic'.
> Require all granted
> 
> 
>
>
> Thanks!
>
>
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum, LDAP and disable the 'server basic auth'...

2023-02-03 Thread Marco Gaiarin
Mandi! Marcin Haba
  In chel di` si favelave...

> If you use LDAP authentication, all this Apache block with Basic auth can be
> removed. In this place you can write:
> 
> # Apache 2.4
> 
>        
>                Require all granted
>        
> 

Bingo! It worked!


Can be written somewhhere, eg in documentation and/or in the apache
virtualhost file example?

I've written, for example:

# Apache 2.4


# Using 'HTTP Basic' authentication, comment for other 
method.
#SetEnvIf Request_URI "^/web/redirect$" noauth=1
#
#   
#   
#   Require env noauth
#   Require env REDIRECT_noauth
#   
#   Require all granted
#   
#   
#   AuthType Basic
#   AuthName "Baculum Auth"
#   AuthUserFile 
/usr/share/baculum/htdocs/protected/Web/Config/baculum.users
#   Require not env noauth
#   Require not env REDIRECT_noauth
#   Require valid-user
#   
#

# Using 'Local user' or 'LDAP' authentication, comment 
for 'HTTP Basic'.
Require all granted




Thanks!


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


Re: [Bacula-users] Baculum, LDAP and disable the 'server basic auth'...

2023-02-02 Thread Marcin Haba
Hello Marco,

If you use LDAP authentication, all this Apache block with Basic auth can
be removed. In this place you can write:

# Apache 2.4

   
   Require all granted
   


Good luck.

Best regards,
Marcin Haba (gani)

On Tue, 31 Jan 2023 at 22:43, Marco Gaiarin  wrote:

>
> I've installed baculum using debian packages, all works as expected and
> flawlessy.
>
> Now i've tried to add LDAP auth support, also successfuly: auth wprks, user
> imported.
>
> But if i try to login, the HTTP 'basic auth' popup of the default user
> 'admin' created in setup phase still want the 'admin' password.
>
> I've understood that (from docs):
>
>  LDAP
>  The Baculum Web can connect to the LDAP server to authenticate LDAP
> users. This method is realized by a HTML form in the Baculum Web.
>  Once this method is enabled, the web server basic authentication can be
> disabled.
>
>
> And i've on the apache virtualhost an entry like:
>
> # Apache 2.4
> 
> 
> SetEnvIf Request_URI "^/web/redirect$" noauth=1
> 
> 
> 
> Require env noauth
> Require env REDIRECT_noauth
> 
> Require all granted
> 
> 
> AuthType Basic
> AuthName "Baculum Auth"
> AuthUserFile
> /usr/share/baculum/htdocs/protected/Web/Config/baculum.users
> Require not env noauth
> Require not env REDIRECT_noauth
> Require valid-user
> 
> 
> 
> 
>
> I have to comment all the entry? Modify how?
>
>
> Thanks.
>
> --
>   STOP. I wanna go home
>   take off this uniform and leave the show  (Pink Floyd)
>
>
>
>
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum vs Bacularis

2022-12-07 Thread Marcin Haba
Hello d09,

Thanks for reporting missing Oracle Linux packages. They have been built
and they are available for OL 8 and 9. You can read about it in this
announcement:

https://bacularis.app/news/42/36/Bacularis-package-repository-for-Oracle-Linux-8-and-9/d,Bacularis%20news%20details

The repositories definition is here:

https://bacularis.app/doc/brief/installation.html#oracle-linux-8

Best regards,
Marcin Haba (gani)

On Wed, 7 Dec 2022 at 19:00,  wrote:

>
> Excellent.  One more thing.  I am looking at the Bacularis packages for
> the different distros.  I noticed there aren't ones specifically for
> ol/rhel 8 and 9.  Will there be?  We run Oracle Linux 8 (ol8) and will
> be upgrading to ol9.  Since Bacularis doesn't contain any binaries,
> can/should I use the centosstream8 and centosstream9 packages?
>
> Just FYI, Oracle Linux (an rhel redist like CentOS Linux use to be) can
> be downloaded from Oracle for free in case you want to make packages
> specifically for ol/rhel 8 and 9.  Download from here:
> https://yum.oracle.com/oracle-linux-isos.html
>
> Thanks for your help.
>
> ---
>
>
> On 12/6/2022 10:14 PM, Marcin Haba wrote:
> > Hello d09,
> >
> > Baculum and Bacularis can coexist on the same host out of the box. There
> > is not any barrier for that. More information about it you can find here:
> >
> >
> https://bacularis.app/doc/brief/installation.html#bacularis-installation-on-host-with-baculum
> <
> https://bacularis.app/doc/brief/installation.html#bacularis-installation-on-host-with-baculum
> >
> >
> > Best regards,
> > Marcin Haba (gani)
> >
> > On Wed, 7 Dec 2022 at 02:15,  > > wrote:
> >
> >
> > Thanks for the info.  I will give Bacularis a test-drive.  Any reason
> > why I couldn't or shouldn't install Bacularis on the same webserver
> > where I have Baculum 11 running?
> >
> > ---
> >
> > On 12/5/2022 9:05 PM, Marcin Haba wrote:
> >  > Hello d09,
> >  >
> >  > Baculum and Bacularis are two different projects with different
> >  > assumptions. It is true that Bacularis provides more functions
> > and it is
> >  > developed faster than Baculum, but in my opinion it is a bit too
> > early
> >  > to say about replacing Baculum by Bacularis. I don't know what
> > will be
> >  > in the future. I wish both web interfaces all the best.
> >  >
> >  > Bacularis is a relatively new project. By the way, today is first
> >  > anniversary of Bacularis' creation ( see
> >  >
> >
> https://bacularis.app/news/41/36/First-anniversary.-Happy-birthday-to-Bacularis/d,Bacularis%20news%20details
> <
> https://bacularis.app/news/41/36/First-anniversary.-Happy-birthday-to-Bacularis/d,Bacularis%20news%20details>
> <
> https://bacularis.app/news/41/36/First-anniversary.-Happy-birthday-to-Bacularis/d,Bacularis%20news%20details
> <
> https://bacularis.app/news/41/36/First-anniversary.-Happy-birthday-to-Bacularis/d,Bacularis%20news%20details>>
> ). We will see in the future what will happen. The Bacularis mission is to
> help users use Bacula in as easiest way as possible. I hope it will be
> realized with success by next years.
> >  >
> >  > For your question about Baculum 11 and binary packages, yes, it
> > is the
> >  > latest version and it is compatible with Bacula Community 13.0.
> >  >
> >  > Best regards,
> >  > Marcin Haba (gani)
> >  >
> >  > On Tue, 6 Dec 2022 at 01:50,  > 
> >  > >> wrote:
> >  >
> >  > Is Bacularis intended to replace Baculum?  Also, is Baculum 11
> >  > (https://www.bacula.org/downloads/baculum/stable-11/
> > 
> >  >  > >) the latest
> >  > version
> >  > and is it compatible with Bacula Community server v13.0?
> >  >
> >  >
> >  > ___
> >  > 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
> >
> >
> > _

Re: [Bacula-users] Baculum vs Bacularis

2022-12-07 Thread d09


Excellent.  One more thing.  I am looking at the Bacularis packages for 
the different distros.  I noticed there aren't ones specifically for 
ol/rhel 8 and 9.  Will there be?  We run Oracle Linux 8 (ol8) and will 
be upgrading to ol9.  Since Bacularis doesn't contain any binaries, 
can/should I use the centosstream8 and centosstream9 packages?


Just FYI, Oracle Linux (an rhel redist like CentOS Linux use to be) can 
be downloaded from Oracle for free in case you want to make packages 
specifically for ol/rhel 8 and 9.  Download from here:

https://yum.oracle.com/oracle-linux-isos.html

Thanks for your help.

---


On 12/6/2022 10:14 PM, Marcin Haba wrote:

Hello d09,

Baculum and Bacularis can coexist on the same host out of the box. There 
is not any barrier for that. More information about it you can find here:


https://bacularis.app/doc/brief/installation.html#bacularis-installation-on-host-with-baculum
 


Best regards,
Marcin Haba (gani)

On Wed, 7 Dec 2022 at 02:15, > wrote:



Thanks for the info.  I will give Bacularis a test-drive.  Any reason
why I couldn't or shouldn't install Bacularis on the same webserver
where I have Baculum 11 running?

---

On 12/5/2022 9:05 PM, Marcin Haba wrote:
 > Hello d09,
 >
 > Baculum and Bacularis are two different projects with different
 > assumptions. It is true that Bacularis provides more functions
and it is
 > developed faster than Baculum, but in my opinion it is a bit too
early
 > to say about replacing Baculum by Bacularis. I don't know what
will be
 > in the future. I wish both web interfaces all the best.
 >
 > Bacularis is a relatively new project. By the way, today is first
 > anniversary of Bacularis' creation ( see
 >

https://bacularis.app/news/41/36/First-anniversary.-Happy-birthday-to-Bacularis/d,Bacularis%20news%20details
 

 
>
 ). We will see in the future what will happen. The Bacularis mission is to help users use Bacula 
in as easiest way as possible. I hope it will be realized with success by next years.
 >
 > For your question about Baculum 11 and binary packages, yes, it
is the
 > latest version and it is compatible with Bacula Community 13.0.
 >
 > Best regards,
 > Marcin Haba (gani)
 >
 > On Tue, 6 Dec 2022 at 01:50, mailto:d...@bornfree.org>
 > >> wrote:
 >
 >     Is Bacularis intended to replace Baculum?  Also, is Baculum 11
 >     (https://www.bacula.org/downloads/baculum/stable-11/

 >     >) the latest
 >     version
 >     and is it compatible with Bacula Community server v13.0?
 >
 >
 >     ___
 >     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


___
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



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


Re: [Bacula-users] Baculum vs Bacularis

2022-12-06 Thread Marcin Haba
Hello d09,

Baculum and Bacularis can coexist on the same host out of the box. There is
not any barrier for that. More information about it you can find here:

https://bacularis.app/doc/brief/installation.html#bacularis-installation-on-host-with-baculum

Best regards,
Marcin Haba (gani)

On Wed, 7 Dec 2022 at 02:15,  wrote:

>
> Thanks for the info.  I will give Bacularis a test-drive.  Any reason
> why I couldn't or shouldn't install Bacularis on the same webserver
> where I have Baculum 11 running?
>
> ---
>
> On 12/5/2022 9:05 PM, Marcin Haba wrote:
> > Hello d09,
> >
> > Baculum and Bacularis are two different projects with different
> > assumptions. It is true that Bacularis provides more functions and it is
> > developed faster than Baculum, but in my opinion it is a bit too early
> > to say about replacing Baculum by Bacularis. I don't know what will be
> > in the future. I wish both web interfaces all the best.
> >
> > Bacularis is a relatively new project. By the way, today is first
> > anniversary of Bacularis' creation ( see
> >
> https://bacularis.app/news/41/36/First-anniversary.-Happy-birthday-to-Bacularis/d,Bacularis%20news%20details
> <
> https://bacularis.app/news/41/36/First-anniversary.-Happy-birthday-to-Bacularis/d,Bacularis%20news%20details>
> ). We will see in the future what will happen. The Bacularis mission is to
> help users use Bacula in as easiest way as possible. I hope it will be
> realized with success by next years.
> >
> > For your question about Baculum 11 and binary packages, yes, it is the
> > latest version and it is compatible with Bacula Community 13.0.
> >
> > Best regards,
> > Marcin Haba (gani)
> >
> > On Tue, 6 Dec 2022 at 01:50,  > > wrote:
> >
> > Is Bacularis intended to replace Baculum?  Also, is Baculum 11
> > (https://www.bacula.org/downloads/baculum/stable-11/
> > ) the latest
> > version
> > and is it compatible with Bacula Community server v13.0?
> >
> >
> > ___
> > 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
>
>
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum vs Bacularis

2022-12-06 Thread d09


Thanks for the info.  I will give Bacularis a test-drive.  Any reason 
why I couldn't or shouldn't install Bacularis on the same webserver 
where I have Baculum 11 running?


---

On 12/5/2022 9:05 PM, Marcin Haba wrote:

Hello d09,

Baculum and Bacularis are two different projects with different 
assumptions. It is true that Bacularis provides more functions and it is 
developed faster than Baculum, but in my opinion it is a bit too early 
to say about replacing Baculum by Bacularis. I don't know what will be 
in the future. I wish both web interfaces all the best.


Bacularis is a relatively new project. By the way, today is first 
anniversary of Bacularis' creation ( see 
https://bacularis.app/news/41/36/First-anniversary.-Happy-birthday-to-Bacularis/d,Bacularis%20news%20details  ). We will see in the future what will happen. The Bacularis mission is to help users use Bacula in as easiest way as possible. I hope it will be realized with success by next years.


For your question about Baculum 11 and binary packages, yes, it is the 
latest version and it is compatible with Bacula Community 13.0.


Best regards,
Marcin Haba (gani)

On Tue, 6 Dec 2022 at 01:50, > wrote:


Is Bacularis intended to replace Baculum?  Also, is Baculum 11
(https://www.bacula.org/downloads/baculum/stable-11/
) the latest
version
and is it compatible with Bacula Community server v13.0?


___
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



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


Re: [Bacula-users] Baculum vs Bacularis

2022-12-05 Thread Marcin Haba
Hello d09,

Baculum and Bacularis are two different projects with different
assumptions. It is true that Bacularis provides more functions and it is
developed faster than Baculum, but in my opinion it is a bit too early to
say about replacing Baculum by Bacularis. I don't know what will be in the
future. I wish both web interfaces all the best.

Bacularis is a relatively new project. By the way, today is first
anniversary of Bacularis' creation ( see
https://bacularis.app/news/41/36/First-anniversary.-Happy-birthday-to-Bacularis/d,Bacularis%20news%20details
). We will see in the future what will happen. The Bacularis mission is to
help users use Bacula in as easiest way as possible. I hope it will be
realized with success by next years.

For your question about Baculum 11 and binary packages, yes, it is the
latest version and it is compatible with Bacula Community 13.0.

Best regards,
Marcin Haba (gani)

On Tue, 6 Dec 2022 at 01:50,  wrote:

> Is Bacularis intended to replace Baculum?  Also, is Baculum 11
> (https://www.bacula.org/downloads/baculum/stable-11/) the latest version
> and is it compatible with Bacula Community server v13.0?
>
>
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] baculum

2022-12-05 Thread Marcin Haba
Hello Agiofws,

It depends what Baculum functions you are going to use. Baculum API
provides the following functions:

 - catalog access
 - bconsole access
 - Bacula configuration
 - component actions (start/stop/restart)

For the catalog and bconsole you can install Baculum API on any host with
configured bconsole and with remote or local access to the catalog. If you
are going to configure Bacula using Baculum, then you need to install
Baculum API on host(s) with the Bacula components
(Director/Storage/Client/Bconsole). This way Baculum will be able to
read/write Bacula configuration files. The same applies to the component
actions function that Baculum API needs to be on the same host as the
Bacula components.

Please also note that Baculum consists of two applications: API and Web.
The above description is about API. The Web can be installed anywhere where
it can be connected via HTTP(S) to the API hosts.

Best regards,
Marcin Haba (gani)

On Mon, 5 Dec 2022 at 21:55, Agiofws Holylight  wrote:

> Where do i install baculum a) on the host that the bacula is installed on
> or the host that i'll use to connect to bacula through baculum?
>
> Which GUI would you recommend? baculum or Bat?
>
> Thank you C.M
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum

2022-12-04 Thread Marcin Haba
Hello Agiofws,

If I understood you well, you have Bacula 9.6 and you would like to use
Baculum 11 with it. Answer for this question you can find in the
documentation:

"
Baculum 11.0 works with Bacula < 11.0 but two file list specific functions
does not work:

 - searching jobs by filename in the restore wizard
 - the file list on the finished backup job page
"

https://www.bacula.org/13.0.x-manuals/en/console/Baculum_API_Web_GUI_Tools.html#SECTION00210

Best regards,
Marcin Haba (gani)

On Wed, 30 Nov 2022 at 20:08, Agiofws Holylight  wrote:

> Can I  install baculum with bacula director version 9.6.x in debian 11 or
> do I have to upgrade to bacula 11?
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum LDAP

2022-12-03 Thread Marcin Haba
Hello Nick,

The option that you need to use is placed at the same page as the LDAP
settings, but at the top. It is:

"Default access setting for logged in users not defined in Baculum Web:"

If you select a radio button with label "No access", then only users
imported to Baculum Web will be able to have access to the interface.

Good luck!

Best regards,
Marcin Haba (gani)

On Mon, 28 Nov 2022 at 16:57, Nick Bright  wrote:

> Greetings,
>
> I'm tinkering with the LDAP authentication for Baculum web interface,
> which was very simple to get "working" - but I'm having difficulty
> finding any documentation about filtering the users which are allowed to
> connect.
>
> The issue is that any user is able to log in as a "Normal User", when
> only the ops department should be allowed to log in.
>
> Most systems have a filter where you could specify one (or a list) of
> groups which are allowed, but I'm not seeing such a function.
>
> Is it possible to put proper group based permissions in place with LDAP
> in Baculum?
>
> --
> -
> -  Nick Bright  -
> -  KwiKom Communications-
> -  Office 800-379-7292  -
> -  Direct 620-228-5653  -
> -  Web https://www.kwikom.com/  -
> -
>
>
>
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] baculum restore wizard problem

2022-11-14 Thread Marcin Haba
Hello Karl,

Thanks for providing the debug log.

You are trying to restore the file "Screencast_2021-06-25_15:10:14.webm".
The command responsible for creating the temporary Bvfs table for this
restore fails with the following error message "Can't create restore list":

[0] => .bvfs_restore jobid="3,1" path="b2460" fileid="14"
[1] => Using Catalog "MyCatalog"
[2] => Can't create restore list

For me the Baculum part looks correct. From this reason I would propose to
look in the Bacula Director to find an answer on the question why the
temporary Bvfs table is not created. For this purpose you can enable debug
on the Director side by the following Bconsole command:

setdebug level=100 trace=1 tags=bvfs,sql dir

When you go through the Baculum restore wizard once again in your Bacula
Director working directory (defined in bacula-dir.conf in the
WorkingDirectory directive) you will see a new file named:
your_director_name.trace In this file will be logged all SQL queries from
Bvfs commands. One from them will fail for some reason and the reason will
tell us why you are not able to do  the restore.

Good luck.

Best regards,
Marcin Haba (gani)

On Mon, 14 Nov 2022 at 15:06, Mag. Dr. Karl Kashofer 
wrote:

> Hi Marcin !
>
> Thanks for your help, i have generated and a log from the
> failing request, posted here:
>
> https://pastebin.com/EUXemHZM
>
> Do you see anything obvious in there ?
>
> Cheers,
> KK
>
> Am Montag, dem 14.11.2022 um 04:55 +0100 schrieb Marcin Haba:
> > Hello Karl,
> >
> > The problem here is because from some reason the Bvfs temporary
> > table 'b25796' has not been created. The bconsole command that
> > creates this temporary table is .bvfs_restore.
> >
> > To see the problem, I would propose to enable debug in the Baculum
> > API, then do a restore try once again and check in the debug file
> > what is output from .bvfs_restore.
> >
> > Good luck.
> >
> > Best regards,
> > Marcin Haba (gani)
> >
> > On Sun, 13 Nov 2022 at 12:25, Mag. Dr. Karl Kashofer
> >  wrote:
> > > Hi !
> > >
> > > I use baculum 11.0.6 from docker image pwa666/bacula-server:latest
> > >
> > > I successfully generated file storage and set up clients via
> > > baculum.
> > > I then did a backup job from my laptop for testing.
> > > It is generated OK.
> > >
> > > However, when i try to restore anything from the backup via the
> > > restore wizard i get:
> > >
> > > > Error
> > > >
> > > > restore client="Karl Laptop" file="?b25796" replace="never"
> > > > restorejob="RestoreFiles" where="/tmp/restore" yes
> > > > Using Catalog "MyCatalog"
> > > > Query failed: SELECT JobId, FileIndex FROM b25796 ORDER BY
> > > JobId,
> > > > FileIndex ASC. ERR=Query failed: SELECT JobId, FileIndex FROM
> > > b25796
> > > > ORDER BY JobId, FileIndex ASC: ERR=no such table: b25796
> > > >
> > > > No table found: b25796
> > > > No files selected to be restored.
> > >
> > > When i select different files for restore, the number in bXXX
> > > changes.
> > >
> > > Inspecting the bacula.db i see no tables with that bXXX names, nor
> > > anything resembling that.
> > >
> > > Any help appreciated.
> > > Regards,
> > > Karl
> > >
> > >
> > >
> > >
> > > ___
> > > 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] baculum restore wizard problem

2022-11-14 Thread Mag. Dr. Karl Kashofer
Hi Marcin ! 

Thanks for your help, i have generated and a log from the
failing request, posted here:

https://pastebin.com/EUXemHZM

Do you see anything obvious in there ?

Cheers,
KK

Am Montag, dem 14.11.2022 um 04:55 +0100 schrieb Marcin Haba:
> Hello Karl,
> 
> The problem here is because from some reason the Bvfs temporary
> table 'b25796' has not been created. The bconsole command that
> creates this temporary table is .bvfs_restore.
> 
> To see the problem, I would propose to enable debug in the Baculum
> API, then do a restore try once again and check in the debug file
> what is output from .bvfs_restore.
> 
> Good luck.
> 
> Best regards,
> Marcin Haba (gani)
> 
> On Sun, 13 Nov 2022 at 12:25, Mag. Dr. Karl Kashofer
>  wrote:
> > Hi !
> > 
> > I use baculum 11.0.6 from docker image pwa666/bacula-server:latest
> > 
> > I successfully generated file storage and set up clients via
> > baculum.
> > I then did a backup job from my laptop for testing. 
> > It is generated OK.
> > 
> > However, when i try to restore anything from the backup via the
> > restore wizard i get:
> > 
> > > Error
> > > 
> > > restore client="Karl Laptop" file="?b25796" replace="never"
> > > restorejob="RestoreFiles" where="/tmp/restore" yes
> > > Using Catalog "MyCatalog"
> > > Query failed: SELECT JobId, FileIndex FROM b25796 ORDER BY
> > JobId,
> > > FileIndex ASC. ERR=Query failed: SELECT JobId, FileIndex FROM
> > b25796
> > > ORDER BY JobId, FileIndex ASC: ERR=no such table: b25796
> > > 
> > > No table found: b25796
> > > No files selected to be restored.
> > 
> > When i select different files for restore, the number in bXXX
> > changes.
> > 
> > Inspecting the bacula.db i see no tables with that bXXX names, nor
> > anything resembling that.
> > 
> > Any help appreciated.
> > Regards,
> > Karl
> > 
> > 
> > 
> > 
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> 



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


Re: [Bacula-users] baculum restore wizard problem

2022-11-13 Thread Marcin Haba
Hello Karl,

The problem here is because from some reason the Bvfs temporary table
'b25796' has not been created. The bconsole command that creates this
temporary table is .bvfs_restore.

To see the problem, I would propose to enable debug in the Baculum API,
then do a restore try once again and check in the debug file what is output
from .bvfs_restore.

Good luck.

Best regards,
Marcin Haba (gani)

On Sun, 13 Nov 2022 at 12:25, Mag. Dr. Karl Kashofer 
wrote:

> Hi !
>
> I use baculum 11.0.6 from docker image pwa666/bacula-server:latest
>
> I successfully generated file storage and set up clients via baculum.
> I then did a backup job from my laptop for testing.
> It is generated OK.
>
> However, when i try to restore anything from the backup via the
> restore wizard i get:
>
> > Error
> >
> > restore client="Karl Laptop" file="?b25796" replace="never"
> > restorejob="RestoreFiles" where="/tmp/restore" yes
> > Using Catalog "MyCatalog"
> > Query failed: SELECT JobId, FileIndex FROM b25796 ORDER BY JobId,
> > FileIndex ASC. ERR=Query failed: SELECT JobId, FileIndex FROM b25796
> > ORDER BY JobId, FileIndex ASC: ERR=no such table: b25796
> >
> > No table found: b25796
> > No files selected to be restored.
>
> When i select different files for restore, the number in bXXX changes.
>
> Inspecting the bacula.db i see no tables with that bXXX names, nor
> anything resembling that.
>
> Any help appreciated.
> Regards,
> Karl
>
>
>
>
> ___
> 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
___
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-13 Thread Marcin Haba
Hello Magdalena,

Thanks for the next tries.

It looks a bit strange that in the same window session where you create the
fileset you are able to see all content to restore. Also interesting is
that in the manual test with bconsole you can see Bvfs content but in the
web browser you can see this content sometimes in some circumstances.

Could you tell us a bit more about your Baculum settings, particularly:

 - how many Baculum API host instances do you use and with what
capabilities (Catalog, bconsole, configuration...)?
 - do you use the multi-user functionality with assigning API hosts to
users?
 - do you use the Bacula Console ACLs configuration?

Thanks in advance for providing the additional details.

Best regards,
Marcin Haba (gani)

On Wed, 9 Nov 2022 at 23:15, Magdalena Sobczak 
wrote:

> Hello Marcin,
>
> No errors. I've tried a new browser  with no extensions and the same
> result - nothing visible. Another thing is, when creating a new FileSet and
> I have the same kind of window with active directories choosing,  I can
> see  everything.
>
> Latest discovery: in the restore page, initially is loaded  with  limit
> 2000, when changed  to 1 and pressed ENTER, one directory appear,
> unfortunately empty inside.
>
>
>
> Pozdrawiam /  Regards
>
> Magdalena Sobczak
>
>
>
> On Wed, Nov 9, 2022 at 6:48 AM Marcin Haba  wrote:
>
>> 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 <
>> maddalena.sobc...@gmail.com> 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
> s

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

2022-11-09 Thread Magdalena Sobczak
Hello Marcin,

No errors. I've tried a new browser  with no extensions and the same result
- nothing visible. Another thing is, when creating a new FileSet and I have
the same kind of window with active directories choosing,  I can see
everything.

Latest discovery: in the restore page, initially is loaded  with  limit
2000, when changed  to 1 and pressed ENTER, one directory appear,
unfortunately empty inside.



Pozdrawiam /  Regards

Magdalena Sobczak



On Wed, Nov 9, 2022 at 6:48 AM Marcin Haba  wrote:

> 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 <
> maddalena.sobc...@gmail.com> 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 |

 +---+-+-

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

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

2022-11-07 Thread Marcin Haba
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 
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 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum v9.6x Schedule Status Page

2022-05-16 Thread Marcin Haba
Hello Chris,

The schedule status in Baculum does exactly the same as the status schedule
command in bconsole. Baculum uses this command to display the schedule
status pages. Currently it displays scheduled jobs day by day. If one day
this command will stop displaying finished jobs, Baculum will stop
displaying them automatically.

Best regards,
Marcin Haba (gani)

On Sat, 14 May 2022 at 22:39, Chris Wilkinson 
wrote:

> I noticed that the schedule status lists jobs that have already completed
> today. Eg. for today, jobs that ran this morning and completed are listed
> as scheduled. My assumption is that the schedule status is intended to show
> upcoming jobs. Is that an incorrect expectation of what the schedule status
> is intended to show?
>
> Best
> -Chris Wilkinson-
>
>
>
>
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum - erro adding any object

2022-04-18 Thread Marcin Haba
Hello Gina,

This error means that Baculum API is not able to write to the Baculum
working directory that you defined in the fourth API wizard step.

You need to extend permissions for this directory that Baculum API will be
able to write there. Once it is done I would propose to go through this
wizard once again and use the 'Test configuration' button to check if
everything is fine.

Good luck.

Best regards,
Marcin Haba (gani)

On Mon, 18 Apr 2022 at 10:57, gina.co...@uc.pt  wrote:

> Hi,
> I’m installed Baculum 11.0.0.6. The installation was fine however when a
> try add any element (client, schedule, storage, …) I get de following error:
> Error Error 1000: Internal error. [Notice] tempnam(): file created in the
> system's temporary directory (@line 133 in file
> /usr/share/baculum/htdocs/protected/API/Class/JSONTools.php
>
> Anyone have any suggestion?
>
> Gina Costa
>
> Universidade de Coimbra • Administração
> SGSIIC-Serviço de Gestão de Sistemas e Infraestruturas de Informação e
> Comunicação
> Divisão de Infraestruturas de TIC
> Rua do Arco da Traição | 3000-056 COIMBRA • PORTUGAL
> Tel.: +351 239 242 870
> E-mail: gina.co...@uc.pt 
> www.uc.pt/administracao
>
>
>
>
>
> Este e-mail pretende ser amigo do ambiente. Pondere antes de o imprimir!
> This e-mail is environment friendly. Please think twice before printing it!
>
>
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-21 Thread Marcin Haba
Hello Chris,

Thanks for your test and feedback.

For this division error now I am seeing it on my side too. Thanks for the
offer sending API and Web logs. Since I am able to reproduce it, the logs
are not needed.

I will try to fix it in the near future.

Best regards,
Marcin Haba (gani)

On Sat, 19 Mar 2022 at 12:21, Chris Wilkinson 
wrote:

> Hello Marcin
>
> The patch was applied successfully and now I am able to set a volume max
> bytes to larger values (>4GB) and the save is OK.
>
> However there is now another error when I click on the details of the pool.
>
> DivisionByZeroError Description
>
> Modulo by zero
> Source File
>
> /var/www/baculum/protected/Web/Portlets/DirectiveSize.php (117)
>
> 0106:  * Example:
> 0107:  *  size_value: 121000
> 0108:  *  given format: b
> 0109:  *  returned value: 121
> 0110:  *  returned format: kb
> 0111:  */
> 0112: private function formatSize($size_bytes, $format) {
> 0113: $value = $size_bytes;
> 0114: if ($value > 0) {
> 0115: for ($i = (count($this->size_formats) - 1); $i >= 0; $i--) {
> 0116: if ($this->size_formats[$i]['format'] != $format) {
> 0117: $remainder = $value % 
> $this->size_formats[$i]['value'];
> 0118: if ($remainder == 0) {
> 0119: $value /= $this->size_formats[$i]['value'];
> 0120: $format = $this->size_formats[$i]['format'];
> 0121: break;
> 0122: }
> 0123: }
> 0124: }
> 0125: }
> 0126: return array('value' => $value, 'format' => $format);
> 0127: }
> 0128:
> 0129: private function getValueBytes($value, $size_format) {
>
>
> I have saved the API and WEB logs but I don’t think I can send the 
> attachments to the list?
>
> I’m going to upgrade Raspbian to 64 bit so will not have the 32 bit 
> environment to do any further testing
>
> I’ll report back on how that goes.
>
> Best
> -Chris-
>
>
>
>
> On 17 Mar 2022, at 02:58, Marcin Haba  wrote:
>
> Hello Chris,
>
> You can copy the patch to this directory:
>
> /var/www/baculum/protected/API/Class/
>
> and then go to this directory:
>
> cd /var/www/baculum/protected/API/Class/
>
> check if patch is applying:
>
> patch -p6 --dry-run < baculum_fix_save_resource_32bit.patch
>
> and if yes then finally run:
>
> patch -p6 < baculum_fix_save_resource_32bit.patch
>
> Good luck.
>
> Best regards,
> Marcin
>
> On Wed, 16 Mar 2022 at 21:49, Chris Wilkinson 
> wrote:
>
>> When I look at this patch, it seems to be for a tree that doesn't match
>> what I have.
>>
>> The file to be patched is located at
>> /var/www/baculum/protected/API/Class/.. in my tree. Do I need to drop the
>> 'gui' in the patch?
>>
>> I am on v9.6.7
>>
>> My knowledge of patching is sketchy at best so would it possible to send
>> some instructions on applying it?
>>
>> Best
>> Chris
>>
>> On Wed, 16 Mar 2022, 9:05 am Chris Wilkinson, 
>> wrote:
>>
>>> Thank you Marcin for this patch. I’d expected it to be a lot more
>>> complicated than that. I’ll check it out and let you know.
>>>
>>> Best
>>> -Chris-
>>>
>>>
>>>
>>>
>>> On 16 Mar 2022, at 06:17, Marcin Haba  wrote:
>>>
>>> 
>>>
>>>
>>>
>
> --
> "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
>
>
>

-- 
"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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-19 Thread Chris Wilkinson
Hello Marcin

The patch was applied successfully and now I am able to set a volume max bytes 
to larger values (>4GB) and the save is OK.

However there is now another error when I click on the details of the pool.

DivisionByZeroError

Description

Modulo by zero

Source File

/var/www/baculum/protected/Web/Portlets/DirectiveSize.php (117)

0106:  * Example:
0107:  *  size_value: 121000
0108:  *  given format: b
0109:  *  returned value: 121
0110:  *  returned format: kb
0111:  */
0112: private function formatSize($size_bytes, $format) {
0113: $value = $size_bytes;
0114: if ($value > 0) {
0115: for ($i = (count($this->size_formats) - 1); $i >= 0; $i--) {
0116: if ($this->size_formats[$i]['format'] != $format) {
0117: $remainder = $value % 
$this->size_formats[$i]['value'];
0118: if ($remainder == 0) {
0119: $value /= $this->size_formats[$i]['value'];
0120: $format = $this->size_formats[$i]['format'];
0121: break;
0122: }
0123: }
0124: }
0125: }
0126: return array('value' => $value, 'format' => $format);
0127: }
0128: 
0129: private function getValueBytes($value, $size_format) {

I have saved the API and WEB logs but I don’t think I can send the attachments 
to the list?
I’m going to upgrade Raspbian to 64 bit so will not have the 32 bit environment 
to do any further testing
I’ll report back on how that goes.
Best
-Chris-




> On 17 Mar 2022, at 02:58, Marcin Haba  wrote:
> 
> Hello Chris,
> 
> You can copy the patch to this directory:
> 
> /var/www/baculum/protected/API/Class/
> 
> and then go to this directory:
> 
> cd /var/www/baculum/protected/API/Class/
> 
> check if patch is applying:
> 
> patch -p6 --dry-run < baculum_fix_save_resource_32bit.patch
> 
> and if yes then finally run:
> 
> patch -p6 < baculum_fix_save_resource_32bit.patch
> 
> Good luck.
> 
> Best regards,
> Marcin
> 
> On Wed, 16 Mar 2022 at 21:49, Chris Wilkinson  > wrote:
> When I look at this patch, it seems to be for a tree that doesn't match what 
> I have.
> 
> The file to be patched is located at /var/www/baculum/protected/API/Class/.. 
> in my tree. Do I need to drop the 'gui' in the patch?
> 
> I am on v9.6.7
> 
> My knowledge of patching is sketchy at best so would it possible to send some 
> instructions on applying it?
> 
> Best
> Chris 
> 
> On Wed, 16 Mar 2022, 9:05 am Chris Wilkinson,  > wrote:
> Thank you Marcin for this patch. I’d expected it to be a lot more complicated 
> than that. I’ll check it out and let you know.
> 
> Best
> -Chris-
> 
> 
> 
> 
>> On 16 Mar 2022, at 06:17, Marcin Haba > > wrote:
>> 
>> 
> 
> 
> 
> -- 
> "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

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


Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-16 Thread Marcin Haba
Hello Chris,

You can copy the patch to this directory:

/var/www/baculum/protected/API/Class/

and then go to this directory:

cd /var/www/baculum/protected/API/Class/

check if patch is applying:

patch -p6 --dry-run < baculum_fix_save_resource_32bit.patch

and if yes then finally run:

patch -p6 < baculum_fix_save_resource_32bit.patch

Good luck.

Best regards,
Marcin

On Wed, 16 Mar 2022 at 21:49, Chris Wilkinson 
wrote:

> When I look at this patch, it seems to be for a tree that doesn't match
> what I have.
>
> The file to be patched is located at
> /var/www/baculum/protected/API/Class/.. in my tree. Do I need to drop the
> 'gui' in the patch?
>
> I am on v9.6.7
>
> My knowledge of patching is sketchy at best so would it possible to send
> some instructions on applying it?
>
> Best
> Chris
>
> On Wed, 16 Mar 2022, 9:05 am Chris Wilkinson, 
> wrote:
>
>> Thank you Marcin for this patch. I’d expected it to be a lot more
>> complicated than that. I’ll check it out and let you know.
>>
>> Best
>> -Chris-
>>
>>
>>
>>
>> On 16 Mar 2022, at 06:17, Marcin Haba  wrote:
>>
>> 
>>
>>
>>

-- 
"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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-16 Thread Chris Wilkinson
When I look at this patch, it seems to be for a tree that doesn't match
what I have.

The file to be patched is located at
/var/www/baculum/protected/API/Class/.. in my tree. Do I need to drop the
'gui' in the patch?

I am on v9.6.7

My knowledge of patching is sketchy at best so would it possible to send
some instructions on applying it?

Best
Chris

On Wed, 16 Mar 2022, 9:05 am Chris Wilkinson, 
wrote:

> Thank you Marcin for this patch. I’d expected it to be a lot more
> complicated than that. I’ll check it out and let you know.
>
> Best
> -Chris-
>
>
>
>
> On 16 Mar 2022, at 06:17, Marcin Haba  wrote:
>
> 
>
>
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum - how to edit JobDefs

2022-03-16 Thread Justin Case
Marcin, thank you, I actually found later on where to edit it in Baculum.

> On 16. Mar 2022, at 07:22, Marcin Haba  wrote:
> 
> Hello Justin,
> 
> Could you tell us what is the problem with JobDefs? I am asking about it 
> because I am not sure if you don't know where to edit JobDefs or you receive 
> an error when you save JobDefs. If it is an error, could you paste the output 
> here?
> 
> Thanks in advance for additional information.
> 
> Best regards,
> Marcin Haba (gani)
> 
> On Tue, 15 Mar 2022 at 21:12, Justin Case  > wrote:
> Dear all,
> 
> I am looking for a better solution for the following problem:
> 
> The JobDefs for DefaultJob is buried in really many resources, but it cannot 
> be edited in Baculum.
> 
> I had to edit JobDefs in the bacula-dir.conf to be able to get rid of the 
> default resources (schedules, jobs, pools, storage) that came with the 
> container I am using.
> 
> Is there a way to edit JobDefs in Baculum?
> 
> All the best,
> 
>  JC
> 
> ___
> 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

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


Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-16 Thread Chris Wilkinson
Thank you Marcin for this patch. I’d expected it to be a lot more complicated 
than that. I’ll check it out and let you know.

Best
-Chris-




> On 16 Mar 2022, at 06:17, Marcin Haba  wrote:
> 
> 

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


Re: [Bacula-users] Baculum - how to edit JobDefs

2022-03-15 Thread Marcin Haba
Hello Justin,

Could you tell us what is the problem with JobDefs? I am asking about it
because I am not sure if you don't know where to edit JobDefs or you
receive an error when you save JobDefs. If it is an error, could you paste
the output here?

Thanks in advance for additional information.

Best regards,
Marcin Haba (gani)

On Tue, 15 Mar 2022 at 21:12, Justin Case  wrote:

> Dear all,
>
> I am looking for a better solution for the following problem:
>
> The JobDefs for DefaultJob is buried in really many resources, but it
> cannot be edited in Baculum.
>
> I had to edit JobDefs in the bacula-dir.conf to be able to get rid of the
> default resources (schedules, jobs, pools, storage) that came with the
> container I am using.
>
> Is there a way to edit JobDefs in Baculum?
>
> All the best,
>  JC
>
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-15 Thread Marcin Haba
Hello Chris,

I prepared a patch that should solve this issue. You can find it in the
attachment. It is for 9.6.x versions.

The issue in this case is maximum value of 32-bit integer.

Best regards,
Marcin Haba (gani)

On Tue, 15 Mar 2022 at 11:21, Chris Wilkinson 
wrote:

> Yes, Raspbian is 32 bit but I understand that a 64 bit version has been
> released recently. That may be the best option for me as probably very few
> would want to use Bacula on a 32 bit environment and it would be too much
> work to port Baculum.
>
> Bacula btw runs perfectly.
>
> I'd be interested to know what the basic issue is with Baculum on 32 bit
> arch.
>
> Best
> Chris.
>
>
> On Tue, 15 Mar 2022, 6:04 am Marcin Haba,  wrote:
>
>> Hello Chris,
>>
>> It looks you are using 32-bit environment. I will check what can be done
>> here from the Baculum side. I will let know soon.
>>
>> Best regards,
>> Marcin
>>
>> On Mon, 14 Mar 2022 at 23:46, Chris Wilkinson 
>> wrote:
>>
>>> I wondered if this behaviour might be due to using an older version of
>>> bdirjson (bacula v9.4.4 is the Raspbian default) so I compiled
>>> v9.6.7+postgres. The behaviour is exactly the same, ie same error is logged
>>> by API.
>>>
>>> Best
>>> Chris
>>>
>>> On Mon, 14 Mar 2022, 9:35 am Chris Wilkinson, 
>>> wrote:
>>>
 Hello Marcin

 Thanks very much for that explanation. I hadn’t realised this was
 essentially a working directory for Baculum.

 Having got the API and WEB set up, I’ve run into a strange error with
 WEB. If I set up a very simple pool definition Baculum can save it
 correctly. As soon as I add a ‘MaximumVolumeBytes = 10GB’, WEB crashes out
 with an error. Smaller values such as 500M are OK.

 Following some advice you once gave me about another error, I have
 enabled logging in the API. The relevant extract is below.

 The error appears to be that a parameter is being assigned an
 unsupported value of type ‘double’. WEB is writing this value back to the
 config via the process you described.

 Is it possible to deduce from this output, the offending config file
 line?

 >>
 Mar 14 08:40:10 [Debug] [Application] Command=formatDirectiveValue,
 Output=Attemp to format a directive value with not supported value type
 'double'., File=/var/www/baculum/protected/API/Class/BaculaSetting.php,
 Line=516 (line 74, /var/www/baculum/protected/Common/Class/Logging.php)
 Mar 14 08:40:10 [Debug] [Execute] Command=sudo /usr/lib/bacula/bdirjson
 -c /var/www/baculum/configs/config_4W8e6b "-t" 2>&1, Output=Array
 (
 [0] => bacula-dir: ERROR TERMINATION at parse_conf.c:805
 [1] => Config error: expected a size, got: }
 [2] => : line 172, col 1 of file
 /var/www/baculum/configs/config_4W8e6b
 [3] => }
 [4] =>
 [5] => 14-Mar 08:40 bacula-dir: ERROR TERMINATION at
 parse_conf.c:805
 [6] => Config error: expected a size, got: }
 [7] => : line 172, col 1 of file
 /var/www/baculum/configs/config_4W8e6b
 [8] => }
 [9] =>
 )
 , File=/var/www/baculum/protected/API/Class/JSONTools.php, Line=114
 (line 74, /var/www/baculum/protected/Common/Class/Logging.php)
 Mar 14 08:40:10 [Debug] [Application] Command=validateConfig,
 Output=ERROR [dir] JSON tool returned wrong exitcode.
  Output:bacula-dir: ERROR TERMINATION at parse_conf.c:805
 Config error: expected a size, got: }
 : line 172, col 1 of file
 /var/www/baculum/configs/config_4W8e6b
 }

 14-Mar 08:40 bacula-dir: ERROR TERMINATION at parse_conf.c:805
 Config error: expected a size, got: }
 : line 172, col 1 of file
 /var/www/baculum/configs/config_4W8e6b
 }
 , File=/var/www/baculum/protected/API/Class/BaculaConfig.php, Line=110
 (line 74, /var/www/baculum/protected/Common/Class/Logging.php)
 >>

 Best
 -Chris-




 On 13 Mar 2022, at 07:18, Marcin Haba  wrote:

 Hello Chris,

 Yes, I think we are talking about the same field.

 In this path Baculum saves Bacula config files, validates them and if
 they are valid, saves them to the destination path (in your case it is
 /etc/bacula).

 The configuration sent to API is merged with existing configuration,
 the result is temporarily saved in the Baculum API working directory, there
 it is validated by Bacula tools and if it is valid, next the Bacula config
 is saved to the destination Bacula configuration path. This process is for
 saving only valid configuration. In case of unexpected errors in the config
 file, the configuration will not be saved.

 It is the main task realized in this directory, but not the only one.
 If Baculum API needs to save something, it uses this directory. I would
 suggest to treat it just as a Baculum API working direct

Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-15 Thread Chris Wilkinson
Yes, Raspbian is 32 bit but I understand that a 64 bit version has been
released recently. That may be the best option for me as probably very few
would want to use Bacula on a 32 bit environment and it would be too much
work to port Baculum.

Bacula btw runs perfectly.

I'd be interested to know what the basic issue is with Baculum on 32 bit
arch.

Best
Chris.


On Tue, 15 Mar 2022, 6:04 am Marcin Haba,  wrote:

> Hello Chris,
>
> It looks you are using 32-bit environment. I will check what can be done
> here from the Baculum side. I will let know soon.
>
> Best regards,
> Marcin
>
> On Mon, 14 Mar 2022 at 23:46, Chris Wilkinson 
> wrote:
>
>> I wondered if this behaviour might be due to using an older version of
>> bdirjson (bacula v9.4.4 is the Raspbian default) so I compiled
>> v9.6.7+postgres. The behaviour is exactly the same, ie same error is logged
>> by API.
>>
>> Best
>> Chris
>>
>> On Mon, 14 Mar 2022, 9:35 am Chris Wilkinson, 
>> wrote:
>>
>>> Hello Marcin
>>>
>>> Thanks very much for that explanation. I hadn’t realised this was
>>> essentially a working directory for Baculum.
>>>
>>> Having got the API and WEB set up, I’ve run into a strange error with
>>> WEB. If I set up a very simple pool definition Baculum can save it
>>> correctly. As soon as I add a ‘MaximumVolumeBytes = 10GB’, WEB crashes out
>>> with an error. Smaller values such as 500M are OK.
>>>
>>> Following some advice you once gave me about another error, I have
>>> enabled logging in the API. The relevant extract is below.
>>>
>>> The error appears to be that a parameter is being assigned an
>>> unsupported value of type ‘double’. WEB is writing this value back to the
>>> config via the process you described.
>>>
>>> Is it possible to deduce from this output, the offending config file
>>> line?
>>>
>>> >>
>>> Mar 14 08:40:10 [Debug] [Application] Command=formatDirectiveValue,
>>> Output=Attemp to format a directive value with not supported value type
>>> 'double'., File=/var/www/baculum/protected/API/Class/BaculaSetting.php,
>>> Line=516 (line 74, /var/www/baculum/protected/Common/Class/Logging.php)
>>> Mar 14 08:40:10 [Debug] [Execute] Command=sudo /usr/lib/bacula/bdirjson
>>> -c /var/www/baculum/configs/config_4W8e6b "-t" 2>&1, Output=Array
>>> (
>>> [0] => bacula-dir: ERROR TERMINATION at parse_conf.c:805
>>> [1] => Config error: expected a size, got: }
>>> [2] => : line 172, col 1 of file
>>> /var/www/baculum/configs/config_4W8e6b
>>> [3] => }
>>> [4] =>
>>> [5] => 14-Mar 08:40 bacula-dir: ERROR TERMINATION at parse_conf.c:805
>>> [6] => Config error: expected a size, got: }
>>> [7] => : line 172, col 1 of file
>>> /var/www/baculum/configs/config_4W8e6b
>>> [8] => }
>>> [9] =>
>>> )
>>> , File=/var/www/baculum/protected/API/Class/JSONTools.php, Line=114
>>> (line 74, /var/www/baculum/protected/Common/Class/Logging.php)
>>> Mar 14 08:40:10 [Debug] [Application] Command=validateConfig,
>>> Output=ERROR [dir] JSON tool returned wrong exitcode.
>>>  Output:bacula-dir: ERROR TERMINATION at parse_conf.c:805
>>> Config error: expected a size, got: }
>>> : line 172, col 1 of file
>>> /var/www/baculum/configs/config_4W8e6b
>>> }
>>>
>>> 14-Mar 08:40 bacula-dir: ERROR TERMINATION at parse_conf.c:805
>>> Config error: expected a size, got: }
>>> : line 172, col 1 of file
>>> /var/www/baculum/configs/config_4W8e6b
>>> }
>>> , File=/var/www/baculum/protected/API/Class/BaculaConfig.php, Line=110
>>> (line 74, /var/www/baculum/protected/Common/Class/Logging.php)
>>> >>
>>>
>>> Best
>>> -Chris-
>>>
>>>
>>>
>>>
>>> On 13 Mar 2022, at 07:18, Marcin Haba  wrote:
>>>
>>> Hello Chris,
>>>
>>> Yes, I think we are talking about the same field.
>>>
>>> In this path Baculum saves Bacula config files, validates them and if
>>> they are valid, saves them to the destination path (in your case it is
>>> /etc/bacula).
>>>
>>> The configuration sent to API is merged with existing configuration, the
>>> result is temporarily saved in the Baculum API working directory, there it
>>> is validated by Bacula tools and if it is valid, next the Bacula config is
>>> saved to the destination Bacula configuration path. This process is for
>>> saving only valid configuration. In case of unexpected errors in the config
>>> file, the configuration will not be saved.
>>>
>>> It is the main task realized in this directory, but not the only one. If
>>> Baculum API needs to save something, it uses this directory. I would
>>> suggest to treat it just as a Baculum API working directory.
>>>
>>> Best regards,
>>> Marcin Haba (gani)
>>>
>>> On Sat, 12 Mar 2022 at 18:08, Chris Wilkinson 
>>> wrote:
>>>
 Not exactly,  the field I was referring to is at the top of the API
 wizard step 4 under 'General Configuration. It is a directory path for 'new
 config files'.

 I'm unclear if this refers to the path where Baculum will save new
 config files or save mods to files ta

Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-14 Thread Marcin Haba
Hello Chris,

It looks you are using 32-bit environment. I will check what can be done
here from the Baculum side. I will let know soon.

Best regards,
Marcin

On Mon, 14 Mar 2022 at 23:46, Chris Wilkinson 
wrote:

> I wondered if this behaviour might be due to using an older version of
> bdirjson (bacula v9.4.4 is the Raspbian default) so I compiled
> v9.6.7+postgres. The behaviour is exactly the same, ie same error is logged
> by API.
>
> Best
> Chris
>
> On Mon, 14 Mar 2022, 9:35 am Chris Wilkinson, 
> wrote:
>
>> Hello Marcin
>>
>> Thanks very much for that explanation. I hadn’t realised this was
>> essentially a working directory for Baculum.
>>
>> Having got the API and WEB set up, I’ve run into a strange error with
>> WEB. If I set up a very simple pool definition Baculum can save it
>> correctly. As soon as I add a ‘MaximumVolumeBytes = 10GB’, WEB crashes out
>> with an error. Smaller values such as 500M are OK.
>>
>> Following some advice you once gave me about another error, I have
>> enabled logging in the API. The relevant extract is below.
>>
>> The error appears to be that a parameter is being assigned an unsupported
>> value of type ‘double’. WEB is writing this value back to the config via
>> the process you described.
>>
>> Is it possible to deduce from this output, the offending config file line?
>>
>> >>
>> Mar 14 08:40:10 [Debug] [Application] Command=formatDirectiveValue,
>> Output=Attemp to format a directive value with not supported value type
>> 'double'., File=/var/www/baculum/protected/API/Class/BaculaSetting.php,
>> Line=516 (line 74, /var/www/baculum/protected/Common/Class/Logging.php)
>> Mar 14 08:40:10 [Debug] [Execute] Command=sudo /usr/lib/bacula/bdirjson
>> -c /var/www/baculum/configs/config_4W8e6b "-t" 2>&1, Output=Array
>> (
>> [0] => bacula-dir: ERROR TERMINATION at parse_conf.c:805
>> [1] => Config error: expected a size, got: }
>> [2] => : line 172, col 1 of file
>> /var/www/baculum/configs/config_4W8e6b
>> [3] => }
>> [4] =>
>> [5] => 14-Mar 08:40 bacula-dir: ERROR TERMINATION at parse_conf.c:805
>> [6] => Config error: expected a size, got: }
>> [7] => : line 172, col 1 of file
>> /var/www/baculum/configs/config_4W8e6b
>> [8] => }
>> [9] =>
>> )
>> , File=/var/www/baculum/protected/API/Class/JSONTools.php, Line=114 (line
>> 74, /var/www/baculum/protected/Common/Class/Logging.php)
>> Mar 14 08:40:10 [Debug] [Application] Command=validateConfig,
>> Output=ERROR [dir] JSON tool returned wrong exitcode.
>>  Output:bacula-dir: ERROR TERMINATION at parse_conf.c:805
>> Config error: expected a size, got: }
>> : line 172, col 1 of file
>> /var/www/baculum/configs/config_4W8e6b
>> }
>>
>> 14-Mar 08:40 bacula-dir: ERROR TERMINATION at parse_conf.c:805
>> Config error: expected a size, got: }
>> : line 172, col 1 of file
>> /var/www/baculum/configs/config_4W8e6b
>> }
>> , File=/var/www/baculum/protected/API/Class/BaculaConfig.php, Line=110
>> (line 74, /var/www/baculum/protected/Common/Class/Logging.php)
>> >>
>>
>> Best
>> -Chris-
>>
>>
>>
>>
>> On 13 Mar 2022, at 07:18, Marcin Haba  wrote:
>>
>> Hello Chris,
>>
>> Yes, I think we are talking about the same field.
>>
>> In this path Baculum saves Bacula config files, validates them and if
>> they are valid, saves them to the destination path (in your case it is
>> /etc/bacula).
>>
>> The configuration sent to API is merged with existing configuration, the
>> result is temporarily saved in the Baculum API working directory, there it
>> is validated by Bacula tools and if it is valid, next the Bacula config is
>> saved to the destination Bacula configuration path. This process is for
>> saving only valid configuration. In case of unexpected errors in the config
>> file, the configuration will not be saved.
>>
>> It is the main task realized in this directory, but not the only one. If
>> Baculum API needs to save something, it uses this directory. I would
>> suggest to treat it just as a Baculum API working directory.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Sat, 12 Mar 2022 at 18:08, Chris Wilkinson 
>> wrote:
>>
>>> Not exactly,  the field I was referring to is at the top of the API
>>> wizard step 4 under 'General Configuration. It is a directory path for 'new
>>> config files'.
>>>
>>> I'm unclear if this refers to the path where Baculum will save new
>>> config files or save mods to files taken from /etc/bacula.
>>>
>>> Perhaps you are referring to v11? I'm using v9.6.
>>>
>>> Best
>>> Chris
>>>
>>>
>>> On Sat, 12 Mar 2022, 4:30 pm Marcin Haba,  wrote:
>>>
 Hello Chris,

 If you mean the field in API install wizard labeled "Baculum working
 directory for Bacula config", here you can find full answer:

 https://sourceforge.net/p/bacula/mailman/message/37359134/

 Best regards,
 Marcin Haba (gani)

 On Sat, 12 Mar 2022 at 09:59, Chris Wilkinson 
 wrote:

> What is the purpose

Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-14 Thread Chris Wilkinson
I wondered if this behaviour might be due to using an older version of
bdirjson (bacula v9.4.4 is the Raspbian default) so I compiled
v9.6.7+postgres. The behaviour is exactly the same, ie same error is logged
by API.

Best
Chris

On Mon, 14 Mar 2022, 9:35 am Chris Wilkinson, 
wrote:

> Hello Marcin
>
> Thanks very much for that explanation. I hadn’t realised this was
> essentially a working directory for Baculum.
>
> Having got the API and WEB set up, I’ve run into a strange error with WEB.
> If I set up a very simple pool definition Baculum can save it correctly. As
> soon as I add a ‘MaximumVolumeBytes = 10GB’, WEB crashes out with an error.
> Smaller values such as 500M are OK.
>
> Following some advice you once gave me about another error, I have enabled
> logging in the API. The relevant extract is below.
>
> The error appears to be that a parameter is being assigned an unsupported
> value of type ‘double’. WEB is writing this value back to the config via
> the process you described.
>
> Is it possible to deduce from this output, the offending config file line?
>
> >>
> Mar 14 08:40:10 [Debug] [Application] Command=formatDirectiveValue,
> Output=Attemp to format a directive value with not supported value type
> 'double'., File=/var/www/baculum/protected/API/Class/BaculaSetting.php,
> Line=516 (line 74, /var/www/baculum/protected/Common/Class/Logging.php)
> Mar 14 08:40:10 [Debug] [Execute] Command=sudo /usr/lib/bacula/bdirjson -c
> /var/www/baculum/configs/config_4W8e6b "-t" 2>&1, Output=Array
> (
> [0] => bacula-dir: ERROR TERMINATION at parse_conf.c:805
> [1] => Config error: expected a size, got: }
> [2] => : line 172, col 1 of file
> /var/www/baculum/configs/config_4W8e6b
> [3] => }
> [4] =>
> [5] => 14-Mar 08:40 bacula-dir: ERROR TERMINATION at parse_conf.c:805
> [6] => Config error: expected a size, got: }
> [7] => : line 172, col 1 of file
> /var/www/baculum/configs/config_4W8e6b
> [8] => }
> [9] =>
> )
> , File=/var/www/baculum/protected/API/Class/JSONTools.php, Line=114 (line
> 74, /var/www/baculum/protected/Common/Class/Logging.php)
> Mar 14 08:40:10 [Debug] [Application] Command=validateConfig, Output=ERROR
> [dir] JSON tool returned wrong exitcode.
>  Output:bacula-dir: ERROR TERMINATION at parse_conf.c:805
> Config error: expected a size, got: }
> : line 172, col 1 of file
> /var/www/baculum/configs/config_4W8e6b
> }
>
> 14-Mar 08:40 bacula-dir: ERROR TERMINATION at parse_conf.c:805
> Config error: expected a size, got: }
> : line 172, col 1 of file
> /var/www/baculum/configs/config_4W8e6b
> }
> , File=/var/www/baculum/protected/API/Class/BaculaConfig.php, Line=110
> (line 74, /var/www/baculum/protected/Common/Class/Logging.php)
> >>
>
> Best
> -Chris-
>
>
>
>
> On 13 Mar 2022, at 07:18, Marcin Haba  wrote:
>
> Hello Chris,
>
> Yes, I think we are talking about the same field.
>
> In this path Baculum saves Bacula config files, validates them and if they
> are valid, saves them to the destination path (in your case it is
> /etc/bacula).
>
> The configuration sent to API is merged with existing configuration, the
> result is temporarily saved in the Baculum API working directory, there it
> is validated by Bacula tools and if it is valid, next the Bacula config is
> saved to the destination Bacula configuration path. This process is for
> saving only valid configuration. In case of unexpected errors in the config
> file, the configuration will not be saved.
>
> It is the main task realized in this directory, but not the only one. If
> Baculum API needs to save something, it uses this directory. I would
> suggest to treat it just as a Baculum API working directory.
>
> Best regards,
> Marcin Haba (gani)
>
> On Sat, 12 Mar 2022 at 18:08, Chris Wilkinson 
> wrote:
>
>> Not exactly,  the field I was referring to is at the top of the API
>> wizard step 4 under 'General Configuration. It is a directory path for 'new
>> config files'.
>>
>> I'm unclear if this refers to the path where Baculum will save new config
>> files or save mods to files taken from /etc/bacula.
>>
>> Perhaps you are referring to v11? I'm using v9.6.
>>
>> Best
>> Chris
>>
>>
>> On Sat, 12 Mar 2022, 4:30 pm Marcin Haba,  wrote:
>>
>>> Hello Chris,
>>>
>>> If you mean the field in API install wizard labeled "Baculum working
>>> directory for Bacula config", here you can find full answer:
>>>
>>> https://sourceforge.net/p/bacula/mailman/message/37359134/
>>>
>>> Best regards,
>>> Marcin Haba (gani)
>>>
>>> On Sat, 12 Mar 2022 at 09:59, Chris Wilkinson 
>>> wrote:
>>>
 What is the purpose of the 'new configs' path? Should this point to the
 default /etc/bacula?

 Best
 Chris

 On Sat, 12 Mar 2022, 5:16 am Marcin Haba,  wrote:

> Hello Chris,
>
> Thanks for reporting this problem.
>
> Yes, the b*json and bconsole paths can be different in various
> operating systems. It is the reason wh

Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-14 Thread Chris Wilkinson
Hello Marcin

Thanks very much for that explanation. I hadn’t realised this was essentially a 
working directory for Baculum.

Having got the API and WEB set up, I’ve run into a strange error with WEB. If I 
set up a very simple pool definition Baculum can save it correctly. As soon as 
I add a ‘MaximumVolumeBytes = 10GB’, WEB crashes out with an error. Smaller 
values such as 500M are OK.

Following some advice you once gave me about another error, I have enabled 
logging in the API. The relevant extract is below.

The error appears to be that a parameter is being assigned an unsupported value 
of type ‘double’. WEB is writing this value back to the config via the process 
you described.

Is it possible to deduce from this output, the offending config file line?

>>
Mar 14 08:40:10 [Debug] [Application] Command=formatDirectiveValue, 
Output=Attemp to format a directive value with not supported value type 
'double'., File=/var/www/baculum/protected/API/Class/BaculaSetting.php, 
Line=516 (line 74, /var/www/baculum/protected/Common/Class/Logging.php)
Mar 14 08:40:10 [Debug] [Execute] Command=sudo /usr/lib/bacula/bdirjson -c 
/var/www/baculum/configs/config_4W8e6b "-t" 2>&1, Output=Array
(
[0] => bacula-dir: ERROR TERMINATION at parse_conf.c:805
[1] => Config error: expected a size, got: }
[2] => : line 172, col 1 of file 
/var/www/baculum/configs/config_4W8e6b
[3] => }
[4] => 
[5] => 14-Mar 08:40 bacula-dir: ERROR TERMINATION at parse_conf.c:805
[6] => Config error: expected a size, got: }
[7] => : line 172, col 1 of file 
/var/www/baculum/configs/config_4W8e6b
[8] => }
[9] => 
)
, File=/var/www/baculum/protected/API/Class/JSONTools.php, Line=114 (line 74, 
/var/www/baculum/protected/Common/Class/Logging.php)
Mar 14 08:40:10 [Debug] [Application] Command=validateConfig, Output=ERROR 
[dir] JSON tool returned wrong exitcode.
 Output:bacula-dir: ERROR TERMINATION at parse_conf.c:805
Config error: expected a size, got: }
: line 172, col 1 of file /var/www/baculum/configs/config_4W8e6b
}

14-Mar 08:40 bacula-dir: ERROR TERMINATION at parse_conf.c:805
Config error: expected a size, got: }
: line 172, col 1 of file /var/www/baculum/configs/config_4W8e6b
}
, File=/var/www/baculum/protected/API/Class/BaculaConfig.php, Line=110 (line 
74, /var/www/baculum/protected/Common/Class/Logging.php)
>>

Best
-Chris-




> On 13 Mar 2022, at 07:18, Marcin Haba  wrote:
> 
> Hello Chris,
> 
> Yes, I think we are talking about the same field.
> 
> In this path Baculum saves Bacula config files, validates them and if they 
> are valid, saves them to the destination path (in your case it is 
> /etc/bacula).
> 
> The configuration sent to API is merged with existing configuration, the 
> result is temporarily saved in the Baculum API working directory, there it is 
> validated by Bacula tools and if it is valid, next the Bacula config is saved 
> to the destination Bacula configuration path. This process is for saving only 
> valid configuration. In case of unexpected errors in the config file, the 
> configuration will not be saved.
> 
> It is the main task realized in this directory, but not the only one. If 
> Baculum API needs to save something, it uses this directory. I would suggest 
> to treat it just as a Baculum API working directory.
> 
> Best regards,
> Marcin Haba (gani)
> 
> On Sat, 12 Mar 2022 at 18:08, Chris Wilkinson  > wrote:
> Not exactly,  the field I was referring to is at the top of the API wizard 
> step 4 under 'General Configuration. It is a directory path for 'new config 
> files'.
> 
> I'm unclear if this refers to the path where Baculum will save new config 
> files or save mods to files taken from /etc/bacula.
> 
> Perhaps you are referring to v11? I'm using v9.6.
> 
> Best
> Chris
> 
> 
> On Sat, 12 Mar 2022, 4:30 pm Marcin Haba,  > wrote:
> Hello Chris,
> 
> If you mean the field in API install wizard labeled "Baculum working 
> directory for Bacula config", here you can find full answer:
> 
> https://sourceforge.net/p/bacula/mailman/message/37359134/ 
> 
> 
> Best regards,
> Marcin Haba (gani)
> 
> On Sat, 12 Mar 2022 at 09:59, Chris Wilkinson  > wrote:
> What is the purpose of the 'new configs' path? Should this point to the 
> default /etc/bacula?
> 
> Best
> Chris
> 
> On Sat, 12 Mar 2022, 5:16 am Marcin Haba,  > wrote:
> Hello Chris,
> 
> Thanks for reporting this problem.
> 
> Yes, the b*json and bconsole paths can be different in various operating 
> systems. It is the reason why those fields are editable that everybody can 
> adjust paths to own needs.
> 
> Best regards,
> Marcin Haba (gani)
> 
> On Fri, 11 Mar 2022 at 15:43, Chris Wilkinson  > wrote:
> I should have realised this sooner but I found that

Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-12 Thread Marcin Haba
Hello Chris,

Yes, I think we are talking about the same field.

In this path Baculum saves Bacula config files, validates them and if they
are valid, saves them to the destination path (in your case it is
/etc/bacula).

The configuration sent to API is merged with existing configuration, the
result is temporarily saved in the Baculum API working directory, there it
is validated by Bacula tools and if it is valid, next the Bacula config is
saved to the destination Bacula configuration path. This process is for
saving only valid configuration. In case of unexpected errors in the config
file, the configuration will not be saved.

It is the main task realized in this directory, but not the only one. If
Baculum API needs to save something, it uses this directory. I would
suggest to treat it just as a Baculum API working directory.

Best regards,
Marcin Haba (gani)

On Sat, 12 Mar 2022 at 18:08, Chris Wilkinson 
wrote:

> Not exactly,  the field I was referring to is at the top of the API wizard
> step 4 under 'General Configuration. It is a directory path for 'new config
> files'.
>
> I'm unclear if this refers to the path where Baculum will save new config
> files or save mods to files taken from /etc/bacula.
>
> Perhaps you are referring to v11? I'm using v9.6.
>
> Best
> Chris
>
>
> On Sat, 12 Mar 2022, 4:30 pm Marcin Haba,  wrote:
>
>> Hello Chris,
>>
>> If you mean the field in API install wizard labeled "Baculum working
>> directory for Bacula config", here you can find full answer:
>>
>> https://sourceforge.net/p/bacula/mailman/message/37359134/
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Sat, 12 Mar 2022 at 09:59, Chris Wilkinson 
>> wrote:
>>
>>> What is the purpose of the 'new configs' path? Should this point to the
>>> default /etc/bacula?
>>>
>>> Best
>>> Chris
>>>
>>> On Sat, 12 Mar 2022, 5:16 am Marcin Haba,  wrote:
>>>
 Hello Chris,

 Thanks for reporting this problem.

 Yes, the b*json and bconsole paths can be different in various
 operating systems. It is the reason why those fields are editable that
 everybody can adjust paths to own needs.

 Best regards,
 Marcin Haba (gani)

 On Fri, 11 Mar 2022 at 15:43, Chris Wilkinson 
 wrote:

> I should have realised this sooner but I found that the pre-populated
> fields in the API wizard point to incorrect locations for the jsons.
>
> The jsons are located at /usr/lib/bacula/.. not /usr/sbin/..
>
> pi@raspberrypi-b:~ $ locate bsdjson
> /usr/lib/bacula/bsdjson
> etc..
>
> This means that the file /etc/sudoers.d/bacula-api should be:
>
> Defaults:www-data !requiretty
> www-data ALL=NOPASSWD: /usr/sbin/bconsole <==Note that bconsole is
> still @ /usr/sbin/..
> www-data ALL=NOPASSWD: /usr/lib/bacula/bdirjson
> www-data ALL=NOPASSWD: /usr/lib/bacula/bsdjson
> www-data ALL=NOPASSWD: /usr/lib/bacula/bfdjson
> www-data ALL=NOPASSWD: /usr/lib/bacula/bbconsjson
>
>
> The API wizard needs these paths too.
>
> With these changes, the API wizard now proceeds without error and the
> remainder of the setup goes OK.
>
> Best
> -Chris-
>
>
>
>
> On 11 Mar 2022, at 12:48, Chris Wilkinson 
> wrote:
>
> Hello Marcin
>
> I ran into a difficulty with the PI sudo set up when using the API
> wizard at step 4.
>
> General configuration
> Directory path for new config files:
> Use sudo:
> x
>
> I checked the ‘use sudo’ box. One example is below but the other
> fields are the same.
> Director
> bdirjson binary file path:
> Main Director config file path (usually bacula-dir.conf):
> We trust you have received the usual lecture from the local System
> Administrator. It usually boils down to these three things: #1) Respect 
> the
> privacy of others. #2) Think before you type. #3) With great power comes
> great responsibility. sudo: no tty present and no askpass program 
> specified
>
> The error is in the last sentence. I am also unclear on what is
> expected in the directory path for new configs at the top of this page.
> This appears to require a path that is writeable by www-data (for 
> Apache2).
>
> This is the /etc/sudoers file (unmodified from stock)
> '
> #
> # This file MUST be edited with the 'visudo' command as root.
> #
> # Please consider adding local content in /etc/sudoers.d/ instead of
> # directly modifying this file.
> #
> # See the man page for details on how to write a sudoers file.
> #
> Defaults env_reset
> Defaults mail_badpass
> Defaults
> secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
>
> # Host alias specification
>
> # User alias specification
>
> # Cmnd alias specification
>
> # User privilege specification
> root ALL=(ALL:ALL)

Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-12 Thread Chris Wilkinson
Not exactly,  the field I was referring to is at the top of the API wizard
step 4 under 'General Configuration. It is a directory path for 'new config
files'.

I'm unclear if this refers to the path where Baculum will save new config
files or save mods to files taken from /etc/bacula.

Perhaps you are referring to v11? I'm using v9.6.

Best
Chris


On Sat, 12 Mar 2022, 4:30 pm Marcin Haba,  wrote:

> Hello Chris,
>
> If you mean the field in API install wizard labeled "Baculum working
> directory for Bacula config", here you can find full answer:
>
> https://sourceforge.net/p/bacula/mailman/message/37359134/
>
> Best regards,
> Marcin Haba (gani)
>
> On Sat, 12 Mar 2022 at 09:59, Chris Wilkinson 
> wrote:
>
>> What is the purpose of the 'new configs' path? Should this point to the
>> default /etc/bacula?
>>
>> Best
>> Chris
>>
>> On Sat, 12 Mar 2022, 5:16 am Marcin Haba,  wrote:
>>
>>> Hello Chris,
>>>
>>> Thanks for reporting this problem.
>>>
>>> Yes, the b*json and bconsole paths can be different in various operating
>>> systems. It is the reason why those fields are editable that everybody can
>>> adjust paths to own needs.
>>>
>>> Best regards,
>>> Marcin Haba (gani)
>>>
>>> On Fri, 11 Mar 2022 at 15:43, Chris Wilkinson 
>>> wrote:
>>>
 I should have realised this sooner but I found that the pre-populated
 fields in the API wizard point to incorrect locations for the jsons.

 The jsons are located at /usr/lib/bacula/.. not /usr/sbin/..

 pi@raspberrypi-b:~ $ locate bsdjson
 /usr/lib/bacula/bsdjson
 etc..

 This means that the file /etc/sudoers.d/bacula-api should be:

 Defaults:www-data !requiretty
 www-data ALL=NOPASSWD: /usr/sbin/bconsole <==Note that bconsole is
 still @ /usr/sbin/..
 www-data ALL=NOPASSWD: /usr/lib/bacula/bdirjson
 www-data ALL=NOPASSWD: /usr/lib/bacula/bsdjson
 www-data ALL=NOPASSWD: /usr/lib/bacula/bfdjson
 www-data ALL=NOPASSWD: /usr/lib/bacula/bbconsjson


 The API wizard needs these paths too.

 With these changes, the API wizard now proceeds without error and the
 remainder of the setup goes OK.

 Best
 -Chris-




 On 11 Mar 2022, at 12:48, Chris Wilkinson 
 wrote:

 Hello Marcin

 I ran into a difficulty with the PI sudo set up when using the API
 wizard at step 4.

 General configuration
 Directory path for new config files:
 Use sudo:
 x

 I checked the ‘use sudo’ box. One example is below but the other fields
 are the same.
 Director
 bdirjson binary file path:
 Main Director config file path (usually bacula-dir.conf):
 We trust you have received the usual lecture from the local System
 Administrator. It usually boils down to these three things: #1) Respect the
 privacy of others. #2) Think before you type. #3) With great power comes
 great responsibility. sudo: no tty present and no askpass program specified

 The error is in the last sentence. I am also unclear on what is
 expected in the directory path for new configs at the top of this page.
 This appears to require a path that is writeable by www-data (for Apache2).

 This is the /etc/sudoers file (unmodified from stock)
 '
 #
 # This file MUST be edited with the 'visudo' command as root.
 #
 # Please consider adding local content in /etc/sudoers.d/ instead of
 # directly modifying this file.
 #
 # See the man page for details on how to write a sudoers file.
 #
 Defaults env_reset
 Defaults mail_badpass
 Defaults
 secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

 # Host alias specification

 # User alias specification

 # Cmnd alias specification

 # User privilege specification
 root ALL=(ALL:ALL) ALL

 # Allow members of group sudo to execute any command
 %sudo ALL=(ALL:ALL) ALL

 # See sudoers(5) for more information on "#include" directives:

 #includedir /etc/sudoers.d
 ‘

 www-data is a member of the sudo group.

 I created a new file /etc/sudoers.d/baculum-api containing:

 Defaults:www-data !requiretty
 www-data ALL=NOPASSWD: /usr/sbin/bconsole
 www-data ALL=NOPASSWD: /usr/sbin/bdirjson
 www-data ALL=NOPASSWD: /usr/sbin/bsdjson
 www-data ALL=NOPASSWD: /usr/sbin/bfdjson
 www-data ALL=NOPASSWD: /usr/sbin/bbconsjson

 The above are the same as I have in a Debian/Apache2 configuration that
 works just fine.

 Any suggestions where I went wrong ?

 Best
 -Chris-




 On 7 Mar 2022, at 05:36, Marcin Haba  wrote:

 Hello Chris,

 In bacula.org repositories we don't provide Baculum packages for
 Raspbian. But you can try manual installation using source tar archive.
 Here you can find install instruction:

 ht

Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-12 Thread Marcin Haba
Hello Chris,

If you mean the field in API install wizard labeled "Baculum working
directory for Bacula config", here you can find full answer:

https://sourceforge.net/p/bacula/mailman/message/37359134/

Best regards,
Marcin Haba (gani)

On Sat, 12 Mar 2022 at 09:59, Chris Wilkinson 
wrote:

> What is the purpose of the 'new configs' path? Should this point to the
> default /etc/bacula?
>
> Best
> Chris
>
> On Sat, 12 Mar 2022, 5:16 am Marcin Haba,  wrote:
>
>> Hello Chris,
>>
>> Thanks for reporting this problem.
>>
>> Yes, the b*json and bconsole paths can be different in various operating
>> systems. It is the reason why those fields are editable that everybody can
>> adjust paths to own needs.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Fri, 11 Mar 2022 at 15:43, Chris Wilkinson 
>> wrote:
>>
>>> I should have realised this sooner but I found that the pre-populated
>>> fields in the API wizard point to incorrect locations for the jsons.
>>>
>>> The jsons are located at /usr/lib/bacula/.. not /usr/sbin/..
>>>
>>> pi@raspberrypi-b:~ $ locate bsdjson
>>> /usr/lib/bacula/bsdjson
>>> etc..
>>>
>>> This means that the file /etc/sudoers.d/bacula-api should be:
>>>
>>> Defaults:www-data !requiretty
>>> www-data ALL=NOPASSWD: /usr/sbin/bconsole <==Note that bconsole is
>>> still @ /usr/sbin/..
>>> www-data ALL=NOPASSWD: /usr/lib/bacula/bdirjson
>>> www-data ALL=NOPASSWD: /usr/lib/bacula/bsdjson
>>> www-data ALL=NOPASSWD: /usr/lib/bacula/bfdjson
>>> www-data ALL=NOPASSWD: /usr/lib/bacula/bbconsjson
>>>
>>>
>>> The API wizard needs these paths too.
>>>
>>> With these changes, the API wizard now proceeds without error and the
>>> remainder of the setup goes OK.
>>>
>>> Best
>>> -Chris-
>>>
>>>
>>>
>>>
>>> On 11 Mar 2022, at 12:48, Chris Wilkinson 
>>> wrote:
>>>
>>> Hello Marcin
>>>
>>> I ran into a difficulty with the PI sudo set up when using the API
>>> wizard at step 4.
>>>
>>> General configuration
>>> Directory path for new config files:
>>> Use sudo:
>>> x
>>>
>>> I checked the ‘use sudo’ box. One example is below but the other fields
>>> are the same.
>>> Director
>>> bdirjson binary file path:
>>> Main Director config file path (usually bacula-dir.conf):
>>> We trust you have received the usual lecture from the local System
>>> Administrator. It usually boils down to these three things: #1) Respect the
>>> privacy of others. #2) Think before you type. #3) With great power comes
>>> great responsibility. sudo: no tty present and no askpass program specified
>>>
>>> The error is in the last sentence. I am also unclear on what is expected
>>> in the directory path for new configs at the top of this page. This appears
>>> to require a path that is writeable by www-data (for Apache2).
>>>
>>> This is the /etc/sudoers file (unmodified from stock)
>>> '
>>> #
>>> # This file MUST be edited with the 'visudo' command as root.
>>> #
>>> # Please consider adding local content in /etc/sudoers.d/ instead of
>>> # directly modifying this file.
>>> #
>>> # See the man page for details on how to write a sudoers file.
>>> #
>>> Defaults env_reset
>>> Defaults mail_badpass
>>> Defaults
>>> secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
>>>
>>> # Host alias specification
>>>
>>> # User alias specification
>>>
>>> # Cmnd alias specification
>>>
>>> # User privilege specification
>>> root ALL=(ALL:ALL) ALL
>>>
>>> # Allow members of group sudo to execute any command
>>> %sudo ALL=(ALL:ALL) ALL
>>>
>>> # See sudoers(5) for more information on "#include" directives:
>>>
>>> #includedir /etc/sudoers.d
>>> ‘
>>>
>>> www-data is a member of the sudo group.
>>>
>>> I created a new file /etc/sudoers.d/baculum-api containing:
>>>
>>> Defaults:www-data !requiretty
>>> www-data ALL=NOPASSWD: /usr/sbin/bconsole
>>> www-data ALL=NOPASSWD: /usr/sbin/bdirjson
>>> www-data ALL=NOPASSWD: /usr/sbin/bsdjson
>>> www-data ALL=NOPASSWD: /usr/sbin/bfdjson
>>> www-data ALL=NOPASSWD: /usr/sbin/bbconsjson
>>>
>>> The above are the same as I have in a Debian/Apache2 configuration that
>>> works just fine.
>>>
>>> Any suggestions where I went wrong ?
>>>
>>> Best
>>> -Chris-
>>>
>>>
>>>
>>>
>>> On 7 Mar 2022, at 05:36, Marcin Haba  wrote:
>>>
>>> Hello Chris,
>>>
>>> In bacula.org repositories we don't provide Baculum packages for
>>> Raspbian. But you can try manual installation using source tar archive.
>>> Here you can find install instruction:
>>>
>>> https://baculum.app/doc/brief/installation.html#manual-installation
>>>
>>> Best regards,
>>> Marcin Haba (gani)
>>>
>>> On Sat, 5 Mar 2022 at 22:49, Chris Wilkinson 
>>> wrote:
>>>
 Is it feasible to install Baculum (v9.x) on Raspbian? It is not listed
 in the official packages list (Bacula is). This is armf so the Debian repo
 package will not work.

 I have Bacula running with reasonable performance backing up to a local
 USB disk.

 Regards
 Chris Wilkinson
 ___
 Bacula-u

Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-12 Thread Chris Wilkinson
What is the purpose of the 'new configs' path? Should this point to the
default /etc/bacula?

Best
Chris

On Sat, 12 Mar 2022, 5:16 am Marcin Haba,  wrote:

> Hello Chris,
>
> Thanks for reporting this problem.
>
> Yes, the b*json and bconsole paths can be different in various operating
> systems. It is the reason why those fields are editable that everybody can
> adjust paths to own needs.
>
> Best regards,
> Marcin Haba (gani)
>
> On Fri, 11 Mar 2022 at 15:43, Chris Wilkinson 
> wrote:
>
>> I should have realised this sooner but I found that the pre-populated
>> fields in the API wizard point to incorrect locations for the jsons.
>>
>> The jsons are located at /usr/lib/bacula/.. not /usr/sbin/..
>>
>> pi@raspberrypi-b:~ $ locate bsdjson
>> /usr/lib/bacula/bsdjson
>> etc..
>>
>> This means that the file /etc/sudoers.d/bacula-api should be:
>>
>> Defaults:www-data !requiretty
>> www-data ALL=NOPASSWD: /usr/sbin/bconsole <==Note that bconsole is
>> still @ /usr/sbin/..
>> www-data ALL=NOPASSWD: /usr/lib/bacula/bdirjson
>> www-data ALL=NOPASSWD: /usr/lib/bacula/bsdjson
>> www-data ALL=NOPASSWD: /usr/lib/bacula/bfdjson
>> www-data ALL=NOPASSWD: /usr/lib/bacula/bbconsjson
>>
>>
>> The API wizard needs these paths too.
>>
>> With these changes, the API wizard now proceeds without error and the
>> remainder of the setup goes OK.
>>
>> Best
>> -Chris-
>>
>>
>>
>>
>> On 11 Mar 2022, at 12:48, Chris Wilkinson  wrote:
>>
>> Hello Marcin
>>
>> I ran into a difficulty with the PI sudo set up when using the API wizard
>> at step 4.
>>
>> General configuration
>> Directory path for new config files:
>> Use sudo:
>> x
>>
>> I checked the ‘use sudo’ box. One example is below but the other fields
>> are the same.
>> Director
>> bdirjson binary file path:
>> Main Director config file path (usually bacula-dir.conf):
>> We trust you have received the usual lecture from the local System
>> Administrator. It usually boils down to these three things: #1) Respect the
>> privacy of others. #2) Think before you type. #3) With great power comes
>> great responsibility. sudo: no tty present and no askpass program specified
>>
>> The error is in the last sentence. I am also unclear on what is expected
>> in the directory path for new configs at the top of this page. This appears
>> to require a path that is writeable by www-data (for Apache2).
>>
>> This is the /etc/sudoers file (unmodified from stock)
>> '
>> #
>> # This file MUST be edited with the 'visudo' command as root.
>> #
>> # Please consider adding local content in /etc/sudoers.d/ instead of
>> # directly modifying this file.
>> #
>> # See the man page for details on how to write a sudoers file.
>> #
>> Defaults env_reset
>> Defaults mail_badpass
>> Defaults
>> secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
>>
>> # Host alias specification
>>
>> # User alias specification
>>
>> # Cmnd alias specification
>>
>> # User privilege specification
>> root ALL=(ALL:ALL) ALL
>>
>> # Allow members of group sudo to execute any command
>> %sudo ALL=(ALL:ALL) ALL
>>
>> # See sudoers(5) for more information on "#include" directives:
>>
>> #includedir /etc/sudoers.d
>> ‘
>>
>> www-data is a member of the sudo group.
>>
>> I created a new file /etc/sudoers.d/baculum-api containing:
>>
>> Defaults:www-data !requiretty
>> www-data ALL=NOPASSWD: /usr/sbin/bconsole
>> www-data ALL=NOPASSWD: /usr/sbin/bdirjson
>> www-data ALL=NOPASSWD: /usr/sbin/bsdjson
>> www-data ALL=NOPASSWD: /usr/sbin/bfdjson
>> www-data ALL=NOPASSWD: /usr/sbin/bbconsjson
>>
>> The above are the same as I have in a Debian/Apache2 configuration that
>> works just fine.
>>
>> Any suggestions where I went wrong ?
>>
>> Best
>> -Chris-
>>
>>
>>
>>
>> On 7 Mar 2022, at 05:36, Marcin Haba  wrote:
>>
>> Hello Chris,
>>
>> In bacula.org repositories we don't provide Baculum packages for
>> Raspbian. But you can try manual installation using source tar archive.
>> Here you can find install instruction:
>>
>> https://baculum.app/doc/brief/installation.html#manual-installation
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Sat, 5 Mar 2022 at 22:49, Chris Wilkinson 
>> wrote:
>>
>>> Is it feasible to install Baculum (v9.x) on Raspbian? It is not listed
>>> in the official packages list (Bacula is). This is armf so the Debian repo
>>> package will not work.
>>>
>>> I have Bacula running with reasonable performance backing up to a local
>>> USB disk.
>>>
>>> Regards
>>> Chris Wilkinson
>>> ___
>>> 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
>>
>>
>>
>>
>
> --
> "Greater love hath no man than this, that a man lay down his life for his
> friends." J

Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-11 Thread Marcin Haba
Hello Chris,

Thanks for reporting this problem.

Yes, the b*json and bconsole paths can be different in various operating
systems. It is the reason why those fields are editable that everybody can
adjust paths to own needs.

Best regards,
Marcin Haba (gani)

On Fri, 11 Mar 2022 at 15:43, Chris Wilkinson 
wrote:

> I should have realised this sooner but I found that the pre-populated
> fields in the API wizard point to incorrect locations for the jsons.
>
> The jsons are located at /usr/lib/bacula/.. not /usr/sbin/..
>
> pi@raspberrypi-b:~ $ locate bsdjson
> /usr/lib/bacula/bsdjson
> etc..
>
> This means that the file /etc/sudoers.d/bacula-api should be:
>
> Defaults:www-data !requiretty
> www-data ALL=NOPASSWD: /usr/sbin/bconsole <==Note that bconsole is
> still @ /usr/sbin/..
> www-data ALL=NOPASSWD: /usr/lib/bacula/bdirjson
> www-data ALL=NOPASSWD: /usr/lib/bacula/bsdjson
> www-data ALL=NOPASSWD: /usr/lib/bacula/bfdjson
> www-data ALL=NOPASSWD: /usr/lib/bacula/bbconsjson
>
>
> The API wizard needs these paths too.
>
> With these changes, the API wizard now proceeds without error and the
> remainder of the setup goes OK.
>
> Best
> -Chris-
>
>
>
>
> On 11 Mar 2022, at 12:48, Chris Wilkinson  wrote:
>
> Hello Marcin
>
> I ran into a difficulty with the PI sudo set up when using the API wizard
> at step 4.
>
> General configuration
> Directory path for new config files:
> Use sudo:
> x
>
> I checked the ‘use sudo’ box. One example is below but the other fields
> are the same.
> Director
> bdirjson binary file path:
> Main Director config file path (usually bacula-dir.conf):
> We trust you have received the usual lecture from the local System
> Administrator. It usually boils down to these three things: #1) Respect the
> privacy of others. #2) Think before you type. #3) With great power comes
> great responsibility. sudo: no tty present and no askpass program specified
>
> The error is in the last sentence. I am also unclear on what is expected
> in the directory path for new configs at the top of this page. This appears
> to require a path that is writeable by www-data (for Apache2).
>
> This is the /etc/sudoers file (unmodified from stock)
> '
> #
> # This file MUST be edited with the 'visudo' command as root.
> #
> # Please consider adding local content in /etc/sudoers.d/ instead of
> # directly modifying this file.
> #
> # See the man page for details on how to write a sudoers file.
> #
> Defaults env_reset
> Defaults mail_badpass
> Defaults
> secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
>
> # Host alias specification
>
> # User alias specification
>
> # Cmnd alias specification
>
> # User privilege specification
> root ALL=(ALL:ALL) ALL
>
> # Allow members of group sudo to execute any command
> %sudo ALL=(ALL:ALL) ALL
>
> # See sudoers(5) for more information on "#include" directives:
>
> #includedir /etc/sudoers.d
> ‘
>
> www-data is a member of the sudo group.
>
> I created a new file /etc/sudoers.d/baculum-api containing:
>
> Defaults:www-data !requiretty
> www-data ALL=NOPASSWD: /usr/sbin/bconsole
> www-data ALL=NOPASSWD: /usr/sbin/bdirjson
> www-data ALL=NOPASSWD: /usr/sbin/bsdjson
> www-data ALL=NOPASSWD: /usr/sbin/bfdjson
> www-data ALL=NOPASSWD: /usr/sbin/bbconsjson
>
> The above are the same as I have in a Debian/Apache2 configuration that
> works just fine.
>
> Any suggestions where I went wrong ?
>
> Best
> -Chris-
>
>
>
>
> On 7 Mar 2022, at 05:36, Marcin Haba  wrote:
>
> Hello Chris,
>
> In bacula.org repositories we don't provide Baculum packages for
> Raspbian. But you can try manual installation using source tar archive.
> Here you can find install instruction:
>
> https://baculum.app/doc/brief/installation.html#manual-installation
>
> Best regards,
> Marcin Haba (gani)
>
> On Sat, 5 Mar 2022 at 22:49, Chris Wilkinson 
> wrote:
>
>> Is it feasible to install Baculum (v9.x) on Raspbian? It is not listed in
>> the official packages list (Bacula is). This is armf so the Debian repo
>> package will not work.
>>
>> I have Bacula running with reasonable performance backing up to a local
>> USB disk.
>>
>> Regards
>> Chris Wilkinson
>> ___
>> 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
>
>
>
>

-- 
"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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-11 Thread Chris Wilkinson
I should have realised this sooner but I found that the pre-populated fields in 
the API wizard point to incorrect locations for the jsons.

The jsons are located at /usr/lib/bacula/.. not /usr/sbin/..

pi@raspberrypi-b:~ $ locate bsdjson
/usr/lib/bacula/bsdjson
etc..

This means that the file /etc/sudoers.d/bacula-api should be:

> Defaults:www-data !requiretty
> www-data ALL=NOPASSWD: /usr/sbin/bconsole <==Note that bconsole is still 
> @ /usr/sbin/..
> www-data ALL=NOPASSWD: /usr/lib/bacula/bdirjson
> www-data ALL=NOPASSWD: /usr/lib/bacula/bsdjson
> www-data ALL=NOPASSWD: /usr/lib/bacula/bfdjson
> www-data ALL=NOPASSWD: /usr/lib/bacula/bbconsjson

The API wizard needs these paths too.

With these changes, the API wizard now proceeds without error and the remainder 
of the setup goes OK.

Best
-Chris-




> On 11 Mar 2022, at 12:48, Chris Wilkinson  wrote:
> 
> Hello Marcin
> 
> I ran into a difficulty with the PI sudo set up when using the API wizard at 
> step 4. 
> 
> General configuration
> Directory path for new config files:
> 
> Use sudo:
> x
> 
> I checked the ‘use sudo’ box. One example is below but the other fields are 
> the same.
> Director
> bdirjson binary file path:
> 
> Main Director config file path (usually bacula-dir.conf):
> 
> We trust you have received the usual lecture from the local System 
> Administrator. It usually boils down to these three things: #1) Respect the 
> privacy of others. #2) Think before you type. #3) With great power comes 
> great responsibility. sudo: no tty present and no askpass program specified
> 
> The error is in the last sentence. I am also unclear on what is expected in 
> the directory path for new configs at the top of this page. This appears to 
> require a path that is writeable by www-data (for Apache2).
> 
> This is the /etc/sudoers file (unmodified from stock)
> '
> #
> # This file MUST be edited with the 'visudo' command as root.
> #
> # Please consider adding local content in /etc/sudoers.d/ instead of
> # directly modifying this file.
> #
> # See the man page for details on how to write a sudoers file.
> #
> Defaults  env_reset
> Defaults  mail_badpass
> Defaults  
> secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
> 
> # Host alias specification
> 
> # User alias specification
> 
> # Cmnd alias specification
> 
> # User privilege specification
> root  ALL=(ALL:ALL) ALL
> 
> # Allow members of group sudo to execute any command
> %sudo ALL=(ALL:ALL) ALL
> 
> # See sudoers(5) for more information on "#include" directives:
> 
> #includedir /etc/sudoers.d
> ‘
> 
> www-data is a member of the sudo group.
> 
> I created a new file /etc/sudoers.d/baculum-api containing:
> 
> Defaults:www-data !requiretty
> www-data ALL=NOPASSWD: /usr/sbin/bconsole
> www-data ALL=NOPASSWD: /usr/sbin/bdirjson
> www-data ALL=NOPASSWD: /usr/sbin/bsdjson
> www-data ALL=NOPASSWD: /usr/sbin/bfdjson
> www-data ALL=NOPASSWD: /usr/sbin/bbconsjson
> 
> The above are the same as I have in a Debian/Apache2 configuration that works 
> just fine.
> 
> Any suggestions where I went wrong ?
> 
> Best
> -Chris-
> 
> 
> 
> 
>> On 7 Mar 2022, at 05:36, Marcin Haba > > wrote:
>> 
>> Hello Chris,
>> 
>> In bacula.org  repositories we don't provide Baculum 
>> packages for Raspbian. But you can try manual installation using source tar 
>> archive. Here you can find install instruction:
>> 
>> https://baculum.app/doc/brief/installation.html#manual-installation 
>> 
>> 
>> Best regards,
>> Marcin Haba (gani)
>> 
>> On Sat, 5 Mar 2022 at 22:49, Chris Wilkinson > > wrote:
>> Is it feasible to install Baculum (v9.x) on Raspbian? It is not listed in 
>> the official packages list (Bacula is). This is armf so the Debian repo 
>> package will not work. 
>> 
>> I have Bacula running with reasonable performance backing up to a local USB 
>> disk.
>> 
>> Regards
>> Chris Wilkinson 
>> ___
>> 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
> 

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


Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-11 Thread Chris Wilkinson
Hello Marcin

I ran into a difficulty with the PI sudo set up when using the API wizard at 
step 4. 

General configuration
Directory path for new config files:

Use sudo:
x

I checked the ‘use sudo’ box. One example is below but the other fields are the 
same.
Director
bdirjson binary file path:

Main Director config file path (usually bacula-dir.conf):

We trust you have received the usual lecture from the local System 
Administrator. It usually boils down to these three things: #1) Respect the 
privacy of others. #2) Think before you type. #3) With great power comes great 
responsibility. sudo: no tty present and no askpass program specified

The error is in the last sentence. I am also unclear on what is expected in the 
directory path for new configs at the top of this page. This appears to require 
a path that is writeable by www-data (for Apache2).

This is the /etc/sudoers file (unmodified from stock)
'
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaultsenv_reset
Defaultsmail_badpass
Defaults
secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
rootALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d
‘

www-data is a member of the sudo group.

I created a new file /etc/sudoers.d/baculum-api containing:

Defaults:www-data !requiretty
www-data ALL=NOPASSWD: /usr/sbin/bconsole
www-data ALL=NOPASSWD: /usr/sbin/bdirjson
www-data ALL=NOPASSWD: /usr/sbin/bsdjson
www-data ALL=NOPASSWD: /usr/sbin/bfdjson
www-data ALL=NOPASSWD: /usr/sbin/bbconsjson

The above are the same as I have in a Debian/Apache2 configuration that works 
just fine.

Any suggestions where I went wrong ?

Best
-Chris-




> On 7 Mar 2022, at 05:36, Marcin Haba  wrote:
> 
> Hello Chris,
> 
> In bacula.org  repositories we don't provide Baculum 
> packages for Raspbian. But you can try manual installation using source tar 
> archive. Here you can find install instruction:
> 
> https://baculum.app/doc/brief/installation.html#manual-installation 
> 
> 
> Best regards,
> Marcin Haba (gani)
> 
> On Sat, 5 Mar 2022 at 22:49, Chris Wilkinson  > wrote:
> Is it feasible to install Baculum (v9.x) on Raspbian? It is not listed in the 
> official packages list (Bacula is). This is armf so the Debian repo package 
> will not work. 
> 
> I have Bacula running with reasonable performance backing up to a local USB 
> disk.
> 
> Regards
> Chris Wilkinson 
> ___
> 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

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


Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-07 Thread Chris Wilkinson
Thanks Marcin I'll try that.

Best
Chris

On Mon, 7 Mar 2022, 5:36 am Marcin Haba,  wrote:

> Hello Chris,
>
> In bacula.org repositories we don't provide Baculum packages for
> Raspbian. But you can try manual installation using source tar archive.
> Here you can find install instruction:
>
> https://baculum.app/doc/brief/installation.html#manual-installation
>
> Best regards,
> Marcin Haba (gani)
>
> On Sat, 5 Mar 2022 at 22:49, Chris Wilkinson 
> wrote:
>
>> Is it feasible to install Baculum (v9.x) on Raspbian? It is not listed in
>> the official packages list (Bacula is). This is armf so the Debian repo
>> package will not work.
>>
>> I have Bacula running with reasonable performance backing up to a local
>> USB disk.
>>
>> Regards
>> Chris Wilkinson
>> ___
>> 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
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum for Raspberry PI B?

2022-03-06 Thread Marcin Haba
Hello Chris,

In bacula.org repositories we don't provide Baculum packages for Raspbian.
But you can try manual installation using source tar archive. Here you can
find install instruction:

https://baculum.app/doc/brief/installation.html#manual-installation

Best regards,
Marcin Haba (gani)

On Sat, 5 Mar 2022 at 22:49, Chris Wilkinson  wrote:

> Is it feasible to install Baculum (v9.x) on Raspbian? It is not listed in
> the official packages list (Bacula is). This is armf so the Debian repo
> package will not work.
>
> I have Bacula running with reasonable performance backing up to a local
> USB disk.
>
> Regards
> Chris Wilkinson
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum Dashboard Job Status Graph

2022-02-16 Thread Marcin Haba
Hello Tim,

That option does not exist in Baculum because always there is displayed job
status summary graph for all jobs.

However I agree that it could be a very useful option to be able to
configure job age for this graph. So I prepared this change in Baculum. You
can find it in this commit:

https://www.bacula.org/git/cgit.cgi/bacula/commit/?id=92a6104eb10f39c07bec43207182c9a84a6b9fe2

This option to configure age is placed in the application settings (the
gear wheel icon on the top left side of the interface).

It will be available in the next Baculum release.

Thanks!

Best regards,
Marcin Haba (gani)

On Wed, 16 Feb 2022 at 20:58, Goodman, Tim 
wrote:

> Is there a way to configure the date range for the Job Status Graph that
> is on the dashboard to the last 24 hours or last week?
> ___
> 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
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] baculum-web ssl error

2022-01-18 Thread Marcin Haba
Hello Saeed,

After enabling SSL in the web server config, you need to update the
protocol in API configuration on the Baculum Web side. You can do it
on the Security page in the API hosts tab. There you will be able to
change HTTP into HTTPS for defined API hosts.

Best regards,
Marcin Haba (gani)

On Tue, 18 Jan 2022 at 14:47, Saeed Green  wrote:
>
> Hi ...
> bacula : 11.0.5
> baculum : 11.0.5.7
>
> I recently enabled ssl for my bacula server.
> I placed my crt and key files and uncommented these three lines :
> SSLEngine on
> SSLCertificateFile /etc/baculum/Config-web-apache/baculum.crt
> SSLCertificateKeyFile /etc/baculum/Config-web-apache/baculum.key
> for both two baculum-api and baculum-web ...
> everything is fine but just in baculum-web page there is pop up error 
> messages :
>
> Error code: 100
>
> Message: Problem with connection to remote host. cURL error 0: .
>
> Bad Request
>
> Your browser sent a request that this server could not understand.
> Reason: You're speaking plain HTTP to an SSL-enabled server port.
> Instead use the HTTPS scheme to access this URL, please.
>
> What is it? What should I do?
> ___
> 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


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


Re: [Bacula-users] baculum 11.0.5.7 problem with bvfs

2022-01-17 Thread Marcin Haba
Hello Saeed,

For Baculum Web there is no special difference if it works with
Baculum API hosts which manage Bacula components that belong to
Director A or to Director B. The important thing for Baculum Web is to
be able to connect to API hosts. What functions do these API hosts
provide, it is a different story (and different level). If Baculum API
host A works with Director A, Baculum API host B works with Director
B, then when you switch Baculum Web to use API host A, you will see
resources from Director A, when you switch Baculum Web to use API host
B, you will see resources from Director B.

In practice it works in a way that API host A and API host B need to
have defined the Catalog and the Bconsole access as they work as main
hosts for Baculum Web. For rest "non-main" API hosts there is not this
requirement. Information about it is here:

https://baculum.app/doc/brief/configuration.html#installation-wizards

Yes, you are right that there is not special documentation for using
Baculum in multiple Director environment. General theory about how it
works is described in "Remote host management" chapter here:

https://baculum.app/doc/remote/basic.html

In YouTube channel you can also find a video titled "Baculum -
multiple API hosts" here:

https://www.youtube.com/watch?v=snjQw-3ZfVk

For Console settings, here are two movies that show setting Consoles
to use restricted user access for Basic auth and OAuth2:

Baculum Web - restricted user access using Console ACLs and API basic auth
https://www.youtube.com/watch?v=e6RbUmmD3As

Baculum Web - restricted user access using Console ACLs and OAuth2 client
https://www.youtube.com/watch?v=cvKtvZCvjLQ

I hope it helps.

Best regards,
Marcin Haba (gani)

On Mon, 17 Jan 2022 at 07:34, Saeed Green  wrote:
>
> Thanks a lot Marcin ...
> .
> In the baculum there is a functionality to add more director and console !
> What are they? and how do they work? I did not find any documentation ( not 
> in pdfs nor in your youtube channel ) about it !
>
> On Mon, Jan 17, 2022 at 9:51 AM Marcin Haba  wrote:
>>
>> Hello Saeed,
>>
>> Many thanks for your feedback and tests.
>>
>> It looks that the catalog autoselection forced by the restricted
>> console does not work with Bvfs bconsole commands. I don't have any
>> other workaround for this case except modifying command patterns in
>> API module Bconsole.php and/or using a wrapper for bconsole. But they
>> are not clear solutions. The best could be having support for multiple
>> catalogs with one Director in Baculum. This function can be added in
>> the future but unfortunately I can't tell exactly when.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Sat, 15 Jan 2022 at 11:37, Saeed Green  wrote:
>> >
>> > This is the output of : /api/v2/bvfs/lsdirs?jobids=4&path=&limit=8
>> >
>> > {
>> >   "output": [
>> > ".bvfs_lsdirs jobid=\"4\" path=\"\" limit=\"8\"",
>> > "You must specify a \"use \" command before continuing.",
>> > "Could not find a Catalog resource"
>> >   ],
>> >   "error": 0
>> > }
>> >
>> >
>> > On Sat, Jan 15, 2022 at 1:46 PM Saeed Green  
>> > wrote:
>> >>
>> >> something happened !!!
>> >> when I add ConsoleACL with Dedicated Bconsole file (and do what you say ) 
>> >> and execute bconsole command with it :
>> >>
>> >> bconsole -c clientconf.d/bconsole-dedicated-console.cfg
>> >>
>> >> It returns:
>> >> *restore
>> >> Automatically selected Catalog: MyCatalog2
>> >> Using Catalog "MyCatalog2"
>> >>
>> >> *gui on
>> >> *.bvfs_update jobid=4
>> >> *.bvfs_lsdirs jobid=4 path=""
>> >> 3   0   0   0   A A A A A A A A A A A A A A .
>> >> 2   0   0   0   A A A A A A A A A A A A A A C:/
>> >>
>> >> but in the baculum interface nothing happened! There is no Directory's 
>> >> list in the restore wizard  !!!
>> >>
>> >>
>> >> On Sat, Jan 15, 2022 at 12:12 PM Saeed Green  
>> >> wrote:
>> >>>
>> >>> Hi
>> >>>
>> >>> I Tested it. It bypasses auto selection of catalog but it sticks at 
>> >>> selecting catalog and stops there.
>> >>> .
>> >>> How can I define two Directors ! Each host has its Director ?!
>> >>> How can I do that?
>> >>>
>> >>> On Fri, Jan 14, 2022 at 9:10 AM Marcin Haba  wrote:
>> 
>>  Hello Saeed,
>> 
>>  Thanks for providing more details.
>> 
>>  Baculum does not support multiple catalogs with one Director. The
>>  selection that you can see:
>> 
>>  The defined Catalog resources are:
>>   1: MyCatalog1
>>   2: MyCatalog2
>> 
>>  Baculum is not able to answer because it does not know what catalog to
>>  select. For catalog per director it works because catalog is
>>  autoselected in this case.
>> 
>>  But I think that you can try a workaround that could work. If you
>>  want, you can define two restricted Bacula Console resources: one with
>>  CatalogACL = MyCatalog1 and one with CatalogACL = MyCatalog2. Rest
>>  resources (JobACL, ClientACL...etc.) could have full acc

Re: [Bacula-users] baculum 11.0.5.7 problem with bvfs

2022-01-16 Thread Marcin Haba
Hello Saeed,

Many thanks for your feedback and tests.

It looks that the catalog autoselection forced by the restricted
console does not work with Bvfs bconsole commands. I don't have any
other workaround for this case except modifying command patterns in
API module Bconsole.php and/or using a wrapper for bconsole. But they
are not clear solutions. The best could be having support for multiple
catalogs with one Director in Baculum. This function can be added in
the future but unfortunately I can't tell exactly when.

Best regards,
Marcin Haba (gani)

On Sat, 15 Jan 2022 at 11:37, Saeed Green  wrote:
>
> This is the output of : /api/v2/bvfs/lsdirs?jobids=4&path=&limit=8
>
> {
>   "output": [
> ".bvfs_lsdirs jobid=\"4\" path=\"\" limit=\"8\"",
> "You must specify a \"use \" command before continuing.",
> "Could not find a Catalog resource"
>   ],
>   "error": 0
> }
>
>
> On Sat, Jan 15, 2022 at 1:46 PM Saeed Green  wrote:
>>
>> something happened !!!
>> when I add ConsoleACL with Dedicated Bconsole file (and do what you say ) 
>> and execute bconsole command with it :
>>
>> bconsole -c clientconf.d/bconsole-dedicated-console.cfg
>>
>> It returns:
>> *restore
>> Automatically selected Catalog: MyCatalog2
>> Using Catalog "MyCatalog2"
>>
>> *gui on
>> *.bvfs_update jobid=4
>> *.bvfs_lsdirs jobid=4 path=""
>> 3   0   0   0   A A A A A A A A A A A A A A .
>> 2   0   0   0   A A A A A A A A A A A A A A C:/
>>
>> but in the baculum interface nothing happened! There is no Directory's list 
>> in the restore wizard  !!!
>>
>>
>> On Sat, Jan 15, 2022 at 12:12 PM Saeed Green  
>> wrote:
>>>
>>> Hi
>>>
>>> I Tested it. It bypasses auto selection of catalog but it sticks at 
>>> selecting catalog and stops there.
>>> .
>>> How can I define two Directors ! Each host has its Director ?!
>>> How can I do that?
>>>
>>> On Fri, Jan 14, 2022 at 9:10 AM Marcin Haba  wrote:

 Hello Saeed,

 Thanks for providing more details.

 Baculum does not support multiple catalogs with one Director. The
 selection that you can see:

 The defined Catalog resources are:
  1: MyCatalog1
  2: MyCatalog2

 Baculum is not able to answer because it does not know what catalog to
 select. For catalog per director it works because catalog is
 autoselected in this case.

 But I think that you can try a workaround that could work. If you
 want, you can define two restricted Bacula Console resources: one with
 CatalogACL = MyCatalog1 and one with CatalogACL = MyCatalog2. Rest
 resources (JobACL, ClientACL...etc.) could have full access in
 Consoles. Then you can prepare a bconsole.conf file for each host with
 a dedicated configuration to connect to the first console on host1 and
 to connect to the second console on host2. This way the Catalog
 selection could be skipped.

 I didn't test the above configuration but I think it has a chance to
 work. If you decide to try, I appreciate your feedback.

 Good luck.

 Best regards,
 Marcin Haba (gani)

 On Thu, 13 Jan 2022 at 12:39, Saeed Green  wrote:
 >
 > Thank you for your response.
 > Environment :
 > There is one Director which host 1 and host 2 connected to it. 
 > bacula-server and bacula-client installed in host1 . baculum-web and 
 > baculum-api installed in host1. PostgreSQL server installed in host1.
 > bacula-client and baculum-api installed in host 2.
 > host1 has its own Catalog (MyCatalog1) and host2 either has its own 
 > Catalog(MyCatalog2). all Cataloges saved in PostgreSQL server in host1.
 > bconsole in host1 as well as bconsole in host2 both connected to the 
 > same Director.
 >
 > I backed up my FileSet in host1 very well. as well I backed up my 
 > FileSet in host2.
 >
 > results with bconsole:
 > *restore
 > The defined Catalog resources are:
 >  1: MyCatalog1
 >  2: MyCatalog2
 > Select Catalog resource (1-2): 2
 > Using Catalog "MyCatalog2"
 >
 > First you select one or more JobIds that contain files
 > to be restored. You will be presented several methods
 > of specifying the JobIds. Then you will be allowed to
 > select which files from those JobIds are to be restored.
 >
 > To select the JobIds, you have the following choices:
 >  1: List last 20 Jobs run
 >  2: List Jobs where a given File is saved
 >  3: Enter list of comma separated JobIds to select
 > 
 > Select item:  (1-13): 2
 > Automatically selected Client: win-11ijafgb35k-fd
 > +---++-+-+---+--++
 > | jobid | name   | starttime   | jobtype | jobstatus | 
 > jobfiles | jobbytes   |
 > +---++-+-+---+--+--

Re: [Bacula-users] baculum 11.0.5.7 problem with bvfs

2022-01-13 Thread Marcin Haba
Hello Saeed,

Thanks for providing more details.

Baculum does not support multiple catalogs with one Director. The
selection that you can see:

The defined Catalog resources are:
 1: MyCatalog1
 2: MyCatalog2

Baculum is not able to answer because it does not know what catalog to
select. For catalog per director it works because catalog is
autoselected in this case.

But I think that you can try a workaround that could work. If you
want, you can define two restricted Bacula Console resources: one with
CatalogACL = MyCatalog1 and one with CatalogACL = MyCatalog2. Rest
resources (JobACL, ClientACL...etc.) could have full access in
Consoles. Then you can prepare a bconsole.conf file for each host with
a dedicated configuration to connect to the first console on host1 and
to connect to the second console on host2. This way the Catalog
selection could be skipped.

I didn't test the above configuration but I think it has a chance to
work. If you decide to try, I appreciate your feedback.

Good luck.

Best regards,
Marcin Haba (gani)

On Thu, 13 Jan 2022 at 12:39, Saeed Green  wrote:
>
> Thank you for your response.
> Environment :
> There is one Director which host 1 and host 2 connected to it. bacula-server 
> and bacula-client installed in host1 . baculum-web and baculum-api installed 
> in host1. PostgreSQL server installed in host1.
> bacula-client and baculum-api installed in host 2.
> host1 has its own Catalog (MyCatalog1) and host2 either has its own 
> Catalog(MyCatalog2). all Cataloges saved in PostgreSQL server in host1.
> bconsole in host1 as well as bconsole in host2 both connected to the same 
> Director.
>
> I backed up my FileSet in host1 very well. as well I backed up my FileSet in 
> host2.
>
> results with bconsole:
> *restore
> The defined Catalog resources are:
>  1: MyCatalog1
>  2: MyCatalog2
> Select Catalog resource (1-2): 2
> Using Catalog "MyCatalog2"
>
> First you select one or more JobIds that contain files
> to be restored. You will be presented several methods
> of specifying the JobIds. Then you will be allowed to
> select which files from those JobIds are to be restored.
>
> To select the JobIds, you have the following choices:
>  1: List last 20 Jobs run
>  2: List Jobs where a given File is saved
>  3: Enter list of comma separated JobIds to select
> 
> Select item:  (1-13): 2
> Automatically selected Client: win-11ijafgb35k-fd
> +---++-+-+---+--++
> | jobid | name   | starttime   | jobtype | jobstatus | jobfiles | 
> jobbytes   |
> +---++-+-+---+--++
> | 1 | C:/backup/ | 2022-01-12 18:48:03 | B   | T | 28   | 
> 38988649   |
> +---++-+-+---+--++
> To select the JobIds, you have the following choices:
>  1: List last 20 Jobs run
>  2: List Jobs where a given File is saved
>  3: Enter list of comma separated JobIds to select
> 
> Select item:  (1-13): 3
> Enter JobId(s), comma separated, to restore: 1
> You have selected the following JobId: 1
>
> Building directory tree for JobId(s) 1 ...
> 26 files inserted into the tree.
>
> You are now entering file selection mode where you add (mark) and
> remove (unmark) files to be restored. No files are initially added, unless
> you used the "all" keyword on the command line.
> Enter "done" to leave this mode.
>
> cwd is: /
> $ ls
> C:/
>
> and results with My Catalog 1 :
> *restore
> The defined Catalog resources are:
>  1: MyCatalog1
>  2: MyCatalog2
> Select Catalog resource (1-2): 1
> Using Catalog "MyCatalog1"
>
> First you select one or more JobIds that contain files
> to be restored. You will be presented several methods
> of specifying the JobIds. Then you will be allowed to
> select which files from those JobIds are to be restored.
>
> To select the JobIds, you have the following choices:
>  1: List last 20 Jobs run
>  2: List Jobs where a given File is saved
>  3: Enter list of comma separated JobIds to select
> 
> Select item:  (1-13): 1
> +---+---+---+-+--+--+---+
> | jobid | client| name  | starttime   | 
> joblevel | jobfiles | jobbytes  |
> +---+---+---+-+--+--+---+
> | 5 | main-fd | BackupCatalog | 2022-01-12 23:10:03 | F| 1
> | 70094 |
> | 4 | main-fd | BackupMain1 | 2022-01-12 23:05:02 | I| 0| 
> 0 |
> | 3 | main-fd | BackupMain1 | 2022-01-12 17:34:09 | F| 21   | 
> 9877691   |
> | 2 | main-fd | BackupCatalog | 2022-01-12 17:32:09 | F| 1
> | 55674 |
> +---+---+

Re: [Bacula-users] baculum 11.0.5.7 problem with bvfs

2022-01-12 Thread Marcin Haba
Hello Saeed,

Could you describe your Bacula environment? How do you use the two
Catalogs? Are they separated with their own Directors or you use one
Director?

For the bvfs requests, it looks that for jobid=1 .bvfs_update command
has not been done or there are no file records for this job in the
catalog (pruned records or empty backup). For test I propose to do in
bconsole:

.bvfs_update jobid=1
.bvfs_lsdirs jobid=1 path=""

Is now something changed in the output?

To see files in the catalog it might be useful to run:

list files jobid=1

Best regards,
Marcin Haba (gani)

On Wed, 12 Jan 2022 at 18:08, Saeed Green  wrote:
>
> Hello
>
> I installed bacula 11.0.5 with baculum 11.0.5.7
> I installed two baculum-api and connect it to two different catalog
> host1=baculum-api:9096 => MyCatalog1
> host2=baculum-api:9097 => MyCatalog2
>
> Everything is ok with the bconsole and I can restore my files with it and 
> even see the list of my files.
> but when I want to restore my files with baculum , host which connected to 
> MyCatalog1 can see its list of files and can restore its files (which is main 
> Catalog beside baculum-web)... host which connected to MyCatalog2 cannot see 
> its list of files and select what he wants, and he just can restore all of 
> his backup.
> .
> output of " /api/v2/bvfs/lsdirs?jobids=1&path=&limit=8 " in host1
>
> {
>   "output": [
> ".bvfs_lsdirs jobid=\"1\" path=\"\" limit=\"8\"",
> "Using Catalog \"MyCatalog1\"",
> "6\t0\t0\t0\tA A A A A A A A A A A A A A\t."
>   ],
>   "error": 0
> }
>
> output of " /api/v2/bvfs/lsdirs?jobids=1&path=&limit=8 " in host2
>
> {
>   "output": [
> ".bvfs_lsdirs jobid=\"1\" path=\"\" limit=\"8\"",
> "Using Catalog \"MyCatalog2\"",
> "6\t0\t0\t0\tA A A A A A A A A A A A A A\t."
>   ],
>   "error": 0
> }
>
> Is it ok that the output of these two different hosts is the same?
>
> Am I missing something?!
>
> ___
> 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


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


Re: [Bacula-users] Baculum Bug? When Add FileSet o Schedule that exists: overwrite

2021-12-10 Thread Marcin Haba
Hello Jose,

Yes, it is true that Baculum should report this situation. It could be
good to add this kind of checking.

It will be fixed in the future. Thanks.

Best regards,
Marcin Haba (gani)

On Fri, 10 Dec 2021 at 19:01, Jose Alberto  wrote:
>
> Hi.
>
> baculum   11.0.5.4
>
> When  add  FileSet  or  Schedule  that Exists,   "overwrite" ,  modify the 
> one that already exists.
>
> It should indicate that the object already exists.
>
>
> --
> #
> #   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


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


Re: [Bacula-users] Baculum Prado Errors

2021-12-10 Thread Marcin Haba
Hello Neil,

Could you paste the error messages that you see? Thanks in advance.

Best regards,
Marcin Haba (gani)

On Fri, 10 Dec 2021 at 17:43, Neil Balchin  wrote:
>
> When I first visit my baculum webgui page I invariably get between 2 and 3 
> php exception errors related to the pdo_postgres module.
>
> Ignoring them makes them go away and the rest of the session works perfectly
>
> Can anyone suggest a remedy,
>
> Running
> Bacula v9.6.7-3
> baculum v9.6.6.3
> Apache2 v2.4.46
> Php v7.4
>
>
>
> Running
> Neil Balchin
> n...@neilandjo.com
> 613-818-5454
>
>
>
> ___
> 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


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


Re: [Bacula-users] Baculum configuration

2021-09-30 Thread Marcin Haba
Hello Robert,

The directory defined in the field "Baculum working directory for
Bacula config" can be any directory (newly created or existing) in
your filesystem for which Baculum API web server user can write
something. In newer versions of Baculum there is a tooltip with
information about this directory and the field has an example proposed
directory displayed.

The tooltip says:

"In this directory Baculum API saves temporarily Bacula configuration
files (mainly for validation purposes) just before they are written as
real Bacula configuration files."

and example value there is: /etc/baculum/Config-api-apache

For permissions, they should enable writing to this directory by
Baculum API web server user. For the rest it should be not accessible.

Good luck.

Best regards,
Marcin Haba (gani)

On Thu, 30 Sept 2021 at 16:36, Robert Earl  wrote:
>
> Okay, after an apt purge of the lighttpd baculum packages, cleaning up after 
> the apt purge, and a reinstall, baculum-api has responded properly on port 
> 9096.
>
> I am not sure what directory it wants as "Baculum working directory for 
> Bacula config:". There is no default provided. It needs to be writable by the 
> web server. The field does not match the screenshot in 9.6.x documentation, 
> and is not mentioned there. I do not think that this should be 
> /opt/bacula/working.
>
> Is this a manually created directory? Does it go under the /var/www/html 
> tree? What permissions and attributes should it have? Does it contain any 
> files other than those placed there by the API?
> ___
> 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


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


Re: [Bacula-users] Baculum console add "quit" at the end of commands

2021-06-09 Thread Denis Morejón
Oh... Thank you in advance! It would be nice to include this for future
versions of baculum.

El mar., 8 de junio de 2021 1:17 a. m., Marcin Haba 
escribió:

> Hello Denis,
>
> Bconsole commands which require interaction with user (selecting
> something from text menu or typing something else) are not supported
> by the Baculum console. In this case you can see the "quit" word that
> you mentioned. To avoid displaying text menus you can provide needed
> values as command parameters. Not all commands allow that but it is
> possible. Here is simple example:
>
> 1. Status command with menu:
>
> *status
> Status available for:
>  1: Director
>  2: Storage
>  3: Client
>  4: Scheduled
>  5: Network
>  6: All
> Select daemon type for status (1-6): 1
>
> 2. Status command without menu:
>
> *status director
>
> Full list commands and theirs parameters you can see when you type in
> the console the following dot command:
>
> .help
>
> Best regards,
> Marcin Haba (gani)
>
> On Mon, 7 Jun 2021 at 03:35, Denis Morejón
>  wrote:
> >
> > I have a baculum 11 installed. Web console adds a "quit" word in the end
> of some commands typed. So, when I write a command and I hit Enter, the web
> frame shows me an error because of an additional "quit" word that It thinks
> I wrote. It is so strange! What is this?
> > ___
> > 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
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum console add "quit" at the end of commands

2021-06-07 Thread Marcin Haba
Hello Denis,

Bconsole commands which require interaction with user (selecting
something from text menu or typing something else) are not supported
by the Baculum console. In this case you can see the "quit" word that
you mentioned. To avoid displaying text menus you can provide needed
values as command parameters. Not all commands allow that but it is
possible. Here is simple example:

1. Status command with menu:

*status
Status available for:
 1: Director
 2: Storage
 3: Client
 4: Scheduled
 5: Network
 6: All
Select daemon type for status (1-6): 1

2. Status command without menu:

*status director

Full list commands and theirs parameters you can see when you type in
the console the following dot command:

.help

Best regards,
Marcin Haba (gani)

On Mon, 7 Jun 2021 at 03:35, Denis Morejón
 wrote:
>
> I have a baculum 11 installed. Web console adds a "quit" word in the end of 
> some commands typed. So, when I write a command and I hit Enter, the web 
> frame shows me an error because of an additional "quit" word that It thinks I 
> wrote. It is so strange! What is this?
> ___
> 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


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


Re: [Bacula-users] Baculum with a lot of @@ around words

2021-06-02 Thread Marcin Haba
Hello Denis,

It happens when the translation files are missing. Please make sure
you have the following files:

[DOCUMENT_ROOT_DIR]/protected/API/Lang/[LANG]/messages.mo
[DOCUMENT_ROOT_DIR]/protected/Web/Lang/[LANG]/messages.mo

for example (for /var/www/baculum as [DOCUMENT_ROOT_DIR] and for English files):

/var/www/baculum/protected/API/Lang/en/messages.mo
/var/www/baculum/protected/Web/Lang/en/messages.mo

Best regards,
Marcin Haba (gani)

On Wed, 2 Jun 2021 at 16:11, Denis Morejón
 wrote:
>
> Hi. I have installed bacula 11 and baculum from source. I used Ubuntu 20.04 
> as base OS. I used Postgesql as backend db. All right but the presence of @@ 
> around each word into the web. Into the two applications indeed: baculum api 
> and baculum web.
> What happened?
> ___
> 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


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


Re: [Bacula-users] Baculum key missing

2021-05-22 Thread Elias Pereira
Gary,

Change bacula.org to www.bacula.org


Em sáb, 22 de mai de 2021 18:42, Gary L. Roach 
escreveu:

> A related problem. The key installed OK but now apt-get update returns:
>
> *  Err:7 https://bacula.org/downloads/baculum/stable/debian
>  buster Release.**
> Certificate verification  failed: The certificate is NOT trusted. The name
> in the certificate does not  match the expected.  Could not handshake:
> Error in the certificate verification. [IP: 80.244.178.6443]*
>
> Any help on this will be sincerely appreciated.
>
> Gary R
>
>
> On 5/20/21 5:33 PM, Robert Earl wrote:
>
> The SSL certificate is no longer valid for "bacula.org". Fix your URL to
> read: "https://www.bacula.org/.. ." and it
> should behave better.
>
>
> On Thu, May 20, 2021 at 3:29 PM Jose Alberto  wrote:
>
>> On May 18, they renewed the SSL certificate of the page
>> https://www.bacula.org/. I think that has to do with it.
>>
>> On Thu, May 20, 2021 at 2:56 PM Gary L. Roach 
>> wrote:
>>
>>> Operating System: Debian GNU/Linux 10
>>> KDE Plasma Version: 5.14.5
>>> Qt Version: 5.11.3
>>> KDE Frameworks Version: 5.54.0
>>> Kernel Version: 4.19.0-16-amd64
>>> OS Type: 64-bit
>>> Processors: 4 × AMD FX(tm)-4350 Quad-Core Processor
>>> Memory: 15.6 GiB of RAM
>>> I have installed bacula with minimal trouble and have run all off the
>>> tests. Everything seems to be working. I then tried to install baculum and
>>> got the following:
>>>
>>> *root@debian:/etc/apt/trusted.gpg.d#
>>>  wget -qO -
>>> http://bacula.org/downloads/baculum/baculum.pub
>>>  |  apt-key add -
>>> baculum.key*
>>> *gpg: no valid OpenPGP data found.*
>>> *gpg: no valid OpenPGP data found.*
>>>
>>> I also tried the *wget with apt-key add -* That didn't work either.
>>> What am I doing wrong?
>>>
>>>
>>> Gary R
>>>
>>>
>>> ___
>>> Bacula-users mailing list
>>> Bacula-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>
>>
>>
>> --
>> #
>> #   Sistema Operativo: Debian  #
>> #Caracas, Venezuela  #
>> #
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
>
> ___
> Bacula-users mailing 
> listBacula-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/bacula-users
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum key missing

2021-05-22 Thread Gary L. Roach

A related problem. The key installed OK but now apt-get update returns:

*  Err:7 https://bacula.org/downloads/baculum/stable/debian buster 
Release.**Certificate verification  failed: The certificate is NOT 
trusted. The name in the certificate does not  match the expected.  
Could not handshake: Error in the certificate verification. [IP: 
80.244.178.6443]*


Any help on this will be sincerely appreciated.*
*

Gary R*
*


On 5/20/21 5:33 PM, Robert Earl wrote:
The SSL certificate is no longer valid for "bacula.org 
". Fix your URL to read: 
"https://www.bacula.org/.. ." and it should 
behave better.



On Thu, May 20, 2021 at 3:29 PM Jose Alberto > wrote:


On May 18, they renewed the SSL certificate of the page
https://www.bacula.org/ . I think that
has to do with it.

On Thu, May 20, 2021 at 2:56 PM Gary L. Roach
mailto:garyroach...@gmail.com>> wrote:

Operating System: Debian GNU/Linux 10
KDE Plasma Version: 5.14.5
Qt Version: 5.11.3
KDE Frameworks Version: 5.54.0
Kernel Version: 4.19.0-16-amd64
OS Type: 64-bit
Processors: 4 × AMD FX(tm)-4350 Quad-Core Processor
Memory: 15.6 GiB of RAM

I have installed bacula with minimal trouble and have run all
off the tests. Everything seems to be working. I then tried to
install baculum and got the following:

*root@debian:/etc/apt/trusted.gpg.d#
 wget -qO -
http://bacula.org/downloads/baculum/baculum.pub
 |  apt-key
add - baculum.key**
**    gpg: no valid OpenPGP data found.**
**    gpg: no valid OpenPGP data found.*

I also tried the *wget with apt-key add -* That didn't work
either. What am I doing wrong?


Gary R


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/bacula-users




-- 
#

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

https://lists.sourceforge.net/lists/listinfo/bacula-users




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


Re: [Bacula-users] Baculum key missing

2021-05-20 Thread Robert Earl
The SSL certificate is no longer valid for "bacula.org". Fix your URL to
read: "https://www.bacula.org/.. ." and it should
behave better.


On Thu, May 20, 2021 at 3:29 PM Jose Alberto  wrote:

> On May 18, they renewed the SSL certificate of the page
> https://www.bacula.org/. I think that has to do with it.
>
> On Thu, May 20, 2021 at 2:56 PM Gary L. Roach 
> wrote:
>
>> Operating System: Debian GNU/Linux 10
>> KDE Plasma Version: 5.14.5
>> Qt Version: 5.11.3
>> KDE Frameworks Version: 5.54.0
>> Kernel Version: 4.19.0-16-amd64
>> OS Type: 64-bit
>> Processors: 4 × AMD FX(tm)-4350 Quad-Core Processor
>> Memory: 15.6 GiB of RAM
>> I have installed bacula with minimal trouble and have run all off the
>> tests. Everything seems to be working. I then tried to install baculum and
>> got the following:
>>
>> *root@debian:/etc/apt/trusted.gpg.d#
>>  wget -qO -
>> http://bacula.org/downloads/baculum/baculum.pub
>>  |  apt-key add -
>> baculum.key*
>> *gpg: no valid OpenPGP data found.*
>> *gpg: no valid OpenPGP data found.*
>>
>> I also tried the *wget with apt-key add -* That didn't work either. What
>> am I doing wrong?
>>
>>
>> Gary R
>>
>>
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
>
> --
> #
> #   Sistema Operativo: Debian  #
> #Caracas, Venezuela  #
> #
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum key missing

2021-05-20 Thread Jose Alberto
On May 18, they renewed the SSL certificate of the page
https://www.bacula.org/. I think that has to do with it.

On Thu, May 20, 2021 at 2:56 PM Gary L. Roach 
wrote:

> Operating System: Debian GNU/Linux 10
> KDE Plasma Version: 5.14.5
> Qt Version: 5.11.3
> KDE Frameworks Version: 5.54.0
> Kernel Version: 4.19.0-16-amd64
> OS Type: 64-bit
> Processors: 4 × AMD FX(tm)-4350 Quad-Core Processor
> Memory: 15.6 GiB of RAM
> I have installed bacula with minimal trouble and have run all off the
> tests. Everything seems to be working. I then tried to install baculum and
> got the following:
>
> *root@debian:/etc/apt/trusted.gpg.d#
>  wget -qO -
> http://bacula.org/downloads/baculum/baculum.pub
>  |  apt-key add -
> baculum.key*
> *gpg: no valid OpenPGP data found.*
> *gpg: no valid OpenPGP data found.*
>
> I also tried the *wget with apt-key add -* That didn't work either. What
> am I doing wrong?
>
>
> Gary R
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


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


  1   2   3   4   >