+ Responder ao Tópico



  1. #1
    bouncer
    Visitante

    Padrão squid do slackware 9.1

    squid erro
    versao squid-2.5.STABLE1
    da esse erro


    root@rox:/usr/local/squid/etc# /usr/local/squid/sbin/squid -z
    FATAL: getpwnam failed to find userid for effective user 'squid'
    Squid Cache (Version 2.5.STABLE1): Terminated abnormally.
    CPU Usage: 0.020 seconds = 0.020 user + 0.000 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 245
    Aborted
    root@rox:/usr/local/squid/etc#

    http_port 3128
    cache_mem 100 MB
    cache_swap_low 95
    cache_swap_high 98
    maximum_object_size 61440 KB
    maximum_object_size_in_memory 4096 KB
    cache_dir ufs /usr/local/squid/var/cache 100 16 256
    cache_access_log /usr/local/squid/var/logs/access.log
    cache_log /var/log/squid/cache.log
    emulate_httpd_log on
    log_fqdn on
    ftp_passive on
    refresh_pattern ^ftp: 1440 20% 10080
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern . 0 20% 4320
    acl all src 0.0.0.0/0.0.0.0
    acl manager proto cache_object
    acl localhost src 127.0.0.1/255.255.255.255
    acl nossa src 192.168.0.0/255.255.255.0
    acl SSL_ports port 443 563
    acl Safe_ports port 80 21 443 563 70 210 1025-65535
    acl Safe_ports port 280 # http-mgmt
    acl Safe_ports port 488 # gss-http
    acl Safe_ports port 591 # filemaker
    acl Safe_ports port 777 # multiling http
    acl CONNECT method CONNECT
    #acl blacklist url_regex "/etc/squid/blacklist"
    #acl whitelist url_regex "/etc/squid/whitelist"
    acl download urlpath_regex .exe$ .zip$ .arj$ .tar.gz$ .tgz$ .rpm$ .mp3$
    http_access allow manager localhost all
    http_access deny manager
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    #http_access deny !blacklist
    #http_access allow whitelist
    http_access allow nossa
    http_access deny all
    icp_access allow all
    miss_access allow all
    cache_effective_user squid
    cache_effective_group squid
    httpd_accel_host virtual
    httpd_accel_port 80
    httpd_accel_with_proxy on
    httpd_accel_uses_host_header on
    cache_mgr [email protected]
    visible_hostname proxy.zoioroxo.com.br

  2. #2

    Padrão squid do slackware 9.1

    bouncer!!

    Caro colega!!

    O erro está claro aí na mensagem; as permissões para o user adm do squid estão erradas, o user squid não está conseguindo criar a area de cache;ou seja conforme as confs:
    cache_effective_user squid
    cache_effective_group squid
    DÊ permissão ao user squid nos locais de cache e log. O user squid existe??
    Verifique isto que com certeza vai funfar!!!!
    Agora outra dica, inicie o squid assim : /usr/sbin/squid -D (para ele não testar o dns); o meu rola assim e fica maravilha; faça isso depois que vc criar o cache;
    Abraços.

  3. #3
    Visitante

    Padrão Re: squid do slackware 9.1

    Citação Postado originalmente por bouncer
    squid erro
    versao squid-2.5.STABLE1
    da esse erro


    root@rox:/usr/local/squid/etc# /usr/local/squid/sbin/squid -z
    FATAL: getpwnam failed to find userid for effective user 'squid'
    Squid Cache (Version 2.5.STABLE1): Terminated abnormally.
    CPU Usage: 0.020 seconds = 0.020 user + 0.000 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 245
    Aborted
    root@rox:/usr/local/squid/etc#

    http_port 3128
    cache_mem 100 MB
    cache_swap_low 95
    cache_swap_high 98
    maximum_object_size 61440 KB
    maximum_object_size_in_memory 4096 KB
    cache_dir ufs /usr/local/squid/var/cache 100 16 256
    cache_access_log /usr/local/squid/var/logs/access.log
    cache_log /var/log/squid/cache.log
    emulate_httpd_log on
    log_fqdn on
    ftp_passive on
    refresh_pattern ^ftp: 1440 20% 10080
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern . 0 20% 4320
    acl all src 0.0.0.0/0.0.0.0
    acl manager proto cache_object
    acl localhost src 127.0.0.1/255.255.255.255
    acl nossa src 192.168.0.0/255.255.255.0
    acl SSL_ports port 443 563
    acl Safe_ports port 80 21 443 563 70 210 1025-65535
    acl Safe_ports port 280 # http-mgmt
    acl Safe_ports port 488 # gss-http
    acl Safe_ports port 591 # filemaker
    acl Safe_ports port 777 # multiling http
    acl CONNECT method CONNECT
    #acl blacklist url_regex "/etc/squid/blacklist"
    #acl whitelist url_regex "/etc/squid/whitelist"
    acl download urlpath_regex .exe$ .zip$ .arj$ .tar.gz$ .tgz$ .rpm$ .mp3$
    http_access allow manager localhost all
    http_access deny manager
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    #http_access deny !blacklist
    #http_access allow whitelist
    http_access allow nossa
    http_access deny all
    icp_access allow all
    miss_access allow all
    cache_effective_user squid
    cache_effective_group squid
    httpd_accel_host virtual
    httpd_accel_port 80
    httpd_accel_with_proxy on
    httpd_accel_uses_host_header on
    cache_mgr [email protected]
    visible_hostname proxy.zoioroxo.com.br

  4. #4