[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apt-proxy com muitos problemas



JEMF wrote:

Marcos, acho que é você quem vai me responder. (se alguém mais puder, ótimo).

Como anda o seu apt-proxy? O meu dá problema toda hora. Tenho que ficar reinicializando e, às vezes, tenho que zerar parte do cache para ele voltar ao normal. De vez em quando é rápido e de vez em quando congela. Como anda o seu? Está normal?

Acho que é bug. Nem sei como reportar, pois não dá para deduzir o problema. É uma pena, pois ele faz o que preciso como nenhum outro. O que mais se aproxima é o apt-cacher. No entanto, teria que configurar os repositórios no cliente e isso não deixaria a coisa muito dinâmica.

Olá jemf

O apt-proxy está normal aqui... pelo menos desde a ultima vez que eu troquei do ftp.br.debian.org pro linusp.usp.br (e parei de usar rsync e passei pra http)

O que é dar problema pra vc? O meu as vezes ele demora um pouco, mas sempre continua. Eu já tive problema com um arquivo q estava corrompido no repositório local, ai eu tive que ir lá, apagar e baixar outro na mão.

Observe que eu coloquei DEBUG=true no apt-proxy.conf, mas não notei nada diferente nos logs... :-(

Abaixo eu coloco alguns arquivos meus de configuração pra vc comparar; fiz isso na máquina 10.0.0.12, que é o 'servidor' apt-proxy.

---------------------------------------
$ cat /etc/apt-proxy/apt-proxy.conf
# Configuration for apt-proxy

# Change this path if you do not want to keep your cache under var
#APT_PROXY_CACHE=/var/cache/apt-proxy
APT_PROXY_CACHE=/local/home/apt-proxy/cache

### Rsync Backends
# Three or more fields each:
# 1) URL prefix
# 2) Dir to put files in (remember the trailing /!)
# 3...) rsync backends to replace it with (remember the trailing /!)

# You can specify multiple backends like this:
#add_backend /main/                                     \
#       $APT_PROXY_CACHE/debian/                        \
#       SERVERONE::debian/                              \
#       SERVERTWO::debian/                              \
#       SERVERTHREE::debian/

# HINT: Any request matching none of these is not served, making
# partial caching easy.

add_backend /debian/                                    \
        $APT_PROXY_CACHE/debian/                        \
        http://linorg.usp.br/debian/

#       ftp.us.debian.org::debian/

#       ftp.de.debian.org::debian/                      \
#       ftp2.de.debian.org::debian/                     \
#       ftp.uk.debian.org::debian/

add_backend /non-US/                                    \
        $APT_PROXY_CACHE/non-US/                        \
        linorg.usp.br::debian-non-US/

#       ftp.br.debian.org::debian-non-US/

#       ftp2.de.debian.org::debian-non-US/              \
#       ftp.uk.debian.org::debian/non-US/

add_backend /security/                                  \
        $APT_PROXY_CACHE/security/                      \
        security.debian.org::debian-security/           \
        non-us.debian.org::debian-security/

#add_backend /marillat/                                 \
#       $APT_PROXY_CACHE/marillat/                      \
#       http://www.las.ic.unicamp.br/pub/debian-marillat/

add_backend /marillat/                                  \
        $APT_PROXY_CACHE/marillat/                      \
        ftp://ftp.nerim.net/debian-marillat/


#add_backend /debian-marillat/                                  \
#       $APT_PROXY_CACHE/debian-marillat/                       \
#       ftp://ftp.nerim.net/debian-marillat/


# Here are some more examples:
#
#Emdebian project
# add_backend /emdebian/                                \
#       $APT_PROXY_CACHE/emdebian/                      \
#       http://emdebian.sourceforge.net/emdebian/
#
#Blackdown jave
# add_backend /blackdown/                               \
#       $APT_PROXY_CACHE/blackdown/                     \
#       http://ftp.gwdg.de/pub/languages/java/linux/debian/
#
#apt-proxy repository
# see: http://apt-proxy.sourceforge.net/apt-proxy/README
# add_backend /apt-proxy/                               \
#       $APT_PROXY_CACHE/apt-proxy/                     \
#       http://apt-proxy.sourceforge.net/apt-proxy/


############################## OTHER VARS ##################################
#       Automatically delete old debs when we download a newer one
#       after this many days of the older not being accessed.
#       Comment out to avoid, set to 0 for `instantly' (not recommended;
#       sometimes the new versions are broken
CLEANUP_DAYS=14

#       Once every n days, look through tree to erase and debs which
#       haven't been accessed in that long (eg. obsolete, rarely used, etc).
#       Comment out to disable.
CLEAN_SWEEP=60

#       Maximum number of versions of each package to keep in cache
#       directory.  Version purging is carried out immediately after a new
#       version is downloaded.
#       Comment out to disable.
MAX_VERSIONS=3

#       Maximum frequency of Packages/etc. updates from back end (minutes)
#       Keep high to speed things up.
BACKEND_FREQ=1080

#       Number of seconds for rsync to wait before timing out.
RSYNC_TIMEOUT=30

#       Number of seconds for wget to wait to connect before timing out.
WGET_TIMEOUT=30

#       Uncomment to change the path to wget, or add extra options.  For
#       example, if you are behind a firewall that does not allow active
#       FTP, use WGET="wget --passive-ftp"
#WGET=wget
WGET="wget --passive-ftp"

#       Uncomment to change the path to rsync or add extra options.
#RSYNC=rsync

#       Uncomment to keep stats of successful backend transfers in the log.
KEEP_STATS=1

#       Uncomment this for debugging messages
DEBUG=true
-----------------------------
$ cat /etc/inetd.conf
....
9999 stream tcp nowait.400 aptproxy \
/usr/sbin/tcpd /usr/sbin/apt-proxy -l /var/log/apt-proxy.log
-----------------------------
$ cat /home/pub/instalacao/sources.list
# sources.list prontinho pra copiar na instalacao

##
#
# testing = sarge
# stable  = woody
#
##

### Repositorios woody
###
# deb     http://ftp.br.debian.org/debian/ woody main non-free contrib
# deb-src http://ftp.br.debian.org/debian/ woody main non-free contrib
# deb http://non-us.debian.org/debian-non-US/ woody/non-US main contrib non-free # deb-src http://non-us.debian.org/debian-non-US/ woody/non-US main contrib non-free
# deb     http://security.debian.org/ woody/updates main contrib non-free


### Repositorios sarge
###
# deb     http://ftp.br.debian.org/debian/ sarge main non-free contrib
# deb-src http://ftp.br.debian.org/debian/ sarge main non-free contrib
# deb http://non-us.debian.org/debian-non-US/ sarge/non-US main contrib non-free # deb-src http://non-us.debian.org/debian-non-US/ sarge/non-US main contrib non-free
# deb http://security.debian.org/ sarge/updates main contrib non-free


### Repositorio extra: acrobat, real player, etc
###
# deb ftp://ftp.nerim.net/debian-marillat/ testing main


### mirrors internos
# deb http://10.0.0.12:9999/debian/ woody main contrib non-free
# deb http://10.0.0.12:9999/non-US/ woody/non-US main contrib non-free
# deb http://10.0.0.12:9999/security/ woody/updates main contrib non-free

deb http://10.0.0.12:9999/debian/ sarge main contrib non-free
deb http://10.0.0.12:9999/non-US/ sarge/non-US main contrib non-free
deb http://10.0.0.12:9999/security/ sarge/updates main contrib non-free

deb http://10.0.0.12:9999/marillat/ testing main




Reply to: