Re: [Bacula-users] Fatal error: Pipe write error

2017-07-15 Thread Elias Pereira
>
> Hello,

I solved the problem. There was no restore path I had set up in the bpipe
script. I use the webacula and in it I set up to replace the final path,
but it did not work.
--
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] About bdirjson, bsdjson, bfdjson

2017-07-15 Thread Kern Sibbald

  
  
Hello Wanderlei,
Yes it was a missing "break".
The fix is in the git repo.

Best regards,
Kern



On 07/14/2017 02:14 PM, Wanderlei
  Huttel wrote:


  

  Hello
  

  I was testing the new
  bacula tools (bdirjson) and it looks have something wrong:
  The program is
  repeating the Level in schedules
  

  

  
  Schedule {
    Name = "Agenda_GFS_Noite"
    Run = Level=Differential   Pool=Diaria
 Accurate=yes on Monday-Thursday at 21:30
    Run = Level=Full           Pool=Semanal   on
2nd-6th Friday  at 19:30
  
    Run = Level=Full           Pool=Mensal    on 1st
Friday      at 19:30
  }
  
  

  

  bdirjson -n
  Agenda_GFS_Noite

  [
  {
    "Schedule": {
      "Name":
  "Agenda_GFS_Noite",
      "Run": [
       {
        "Pool": "Diaria",
        "Level":
  "Differential",
        "Level":
  "Differential",
        "Level":
  "Differential",
        "Accurate": true,
        "Minute": 30,
        "Hour": [21],
        "Day": [0, 1, 2,
  3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
  19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
        "Month": [0, 1,
  2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
        "DayOfWeek": [1,
  2, 3, 4],
        "WeekOfMonth":
  [0, 1, 2, 3, 4, 5],
        "WeekOfYear": [0,
  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
  18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
  32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
  46, 47, 48, 49, 50, 51, 52, 53]
       },
       {
        "Pool":
  "Semanal",
        "Level": "Full",
        "Level": "Full",
        "Level": "Full",
        "Minute": 30,
        "Hour": [19],
        "Day": [0, 1, 2,
  3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
  19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
        "Month": [0, 1,
  2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
        "DayOfWeek": [5],
        "WeekOfMonth":
  [1, 2, 3, 4, 5],
        "WeekOfYear": [0,
  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
  18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
  32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
  46, 47, 48, 49, 50, 51, 52, 53]
       },
       {
        "Pool": "Mensal",
        "Level": "Full",
        "Level": "Full",
        "Level": "Full",
        "Minute": 30,
        "Hour": [19],
        "Day": [0, 1, 2,
  3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
  19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
        "Month": [0, 1,
  2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
        "DayOfWeek": [5],
        "WeekOfMonth":
  [0],
        "WeekOfYear": [0,
  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
  18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
  32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
  46, 47, 48, 49, 50, 51, 52, 53]
       }
      ]
    }
  }


  

  

  

  

  
In Message resources it
look is including some level not included by default.

  


# Configuração das mensagens de Jobs
Messages {
  Name = Standard


  MailCommand = "/usr/sbin/bsmtp -h localhost -f
  \"Bacula \" -s
  \"Bacula: %t %e of %c %l\" %r"
  Mail = wander...@domain.com.br =
  all, !skipped


  MailCommand = "/usr/sbin/bsmtp -h localhost -f
  \"Bacula \" -s
  \"Bacula: %t %e of %c %l\" %r"
  MailOnError = em...@gmail.com = all,
  !skipped


  OperatorCommand = "/usr/sbin/bsmtp -h localhost -f
  

Re: [Bacula-users] Release 9.0. 0 - Suse - ACL Error

2017-07-15 Thread Kern Sibbald

  
  
That is *really* odd.  Thanks for reporting it.  I am going to
  research that a bit more.
Best regards,
Kern


On 07/15/2017 08:54 AM, Mick wrote:


  
  Hi,
  libmysqld-devel was the one that did it (I already had the
others).
  Installed the package and now compile - make - make install all
OK.
  
  
  Thank you very much for your help.
  
  
  
  
  On 14/07/17 07:47, Ralf Brinkmann
wrote:
  
  Am
12.07.2017 um 21:53 schrieb Mick: 
Error Message 
  #error "configure failed to detect availability of sys/acl.h"
  
  OS: openSUSE Leap 42.1 (x86_64) 


Just made a little test with "openSUSE 42.2 (x86_64)" that I
have in a 
VirtualBox for "wine" test issues. 

For this test I disabled "bat" in my standard configuration. 

BASE=$(readlink -f ".") 
  cd $BASE/bacula-9.0.0 
  ./configure --with-mysql --enable-conio # --enable-bat 
  make clean 
  make 


On the first runnings I got the same error. 

With yast2 I had to add a compiler at first - "gcc5" - then the

"libmysqld-devel" pack and the "libacl-devel" pack 
... and  succeeded finaly. 

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



  


--
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] Bacula Release 9.0.1

2017-07-15 Thread Kern Sibbald

Great, thanks for the feedback.

Kern

On 07/15/2017 06:09 AM, Randy Katz wrote:
Ok, it compiled, installed and is running under CentOS 6.9, had to 
install libacl-devel.


On 7/14/2017 1:58 PM, Kern Sibbald wrote:

Hello,

We are pleased to announce that we have just released Bacula version 
9.0.1


This version is a minor bug fix release that mainly adds the omitted 
files for the tray-monitor.  It also fixes the lzo4 compilation for 
32 bit big endian architectures.


Thanks for using Bacula.

=== Release Notes 
   Release Notes for Bacula 9.0.1

This is a minor bug fix release that mainly to include the new
tray-monitor files that were omitted. The tray-monitor now builds
and runs at least on Ubuntu Linux.

12Jul17
 - Remove two incorrect trailing commas in bsock.h
 - Fix bug #2293 bad big endian detection in lz4.c
 - Add new tray-monitor files that were omitted in the backport from 
Enterprise

 - bvfs: Do not insert deleted directories in PathVisibility table
 - Fix compilation for Debian Stretch with GCC 6.3

Bugs fixed/closed since last release:
2293


-- 


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



-- 


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



--
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] Fatal error: Pipe write error

2017-07-15 Thread Josh Fisher


On 7/15/2017 7:51 AM, Elias Pereira wrote:

hello kern,

How can I test to see, for example, if the two ends are connected?


Using the PID of the process that has the other end of the pipe open, use:

ls -l /proc//fd

You are likely seeing a permissions problem. Is the pipe writable by the 
user:group that bacula-sd is running as? Does the seLinux context allow 
the bacula-sd user to write to the pipe?




On Thu, Jul 13, 2017 at 4:58 PM, Kern Sibbald > wrote:


Hello,

It appears to me that there is nothing on the other end of the
pipe -- i.e. the two ends are not connected.

Best regards,

Kern



On 07/13/2017 09:49 PM, Elias Pereira wrote:

hello,

I'm trying to perform a restore from a backup made through the
bpipe plugin, but errors below always occur.

2017-07-13 16:33:49   vamp-dir JobId 2710: Start Restore Job
RestoreFilesGenerico.2017-07-13_16.33.47_17
2017-07-13 16:33:49   vamp-dir JobId 2710: Using Device
"freenasDev" to read.
2017-07-13 16:33:49   vamp-sd JobId 2710: Ready to read from
volume "Sparta-fd.Semanal-NAS-7" on file device "freenasDev"
(/mnt/nas_storage).
2017-07-13 16:33:49   vamp-sd JobId 2710: Forward spacing Volume
"Sparta-fd.Semanal-NAS-7" to file:block 6:3323753675
.
2017-07-13 16:33:53   elias.pc-fd JobId 2710: Fatal error: Pipe
write error
2017-07-13 16:33:53   elias.pc-fd JobId 2710: Error:
restore.c:1320 Wrong write size error at byte=0 block=0
wanted=65536 wrote=0
2017-07-13 16:33:53   elias.pc-fd JobId 2710: Error: bpipe-fd:
Error closing for file /var/teste.xva: 268435457
2017-07-13 16:33:54   vamp-sd JobId 2710: Error: bsock.c:448
Write error sending 37 bytes to client:192.168.7.63:9103
: ERR=Connection reset by peer

2017-07-13 16:33:54   vamp-sd JobId 2710: Fatal error: read.c:138
Error sending header to Client. ERR=Connection reset by peer

2017-07-13 16:33:54   vamp-sd JobId 2710: Elapsed time=00:00:05,
Transfer rate=91.80 K Bytes/second
2017-07-13 16:33:54   vamp-sd JobId 2710: Error: bsock.c:375
Socket has errors=1 on call to client:192.168.7.63:9103

2017-07-13 16:33:54   vamp-dir JobId 2710: Error: Bacula vamp-dir
7.4.1 (02May16):
  Build OS: x86_64-unknown-linux-gnu debian 8.4
  JobId:  2710
  Job:  RestoreFilesGenerico.2017-07-13_16.33.47_17
  Restore Client: elias.pc-fd
  Start time: 13-Jul-2017 16:33:49
  End time:   13-Jul-2017 16:33:54
  Files Expected: 1
  Files Restored: 1
  Bytes Restored: 0
  Rate:   0.0 KB/s
  FD Errors:  3
  FD termination status:  Error
  SD termination status:  Error
  Termination:*** Restore Error ***
2017-07-13 16:33:54   vamp-dir JobId 2710: Begin pruning Jobs
older than 2 years .
2017-07-13 16:33:54   vamp-dir JobId 2710: No Jobs found to prune.
2017-07-13 16:33:54   vamp-dir JobId 2710: Begin pruning Files.
2017-07-13 16:33:54   vamp-dir JobId 2710: No Files found to prune.
2017-07-13 16:33:54   vamp-dir JobId 2710: End auto prune.

Any idea?

-- 
Elias Pereira




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






--
Elias Pereira


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


--
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] Fatal error: Pipe write error

2017-07-15 Thread Elias Pereira
hello kern,

How can I test to see, for example, if the two ends are connected?

On Thu, Jul 13, 2017 at 4:58 PM, Kern Sibbald  wrote:

> Hello,
>
> It appears to me that there is nothing on the other end of the pipe --
> i.e. the two ends are not connected.
>
> Best regards,
>
> Kern
>
>
>
> On 07/13/2017 09:49 PM, Elias Pereira wrote:
>
> hello,
>
> I'm trying to perform a restore from a backup made through the bpipe
> plugin, but errors below always occur.
>
> 2017-07-13 16:33:49   vamp-dir JobId 2710: Start Restore Job
> RestoreFilesGenerico.2017-07-13_16.33.47_17
> 2017-07-13 16:33:49   vamp-dir JobId 2710: Using Device "freenasDev" to
> read.
> 2017-07-13 16:33:49   vamp-sd JobId 2710: Ready to read from volume
> "Sparta-fd.Semanal-NAS-7" on file device "freenasDev" (/mnt/nas_storage).
> 2017-07-13 16:33:49   vamp-sd JobId 2710: Forward spacing Volume
> "Sparta-fd.Semanal-NAS-7" to file:block 6:3323753675 <(332)%20375-3675>.
> 2017-07-13 16:33:53   elias.pc-fd JobId 2710: Fatal error: Pipe write error
> 2017-07-13 16:33:53   elias.pc-fd JobId 2710: Error: restore.c:1320 Wrong
> write size error at byte=0 block=0 wanted=65536 wrote=0
> 2017-07-13 16:33:53   elias.pc-fd JobId 2710: Error: bpipe-fd: Error
> closing for file /var/teste.xva: 268435457
> 2017-07-13 16:33:54   vamp-sd JobId 2710: Error: bsock.c:448 Write error
> sending 37 bytes to client:192.168.7.63:9103: ERR=Connection reset by
> peer
>
> 2017-07-13 16:33:54   vamp-sd JobId 2710: Fatal error: read.c:138 Error
> sending header to Client. ERR=Connection reset by peer
>
> 2017-07-13 16:33:54   vamp-sd JobId 2710: Elapsed time=00:00:05, Transfer
> rate=91.80 K Bytes/second
> 2017-07-13 16:33:54   vamp-sd JobId 2710: Error: bsock.c:375 Socket has
> errors=1 on call to client:192.168.7.63:9103
> 2017-07-13 16:33:54   vamp-dir JobId 2710: Error: Bacula vamp-dir 7.4.1
> (02May16):
>   Build OS:   x86_64-unknown-linux-gnu debian 8.4
>   JobId:  2710
>   Job:RestoreFilesGenerico.2017-07-13_16.33.47_17
>   Restore Client: elias.pc-fd
>   Start time: 13-Jul-2017 16:33:49
>   End time:   13-Jul-2017 16:33:54
>   Files Expected: 1
>   Files Restored: 1
>   Bytes Restored: 0
>   Rate:   0.0 KB/s
>   FD Errors:  3
>   FD termination status:  Error
>   SD termination status:  Error
>   Termination:*** Restore Error ***
> 2017-07-13 16:33:54   vamp-dir JobId 2710: Begin pruning Jobs older than 2
> years .
> 2017-07-13 16:33:54   vamp-dir JobId 2710: No Jobs found to prune.
> 2017-07-13 16:33:54   vamp-dir JobId 2710: Begin pruning Files.
> 2017-07-13 16:33:54   vamp-dir JobId 2710: No Files found to prune.
> 2017-07-13 16:33:54   vamp-dir JobId 2710: End auto prune.
>
> Any idea?
>
> --
> Elias Pereira
>
>
> --
> 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 
> listBacula-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
>


-- 
Elias Pereira
--
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] Release 9.0. 0 - Suse - ACL Error

2017-07-15 Thread Mick

Hi,

libmysqld-devel was the one that did it (I already had the others).

Installed the package and now compile - make - make install all OK.


Thank you very much for your help.



On 14/07/17 07:47, Ralf Brinkmann wrote:

Am 12.07.2017 um 21:53 schrieb Mick:

Error Message
#error "configure failed to detect availability of sys/acl.h"
OS: openSUSE Leap 42.1 (x86_64)


Just made a little test with "openSUSE 42.2 (x86_64)" that I have in a
VirtualBox for "wine" test issues.

For this test I disabled "bat" in my standard configuration.


BASE=$(readlink -f ".")
cd $BASE/bacula-9.0.0
./configure --with-mysql --enable-conio # --enable-bat
make clean
make


On the first runnings I got the same error.

With yast2 I had to add a compiler at first - "gcc5" - then the
"libmysqld-devel" pack and the "libacl-devel" pack
... and  succeeded finaly.



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