Re: [Bacula-users] Messages resources and spurious email...

2023-02-03 Thread Gary R. Schmidt

On 04/02/2023 02:04, Marco Gaiarin wrote:

Mandi! Ana Emília M. Arruda
   In chel di` si favelave...

[ Could you please stop putting me in TO/CC?! mailman is so dumb that don't
   send email if i'm on To:/CC:, and all my email archive goes bad. Thanks.  ]


It's not Mailman, it's you.

Login to the bacula mailman system, and change this:
"Avoid duplicate copies of messages?

When you are listed explicitly in the To: or Cc: headers of a list 
message, you can opt to not receive another copy from the mailing list. 
Select Yes to avoid receiving copies from the mailing list; select No to 
receive copies.


If the list has member personalized messages enabled, and you elect to 
receive copies, every copy will have a X-Mailman-Copy: yes header added 
to it."


to "No".

Cheers,
GaryB-)


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


Re: [Bacula-users] Messages resources and spurious email...

2023-02-03 Thread Marco Gaiarin
Mandi! Ana Emília M. Arruda
  In chel di` si favelave...

[ Could you please stop putting me in TO/CC?! mailman is so dumb that don't
  send email if i'm on To:/CC:, and all my email archive goes bad. Thanks.  ]

> So, these are daemon messages and you have your Messages resource for daemon
> messages configured to send them to the console by using "console = all, !
> skipped, !saved".

> If you wish to send those messages to the .log file only, for example, just 
> set
> "console = !all":

> Messages {
>   Name = Daemon
>   Description = "Messages resource for daemons (no jobs)"
>   mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula LNF\) \<%r\>\" -s 
> \"[BaculaLNF] Notifica generica dal sistema di backup.\" %r"
>   mail = some.e@mail.address = all, !skipped
>   console = all, !skipped, !saved
>   append = "/var/log/bacula/bacula.log" = all, !skipped
>   catalog = all, !skipped, !saved
>  }

> It means that no daemon messages will go to the console (these messages are
> displayed when you type "messages" in bconsole or "m", etc.).

No, i'm speaking about the 'mail = ' row.


With this 'mail =' row, i receive exactly the info i need *BUT* i receive
some spurous messages via email (for example, a roaming client not
reachable as in my examples) ONLY when:

 a) someone logon on console and type 'mes'

 b) i restart the director.

If i not logon on console or i don't restart the daemons, i don't receive
that message.

This seems a bit strange to me...


I hope i was clear now. 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-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] Question about bacula 13.0.x isntallation

2023-02-03 Thread Robin Schröter

Hello Ana,

no unfortunately that is not the problem.

I tried to install Bacula 13.0.1 on a clean installed Ubuntu 20.04.

I tried the bacual-mysql packed but then I only get

bacula-client/stable,now 13.0.1-22081215~focal amd64 [installed,automatic]
bacula-common/stable,now 13.0.1-22081215~focal amd64 [installed,automatic]
bacula-console/stable,now 13.0.1-22081215~focal amd64 [installed,automatic]
bacula-mysql/stable,now 13.0.1-22081215~focal amd64 [installed]

Than I tried to install the old bacula 9.4 director first and updating 
to the newest bacula 13.0.1 version. But than the installer deleted the 
bacula-director and then I also only have these shown above.


I cant install bacula-director at all. I also tried all other packeges 
that are accessible on that repo I got from bacula without success.


https://www.bacula.org/packages/***/debs/13.0.1/dists/focal/main/binary-amd64/


Am 02.02.2023 um 23:06 schrieb Ana Emília M. Arruda:

Hello Robin,

If you had previously installed both bacula-postgresql and 
bacula-mysql, I would suggest you remove one of them. These are 
Director, File Daemon and Storage Daemon for either PostgreSQL or 
MySQL/MariaDB.


As you have problems getting Director and/or Storage installed, it is 
possible the installation is not successful because you are installing 
these two packages.


Please confirm if you have a bacula PostgreSQL or a MySQL database. 
This is very important. You need to use the correct one for the upgrade.


Best,
Ana

On Thu, Feb 2, 2023 at 5:10 PM Robin Schröter  
wrote:


Hello Ana,

i tried your solution and installed
bacula-mysql

The Server installed a few packeges but no director was installed.

bacula-client/stable,now 13.0.1-22081215~focal amd64
[installed,automatic]
bacula-common/stable,now 13.0.1-22081215~focal amd64
[installed,automatic]
bacula-console/stable,now 13.0.1-22081215~focal amd64
[installed,automatic]
bacula-mysql/stable,now 13.0.1-22081215~focal amd64 [installed]
bacula/stable,now 13.0.1-22081215~focal all [installed]

Thats the only packeges that bacula 13 can install.

Can I get the director and Storage as installed packeges?

Am 27.01.2023 um 09:43 schrieb Ana Emília M. Arruda:

Hello Robin,

Bacula Director and Bacula Storage Daemon comes in the very same
package.

You must install either the bacula_postgresql (if you use a
PostgreSQL Bacula Catalog) or the bacula_mysql (if you use a
MySQL or MariaDB Bacula Catalog). Then, as soon as you have this
package installed, you will have both Director and the Storage in
the same host. You just need to disable and stop the daemon, for
example, in the Storage only host:

* systemctl disable bacula-dir
* systemctl stop bacula-dir

Hope it helps.

Best,
Ana

On Thu, Jan 26, 2023 at 4:59 PM Robin Schröter
 wrote:

Hello,

at the moment we have to seperate Ubunut 20.04 Server.

One has Bacula-director 9.4.2 and the other has Bacula-sd 9.4.2

I got the repo link from bacula

https://www.bacula.org/packages/***/debs/13.0.1/dists/focal/main/binary-amd64/
there are the packeges I can get into ubuntu using the
sources.list.

The problem is I cant find the bacual-sd nor the
bacula-director as
seperate packeges.

I wanted to update the bacula version on these two ubuntu
Servers to the
newest 13.0.x version.

For that I need to install the bacula-sd and bacula-director
seperatly
on two different servers.

The other bacula version also only have these packeges.

bacula-cdp-plugin_13.0.1-22081215~focal_amd64.deb
bacula-client_13.0.1-22081215~focal_amd64.deb
bacula-cloud-storage-common_13.0.1-22081215~focal_amd64.deb
bacula-cloud-storage-s3_13.0.1-22081215~focal_amd64.deb
bacula-common_13.0.1-22081215~focal_amd64.deb
bacula-console_13.0.1-22081215~focal_amd64.deb
bacula-docker-plugin_13.0.1-22081215~focal_amd64.deb
bacula-docker-tools_13.0.1-22081215~focal_amd64.deb
bacula-kubernetes-plugin_13.0.1-22081215~focal_amd64.deb
bacula-kubernetes-tools_13.0.1-22081215~focal_amd64.deb
bacula-mysql_13.0.1-22081215~focal_amd64.deb
bacula-postgresql_13.0.1-22081215~focal_amd64.deb
bacula_13.0.1-22081215~focal_all.deb

I can install the bacula_13.0.1-22081215~focal_all.deb packed
but that
doesnt list bacula-sd or bacula-director as installed packeges.
In addition to that that packed also wants to install
postgresql that we
dont wanna use.

Is there a possibility to install bacula-director and
bacula-sd 13.0.x
speratly on two different servers without compiling it new?
(Because we
want to upgarde the already installed version)




Re: [Bacula-users] Bacula upgrade

2023-02-03 Thread Yateen Shaligram Bhagat (Nokia)
Hi Ana

I got failures with update_postgresql_tables script.
Please see my inline comments in your email below.
-Yateen

From: Ana Emília M. Arruda 
Sent: Tuesday, January 31, 2023 2:43 PM
To: Yateen Shaligram Bhagat (Nokia) 
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Bacula upgrade

Hello Yateen,

You should use the "postgres" user to run the update_postgresql_tables script.
[Yateen]  Ok, noted

As you have installed Bacula 13 from scratch in the new server, please remember 
to drop the bacula database created in a fresh install before importing the 
current DB using dump.

Then, you run the update_postgresql_tables script.

[Yateen]

  1.  I dropped the bacula database and tried to import the dump of Bacula 
9.4.4 Catalog. Got an error:

postgres@ubuntu:/opt/bacula/scripts$ psql -d bacula -f ~bacula/bacula.sql
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" 
failed: FATAL:  database "bacula" does not exist


  1.  So created bacula database using script create_postgresql_database
postgres@ubuntu:/opt/bacula/scripts$  
./create_postgresql_database
CREATE DATABASE
ALTER DATABASE
Creation of bacula database succeeded.
Database encoding OK


  1.  Then I imported Catalog dump from Bacula 9.4
psql -d bacula -f ~bacula/bacula.sql


  1.  Next, I ran update_postgresql_tables script
postgres@ubuntu:/opt/bacula/scripts$ ./update_postgresql_tables
This script will update a Bacula PostgreSQL database
   from any from version 12-16 or 1014-1022 to version 
1024
   which is needed to convert from any Bacula Communty 
to version 11.4.x
Dumping File table to /opt/bacula/scripts/file1017.data.

The process may fail if the current user
doesn't have write permission on the current directory,
or if the system doesn't have enough space to store a
compressed export of the File table
BEGIN
DROP TABLE
DROP TABLE
CREATE TABLE
COMMIT
Loading the File table from /opt/bacula/scripts/file.8520.data...
server closed the connection unexpectedly
  This probably means the server terminated abnormally
  before or while processing the request.
Inserting File data from file.8520.data failed.

Best,
Ana
On Tue, Jan 31, 2023 at 6:28 AM Yateen Shaligram Bhagat (Nokia) 
mailto:yateen.shaligram_bha...@nokia.com>> 
wrote:
Hello Ana,

Thanks for your reply.

Here is what I did...

1. Target for Bacula 13 upgrade is Ubuntu 22.4.
1. Installed postgresql 14 on Ubuntu 22.4
2. Installed  Bacula 13 using Deb package (dpkg command)
3. Dumped Bacula database from 9.4 installation (on CentOS 6)
4. Imported Bacula db dump into postgresql 14 on Ubuntu
5. Tried to start Bacula 13 director.
6. Got error message : Current Catalog version is 16, required version 1024.

Plz let me know the username through which i should run the 
upadate_postgresql_tables script, is it postgres user?

Regards,

Yateen



Get Outlook for Android


From: Ana Emília M. Arruda 
mailto:emiliaarr...@gmail.com>>
Sent: Monday, 30 January, 2023, 23:27
To: Yateen Shaligram Bhagat (Nokia) 
mailto:yateen.shaligram_bha...@nokia.com>>
Cc: 
bacula-users@lists.sourceforge.net 
mailto:bacula-users@lists.sourceforge.net>>
Subject: Re: [Bacula-users] Bacula upgrade

Hello Yateen,

Have you already performed the upgrade? Have you checked if the Catalog version 
has been updated?
Can you please let us know which platform you are using?
I've checked the update_postgresql_tables script and it includes the upgrade 
from version 12-16 or 1014-1022 to 1024.
Are you using packages or compiling from source code?

Best,
Ana

On Mon, Jan 30, 2023 at 1:27 PM Yateen Shaligram Bhagat (Nokia) 
mailto:yateen.shaligram_bha...@nokia.com>> 
wrote:
Hi all,

Is it possible to upgrade bacula version 9.4 (catalog database version 16)  to 
version 13 (catalog database version 1024) directly as one step or any 
intermediate step upgrades are required?

I tried the direct upgrade, but there is no update_postgresql_tables script for 
database version 16 to 1024.

Please advise.

Thanks
Yateen S Bhagat
___
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