LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-10-2010, 10:01 AM   #1
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
cannot make a local mirror of Slackware - urgent help needed!


Hi,
I have done several attempts to build a local mirror of Salckware 13.0. There are two problems: I have to wait very long for a connection, they appear error during a connection which broke it so I have to restart. Is there any other way to build mirror? I am using Alien Bob scripts. Never before happened something like that. The connections with common web pages (google, etc) work well. Maybe I should look for some other mirror than those listed in mirror-slackware-current.sh. Please help to fix this. This is really very important for me.
Here is a listing
Code:
rsync: writefd_unbuffered failed to write 4 bytes to socket [generator]: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(1530) [generator=3.0.7]
rsync error: received SIGUSR1 (code 19) at main.c(1288) [receiver=3.0.7]
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(760) [receiver=3.0.7]
rsync: connection unexpectedly closed (651 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [generator=3.0.7]
Fri Sep 10 15:41:45 CEST 2010 [1958]: Done mirroring slackware-13.0 (exit code 0

Last edited by igadoter; 09-10-2010 at 10:10 AM.
 
Old 09-10-2010, 10:08 AM   #2
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by igadoter View Post
Hi,
I have done several attempts to build a local mirror of Salckware 13.0. There are two problems: I have to wait very long for a connection, they appear error during a connection which broke it so I have to restart. Is there any other way to build mirror? I am using Alien Bob scripts. Never before happened something like that. The connections with common web pages (google, etc) work well. Maybe I should look for some other mirror than those listed in mirror-slackware-current.sh. Please help to fix this. This is really very important for me.
Weird. Alien Bob's slackware-current script works perfectly for me. Perhaps try another mirror if you time out?
 
Old 09-10-2010, 10:11 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
I use
Quote:
rsync.osuosl.org::slackware/slackware-current
which works OK.
However seems to me most mirrors are overloaded, and refuse connections from time to time, when I try
Quote:
slackpkg update
slackpkg upgrade-all

Kind regards
 
Old 09-10-2010, 02:54 PM   #4
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
use mc it has an ftp client built in
super easy to use hit F9 select left OR right then select ftp link give the dialog box the ftp address without the "ftp://" part of the address
after that you can copy what ever like from the ftp site just like it was a local file or directory and navigate the site like it was a local file system
 
Old 09-10-2010, 11:30 PM   #5
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 543

Rep: Reputation: 121Reputation: 121
Erick's script is working perfect here. My mirror are synced from osuosl and it gave me almost the same error two days ago. Just Waited a few minutes and it mirrored. Today it worked fine.

Can you try RSYNCURLROOT=${RSYNCURLROOT:-"rsync.osuosl.org::slackware/"} and post the result? Thanks.
 
Old 09-11-2010, 02:45 AM   #6
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717

Original Poster
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Hi,
I have no idea what's going on. I am sure it is not about Eric's scripts. Ftp connections work well - I am thinking now about settings which may cause problems with rsync protocol - firewalls? - something which doesn't allow connection from internet to my local computer - eg. I know that for ftp one may need to set 'passive' mode to download files. I am thinking about something similar but for rsync.
 
Old 09-11-2010, 03:15 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
What happens if you disable the firewall?
 
Old 09-11-2010, 05:25 AM   #8
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717

Original Poster
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
I disabled the firewall. Rsync started but after downloading ca. 1GB it reported an error:
Code:
rsync: writefd_unbuffered failed to write 311 bytes to socket [generator]: Connection timed out (110)
rsync error: error in rsync protocol data stream (code 12) at io.c(1530) [generator=3.0.7]
rsync error: received SIGUSR1 (code 19) at main.c(1288) [receiver=3.0.7]
 
Old 09-11-2010, 10:14 AM   #9
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 543

Rep: Reputation: 121Reputation: 121
You can find some help here: http://www.samba.org/rsync/issues.html

"If you can't figure out why the failure happened, there are steps you can take to debug the situation. One way is to create a shell script on the remote system such as this one named "rsync-debug". You would use the script like this:

rsync -av --rsync-path=/some/path/rsync-debug host:source dest
rsync -av --rsync-path=/some/path/rsync-debug source host:dest

This script enables core dumps and also logs all the OS system calls that lead up to the failure to a file in the /tmp dir. You can use the resulting files to help figure out why the remote rsync failed."


'rsync-debug'
Quote:
#!/bin/sh

ulimit -c unlimited

# Some systems have "truss" or "tusc" instead of "strace".
# The -f option tells strace to follow children too.
strace -f rsync "${@}" 2>/tmp/rsync-$$.out
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I make a local mirror and update it automatically? digitsm Linux - Software 1 05-15-2010 04:14 PM
[SOLVED] How much Disk space is needed to setup a local repo mirror? worm5252 Linux - Newbie 3 01-31-2010 07:51 PM
Using rsync to make your own Slackware mirror Laodiceans Slackware 4 12-19-2009 04:03 AM
Help needed for make file problem : make: *** No rule to make target `flash', needed rameshsatyavaram Linux - Newbie 3 09-11-2008 02:13 AM
LXer: How To Create A Local Debian/Ubuntu Mirror With apt-mirror LXer Syndicated Linux News 0 01-04-2007 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration