Google Groups không còn hỗ trợ đăng ký sử dụng hoặc đăng nội dung mới trên Usenet. Bạn vẫn có thể xem nội dung cũ.

Bug#515769: rsync breaks upgrade from etch to lenny

5 lượt xem
Chuyển tới thư đầu tiên chưa đọc

Joao Eriberto Mota Filho

chưa đọc,
10:20:14 17 thg 2, 200917/2/09
đến
Package: rsync
Version: 3.0.3-2
Severity: important

When upgrading from Etch to Lenny, the rsync package returns this error:

Setting up rsync (3.0.3-2) ...
Restarting rsync daemon: rsyncrsync daemon not running, attempting to start. (warning).
missing or empty config file /etc/rsyncd.conf failed!
failed!
invoke-rc.d: initscript rsync, action "restart" failed.
dpkg: error processing rsync (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
rsync
E: Sub-process /usr/bin/dpkg returned an error code (1)


I suggest this modification in postinst script:

--- rsync.postinst.bak 2008-07-25 07:07:03.000000000 -0300
+++ rsync.postinst 2009-02-17 12:04:13.000000000 -0300
@@ -9,7 +9,7 @@
fi


-if [ -x /etc/init.d/rsync ]; then
+if [ -x /etc/init.d/rsync -a -f /etc/rsyncd.conf ]; then
update-rc.d rsync defaults >/dev/null
if [ -x /usr/sbin/invoke-rc.d ]; then
invoke-rc.d rsync restart

Regards,

Eriberto - Brazil

-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-6-686 (SMP w/1 CPU core)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages rsync depends on:
ii base-files 5 Debian base system miscellaneous f
ii libacl1 2.2.47-2 Access control list shared library
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libpopt0 1.14-4 lib for parsing cmdline parameters
ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip

rsync recommends no packages.

Versions of packages rsync suggests:
ii openssh-client 1:5.1p1-5 secure shell client, an rlogin/rsh
ii openssh-server 1:5.1p1-5 secure shell server, an rshd repla

-- no debconf information

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Paul Slootman

chưa đọc,
10:30:12 17 thg 2, 200917/2/09
đến
On Tue 17 Feb 2009, Joao Eriberto Mota Filho wrote:

> When upgrading from Etch to Lenny, the rsync package returns this error:
>
> Setting up rsync (3.0.3-2) ...
> Restarting rsync daemon: rsyncrsync daemon not running, attempting to start. (warning).
> missing or empty config file /etc/rsyncd.conf failed!
> failed!

This will only happen if "RSYNC_ENABLE=true" is in the
/etc/default/rsync file. That is not how the defaults file is
distributed, so I suspect that you may have edited that file at some
point. If you enable rsync as a daemon, then you must also create the
config file /etc/rsyncd.conf.


Paul Slootman

Eriberto

chưa đọc,
11:00:14 17 thg 2, 200917/2/09
đến
Hi!

I understand it. But I think the upgrade can be made more
transparently for users. My rsync daemon used to work fine in Etch
without a config file. But I don't know if my solution was good. What
you think about this?

Thanks for your quick reply.

Regards,

Eriberto - Brazil

2009/2/17 Paul Slootman <pa...@wurtel.net>:


> This will only happen if "RSYNC_ENABLE=true" is in the
> /etc/default/rsync file. That is not how the defaults file is
> distributed, so I suspect that you may have edited that file at some
> point. If you enable rsync as a daemon, then you must also create the
> config file /etc/rsyncd.conf.

--

0 tin nhắn mới