Re: [Bacula-users] Failed to create el9 rpm package

2023-03-28 Thread Guilherme Santos
Has anyone to help me?

De: Guilherme Santos 
Enviado: terça-feira, 21 de março de 2023 10:00
Para: bacula-users@lists.sourceforge.net ; 
Eric Bollengier 
Assunto: RE: [Bacula-users] Failed to create el9 rpm package

Well, My environment is running a Director and Storage 9.4 version. I think 
that is not recommendable to use a higher client version, isn't?

De: Eric Bollengier via Bacula-users 
Enviado: terça-feira, 21 de março de 2023 04:39
Para: bacula-users@lists.sourceforge.net 
Assunto: Re: [Bacula-users] Failed to create el9 rpm package

Hello Guilherme,

On 3/15/23 15:58, Guilherme Santos wrote:
> I'm having trouble creating the package. Below is the information about the 
> environment and the error.
>
> Environment
>
> Operating System: Rocky Linux 9.1
> Source code to package: bacula-9.4.4.tar.gz

In general, compiling an old software (9.4.4 is 4 years old) on a new system
is a long and painful process.

I would recommend to compile the new version 13.0 instead.

Best Regards,
Eric

> Software to build the package: rpmdevtools rpmlint
>
> - bacula.spec.in
> # basic defines for every build
> %define _release   0
> %define _version   9.4.4
> %define productbacula
> %define depkgs_version 24Dec11
> tcpwrappers 0
> lzo 0
>
> Command executed to create the binary .rpm package
> $ rpmbuild -bb --define "build_rh9 1" --define "build_client_only 1" --define 
> "build_mysql 1" ~/rpmbuild/SPECS/bacula.spec.in
>
> Compiling bsnapshot.c
> bsnapshot.c: In member function 'char* lvm::get_lv_from_dm(char*, POOLMEM**, 
> u_int32_t*, u_int32_t*)':
> bsnapshot.c:1123:32: error: 'major' cannot be used as a function
>   1123 |if (maj == major(sp.st_rdev) &&
>|   ~^~~~
> bsnapshot.c:1124:32: error: 'minor' cannot be used as a function
>   1124 |min == minor(sp.st_rdev))
>|   ~^~~~
> make: *** [Makefile:155: bsnapshot.o] Error 1
> make: Leaving directory '/home/rpmbuild/BUILD/bacula-9.4.4/src/tools'
> error: Bad exit status from /var/tmp/rpm-tmp.zfjnRT (%install)
>
> RPM build errors:
>  Macro expanded in comment on line 536: %{suse} && ! 0%{?opensuse_bs}
>  Macro expanded in comment on line 537: %debug_package
>  extra tokens at the end of %endif directive in line 715:  %endif 
>   # suse
>  extra tokens at the end of %endif directive in line 720:  %endif 
>   # mdk
>  extra tokens at the end of %endif directive in line 725:  %endif 
>   # !suse && !mdk
>  extra tokens at the end of %endif directive in line 727:  %endif 
>   # ! usesystemd
>  Bad exit status from /var/tmp/rpm-tmp.zfjnRT (%install)
>
> LOG: /var/tmp/rpm-tmp.zfjnRT
> # fix me - building enable-client-only installs files not included in 
> bacula-client package
> # Program docs not installed on client
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bacula-dir.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bacula-sd.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bcopy.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bextract.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bls.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bscan.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/btape.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/dbcheck.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bregex.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bwild.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man1/bsmtp.1.gz
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bacula
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bacula_config
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bacula-ctl-dir
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bacula-ctl-sd
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/disk-changer
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/dvd-handler
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/mtx-changer
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/startmysql
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/stopmysql
> rm -rf $RPM_BUILD_ROOT/opt/bacula/scripts/updatedb
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bconsole
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/mtx-changer.conf
> rm -f $RPM_BUILD_ROOT/opt/bacula/bin/bacula
>
>  [ "%{buildarch}" = "noarch" ] || QA_CHECK_RPATHS=1 ;
>  case "${QA_CHECK_RPATHS:-}" in [1yY]*) /usr/lib/rpm/check-rpaths ;; esac
>  /usr/lib/rpm/check-buildroot
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.n

Re: [Bacula-users] Failed to create el9 rpm package

2023-03-21 Thread Guilherme Santos
Well, My environment is running a Director and Storage 9.4 version. I think 
that is not recommendable to use a higher client version, isn't?

De: Eric Bollengier via Bacula-users 
Enviado: terça-feira, 21 de março de 2023 04:39
Para: bacula-users@lists.sourceforge.net 
Assunto: Re: [Bacula-users] Failed to create el9 rpm package

Hello Guilherme,

On 3/15/23 15:58, Guilherme Santos wrote:
> I'm having trouble creating the package. Below is the information about the 
> environment and the error.
>
> Environment
>
> Operating System: Rocky Linux 9.1
> Source code to package: bacula-9.4.4.tar.gz

In general, compiling an old software (9.4.4 is 4 years old) on a new system
is a long and painful process.

I would recommend to compile the new version 13.0 instead.

Best Regards,
Eric

> Software to build the package: rpmdevtools rpmlint
>
> - bacula.spec.in
> # basic defines for every build
> %define _release   0
> %define _version   9.4.4
> %define productbacula
> %define depkgs_version 24Dec11
> tcpwrappers 0
> lzo 0
>
> Command executed to create the binary .rpm package
> $ rpmbuild -bb --define "build_rh9 1" --define "build_client_only 1" --define 
> "build_mysql 1" ~/rpmbuild/SPECS/bacula.spec.in
>
> Compiling bsnapshot.c
> bsnapshot.c: In member function 'char* lvm::get_lv_from_dm(char*, POOLMEM**, 
> u_int32_t*, u_int32_t*)':
> bsnapshot.c:1123:32: error: 'major' cannot be used as a function
>   1123 |if (maj == major(sp.st_rdev) &&
>|   ~^~~~
> bsnapshot.c:1124:32: error: 'minor' cannot be used as a function
>   1124 |min == minor(sp.st_rdev))
>|   ~^~~~
> make: *** [Makefile:155: bsnapshot.o] Error 1
> make: Leaving directory '/home/rpmbuild/BUILD/bacula-9.4.4/src/tools'
> error: Bad exit status from /var/tmp/rpm-tmp.zfjnRT (%install)
>
> RPM build errors:
>  Macro expanded in comment on line 536: %{suse} && ! 0%{?opensuse_bs}
>  Macro expanded in comment on line 537: %debug_package
>  extra tokens at the end of %endif directive in line 715:  %endif 
>   # suse
>  extra tokens at the end of %endif directive in line 720:  %endif 
>   # mdk
>  extra tokens at the end of %endif directive in line 725:  %endif 
>   # !suse && !mdk
>  extra tokens at the end of %endif directive in line 727:  %endif 
>   # ! usesystemd
>  Bad exit status from /var/tmp/rpm-tmp.zfjnRT (%install)
>
> LOG: /var/tmp/rpm-tmp.zfjnRT
> # fix me - building enable-client-only installs files not included in 
> bacula-client package
> # Program docs not installed on client
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bacula-dir.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bacula-sd.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bcopy.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bextract.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bls.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bscan.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/btape.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/dbcheck.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bregex.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bwild.8.gz
> rm -f $RPM_BUILD_ROOT/usr/share/man/man1/bsmtp.1.gz
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bacula
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bacula_config
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bacula-ctl-dir
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bacula-ctl-sd
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/disk-changer
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/dvd-handler
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/mtx-changer
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/startmysql
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/stopmysql
> rm -rf $RPM_BUILD_ROOT/opt/bacula/scripts/updatedb
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bconsole
> rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/mtx-changer.conf
> rm -f $RPM_BUILD_ROOT/opt/bacula/bin/bacula
>
>  [ "%{buildarch}" = "noarch" ] || QA_CHECK_RPATHS=1 ;
>  case "${QA_CHECK_RPATHS:-}" in [1yY]*) /usr/lib/rpm/check-rpaths ;; esac
>  /usr/lib/rpm/check-buildroot
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fbacula-users=05%7C01%7C%7C28e9677c24ca4996f1bf08db29dfba21%7C84df9e7fe9f640afb435%7C1%7C0%7C638149813114260082%7CUnknown%7

[Bacula-users] Failed to create el9 rpm package

2023-03-15 Thread Guilherme Santos
I'm having trouble creating the package. Below is the information about the 
environment and the error.

Environment

Operating System: Rocky Linux 9.1
Source code to package: bacula-9.4.4.tar.gz
Software to build the package: rpmdevtools rpmlint

- bacula.spec.in
# basic defines for every build
%define _release   0
%define _version   9.4.4
%define productbacula
%define depkgs_version 24Dec11
tcpwrappers 0
lzo 0

Command executed to create the binary .rpm package
$ rpmbuild -bb --define "build_rh9 1" --define "build_client_only 1" --define 
"build_mysql 1" ~/rpmbuild/SPECS/bacula.spec.in

Compiling bsnapshot.c
bsnapshot.c: In member function 'char* lvm::get_lv_from_dm(char*, POOLMEM**, 
u_int32_t*, u_int32_t*)':
bsnapshot.c:1123:32: error: 'major' cannot be used as a function
 1123 |if (maj == major(sp.st_rdev) &&
  |   ~^~~~
bsnapshot.c:1124:32: error: 'minor' cannot be used as a function
 1124 |min == minor(sp.st_rdev))
  |   ~^~~~
make: *** [Makefile:155: bsnapshot.o] Error 1
make: Leaving directory '/home/rpmbuild/BUILD/bacula-9.4.4/src/tools'
error: Bad exit status from /var/tmp/rpm-tmp.zfjnRT (%install)

RPM build errors:
Macro expanded in comment on line 536: %{suse} && ! 0%{?opensuse_bs}
Macro expanded in comment on line 537: %debug_package
extra tokens at the end of %endif directive in line 715:  %endif
   # suse
extra tokens at the end of %endif directive in line 720:  %endif
   # mdk
extra tokens at the end of %endif directive in line 725:  %endif
   # !suse && !mdk
extra tokens at the end of %endif directive in line 727:  %endif
   # ! usesystemd
Bad exit status from /var/tmp/rpm-tmp.zfjnRT (%install)

LOG: /var/tmp/rpm-tmp.zfjnRT
# fix me - building enable-client-only installs files not included in 
bacula-client package
# Program docs not installed on client
rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bacula-dir.8.gz
rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bacula-sd.8.gz
rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bcopy.8.gz
rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bextract.8.gz
rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bls.8.gz
rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bscan.8.gz
rm -f $RPM_BUILD_ROOT/usr/share/man/man8/btape.8.gz
rm -f $RPM_BUILD_ROOT/usr/share/man/man8/dbcheck.8.gz
rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bregex.8.gz
rm -f $RPM_BUILD_ROOT/usr/share/man/man8/bwild.8.gz
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/bsmtp.1.gz
rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bacula
rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bacula_config
rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bacula-ctl-dir
rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bacula-ctl-sd
rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/disk-changer
rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/dvd-handler
rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/mtx-changer
rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/startmysql
rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/stopmysql
rm -rf $RPM_BUILD_ROOT/opt/bacula/scripts/updatedb
rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/bconsole
rm -f $RPM_BUILD_ROOT/opt/bacula/scripts/mtx-changer.conf
rm -f $RPM_BUILD_ROOT/opt/bacula/bin/bacula

[ "%{buildarch}" = "noarch" ] || QA_CHECK_RPATHS=1 ;
case "${QA_CHECK_RPATHS:-}" in [1yY]*) /usr/lib/rpm/check-rpaths ;; esac
/usr/lib/rpm/check-buildroot
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] client 9.4 or older to Rocky Linux 9

2023-03-08 Thread Guilherme Santos
Hi guys.

Could someone tell me if exists client package version 9.4 or older to Rocky 
Linux 9? I didn't find nothing about.
If yes, could you send it to me?

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


[Bacula-users] Bacula-dir.conf as a csv

2022-09-22 Thread Guilherme Santos
Hey guys, what's up?

Has someone know if anyone made a script or something about that make the 
bacula-dir.conf as a csv? The idea to simplify what I have in my config and 
make some filters.

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


[Bacula-users] Same job, two storages

2022-09-14 Thread Guilherme Santos
Hey guys, could anyone give me a hand?

This is my scenario... I have a client that, some times, loses the connectivity 
with the storage1 but it has with storage2.
Could I let configured storage2 as a "backup" using only one job?

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


[Bacula-users] Fatal error: sql_create.c:841

2022-05-13 Thread Guilherme Santos
Hey guys, what's up?
Could someone try to help me to identify why some of my jobs have this error 
below? This happen only sometimes.


