Giter Club home page Giter Club logo

Comments (8)

McBane87 avatar McBane87 commented on July 28, 2024 1

Thanks for reporting. Looks like the start script is outdated. I have to copy newer versions of find_cache_dir () and grepconf () from /etc/init.d/squid . After that it should work.

from docker-squid-proxy.

srcKod avatar srcKod commented on July 28, 2024 1

the last build of bullseye image now success with aufs

2021/02/12 10:58:12| Created PID file (/run/squid.pid)
2021/02/12 10:58:12 kid1| Set Current Directory to /var/spool/squid
2021/02/12 10:58:12 kid1| Creating missing swap directories
2021/02/12 10:58:12 kid1| /var/spool/squid exists
2021/02/12 10:58:12 kid1| Making directories in /var/spool/squid/00
2021/02/12 10:58:12 kid1| Making directories in /var/spool/squid/01
2021/02/12 10:58:12 kid1| Making directories in /var/spool/squid/02
2021/02/12 10:58:12 kid1| Making directories in /var/spool/squid/03
2021/02/12 10:58:12 kid1| Making directories in /var/spool/squid/04
2021/02/12 10:58:12 kid1| Making directories in /var/spool/squid/05
2021/02/12 10:58:12 kid1| Making directories in /var/spool/squid/06
2021/02/12 10:58:12 kid1| Making directories in /var/spool/squid/07
2021/02/12 10:58:12 kid1| Making directories in /var/spool/squid/08
2021/02/12 10:58:12 kid1| Making directories in /var/spool/squid/09
2021/02/12 10:58:12 kid1| Making directories in /var/spool/squid/0A
2021/02/12 10:58:12 kid1| Making directories in /var/spool/squid/0B
2021/02/12 10:58:12 kid1| Making directories in /var/spool/squid/0C
2021/02/12 10:58:12 kid1| Making directories in /var/spool/squid/0D
2021/02/12 10:58:12 kid1| Making directories in /var/spool/squid/0E
2021/02/12 10:58:12 kid1| Making directories in /var/spool/squid/0F
2021/02/12 10:58:12| Removing PID file (/run/squid.pid)
2021/02/12 10:58:12| Created PID file (/run/squid.pid)
2021/02/12 10:58:12| Set Current Directory to /var/spool/squid
2021/02/12 10:58:12| Starting Squid Cache version 4.13 for x86_64-pc-linux-gnu...
2021/02/12 10:58:12| Service Name: squid
2021/02/12 10:58:12| Process ID 62
2021/02/12 10:58:12| Process Roles: master worker
2021/02/12 10:58:12| With 65535 file descriptors available
2021/02/12 10:58:12| Initializing IP Cache...
2021/02/12 10:58:12| DNS Socket created at 0.0.0.0, FD 3
2021/02/12 10:58:12| Adding nameserver 127.0.0.11 from /etc/resolv.conf
2021/02/12 10:58:12| Adding ndots 1 from /etc/resolv.conf
2021/02/12 10:58:12| helperOpenServers: Starting 0/15 'basic_ncsa_auth' processes
2021/02/12 10:58:12| helperOpenServers: No 'basic_ncsa_auth' processes needed.
2021/02/12 10:58:12| Logfile: opening log daemon:/var/log/squid/access.log
2021/02/12 10:58:12| Logfile Daemon: opening log /var/log/squid/access.log
2021/02/12 10:58:12| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2021/02/12 10:58:12| Store logging disabled
2021/02/12 10:58:12| Swap maxSize 512000 + 25600 KB, estimated 41353 objects
2021/02/12 10:58:12| Target number of buckets: 2067
2021/02/12 10:58:12| Using 8192 Store buckets
2021/02/12 10:58:12| Max Mem  size: 25600 KB
2021/02/12 10:58:12| Max Swap size: 512000 KB
2021/02/12 10:58:12| Rebuilding storage in /var/spool/squid (no log)
2021/02/12 10:58:12| Using Least Load store dir selection
2021/02/12 10:58:12| Set Current Directory to /var/spool/squid
2021/02/12 10:58:12| Finished loading MIME types and icons.
2021/02/12 10:58:12| HTCP Disabled.
2021/02/12 10:58:12| Squid plugin modules loaded: 0
2021/02/12 10:58:12| Adaptation support is off.
2021/02/12 10:58:12| Accepting HTTP Socket connections at local=0.0.0.0:46001 remote=[::] FD 12 flags=9
2021/02/12 10:58:13| Configuring Parent dgost1/49152/0
2021/02/12 10:58:13| Configuring Parent dgost6/49157/0
2021/02/12 10:58:13| Configuring Parent dgost2/49153/0
2021/02/12 10:58:13| Configuring Parent dgost3/49154/0
2021/02/12 10:58:13| Configuring Parent dgost4/49155/0
2021/02/12 10:58:13| Configuring Parent dgost5/49156/0
2021/02/12 10:58:13| Done scanning /var/spool/squid dir (0 entries)
2021/02/12 10:58:13| Finished rebuilding storage from disk.
2021/02/12 10:58:13|         0 Entries scanned
2021/02/12 10:58:13|         0 Invalid entries.
2021/02/12 10:58:13|         0 With invalid flags.
2021/02/12 10:58:13|         0 Objects loaded.
2021/02/12 10:58:13|         0 Objects expired.
2021/02/12 10:58:13|         0 Objects cancelled.
2021/02/12 10:58:13|         0 Duplicate URLs purged.
2021/02/12 10:58:13|         0 Swapfile clashes avoided.
2021/02/12 10:58:13|   Took 0.11 seconds (  0.00 objects/sec).
2021/02/12 10:58:13| Beginning Validation Procedure
2021/02/12 10:58:13|   Completed Validation Procedure
2021/02/12 10:58:13|   Validated 0 Entries
2021/02/12 10:58:13|   store_swap_size = 0.00 KB
2021/02/12 10:58:13| Starting new basicauthenticator helpers...
2021/02/12 10:58:13| helperOpenServers: Starting 1/15 'basic_ncsa_auth' processes
2021/02/12 10:58:13| storeLateRelease: released 0 objects

