Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
My Rsync Mirror stops accepting connections after 12+ hours
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jhboricua
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2002
Posts: 113

PostPosted: Fri Sep 06, 2002 11:06 pm    Post subject: My Rsync Mirror stops accepting connections after 12+ hours Reply with quote

I'm running a gentoo rsync mirror at rsync://rsync.jhboricua.org/gentoo-portage/

I'm running into some odd behavior. After more than 12 hours have passed, the server stops accepting connections. It keeps saying max connections reached, but there is no traffic going out and no cpu time being used by the rsync process. Killing the process and restarting doesn't help, it keeps saying max connections reached.

BUT, if I kill the rsync process and THEN delete the rsync.lock file on /var/run , I can restart the daemon and it starts accepting connections and passing traffic again. I don't believe is a hardware issue because I'm running a mail server on the same box and I have no trouble sending and receiving mail. Any pointers?
Back to top
View user's profile Send private message
mikulus
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jun 2002
Posts: 77

PostPosted: Sat Sep 07, 2002 4:09 am    Post subject: Reply with quote

I am not sure what is causing your problem, but as a work-around you can create a script like this one and put it in you crontab to run, let's say, every 10 hours:
Code:
 pkill -9 rsync
rm -f /var/run/rsync.lock
/path/to/startup/rsync


I know it's crude, but it will get you going until you figure out what's going on elsewhere.
_________________
"Two things are infinite - the universe and human stupidity. And I am not sure about the universe."


Last edited by mikulus on Sat Sep 07, 2002 4:13 am; edited 2 times in total
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Sat Sep 07, 2002 1:53 pm    Post subject: Reply with quote

What are your max connections set to and what is the timeout value in your conf file?

Also, any relevant messages in your logs?

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum