Discussion:
[Bacula-users] Fatal error: Pipe write error
Elias Pereira
2017-07-13 19:49:21 UTC
Permalink
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
Kern Sibbald
2017-07-13 19:58:18 UTC
Permalink
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Elias Pereira
2017-07-15 11:51:17 UTC
Permalink
hello kern,

How can I test to see, for example, if the two ends are connected?
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
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
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
_______________________________________________
--
Elias Pereira
Josh Fisher
2017-07-15 12:45:56 UTC
Permalink
Post by Elias Pereira
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?
Post by Elias Pereira
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
Post by 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
<tel:%28332%29%20375-3675>.
2017-07-13 16:33:53 elias.pc-fd JobId 2710: Fatal error: Pipe
write error
restore.c:1320 Wrong write size error at byte=0 block=0
wanted=65536 wrote=0
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
<http://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
<http://192.168.7.63:9103>
2017-07-13 16:33:54 vamp-dir JobId 2710: Error: Bacula vamp-dir
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
https://lists.sourceforge.net/lists/listinfo/bacula-users
<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
https://lists.sourceforge.net/lists/listinfo/bacula-users
Elias Pereira
2017-07-15 17:28:23 UTC
Permalink
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.

Continue reading on narkive:
Loading...