Fatal error: Pipe write error

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Fatal error: Pipe write error

Elias Pereira
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Fatal error: Pipe write error

Kern Sibbald

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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Fatal error: Pipe write error

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 <[hidden email]> 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:<a href="tel:(332)%20375-3675" value="+13323753675" target="_blank">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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Fatal error: Pipe write error

Josh Fisher
In reply to this post by Elias Pereira

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/<pid>/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 <[hidden email]> 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:<a href="tel:%28332%29%20375-3675" value="+13323753675" target="_blank" moz-do-not-send="true">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
[hidden email]
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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Fatal error: Pipe write error

Elias Pereira
In reply to this post by 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Loading...