from docker-squid-proxy.

McBane87 avatar McBane87 commented on July 28, 2024

I have to correct myself. The script isn't outdated. I just somehow screwed up the "space tab" used in both functions.

from docker-squid-proxy.

McBane87 avatar McBane87 commented on July 28, 2024

Should be fixed with aee7117
Docker rebuild will be triggered now. But it can take some time until it will be updated.

from docker-squid-proxy.

srcKod avatar srcKod commented on July 28, 2024

last image downloaded. the result when new container created

2021/02/11 22:54:31| Created PID file (/run/squid.pid)
2021/02/11 22:54:31| FATAL: Squid is already running: Found fresh instance PID file (/run/squid.pid) with PID 56
    exception location: Instance.cc(121) ThrowIfAlreadyRunningWith

from docker-squid-proxy.

McBane87 avatar McBane87 commented on July 28, 2024

Sorry, I think now it should work. Fix is 789a5d3
Rebuild of docker images is started.

Additionally:
You most likely have to clear your cache directory before starting again. Otherwise the initial creation of the files will fail.

from docker-squid-proxy.

srcKod avatar srcKod commented on July 28, 2024

I downloaded bullseye image. now it can build the cache directories
note that cache storage scheme must be ufs and it will produce errors if the cache storage scheme set to aufs in squid.conf

here the cache storage scheme set to aufs

2021/02/12 08:46:24| Created PID file (/run/squid.pid)
2021/02/12 08:46:24| Created PID file (/run/squid.pid)
2021/02/12 08:46:24 kid1| Set Current Directory to /var/spool/squid
2021/02/12 08:46:24 kid1| Creating missing swap directories
2021/02/12 08:46:24| Set Current Directory to /var/spool/squid
2021/02/12 08:46:24 kid1| /var/spool/squid exists
2021/02/12 08:46:24 kid1| Making directories in /var/spool/squid/00
2021/02/12 08:46:24| Starting Squid Cache version 4.13 for x86_64-pc-linux-gnu...
2021/02/12 08:46:24| Service Name: squid
2021/02/12 08:46:24| Process ID 61
2021/02/12 08:46:24| Process Roles: master worker
2021/02/12 08:46:24| With 65535 file descriptors available
2021/02/12 08:46:24| Initializing IP Cache...
2021/02/12 08:46:24| DNS Socket created at 0.0.0.0, FD 3
2021/02/12 08:46:24| Adding nameserver 127.0.0.11 from /etc/resolv.conf
2021/02/12 08:46:24| Adding ndots 1 from /etc/resolv.conf
2021/02/12 08:46:24| helperOpenServers: Starting 0/15 'basic_ncsa_auth' processes
2021/02/12 08:46:24| helperOpenServers: No 'basic_ncsa_auth' processes needed.
2021/02/12 08:46:24 kid1| Making directories in /var/spool/squid/01
2021/02/12 08:46:24| Logfile: opening log daemon:/var/log/squid/access.log
2021/02/12 08:46:24| Logfile Daemon: opening log /var/log/squid/access.log
2021/02/12 08:46:24 kid1| Making directories in /var/spool/squid/02
2021/02/12 08:46:24| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2021/02/12 08:46:24| Store logging disabled
2021/02/12 08:46:24| Swap maxSize 512000 + 262144 KB, estimated 59549 objects
2021/02/12 08:46:24| Target number of buckets: 2977
2021/02/12 08:46:24| Using 8192 Store buckets
2021/02/12 08:46:24| Max Mem  size: 262144 KB
2021/02/12 08:46:24| Max Swap size: 512000 KB
2021/02/12 08:46:24| ERROR: /var/spool/squid/03: (2) No such file or directory
2021/02/12 08:46:24| Not currently OK to rewrite swap log.
2021/02/12 08:46:24| storeDirWriteCleanLogs: Operation aborted.
2021/02/12 08:46:24| FATAL: 	Failed to verify one of the swap directories, Check cache.log
	for details.  Run 'squid -z' to create swap directories
	if needed, or if running Squid for the first time.
2021/02/12 08:46:24| Squid Cache (Version 4.13): Terminated abnormally.
CPU Usage: 0.035 seconds = 0.018 user + 0.018 sys
Maximum Resident Size: 122864 KB
Page faults with physical i/o: 2
2021/02/12 08:46:24| Removing PID file (/run/squid.pid)
2021/02/12 08:46:24 kid1| Making directories in /var/spool/squid/03

from docker-squid-proxy.

McBane87 avatar McBane87 commented on July 28, 2024

Aaaaand another bugfix -.-
206ed4b

from docker-squid-proxy.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.