[Bug 3159] VA_COPY() brokenness

2005-10-11 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=3159





--- Additional Comments From [EMAIL PROTECTED]  2005-10-11 12:47 ---
Rsync builds successfully with this modification. 

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 2957] rsync hangs when client put files to server (checked in 2.6.6 too)

2005-10-11 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2957





--- Additional Comments From [EMAIL PROTECTED]  2005-10-11 12:10 ---
Over here no cygwin is involved. Only rsync over an stunnel using xinetd.
Colleague said he even tried that without stunnel, but with no better success.

I did try the test-script as well - but neither with 500 nor 2500 generated
random-files I was able to reproduce the problem "cleanly" unfortunately :-(

I did attach a backtrace and the syscall in which it hangs already. Is more
detailed information needed? Since the problem (at least here) is not cleanly
reproduceable with demo-data unfortunately the _full_ strace-log might include
sensitive data, that I wouldn't appreciate to be online. So in case you could
narrow the problem (strace-output) a bit down or provide some kind of
test-scripts that would really help!

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 3159] VA_COPY() brokenness

2005-10-11 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=3159





--- Additional Comments From [EMAIL PROTECTED]  2005-10-11 11:57 ---
Created an attachment (id=1500)
 --> (https://bugzilla.samba.org/attachment.cgi?id=1500&action=view)
Use va_copy() macro if defined

I assume that this one-line change will fix the problem.  Would you test it and
let me know?

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 3159] New: VA_COPY() brokenness

2005-10-11 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=3159

   Summary: VA_COPY() brokenness
   Product: rsync
   Version: 2.6.6
  Platform: Other
OS/Version: Solaris
Status: NEW
  Severity: normal
  Priority: P3
 Component: core
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
 QAContact: [EMAIL PROTECTED]


Building rsync on a Solaris 10 / AMD64 system: 
 
(begin snip) 
cc -I. -I. -Xa -v -xtarget=opteron -xarch=amd64 -xbuiltin -xstrconst -xO4 
-xcrossfile -DHAVE_CONFIG_H  -c lib/compat.c -o lib/compat.o 
cc -I. -I. -Xa -v -xtarget=opteron -xarch=amd64 -xbuiltin -xstrconst -xO4 
-xcrossfile -DHAVE_CONFIG_H  -c lib/snprintf.c -o lib/snprintf.o 
"lib/snprintf.c", line 853: left operand must be modifiable lvalue: op "=" 
"lib/snprintf.c", line 861: left operand must be modifiable lvalue: op "=" 
cc: acomp failed for lib/snprintf.c 
*** Error code 2 
make: Fatal error: Command failed for target `lib/snprintf.o' 
(end snip) 
 
The system is using the fallback definition of VA_COPY(), i.e. "(dest) = 
(src)", instead of the va_copy() function. Neither HAVE_VA_COPY nor 
HAVE___VA_COPY is defined. Why not? Because they are defined as macros in the 
system headers, and rsync's configure script looks for them via AC_CHECK_FUNCS.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: permission problem

2005-10-11 Thread Wayne Davison
On Tue, Oct 11, 2005 at 10:56:03AM -0400, Paul Sala wrote:
> I though that if I do not specify the -o and -p options, then the perm
> and owner will be the same as the existing target file.

Not quite.  Copying without -p does maintain the current permissions of
an existing file.  However, copying without -o (and without --inplace)
causes a transferred file to take on the owner of the user running rsync
(the use of --inplace would retain the current owner, but limit the data
reduction possible over the network).

..wayne..
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 2957] rsync hangs when client put files to server (checked in 2.6.6 too)

2005-10-11 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2957





--- Additional Comments From [EMAIL PROTECTED]  2005-10-11 09:43 ---
(In reply to comment #11)
> So maybe, I am confronted with a pure
> Cygwin problem that is different from the original bug 2957 that has been
> reported on a Linux system.

Anytime a remote-shell is used in a Cygwin scenario, you are subject to Cygwin's
pipe-data bug where data can potentially be lost.  As soon as they fix this, the
hangs should stop.  Until then, you can use daemon mode directly (not daemon
mode over ssh).

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: files are copied but setting time stamp fails

2005-10-11 Thread Wayne Davison
On Fri, Oct 07, 2005 at 04:57:27PM +0300, Nick Demou (enLogic) wrote:
> rsync: failed to set times on "/media/MOB1/m/test/.1.QKjE7e": Operation 
> not permitted (1)

The "Operation not permitted" error is from your OS -- you'll need to
figure out why your OS does not allow a utime()/utimes() call to
succeed.

..wayne..
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 2957] rsync hangs when client put files to server (checked in 2.6.6 too)

2005-10-11 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2957


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




--- Additional Comments From [EMAIL PROTECTED]  2005-10-11 09:36 ---
(In reply to comment #1)
> Created an attachment (id=1357)
 --> (https://bugzilla.samba.org/attachment.cgi?id=1357&action=view) [edit]
> strace -f /usr/local/rsync-2.6.6/bin/rsync 

This strace shows that the sender is just waiting to send some data down the
socket, which means that the receiver hasn't cleared the socket to allow more
data to be written.  Thus, we need to see what the receiver is/was doing.  If
the receiving side is the server, you should run the daemon like this:

  strace -f rsync --daemon --no-detach

If you run that inside a "script" session, all the strace output will be logged.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 2957] rsync hangs when client put files to server (checked in 2.6.6 too)

2005-10-11 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2957





--- Additional Comments From [EMAIL PROTECTED]  2005-10-11 09:39 ---
(In reply to comment #3)
> Created an attachment (id=1464)
 --> (https://bugzilla.samba.org/attachment.cgi?id=1464&action=view) [edit]
> Backtrace and syscall of client+server

There are 3 rsync processes involved in a transfer:  two on the receiving side,
and one on the sending side.  We'd need to see strace info for all 3 to get the
full information for what's happening.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Rsync hangs after a while when tunneling from A->B->C

2005-10-11 Thread Wayne Davison
On Tue, Oct 11, 2005 at 12:55:52PM +0200, Stefaan Lhermitte wrote:
> When I now run my Rsync scripts in cygwin:

Cygwin has a bug in its pipe handling that will lose information and
cause rsync to stall -- until this is fixed, you must avoid using the
remote-shell-copy syntax (in which the programs communicate via pipes).
One solution would be to setup an rsync daemon on the destination system
and use ssh to forward a port into the local network of the firewall
system, switching the client command over to a daemon-using copy.

..wayne..
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


permission problem

2005-10-11 Thread Paul Sala


When I rsync a file named test as shown here:

   # rsync  -e 'ssh -l root'  /web/test   w3.xyzco.com:/web/test

the files is sent OK, but the perms and ownership of the existing target
file are not maintained. The target file takes on the perms and owner of
the source file.

I though that if I do not specify the -o and -p options, then the perm and
owner will be the same as the existing target file.

-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 2957] rsync hangs when client put files to server (checked in 2.6.6 too)

2005-10-11 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2957





--- Additional Comments From [EMAIL PROTECTED]  2005-10-11 07:19 ---
I tried the same script with our Linux server as rsync server (rsync 2.6.0). In
this constellation, everything is ok. So maybe, I am confronted with a pure
Cygwin problem that is different from the original bug 2957 that has been
reported on a Linux system. Do you have the possibility to reproduce it with
Cygwin or shall I report the problem in the cygwin list?
Anyway, the problem is not independent of timing. I wrote yesterday that the
script has to be invoked twice (assuming testdir and its contents don't exist),
thus the files have to be overwritten on the client. I just switched to rsync
server mode (::) and activated debugging messages with '-vv'. Now, it
gets stuck already in the first run.

> Any possibility too track it down further with the backtrace or so?

I'm not familiar with cygwin debugging. The cygwin 'ps' command shows an 'O'
which means that rsync gets stuck in an 'Output' operation. 

$ ps
  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
 379631963796   33641 1013 16:15:11 /usr/bin/bash
O158824361588   2944? 1013 16:16:48 /usr/bin/rsync
 340837963408   32001 1013 16:17:24 /usr/bin/ps

Invoking 'strace' then just shows

$ strace -p 1588
Attached to pid 1588 (windows pid 2944)
   11  11 [unknown (0x108)] rsync 1588 _cygtls::remove: wait 0x0

Don't know if this is useful. Please tell me what to do, if necessary.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 2957] rsync hangs when client put files to server (checked in 2.6.6 too)

2005-10-11 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2957


[EMAIL PROTECTED] changed:

   What|Removed |Added

Attachment #1495 is|0   |1
   obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2005-10-11 07:10 ---
Created an attachment (id=1499)
 --> (https://bugzilla.samba.org/attachment.cgi?id=1499&action=view)
Shellscript using rsync server


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 2957] rsync hangs when client put files to server (checked in 2.6.6 too)

2005-10-11 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2957





--- Additional Comments From [EMAIL PROTECTED]  2005-10-11 07:02 ---
Created an attachment (id=1497)
 --> (https://bugzilla.samba.org/attachment.cgi?id=1497&action=view)
rsync server configuration


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 2957] rsync hangs when client put files to server (checked in 2.6.6 too)

2005-10-11 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2957





--- Additional Comments From [EMAIL PROTECTED]  2005-10-11 07:03 ---
Created an attachment (id=1498)
 --> (https://bugzilla.samba.org/attachment.cgi?id=1498&action=view)
rsync server log


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Rsync hangs after a while when tunneling from A->B->C

2005-10-11 Thread Stefaan Lhermitte

Dear Rsyncians,

I'm trying to Rsync my windowsXP-pc A and C. There is a firewall in 
between A and C, but we have a port open on a linux-machine B to access 
C from A (and vica versa) via B.


When I now run my Rsync scripts in cygwin:



# 
___

#!/bin/bash
# Command to synchronize (only update) two computers based on RSYNC

FOLDER_SOURCE="/cygdrive/d/scripts"
FOLDER_TARGET="/cygdrive/g/stefaanlh/scripts"
PC_SOURCE="ip of pc-A"
PC_TARGET="ip of pc-C"

echo Synchronizing of SOURCE with TARGET
rsync -auvvvz --timeout=999 -e "ssh [EMAIL PROTECTED] ssh" 
$FOLDER_SOURCE/ $PC_TARGET:$FOLDER_TARGET

echo Synchronizing of TARGET with SOURCE
rsync -auvvvz --timeout=999 -e "ssh [EMAIL PROTECTED] ssh" 
$PC_TARGET:$FOLDER_TARGET/ $FOLDER_SOURCE

echo Done
# 
___



Rsync hangs unexplainable after a while (+-a minute). You can see the 
end of my log-file below my email.
It looks like a time-out because, when I restart the program after it 
hangs it continues where it stopped before and afterwards hangs again 
after a minute.


Is there anyone with advice on how to solve this?

Thanks in advance and kind regards,
Stef



Log-file:
set modtime of cpp/area_extract_sl_1x00/.area_extract.layout.d1AQ20 to 
(1074535293) Mon Jan 19 19:01:33 2004
renaming cpp/area_extract_sl_1x00/.area_extract.layout.d1AQ20 to 
cpp/area_extract_sl_1x00/area_extract.layout

false_alarms=0 tag_hits=0 matches=0
sender finished 
/cygdrive/g/stefaanlh/scripts/cpp/area_extract_sl_1x00/area_extract.layout
send_files(90, 
/cygdrive/g/stefaanlh/scripts/cpp/area_extract_sl_1x00/area_extract.o)
send_files mapped 
/cygdrive/g/stefaanlh/scripts/cpp/area_extract_sl_1x00/area_extract.o of 
size 6253

recv_files(cpp/area_extract_sl_1x00/area_extract.o)
cpp/area_extract_sl_1x00/area_extract.o
calling match_sums 
/cygdrive/g/stefaanlh/scripts/cpp/area_extract_sl_1x00/area_extract.o

sending file_sum
got file_sum
set modtime of cpp/area_extract_sl_1x00/.area_extract.o.RHXhoJ to 
(1070450786) Wed Dec  3 12:26:26 2003
renaming cpp/area_extract_sl_1x00/.area_extract.o.RHXhoJ to 
cpp/area_extract_sl_1x00/area_extract.o

false_alarms=0 tag_hits=0 matches=0
sender finished 
/cygdrive/g/stefaanlh/scripts/cpp/area_extract_sl_1x00/area_extract.o

send_files(91, /cygdrive/g/stefaanlh/scripts/cpp/edison_src.zip)
send_files mapped /cygdrive/g/stefaanlh/scripts/cpp/edison_src.zip of 
size 1120295

recv_files(cpp/edison_src.zip)
cpp/edison_src.zip
calling match_sums /cygdrive/g/stefaanlh/scripts/cpp/edison_src.zip


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Help with synchronizing two directories on remote servers

2005-10-11 Thread Bob Hutchinson
On Monday 10 Oct 2005 17:32, symbulos - ethical services (external mailing 
lists) wrote:
> I apologise for the incongruous posting.
>
> We have two webservers, a and b, both of them with rsync
> installed.
>
> We would like to rsync one directory on one server with
> another directory on another server.
>
> What I do is to go to one of the server (server a) as root
> using ssh, navigate to the directory, and write
>
> rsync -avz [EMAIL PROTECTED]:directory/ ./
>
> This is the error we get
>
> ssh: connect to host 80.81.131.173 port 22: Connection
> refused

# tcpcheck 10 80.81.131.173:22
80.81.131.173:22 failed:  timed out

you have no ssh running there.

> rsync: connection unexpectedly closed (0 bytes received so
> far) [receiver]
> rsync error: error in rsync protocol data stream (code 12)
> at io.c(359)
>
> Thanks in advance
>
> Corrado
>
> Corrado, Rina, John, Judith
> --
> symbulos - ethical services for your organisation
> website www.symbulos.com

-- 
-
Bob Hutchinson
Midwales dot com
-
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Help with synchronizing two directories on remote servers

2005-10-11 Thread Nick Demou (enLogic)

symbulos - ethical services (external mailing lists) wrote:

I apologise for the incongruous posting.

We have two webservers, a and b, both of them with rsync 
installed.


We would like to rsync one directory on one server with 
another directory on another server.


What I do is to go to one of the server (server a) as root 
using ssh, navigate to the directory, and write


rsync -avz [EMAIL PROTECTED]:directory/ ./

This is the error we get

ssh: connect to host 80.81.131.173 port 22: Connection 
refused


this is the important part and it means that port 22 does not accept 
connections at all.

Make sure that
a) sshd is running at 80.81.131.173
b) any firewall in between does not block connections from you
c) sshd is licening at port 22

rsync: connection unexpectedly closed (0 bytes received so 
far) [receiver]
rsync error: error in rsync protocol data stream (code 12) 
at io.c(359)


Thanks in advance

Corrado

Corrado, Rina, John, Judith


--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html