View previous topic :: View next topic |
Author |
Message |
jhboricua Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/42864ac33cf4e9e8f0ad1.gif)
Joined: 07 May 2002 Posts: 113
|
Posted: Fri Sep 06, 2002 11:06 pm Post subject: My Rsync Mirror stops accepting connections after 12+ hours |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mikulus Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/101339801741f43131e426b.png)
Joined: 03 Jun 2002 Posts: 77
|
Posted: Sat Sep 07, 2002 4:09 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
klieber Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/71602131143de10f19aaec.jpg)
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Sat Sep 07, 2002 1:53 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|