You are not logged in.
I'm building a Local Mirror on a vm (vbox) with bridged adapter and fix-ip by following this wiki.
http://wiki.archlinux.org/index.php/Loc … cal_mirror
After the painful rsync and those setup, I tried pacman -Syu from another Arch vm (no firewall). I received the following error.
:: Synchronizing package databases...
error: failed retrieving file 'core.db.tar.gz' from 192.168.100.100 : Service not available, closing control connection
.....
.....
I've tried by nmap on the hosting PC and find that the vsftpd should be running.
Starting Nmap 4.62 ( http://nmap.org ) at 2010-08-27 01:03 HKT
Interesting ports on 192.168.100.100:
Not shown: 1714 closed ports
PORT STATE SERVICE
21/tcp open ftp
MAC Address: 08:00:27:76:33:1C (Cadmus Computer Systems)
Nmap done: 1 IP address (1 host up) scanned in 1.318 seconds
In the wiki, it suggests to use "ftp" to replace "mirror" for ftp_username & nopriv_user. I tried both.
I also find that there is no "archlinux" under my /home/mirror/files as "suggested" by the following statement in vsftpd.conf
...
# Chroot directory for anonymous user
anon_root=/home/mirror/files/archlinux
...
I tried both (1) amend the vsftpd.conf to remove the "archlinux", and (2) manually add that directory with owner/group=mirror.
Meanwhile, I only find under /home/mirror/files 6 items - community core extra community.lastsync core.lastsync extra.lastsync. Have I completed the rsync successfully? Or, something is missing. Is the directory structure correct?
Is the sample vsftpd.conf in the Local Mirror wiki updated? I've cross reference it with the vsftpd wiki but I'm not knowledgable enough to find things useful.
What else should I check?
I love ArchLinux so much that I really hope that it can work.
Please help.
Thanks.
Last edited by dboat (2010-08-27 15:38:14)
Offline
I have tried couple of Linux distro to learn Linux/Network. I like ArchLinux's "simple" concept, light weight, updated packages, nice document and fast bootup/shutdown. I have installed over ten times ArchLinux in different virtualmachines and netbook in the past week. I will keep some, delete some and create more. I don't have a fast internet connection and that's why I would like to set up my local mirror. I am a newbie here, so please feel free to let me know if I am taking too much (bandwidth) from the community, and it is not encouraged for my case. And sorry if I have already created any trouble.
Well, back to my problem.
1. After the rsync, including everything, the / now occupies 14G harddisk space. Is it a normal size for a local mirror?
2. I have inserted "Server = file:///home/mirror/files/$repo/os/i686" as the first line in its /etc/pacman.d/mirrorlist
pacman -Syy looks fine.
pacman -Syu gives a list of warning (xxx: local is newer than core), end with "there is nothing to do"
pacman -S mplayer starts installtion normally, but need mirrors on internet cause a large portion of software is missing/inaccessible on my local mirror.
3. I have tried to login by FileZilla from an Ubuntu vm, and receive this error message (on FileZilla)
Status: Connecting to 192.168.100.100:21...
Status: Connection established, waiting for welcome message...
Response: 421 Service not available.
Error: Could not connect to server
Seems I have issues on both the mirror and the vsftpd. I prefer to resolve the vsftpd problem first, but all suggestion/comment are very welcome.
Lastly, did I post my question in a wrong place? If yes, please let me know.
Offline
Finally, ... only two small amendments on the Wiki. And, I second UberPenjuin that "ftp" instead of "mirror" should be used in vsftpd.conf.
Amendment 1
Remove "archlinux" in vsftpd.cont
...
# Chroot directory for anonymous user
anon_root=/home/mirror/files
...
Amendment 2
Remove ": ALL" in /etc/hosts.allow
vsftpd: ALL
I have just created a new Arch vm by using this mirror. It works fine.
------------------------------------------------------------
Just for completeness, in order for crontab to work as describe in wiki, have to add mirror (user) to users (group)
gpasswd -a mirror users
---------------------------------------------------------------
Tell you what, I use 32M base + 8M video ram for this vm. very very good deal. ^^
Last edited by dboat (2010-08-27 18:07:48)
Offline