Mirror issues?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Mirror issues?

Charles Chambers
I may or may not be having an issue with my connection.

I mirror both the cdimages as well as packages.

On both, rsync is failing, with the error message showing of:

chown: cannot access ‘*’: No such file or directory
rsync failure.  Retrying...

And nothing further happens.

Control C on the session, restart it, and the same outcome.

It's been in place for a few months while I figure out how to get a
static IP and go public.

Do I need to change anything?


--
ubuntu-mirrors mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mirrors

pEpkey.asc (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Mirror issues?

Thomas Ward-2

What specific RSync command are you using?  When you use `*` it might cause issues, or if the filename is named `*` you're trying to rsync it will not work right either.  Details about what command you're using **exactly** would be helpful.

If you need it, I can bundle up my mirror sync scripts (I have one for cdimage and one for packages) and share them with you if you think that'd be helpful.


Thomas


On 3/17/20 8:49 AM, Charles Chambers wrote:
I may or may not be having an issue with my connection.

I mirror both the cdimages as well as packages.

On both, rsync is failing, with the error message showing of:

chown: cannot access ‘*’: No such file or directory
rsync failure.  Retrying...

And nothing further happens.

Control C on the session, restart it, and the same outcome.

It's been in place for a few months while I figure out how to get a
static IP and go public.

Do I need to change anything?



--
ubuntu-mirrors mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mirrors
Reply | Threaded
Open this post in threaded view
|

Re: Mirror issues?

Charles Chambers
Here's the script at this point.  I have two of them (one for cdimages, one for packages), but they both work the same.



==================

while [ 1 ]

do

#Download archives
#    rsync -a --progress --delete rsync://ubuntu.cs.utah.edu/ubuntu /media/8TB/ubuntu-mirror
#    rsync -a --progress --delete rsync://mirrors.syringanetworks.net/ubuntu-archive /media/8TB/ubuntu-mirror
     rsync -a --progress --delete rsync://mirror.arizona.edu/ubuntu /media/8TB/ubuntu-mirror
     chown -R charles:charles *
# Download ISO
#     rsync -a --progress --delete rsync://cdimage.ubuntu.com/cdimage /media/8TB/ubuntu-cdimage
#     chown -R charles:charles *
#  Check for errors/abends

     if [ "$?" = "0" ] ; then
           echo "rsync completed normally"
           exit
     else
           echo "rsync failure.  Retrying..."
           sleep 600
     fi

done

================







On Tue, Mar 17, 2020 at 4:03 PM Thomas Ward <[hidden email]> wrote:

What specific RSync command are you using?  When you use `*` it might cause issues, or if the filename is named `*` you're trying to rsync it will not work right either.  Details about what command you're using **exactly** would be helpful.

If you need it, I can bundle up my mirror sync scripts (I have one for cdimage and one for packages) and share them with you if you think that'd be helpful.


Thomas


On 3/17/20 8:49 AM, Charles Chambers wrote:
I may or may not be having an issue with my connection.

I mirror both the cdimages as well as packages.

On both, rsync is failing, with the error message showing of:

chown: cannot access ‘*’: No such file or directory
rsync failure.  Retrying...

And nothing further happens.

Control C on the session, restart it, and the same outcome.

It's been in place for a few months while I figure out how to get a
static IP and go public.

Do I need to change anything?




--

--
ubuntu-mirrors mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mirrors
Reply | Threaded
Open this post in threaded view
|

Fwd: Mirror issues?

Charles Chambers

Never mind.  I'm stupid.

The script line setting ownership of the repositories to a known state needs to execute from /media/8TB, or it needs to specify /media/8TB/* :

chown -R charles:charles /media/8TB/*

I've been executing the script from /home/charles (user home directory) rather than from /media/8TB, so the error message is telling me that /home/charles has no files for which changing ownership is valid.  The directory /home/charles indeed has NO files, so the error is indeed valid.

Charlie





---------- Forwarded message ---------
From: Charles Chambers <[hidden email]>
Date: Thu, Mar 19, 2020 at 5:15 AM
Subject: Re: Mirror issues?
To: Thomas Ward <[hidden email]>
Cc: <[hidden email]>


Here's the script at this point.  I have two of them (one for cdimages, one for packages), but they both work the same.



==================

while [ 1 ]

do

#Download archives
#    rsync -a --progress --delete rsync://ubuntu.cs.utah.edu/ubuntu /media/8TB/ubuntu-mirror
#    rsync -a --progress --delete rsync://mirrors.syringanetworks.net/ubuntu-archive /media/8TB/ubuntu-mirror
     rsync -a --progress --delete rsync://mirror.arizona.edu/ubuntu /media/8TB/ubuntu-mirror
     chown -R charles:charles *

# Download ISO
#     rsync -a --progress --delete rsync://cdimage.ubuntu.com/cdimage /media/8TB/ubuntu-cdimage
#     chown -R charles:charles *
#  Check for errors/abends

     if [ "$?" = "0" ] ; then
           echo "rsync completed normally"
           exit
     else
           echo "rsync failure.  Retrying..."
           sleep 600
     fi

done

================







On Tue, Mar 17, 2020 at 4:03 PM Thomas Ward <[hidden email]> wrote:

What specific RSync command are you using?  When you use `*` it might cause issues, or if the filename is named `*` you're trying to rsync it will not work right either.  Details about what command you're using **exactly** would be helpful.

If you need it, I can bundle up my mirror sync scripts (I have one for cdimage and one for packages) and share them with you if you think that'd be helpful.


Thomas


On 3/17/20 8:49 AM, Charles Chambers wrote:
I may or may not be having an issue with my connection.

I mirror both the cdimages as well as packages.

On both, rsync is failing, with the error message showing of:

chown: cannot access ‘*’: No such file or directory
rsync failure.  Retrying...

And nothing further happens.

Control C on the session, restart it, and the same outcome.

It's been in place for a few months while I figure out how to get a
static IP and go public.

Do I need to change anything?




--


--

--
ubuntu-mirrors mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mirrors