Re: [Bacula-users] qt-console Compile Error

2017-09-18 Thread Can Şirin

 It is the same again. It is definitely related with enable-bat option. Did
you compiled it properly with bat?

Quoting Ralf Brinkmann :


For a new try I'd set the compile options to a minimum, e.g.:

--with-postgresql
--enable-conio
--enable-bat

--
Ralf Brinkmann



--

Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Bacula-users mailing list


Bacula-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/bacula-users
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Incomplete backup - due to bsock error

2017-09-18 Thread Martin Simmons
A copy job will communicate using TCP between the Bacula daemons.  A bsock
error could indicate that bacula-sd closed the connection unexpectedly and I
would expect media errors to be logged.

Your syslog did include some I/O errors.  Any they caused by something else?

Do you have the complete job log (from the Bacula log, not the syslog)?

__Martin


> On Wed, 13 Sep 2017 09:35:07 -0700, Jerry Lowry said:
> 
> Kern,
> My Offsite Backup just failed again on the same drive, different disk. It
> failed with the same bsock error.  If the backup is working on the same
> system using the copy function, how far out of the network stack does it
> go.  My thinking is it does not get out of the application layer.  Is this
> right?  Why would I get a bsock error?
> 
> I have taken a look at the smart data for the disk and they seem to be
> running okay. I am getting some sector relocation errors, would that cause
> the bsock error during a remap?  This procedure has been running flawlessly
> for many years ( except for human error ).  I am wondering if I should
> delete the present disk files and let bacula recreate new ones.
> 
> thanks for your help!
> 
> jerry
> 
> 
> On Wed, Sep 6, 2017 at 11:26 PM, Kern Sibbald  wrote:
> 
> > Hello,
> >
> > If the job is marked as Incomplete in the catalog ("I" I think), then you
> > can simply restart it and it should pickup where it left off.  If not you
> > must run it again from the beginning.
> >
> > If you are switching devices when one is full during a Job, it is unlikely
> > you can restore that job when it terminates. I recommend carefully testing
> > restores on your system.
> >
> > Best regards,
> >
> > Kern
> >
> > On 09/06/2017 05:38 PM, Jerry Lowry wrote:
> >
> > List,
> > I am running, bacula 9.0.3, Mariadb 12.2.8 on Centos 6.9.  I got notice
> > last night that my Offsite backup failed due to a bsock error.  My offsite
> > drives are attached to an ATTO raid card which gives me hot swap
> > capability. This configuration works great as it allows me to hot swap a
> > drive when it fills up with a new drive to continue with.  The problem is
> > included below. The backup that I was doing is to the OffsiteMid drive
> > which is mounted as /dev/sde. Is there a way to restart this backup job or
> > am I left with an incomplete backup going forward.
> >
> > thanks for your help,
> >
> > jerry
> >
> >
> > Sep  5 08:46:01 kilchis bat[4339]: bsock.c:147 Unable to connect to
> > Director dae
> > mon on kilchis:9101. ERR=Connection refused
> > Sep  5 10:37:20 kilchis attocfgd: [CRIT] [ExpressSAS
> > R608,50:01:08:60:00:57:3d:c
> > 0] [FW] RAID Group state now Offline: OffsiteTop
> > Sep  5 10:39:06 kilchis kernel: scsi 5:0:1:0: Direct-Access ATTO
> > Offsite
> > Top00 0001 PQ: 0 ANSI: 5
> > Sep  5 10:39:06 kilchis kernel: sd 5:0:1:0: Attached scsi generic sg6 type
> > 0
> > Sep  5 10:39:06 kilchis kernel: sd 5:0:1:0: [sdd] 488366336 4096-byte
> > logical bl
> > ocks: (2.00 TB/1.81 TiB)
> > Sep  5 10:39:06 kilchis kernel: sd 5:0:1:0: [sdd] Write Protect is off
> > Sep  5 10:39:06 kilchis kernel: sd 5:0:1:0: [sdd] Write cache: enabled,
> > read cac
> > he: enabled, doesn't support DPO or FUA
> > Sep  5 10:39:06 kilchis kernel: sd 5:0:1:0: [sdd] 488366336 4096-byte
> > logical bl
> > ocks: (2.00 TB/1.81 TiB)
> > Sep  5 10:39:06 kilchis kernel: sdd: unknown partition table
> > Sep  5 10:39:06 kilchis kernel: sd 5:0:1:0: [sdd] 488366336 4096-byte
> > logical bl
> > ocks: (2.00 TB/1.81 TiB)
> > Sep  5 10:39:06 kilchis kernel: sd 5:0:1:0: [sdd] Attached SCSI disk
> > Sep  5 10:39:35 kilchis kernel: sd 5:0:1:0: [sdd] 488366336 4096-byte
> > logical bl
> > ocks: (2.00 TB/1.81 TiB)
> > Sep  5 10:39:35 kilchis kernel: sdd:
> > Sep  5 10:44:54 kilchis kernel: EXT4-fs (sdd): mounted filesystem with
> > ordered d
> > ata mode. Opts:
> > Sep  5 11:02:38 kilchis bacula-dir[4373]: bsock.c:537 Socket has errors=1
> > on cal
> > l to client:10.20.10.21:9101
> > Sep  5 11:02:38 kilchis bacula-dir[4373]: bsock.c:537 Socket has errors=1
> > on cal
> > l to client:10.20.10.21:9101
> > Sep  5 11:02:38 kilchis bacula-dir[4373]: bsock.c:537 Socket has errors=1
> > on cal
> > l to client:10.20.10.21:9101
> > Sep  5 11:02:38 kilchis bacula-dir[4373]: bsock.c:537 Socket has errors=1
> > on cal
> > l to client:10.20.10.21:9101
> > Sep  5 11:02:38 kilchis bacula-dir[4373]: bsock.c:537 Socket has errors=1
> > on cal
> > l to client:10.20.10.21:9101
> > Sep  5 11:02:38 kilchis bacula-dir[4373]: bsock.c:537 Socket has errors=1
> > on cal
> > l to client:10.20.10.21:9101
> > Sep  5 11:02:38 kilchis bacula-dir[4373]: bsock.c:537 Socket has errors=1
> > on cal
> > l to client:10.20.10.21:9101
> > Sep  5 13:45:48 kilchis attocfgd: [CRIT] [ExpressSAS
> > R608,50:01:08:60:00:57:3d:c
> > 0] [FW] RAID Group state now Offline: OffsiteMid
> > Sep  5 13:45:53 kilchis attocfgd: [CRIT] [ExpressSAS
> > R608,50:01:08:60:00:57:3d:c
> > 0] [FW] RAID Group state now Offline: OffsiteTop
> > Sep  5 13:47:52 kilch

Re: [Bacula-users] qt-console Compile Error

2017-09-18 Thread Simone Caronni
Hi,

On Mon, Sep 18, 2017 at 9:03 AM, Can Şirin  wrote:

> It is the same again. It is definitely related with enable-bat option. Did
> you compiled it properly with bat?
>
> Quoting Ralf Brinkmann :
>
> For a new try I'd set the compile options to a minimum, e.g.:
>
> --with-postgresql
> --enable-conio
> --enable-bat
>
>
You might want to take a look at the SPEC files for the rawhide rebuilds:

https://copr.fedorainfracloud.org/coprs/slaanesh/Bacula/

The packages are at version 9.0.4 and BAT is enabled. If you want to use
the packages directly, read the documents as explained.

Regards,
--Simone


-- 
You cannot discover new oceans unless you have the courage to lose sight of
the shore (R. W. Emerson).

http://xkcd.com/229/
http://negativo17.org/
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] qt-console Compile Error

2017-09-18 Thread Can Şirin

Thanks for your advice. Actually it really make sense to look at the spec
file of successfully compiled rpm files. I should have thought about that.
Anyway...

Problem is solved. As I can see from spec file, another configure parameter
(with-x) must be defined to successfully compile the Bacule with bat. You
can see the configure option below.

CFLAGS="-g -Wall" ./configure \
  --sbindir=/opt/bacula904/bin \
  --sysconfdir=/opt/bacula904/etc \
  --with-working-dir=/opt/bacula904/working \
  --with-pid-dir=/opt/bacula904/working \
  --with-subsys-dir=/opt/bacula904/working \
  --enable-smartalloc \
  --with-postgresql=/usr/pgsql-9.4 \
  --with-openssl \
  --enable-conio \
  --enable-acl \
  --enable-lzo \
  --enable-lockmgr \
  --with-tcp-wrappers \
  --with-dir-user=bacula \
  --with-dir-group=bacula \
  --with-sd-user=bacula \
  --with-sd-group=bacula \
  --with-fd-user=root \
  --with-fd-group=root \
  --with-systemd \
  --enable-bat \
  --with-x \
  --with-dump-email=nore...@example.com \
  --with-job-email=nore...@example.com \
  --with-smtp-host=smtp.example.com


Quoting Simone Caronni :


Hi,

On Mon, Sep 18, 2017 at 9:03 AM, Can Şirin 
wrote:


It is the same again. It is definitely related with enable-bat option.
Did you compiled it properly with bat?

Quoting Ralf Brinkmann :


For a new try I'd set the compile options to a minimum, e.g.:

--with-postgresql
--enable-conio
--enable-bat


  
 You might want to take a look at the SPEC files for the rawhide
rebuilds:
  
 https://copr.fedorainfracloud.org/coprs/slaanesh/Bacula/
  
 The packages are at version 9.0.4 and BAT is enabled. If you want
to use the packages directly, read the documents as explained.
  
 Regards,
 --Simone

 
--
 You cannot discover new oceans unless you have the courage to
lose sight of the shore (R. W. Emerson).

http://xkcd.com/229/
http://negativo17.org/



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] qt-console Compile Error

2017-09-18 Thread Ralf Brinkmann

Am 18.09.2017 um 09:03 schrieb Can Şirin:

It is the same again. It is definitely related with enable-bat
option. Did you compiled it properly with bat?


Yes, bat did compile properly without any additional option - only
--with-mysql --enable-conio --enable-bat.

We use bat via ssh and X11 forwarding.

--
Ralf Brinkmann

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users