+ Responder ao Tópico



  1. #1

    Padrão Problema squid com store_rewriter

    Galera.

    Estou montando um squid para fazer caches de video usando as storeurl_access, mas estou tendo um problema.

    Quando inicio o squid ele imediatamente cai.
    Conferindo nos arquivos de log, tem a seguinte saída

    2011/07/13 13:39:13| Starting Squid Cache version 2.7.STABLE9 for i386-debian-linux-gnu...
    2011/07/13 13:39:13| Process ID 1648
    2011/07/13 13:39:13| With 1024 file descriptors available
    2011/07/13 13:39:13| Using epoll for the IO loop
    2011/07/13 13:39:13| DNS Socket created at 0.0.0.0, port 58932, FD 6
    2011/07/13 13:39:13| Adding nameserver 172.29.150.100 from squid.conf
    2011/07/13 13:39:13| Adding nameserver 200.134.80.13 from squid.conf
    2011/07/13 13:39:13| helperOpenServers: Starting 1 'storeurl.pl' processes
    2011/07/13 13:39:13| User-Agent logging is disabled.
    2011/07/13 13:39:13| Referer logging is disabled.
    2011/07/13 13:39:13| logfileOpen: opening log /var/log/squid/access.log
    2011/07/13 13:39:13| Swap maxSize 20480000 + 2048000 KB, estimated 1732923 objects
    2011/07/13 13:39:13| Target number of buckets: 86646
    2011/07/13 13:39:13| Using 131072 Store buckets
    2011/07/13 13:39:13| Max Mem size: 2048000 KB
    2011/07/13 13:39:13| Max Swap size: 20480000 KB
    2011/07/13 13:39:13| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
    2011/07/13 13:39:13| Store logging disabled
    2011/07/13 13:39:13| Rebuilding storage in /var/spool/squid (DIRTY)
    2011/07/13 13:39:13| Using Least Load store dir selection
    2011/07/13 13:39:13| Current Directory is /
    syntax error at /etc/squid/storeurl.pl line 4, near "<"
    syntax error at /etc/squid/storeurl.pl line 4, near " "
    syntax error at /etc/squid/storeurl.pl line 15, near "}"
    Execution of /etc/squid/storeurl.pl aborted due to compilation errors.
    2011/07/13 13:39:13| Loaded Icons.
    2011/07/13 13:39:13| Accepting transparently proxied HTTP connections at 0.0.0.0, port 3128, FD 13.
    2011/07/13 13:39:13| Accepting ICP messages at 0.0.0.0, port 3130, FD 14.
    2011/07/13 13:39:13| HTCP Disabled.
    2011/07/13 13:39:13| WCCP Disabled.
    2011/07/13 13:39:13| Ready to serve requests.
    2011/07/13 13:39:13| WARNING: store_rewriter #1 (FD 7) exited
    2011/07/13 13:39:13| Too few store_rewriter processes are running
    FATAL: The store_rewriter helpers are crashing too rapidly, need help!

    Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
    CPU Usage: 0.016 seconds = 0.004 user + 0.012 sys
    Maximum Resident Size: 19776 KB
    Page faults with physical i/o: 0
    Memory usage for squid via mallinfo():
    total space in arena: 2132 KB
    Ordinary blocks: 2060 KB 2 blks
    Small blocks: 0 KB 0 blks
    Holding blocks: 1760 KB 3 blks
    Free Small blocks: 0 KB
    Free Ordinary blocks: 71 KB
    Total in use: 3820 KB 98%
    Total free: 71 KB 2%
    SE alguém puder ajudar agradeço muito

  2. #2

    Padrão Re: Problema squid com store_rewriter

    Galera.

    Achei um erro no sript do perl e não no squid.
    a linha while (<&gt) não funciona

    troquei por while (<>) e não deu mais erro

    Alguém sabe o pq do erro na sintaxe do perl?

    Valeu