Netbackup 6 problemDear,
We have a problem with 2 servers running Solaris 10 and Netbackup.
When we try to backup our client we always get errorstatus 24 after
backing up 7GB or 34GB or 67GB or random GB of data.(it's gives a
broken pipe after a while.)
Networksettings are equal and it's fixed 1000Mbps full duplex on the
switch and servers.
Can someone gives us tips or solutions?
Thx
Greetings,
Tijs
I'd suggest turning up your logging levels to the maximum level (5) on
the clients, and creating all the necessary directories under
/usr/openv/netbackup/logs/ especially bprd and bpbkar. This will tell
you what the last file that was attempted to be backed up was, which
could be helpful.
Also, check for bpbkar processes that may be hung and/or still running.
If there are, which I'm guessing there might be, do a truss -p on the
pid and see what they are doing.
My most recent run in with this problem was due to volmgt being
confused and the /vol directory being a bad state. An ls -l on root
would hang trying to stat that directory. Simply doing a umount -f /vol
and restarting volmgt corrected the issue.
HTH,
Nate
solarisgeek wrote:
> Dear,
>
> We have a problem with 2 servers running Solaris 10 and Netbackup.
> When we try to backup our client we always get errorstatus 24 after
> backing up 7GB or 34GB or 67GB or random GB of data.(it's gives a
> broken pipe after a while.)
> Networksettings are equal and it&...
broken pipe when reading and writing a pipehi
I am trying to do a simple task: I have a buffer, I want to write this
buffer as the stdin of a command, say "tac", and capture the output
from the stdout and save to another buffer.
after searching examples and playing a little bit, I wrote the a
function (see below). However, it gave me a "Broken pipe" error when I
ran the code.
Can someone point out to me what was wrong? your help is greatly
appreciated!
Qianqian
int pipemydata(void *inbuf, long inlen, void *outbuf, long *outlen){
int fd[2];
int childid;
*outlen=0;
if(pipe(fd)==-1...
"broken pipe" while reading/writing stream-based socketsCiao,
I'm still having problems while doing sockets read/write. I have a
server that often crashes with error "Broken Pipe". The server works
always with the same clients and many times it doesn't crash until
something happens that I don't understand.
This is the server code:
-- file tcp_server.adb
with GNAT.Sockets; use GNAT.Sockets;
with Ada.Text_IO; use Ada.Text_IO;
procedure TCP_Server is
Socket : Socket_Type;
Client : Socket_Type;
Sock_Addr : Sock_Addr_Type;
Cli_Addr : Sock_Addr_Type;
L : constant Positive := 5;
Channel : Stream_Access;
S : String( 1 .. 80 );
begin
Initialize;
Create_Socket( Socket );
Set_Socket_Option( Socket, Socket_Level, ( Reuse_Address, True ) );
Sock_Addr.Addr := Inet_Addr( "127.0.0.1" );
Sock_Addr.Port := 9876;
Bind_Socket( Socket, Sock_Addr );
Listen_Socket( Socket, L );
Put_Line( "Server in attesa di connessioni..." );
loop
Accept_Socket( Socket, Client, Cli_Addr );
Channel := Stream( Client );
String'Read( Channel, S );
String'Write ( Channel, ( "Ricevuto " & S ) );
Put_Line( "Client ha inviato codice """ & S & """" );
Free( Channel );
Close_Socket( Client );
if S( 1 .. 4 ) = "kill" then
Put_Line( "Sono stato ucciso" );
exit;
...
write(spawn_id=]: broken pipeI have written a small expect script to telnet a FreeBSD machine and
send some commands to that machine remotely, through Windows XP
machine
These commands are being sent periodically in a loop. After sending
few command , the scripts throws the following exception:
write(spawn_id=]: broken pipe
while executing
"send -s "ipfw pipe 1 config delay $mod_delay \r""
invoked from within
"expect -nobrace 1# {
for { set cycle 0 } { $cycle < $no_of_cycles } {incr
cycle } {
puts "###..."
invoked from within
"expect {
"1#" {
for { set cycle 0 } { $cycle < $no_of_cycles } {incr
cycle } {
Can anybody please let me know the cause for this.
Is this issue of the freeBSD machine or my PC. Can what can be the
workaround for this
Extract from my script:
..
..
expect {
"1#" {
for { set cycle 0 } { $cycle < $no_of_cycles } {incr
cycle } {
puts "##### CYCLE NUMBER -- $cycle #####"
while { $delay <= $max_delay } {
set mod_delay [join "$delay ms" ""]
puts stdout "\nDelay set to $mod_delay\n"
send -s "ipfw pipe 1 config delay $mod_delay
\r"
set delay [expr $delay + $incr_delay]
after $wait
...
Need help with a simple UNIX sockets server based on IO::Socket::UNIXHi. I've tried to create a simple client + server that communicate
through a unix socket.
As with all socket servers, it has a loop where it waits for
connections:
while ($client = $sock->accept()) {
# handle client here
}
The problem is that $sock->accept() is returning undef on each
alternate client connection with error "No child processes".
I made this temporary workaround that does work but of course I must be
screwing up somewhere else:
while ($client = $sock->accept() || $client = $sock->accept()) {
# handle client here
}
I hope someone can help or provide an example. I've included the client
+ server code below for those who are interrested in taking a peek.
Thanks,
Craig Manley
############ client ############
#!/usr/bin/perl -w
use strict;
use IO::Socket;
my $sockname = 'mysocket';
my $client = IO::Socket::UNIX->new('Peer' => $sockname,
'Type' => SOCK_STREAM,
'Timeout' => 50) or die "$0: error
connecting to '$sockname': $ [at] \n";
my $pid = fork();
unless(defined($pid)) {
die("Fork this! I cannot forking fork!\n");
}
if ($pid) {
write_sock();
waitpid($pid, 0);
}
else {
read_sock();
}
sub write_sock {
for (1..10) {
print $client "testline number $_\n"; # print to socket
}
print $client "\n"; # empty line causes server to terminate
connection
p...
putbody: write error: Broken pipe
I need some help to determine what is causing this error:
Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: SYSERR(root):
putbody: write error: Broken pipe
Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 0: fl=0x0, mode=
20666: CHR: dev=3/1, ino=60251, nlink=1, u/gid=0/0, size=0
Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 1: fl=0x1, mode=
20666: CHR: dev=3/1, ino=60251, nlink=1, u/gid=0/0, size=0
Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 2: fl=0x1, mode=
20666: CHR: dev=3/1, ino=60251, nlink=1, u/gid=0/0, size=0
Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 3: fl=0x2, mode=
140777: SOCK localhost->[[UNIX: /dev/log]]
Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 5: fl=0x0, mode=
100600: dev=3/6, ino=356945, nlink=1, u/gid=0/105, size=1724
Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 6: fl=0x8000, mode=
100644: dev=3/5, ino=94092, nlink=1, u/gid=1980/50, size=45056
Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 7: fl=0x8000, mode=
100640: dev=3/1, ino=24483, nlink=1, u/gid=0/105, size=12288
Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 8: fl=0x1, mode=
100600: dev=3/6, ino=2310157, nlink=1, u/gid=0/105, size=1178
Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 9: fl=0x1, mode=
10600: FIFO: dev=0/7, ino=230778035, nlink=1, u/gid=0/105, size=0
Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 10: fl=0x0, mode=
10600: FIFO: dev=0/7, ino=230778036, nlink=1, u/gid=0/105, size=0
Feb 13 20:02:03 mail...
[VxW] Socket Broken pipe ErrorHi All,
How to solve the Socket Send Error Broken pipe 32 (0x20) ... Send
also crashes after some time when i send large amount of data continuously
in vx-works 5.4 i am not using SELECT ...... Obviously I am doing
something wrong and would appreciate any help
THANKS
JITHESH
...
IOError: [Errno 32] Broken pipe #2I have a problem with the logging module.
It reports a Broken Pipe error after outputing to the log file
occasionally (5%). This does not appear to happen on Mac OSX using
current finked python (2.3.3) but does appear to occur on Python 2.3.4
running on a very old Redhat Linux xxxxx 2.2.14-5.0 #1 Tue Mar 7
21:07:39 EST 2000 i686. The actual logged error follows my signature.
Note that "files used:-" has been sent to the file.
From a previous suggestion I had the following lines in my logger setup.
import logging
import signal
import types
logger = logging.getLogger('path...
Programmers, Programmers, Programmers, ...As Steve Balmer correctly stated, while making his monkey dance, it is
applications and hence programmers that make a platform. The fact though is
that if you want to do professional programming, then Linux is the platform
for you. I know that this statement will get the heckels up on a lot of
trolls in C.O.L.A, but I have a recent experience that proves this.
I am currently working for a Windows only house producing a system that
receives and transmits around 1000 telegrams per second in each direction
on a UDP socket, translates them into a different format and creates a log
entry for each ...
Error 32Error:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/monitor.py", line 575, in run
already_pickled=True)
File "/usr/lib/python2.7/dist-packages/spyderlib/utils/bsdsocket.py", line 24, in write_packet
sock.send(struct.pack("l", len(sent_data)) + sent_data)
error: [Errno 32] Broken pipe
Code :
#code
s=1
f=0
c=0
for i in range (1,100):
c=0
for j in (1,i):
s+=j
c=0
for k in range(1,(s/2+1)):
#print s
t=s%k
if t==0:
c+=1
if c>=5:
f=1
print s
break
print s
#code ends.
The program is runnning. It has been more than 10 minutes ( currently). Should I raise my hopes for an answer ?
2012.09.04. 19:08 keltez�ssel, Sreenath k �rta:
> Error:
>
>
> Exception in thread Thread-1:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
> self.run()
> File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/monitor.py", line 575, in run
> already_pickled=True)
> File "/u...
write unsigned integer 32 bits to sockethi
i want to send unsigned 32 bit integer to socket, and looking for
something equivalent to this method...
http://livedocs.adobe.com/flex/2/langref/flash/net/Socket.html#writeUnsignedInt()
is there such method / library available in python?!
this is as far as i have gotten along
>>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> s.connect(('127.0.0.1',3000))
rkmr.em@gmail.com wrote:
> hi
> i want to send unsigned 32 bit integer to socket, and looking for
> something equivalent to this method...
>
> http://livedocs.adobe.com/flex/2/lang...
Threads reading from sockets & writing into a pipeHi to all!
As from subject, I have inside a process some threads
that communicate, each of them, with distinct socket streams.
Also, after reading data from socket each thread must write
that data into a pipe (created by the process).
Now, I got that running the code each thread reads (from the socket)
and writes (into the pipe) exactly 1 byte (!) of data, concurrently;
sometimes more than 1 byte (4 at all).
Is there any problem calling a function in a thread that uses a read()
function
on a socket descriptor?
If no, does anybody know the reasons ?
Please, help me!
Thanks a lot,
S c o u t.
"scout" <user@domain.it> wrote in message
news:UtLvb.138709$e6.4980008@twister2.libero.it...
> Hi to all!
> As from subject, I have inside a process some threads
> that communicate, each of them, with distinct socket streams.
By "distinct", do you mean that each thread has its own stream?
> Also, after reading data from socket each thread must write
> that data into a pipe (created by the process).
> Now, I got that running the code each thread reads (from the socket)
> and writes (into the pipe) exactly 1 byte (!) of data, concurrently;
> sometimes more than 1 byte (4 at all).
Okay. Is the socket TCP, UDP or what? Are you talking about reading or
writing more than 1 byte? If you only want to read or write one byte, just
only ask for one byte.
> Is there any problem calling a fun...
timeout writing message to hostname: Broken pipeI can't find more than one other person with the same error on Sendmail
8.13.6, and he doesn't come with a resolution or a closer definition of
the problem, so I guess I have to try and ask myself.
I have upgraded some Solaris 9 DMZ hosts from Sendmail 8.13.1 to
8.13.6. Since then, every once in a while a message arrives which
Sendmail can't deliver to the internal gateway hosts, with the Broken
pipe error as the result. Since I have a FallbackMX host defined on the
hosts in question, the mail at once gets sent to the Fallback, which in
turn sends it back to one of the original hosts, which in turn try to
send it onwards in and so on and so on.
Every once in a while, it seems like the receiving internal gateway
host actually receives the complete email and send it onwards, but the
DMZ host doesn't get this so it keeps on with it's looping and trying.
The result is not only a mail which cannot be delivered, but a mail
that get's duplicated. The internal gateway hosts originally ran
8.13.1, when I came upon this problem I upgraded them as well to 8.13.6
(they also run Solaris), but the problem persists.
So the 8.13.6 on Solaris DMZ hosts can't send to 8.13.1 or 8.13.6 on
Solaris internal gw, but it can send the same message to 8.13.1 on
RedHat Linux.
As I mentioned, this occurs for specific messages, if I pull the
message (qf and df file) off the queue, I can put it back later and get
the same problem. For every problem message, we deal with a co...
PuTTY and unix domain sockets / windows named pipeIt is nice to see if PuTTY can work with unix domain sockets / windows
named pipe.
Regards,
Roy
roytam@gmail.com writes:
>It is nice to see if PuTTY can work with unix domain sockets / windows
>named pipe.
PuTTY doesn't directly support this.
However, it does support a "local proxy" where input/output come from a
process' standard input / output.
<http://www.tartarus.org/~simon/puttydoc/Chapter4.html#config-proxy>
If you can find a command which will connect that to a Unix domain
socket / named pipe, you should be fine.
0.58 supports this...
socket broken pipe error on sending huge data.Dear All,
I have developed a simple client server application, the server needs
to send around 1.5 MB of data to the client for each transaction
continously. But the server is only able to send only 81660 bytes of
data and throws
"ERROR writing to socket: Broken pipe"
1) Cannot we send huge data through sockets and that too continously ?
2) What can be possible reason for this issue?
3) How to resolve the same?
4) Any code snippet will be of great use.
I am a NO expert in this area, so all comments are most welcome.
/////// SERVER CODE SNIPPET///
int serverConnection()
{
int sockfd, newsockfd, portno, clilen;
char buffer[256];
struct sockaddr_in serv_addr, cli_addr;
int n;
sockfd = socket(AF_INET, SOCK_STREAM, 0);
if (sockfd < 0)
error("ERROR opening socket");
bzero((char *) &serv_addr, sizeof(serv_addr));
portno = 5902;
serv_addr.sin_family = AF_INET;
serv_addr.sin_addr.s_addr = INADDR_ANY;
serv_addr.sin_port = htons(portno);
if (bind(sockfd, (struct sockaddr *) &serv_addr,
sizeof(serv_addr)) < 0)
error("ERROR on binding");
listen(sockfd,5);
clilen = sizeof(cli_addr);
newsockfd = accept(sockfd,
(struct sockaddr *) &cli_addr,
&clilen);
if (newsockfd < 0)
error("ERROR on accept");
bzero(buffer,256);
n = read(newsockfd,buffer,255);
if (n < 0) error("ERROR re...
mercury 32 server windows 2003 socket write errorHello,
I'm getting a socket write error when using Mercury/32 Mail server on a
win2k3 server. When outside smtp mail attempts to be delivered I get a
Socket write error 10054 and the connection is terminated and no mail is
delivered.
I apologize in advance if this topic has already been covered.
Thank you,
Bryce Freeman
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003
[POSTED TO comp.mail.pegasus-mail.ms-windows - REPLY ON USENET PLEASE]
...
Scattered-write with sendto() un a SOCK_DGRAM Unix Domain SocketHi to everyone, I'd like to do a scattered write, like with writev()
on a Unix Domain Socket. The problem is, since the socket is of
SOCK_DGRAM type, and thus unconnected, writev will fail saying
"Transport endpoint is not connected".
I checked in the man pages and yes, write() and writev() will not work
on datagram-type sockets.
The question is: is there a way to perform a scattered write on a
datagram Unix Socket? I don't know why it shouldn't be, but I wouldn't
be surprised if Linux API were lacking also of this possibility.
I use kernel 2.6.10.
Thanks,
Regards,...
openssh session hangingit occurs once or twice per day , any suggestion if this is openssh
random number incompatibility issue ?
Thank you for help in advance !!!
server:Sun Enterprise E4500/E5500System
SunOS 5.7 Generic_106541-32 sun4u sparc SUNW,Ultra-Enterprise
sshd version OpenSSH_3.7.1p2
part of the /var/adm/messages
Nov 9 09:51:19 ashipts prngd[671]: write() in socket_write() failed:
Broken pipe
Nov 9 09:51:19 ashiptslast message repeated 30 times
Nov 9 09:51:19 ashipts prngd[671]: closing service fd 15 for error.
Hi!
Stan Walczak <stanislaw.walczak@sympatico.ca> wrote:
> it occurs once or twice per day , any suggestion if this is
> openssh random number incompatibility issue ?
What version of prngd is that? prngd-0.9.26 had a bug that could
lead to such problems.
Ciao
Thomas
--
Thomas Binder (Gryf @ IRCNet)
gryf+usenet@hrzpub.tu-darmstadt.de
PGP-key available on request!
...
milter error write(L) returned -1, expected 50: Broken pipeHi,
I found the following error many times but only from the same sending
server in my sendmail log (never seen before, 2000K mails since setup):
---------------------------
Aug 19 12:22:17 server milter-greylist: p7JAME8U015316: addr 83.19.xx.xx
from <sender@domain.de> rcpt <recip@mydomain.de>: autowhitelisted for
another 768:00:00
Aug 19 14:51:45 server sm-mta[15316]: p7JAME8U015316:
from=<sender@domain.de>, size=125990, class=0, nrcpts=1,
msgid=<@OF45480D59.66ADE979-ONC12578F1.00339A09-
C12578F8.00294A3Adomain.de>,
proto=ESMTP, daemon=MTA-v4, relay=domino.domain.de [88.79.xx.xx]
Aug 19 14:51:45 server sm-mta[15316]: p7JAME8U015316: Milter (greylist):
write(L) returned -1, expected 50: Broken pipe
Aug 19 14:51:45 server sm-mta[15316]: p7JAME8U015316: Milter (greylist):
to error state
Aug 19 14:51:45 server sm-mta[15316]: p7JAME8U015316: Milter
(mimedefang):
write(L) returned -1, expected 50: Broken pipe
Aug 19 14:51:45 server sm-mta[15316]: p7JAME8U015316: Milter
(mimedefang):
to error state
Aug 19 14:51:45 server sm-mta[15316]: p7JAME8U015316: Milter: data,
reject=451 4.3.2 Please try again later
Aug 19 14:51:45 server sm-mta[15316]: p7JAME8U015316:
to=<recip@mydomain.de>, delay=02:29:28, pri=155990, stat=Please try
again later
---------------------------
my /etc/mail/sendmail.mc
---------------------------
INPUT_MAIL_FILTER(`greylist',`S=local:/var/run/milter-greylist/milter-
greylist.sock, F=, T=S:1m;R:1m')dnl
INPUT_MAIL_FILTER(...
Socket problem: read & write to same socketI want to establish connection to a server(written by myself in Go language=
), read from socket, and then write into socket.
The connection can be established, and it reads correctly. But after that a=
nd when I want to write to socket, it closes the connection. I used wiresha=
rk to listen to the packets. I saw my program sent a FIN to the server side=
.. So the server receives nothing.=20
Note that the server side only sends one line into socket.
I later wrote a server in Java and a client in Go. They work fine in both r=
ead and write.
Thanks in advance!
import java.io.BufferedReade...
Socket broken due to socket resource leak???It is really a triky problem. My OS is windows 98, ruby version is ruby
1.8.2 (2004-12-25) [i386-mswin32].
Following code is used to illustrate the problem I encountered. Before
you execute it, please ensure to be offline, so it can be run very fast
.. Please notice the line in tcpclient.rb "145.times do", it is the
key issue.
Let me explain it.
Tcpserver.rb is a local tcp server simply sends a hello message
whenever a client is connected. Tcpclient.rb first makes a connect to
the local tcp server( this connection will be read later), then tries
many times to connect to a bad ip addresses which indeed can never be
connected. So every try will raise a exception " Unknown Error -
connect(2)". This exception is simply ignored and the client
continues trying.
The wiered thing is , after certain number of tries, the established
connection between the tcp client and the local tcp server is broken.
So the line "goodConn.gets" also raises a exception . Even more,
what exception "goodConn.gets" raised is realted to the number of
tries to connect to the bad ip.
a. if times is less than 140 , it acts normally, nothing wrong, a hello
message is received from the local tcp server. I got this:
Exception raised: Unknown Error - connect(2)
Hello from local tcp server
b. If 140< times <145, I got this :
Exception raised: Unknown Error - connect(2)
tcpclient.rb:19:in `gets': Bad file descriptor (Errno::EBADF)
from tcpclient.rb:...
Unix domain socket (AF_UNIX) support for Java socketsHi all,
Java doesn't support AF_UNIX (Unix domain sockets) in their socket
implementation as far as I can tell. Sun has an RFE (4145756) logged against
Java that notes: "The existing java socket model is far too specific to IP
and there is no straight forward way to use a UNIX domain socket (or a
Windows named pipe) in the existing system. As far as I can tell we need a
greater degree of abstraction for the concept of a socket address so that a
socket can be created for IP or another domain either explicitly or simply
by the type of the address, e.g. [ ... ] A socket implementation factory
could be choosen based on the type of address." Does anyone know of / have
code that supports AF_UNIX for Java sockets?
Chris
...
Broken PipeHello, I am getting "Broken Pipe" messages displayed every few seconds
when I'm logged into Citrix. Oddly enough, after I disconnect and
reconnect my home drive (sometimes takes a few tries), it disappears.
What could be causing this issue? Thanks in advance.
Any ideas? This has been eating at me for weeks now :-(
...
Write-Only SocketHello together,
I am trying to write a little tcp-server which creates a write only
socket an test it with a little client.
The code I have tried so far is below and it workes as expected in the
form I posted it.
The question is:
Why do I have to shutdown(0) $session _and_ $socket on the server?
I had expected that the client would not be able to write to his $socket
if only $session on the server was shutdown(0)
--- server code ---
#!/usr/bin/perl
use warnings;
use strict;
use IO::Socket;
my $socket = IO::Socket::INET->new(
Listen => 1,
LocalPort => 1025,
Pro...