Fatal error: sql_create.c:841 Fill File table Query failed: INSERT INTO File 
(FileIndex, JobId, PathId, FilenameId, LStat, MD5, DeltaSeq) SELECT 
batch.FileIndex, batch.JobId, Path.PathId, Filename.FilenameId,batch.LStat, 
batch.MD5, batch.DeltaSeq FROM batch JOIN Path ON (batch.Path = Path.Path) JOIN 
Filename ON (batch.Name = Filename.Name): ERR=Lock wait timeout exceeded; try 
restarting transaction

I found this "solution" in a place. Do you think that will it resolve?



"If you run into this problem, there is a fairly simple fix in most
cases.  The default innodb lock wait timeout is 50 seconds.  To change
it, edit the MySQL config file (normally /etc/my.cnf) and change the line:

# innodb_lock_wait_timeout=50

to:

innodb_lock_wait_timeout=100

Then restart MySQL and Bacula."




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


Re: [Bacula-users] About bacula-dir.conmsg

2022-05-03 Thread Guilherme Santos
Hey guy, thanks to supply me... it's helped a lot!

De: Bill Arlofski via Bacula-users 
Enviado: segunda-feira, 2 de maio de 2022 12:36
Para: bacula-users@lists.sourceforge.net 
Assunto: Re: [Bacula-users] About bacula-dir.conmsg

On 5/2/22 07:54, Guilherme Santos wrote:
> Hey guys, what's up?
>
> Could someone tell me more about bacula-dir.conmsg? Mine is about 21G... 
> Why this archive has this size?
> Thanks!!

That file is the on-disk bconsole buffer of console messages.


You can do one of either:

1. Type 'messages' in a bconsole session and watch 21GB of log files scroll by 
(not recommended lol)

2. Stop the Director, and delete the file, then restart the Director.


Hope this helps!
Bill

--
Bill Arlofski
w...@protonmail.com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] About bacula-dir.conmsg

2022-05-02 Thread Guilherme Santos
Hey guys, what's up?

Could someone tell me more about bacula-dir.conmsg? Mine is about 21G... 
Why this archive has this size?
Thanks!!
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Log table so big

2021-08-04 Thread Guilherme Santos
Hey Eric, thanks to reply.
Sorry, I said that the table has a about a million lines... but it has more 
then 156 million lines.

So, I did a query at table Log and it has information about the first log 
(LogId = 1, JobId = 1). It indicates that no maintenance was done yet. What do 
you suggest?

The Bacula is configured do a prune at expired volumes everyday after complete 
all backups.

Thanks!


De: Eric Bollengier via Bacula-users 
Enviado: quarta-feira, 4 de agosto de 2021 11:56
Para: bacula-users@lists.sourceforge.net 
Assunto: Re: [Bacula-users] Log table so big

Hello,

On 8/4/21 15:37, Guilherme Santos wrote:
> Hello!
> First, thanks to suport.
>
> I'm using Bacula for a consider time and my Log table is about 19GB.
> What's the best solution to "solve" this? This table has more than a million 
> lines. I'm using Bacula 9.4.4.
>

19GB for 1,000,000 records is a lot, you might double check if you run the
database maintenance tools properly.

Then, I would suggest to have a look to the table content, the last time I saw
this problem, a couple of runscripts were generating 95% of the content of the 
table.

If you list the files you backup or something like that in the Messages 
resource,
it can be also very verbose, but you can configure what you want to see or not.

A regular job is probably around 20 lines, if you have more than 50,000 jobs in 
your
Job table, it might be normal as well. You can prune your Jobs or also not use 
the
catalog as a Messages destination.

Hope it helps!

Best Regards,
Eric


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fbacula-usersdata=04%7C01%7C%7Cbd2ba41655f3418114d108d957586d06%7C84df9e7fe9f640afb435%7C1%7C0%7C637636859560124722%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=0pOncDsiNNtAnfqcAuNV%2FtZhCAEJNN%2Fe9L9q8XalOkw%3Dreserved=0
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Log table so big

2021-08-04 Thread Guilherme Santos
Hello!
First, thanks to suport.

I'm using Bacula for a consider time and my Log table is about 19GB.
What's the best solution to "solve" this? This table has more than a million 
lines. I'm using Bacula 9.4.4.

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