Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th November 2009, 21:18
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Default rsync can't start on Debian Lenny

I've a problem during installing the rsync Debian package.
Here i show what happens:

apt-get install rsync
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
rsync
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/343kB of archives.
After this operation, 627kB of additional disk space will be used.
Selecting previously deselected package rsync.
(Reading database ... 45420 files and directories currently installed.)
Unpacking rsync (from .../rsync_3.0.3-2_amd64.deb) ...
Processing triggers for man-db ...
Setting up rsync (3.0.3-2) ...
rsync daemon not enabled in /etc/default/rsync, not starting... (warning).

What could be the reason and how can this problem be solved?
__________________
Hans

MrHostman | Master in managed hosting
Reply With Quote
Sponsored Links
  #2  
Old 26th November 2009, 17:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's in /etc/default/rsync?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 26th November 2009, 18:06
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Default

Hi Falko,
Thanks for your reply.
Within the atachment, you find the content of the configuration file.

When i change the line:

RSYNC_ENABLE=false
into
RSYNC_ENABLE=true

and install rsync again, then i got:

apt-get install rsync
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
rsync
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/343kB of archives.
After this operation, 627kB of additional disk space will be used.
Selecting previously deselected package rsync.
(Reading database ... 45422 files and directories currently installed.)
Unpacking rsync (from .../rsync_3.0.3-2_amd64.deb) ...
Processing triggers for man-db ...
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)
Attached Files
File Type: txt rsync.txt (1.4 KB, 300 views)
__________________
Hans

MrHostman | Master in managed hosting

Last edited by Hans; 26th November 2009 at 18:17.
Reply With Quote
  #4  
Old 27th November 2009, 11:21
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

after you changed the /etc/default/rsync file, you shouldn't issue apt-get install rsync, but run the init script.

it won't start because there is no /etc/rsyncd.conf file ..

there is an example in: man rsyncd.conf

but i've included an example of one i use on a filer:
Code:
mark@pollux:/usr$ cat /etc/rsyncd.conf 
motd file = /etc/motd
max connections = 2
syslog facility = local3
hosts allow = 192.168.5.76
address = 192.168.5.107

[dvddownload_11t]
	comment = DVD Download 11T
	path = /data/dvddownload_11t
	read only = yes
	list = yes
	uid = rsyncer
	gid = rsyncer
	hosts allow = 192.168.5.61 192.168.5.181

[dvddownload_15t]
	comment = DVD Download 5T
	path = /data/dvddownload_5t
	read only = yes
	list = yes
	uid = rsyncer
	gid = rsyncer
	hosts allow = 192.168.5.61 192.168.5.181
Reply With Quote
  #5  
Old 27th November 2009, 19:39
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Default

Quote:
Originally Posted by Mark_NL View Post
it won't start because there is no /etc/rsyncd.conf file ..
[/code]
Thanks for your feedback, but i don't think that a missing /etc/rsyncd.conf file is the cause. I installed the rsync package a lot of times on different servers and each time there was no /etc/rsyncd.conf file. The rsync installation always went fine and i had never errors, even with a missing /etc/rsyncd.conf file.
__________________
Hans

MrHostman | Master in managed hosting
Reply With Quote
  #6  
Old 28th November 2009, 13:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Really strange... Anyway, can you test if it starts with an empty /etc/rsyncd.conf?
Code:
touch /etc/rsyncd.conf
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 30th November 2009, 09:23
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
 
Default

Quote:
Originally Posted by Hans View Post
Thanks for your feedback, but i don't think that a missing /etc/rsyncd.conf file is the cause. I installed the rsync package a lot of times on different servers and each time there was no /etc/rsyncd.conf file. The rsync installation always went fine and i had never errors, even with a missing /etc/rsyncd.conf file.
rsync runs without a conf file, true .. BUT!! The dpkg process expects a conf file (because it wants to restart/stop rsync, but THAT init process throws an error because the conf file doesn't exist) .. dpkg stops working from that point on, hence the error:

Code:
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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[debian 5 + ispconfig 3] Unable to send mail tanakskool HOWTO-Related Questions 6 4th November 2009 18:20
Monit on Debian Hans Tips/Tricks/Mods 2 6th October 2008 13:53
"Too many open files in system" problems Berry Installation/Configuration 3 10th November 2007 21:58
Bind Failed christoph2k HOWTO-Related Questions 4 28th April 2007 00:57
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17


All times are GMT +2. The time now is 06:33.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.