Comments (17)
M4stakilla
I had same problem as you but solved.
- Download Cygwin installer from https://www.cygwin.com
- Install Cygwin(*1)
- Copy cygwin64\bin\cygcrypt-2.dll to c:\Squid\lib\squid\ and C:\Squid\bin
*1
I select all packages to install but it took very long time and I think it was not necessary.
Maybe only need to install is Libcrypt2(https://cygwin.com/packages/summary/libcrypt2.html)
from squid-windows.
Might need to pack it. I will take a look.
from squid-windows.
Thanks a lot for the lightning quick reply!! 👍
Anything I can do already to work around this?
from squid-windows.
Only build by yourself and manually copy the required dll in place.
from squid-windows.
I suppose you mean:
- Install Cygwin on Windows
- Compile Squid from source inside Cygwin?
?
Meaning that cygcrypt-2.dll is part of of Squid itself?
Just a crazy idea: Do you perhaps have this dll on your system? Would you mind uploading it somewhere?
from squid-windows.
cyg prefix makes me think it is part of cygwin.
from squid-windows.
good point :)
from squid-windows.
Ok I've just tried a couple things:
My work laptop (Windows 7) does have Cygwin64 installed, so I tried to find the dll on that, but it didn't exist their either. (only older versions)
I don't really know which exact cygwin package I need to install or update to get that exact version, so I tried to google for the dll. I didn't find the required info to build it myself, but I did find a download link for that file. Of course I don't trust a downloaded dll, so I've uploaded it first to virustotal.com to make sure it is clean.
After copying it into lib/squid I now no longer get the error that the dll is missing, but it still doesn't work:
2021/07/01 13:19:24| Starting new basicauthenticator helpers...
2021/07/01 13:19:24| helperOpenServers: Starting 1/5 'basic_ncsa_auth.exe' processes
2021/07/01 13:19:24| WARNING: no_suid: setuid(0): (22) Invalid argument
2021/07/01 13:19:24| WARNING: basicauthenticator #Hlpr6 exited
2021/07/01 13:19:24| Too few basicauthenticator processes are running (need 1/5)
2021/07/01 13:19:24| Starting new helpers
2021/07/01 13:19:24| helperOpenServers: Starting 1/5 'basic_ncsa_auth.exe' processes
2021/07/01 13:19:24| WARNING: no_suid: setuid(0): (22) Invalid argument
2021/07/01 13:19:24| WARNING: basicauthenticator #Hlpr7 exited
2021/07/01 13:19:24| Too few basicauthenticator processes are running (need 1/5)
2021/07/01 13:19:24| Starting new helpers
2021/07/01 13:19:24| helperOpenServers: Starting 1/5 'basic_ncsa_auth.exe' processes
2021/07/01 13:19:24| WARNING: no_suid: setuid(0): (22) Invalid argument
2021/07/01 13:19:25| WARNING: basicauthenticator #Hlpr8 exited
2021/07/01 13:19:25| Too few basicauthenticator processes are running (need 1/5)
2021/07/01 13:19:25| Starting new helpers
When executing basic_ncsa_auth.exe from a command prompt, I get a popup with application error 0xc000007b, which still seems to indicate a problem with dlls (not sure if the problem is still with the same dll or a different one though)
from squid-windows.
Just downloaded the latest cygwin64 and when I search for Squid as package it only has v3.3.3-1 or 3.3.3-2 as an option. No v4 at all? Also are all the dll that I require included in this squid package? Or do I need additional packages (like openssh or something)?
from squid-windows.
Thanks, in contrary to downloading the dll from the internet, your instructions did work flawlessly!
I now have a working password protected Squid installation...
from squid-windows.
Just fyi (not sure if this is an actual issue that needs to be solved):
I'm still getting below warning frequently in my log file:
2021/07/06 12:18:52| WARNING: no_suid: setuid(0): (22) Invalid argument
from squid-windows.
M4stakilla I had same problem as you but solved.
- Download Cygwin installer from https://www.cygwin.com
- Install Cygwin(*1)
- Copy cygwin64\bin\cygcrypt-2.dll to c:\Squid\lib\squid\ and C:\Squid\bin
*1 I select all packages to install but it took very long time and I think it was not necessary. Maybe only need to install is Libcrypt2(https://cygwin.com/packages/summary/libcrypt2.html)
I installed Cygwin but weird I can't find the cygcrypt-2.dll file. I installed all packages in the Cygwin, and libcrypt2 package is not listed in the installer too.
from squid-windows.
Same problem here, found issue by accident as I tried to run "basic_ncsa_auth.exe" manually. It was putting up a dailog/requester and complained about "cygcrypt-2.dll" not being present (such a requester would block any headless execution I guess? why is it not writing to console?).
- To prevent installing/downloading all the packages, select "All" root node first, then chose "Uninstall".
- Then use the search box at the top to search for "libcrypt2", select "Reinstall" in the checkbox and choose a version.
- After "Next / Next .." and a few seconds I had a file..
..\cygwin64_setup<chosen mirror url>\x86_64\release\libxcrypt\libcrypt2\libcrypt2-4.4.20-1.tar.xz - I entered this *.tar.xz file with Directory Opus' integrated archive handler and found the cygcrypt-2.dll in there:
libcrypt2-4.4.20-1.tar.xz\usr\bin\cygcrypt-2.dll - Put dll into "..\Squid\lib\squid.."
- basic_ncsa_auth.exe now runs, does not complain, process does not quit (I guess that's how it's meant to be).
Squid/the basic authentication is not working yet though.. (playing around with squid for the first time, looking for log file or something right now..).
from squid-windows.
Any updates on this issue? I am interested if there are any plans to include the cygcrypt-2.dll in the msi.
from squid-windows.
I have the same issue now.
from squid-windows.
I am facing the same issue as well on Windows.
Even after manually downloading dll, I still get the following:
2023/10/25 15:11:51.806| helperOpenServers: Starting 1/5 'basic_ncsa_auth.exe' processes
2023/10/25 15:11:51.806| WARNING: no_suid: setuid(0): (22) Invalid argument
2023/10/25 15:11:52| WARNING: basicauthenticator #Hlpr3 exited
from squid-windows.
Hello, after some researching, these are my findings:
1. Using default
this default auth config needs cygcrypt-2.dll, when i find a replacement from web and tried with it,
it gave me the same as second option
auth_param basic program "/cygdrive/c/Squid/lib/squid/basic_ncsa_auth.exe" "/cygdrive/c/Squid/etc/passwd"
2. Copying and using an older version squid's ncsa auth exe directly
WARNING: no_suid: setuid(): (22) Invalid argument cannot stat /cygdrive/c/Squid/etc/passwd
auth_param basic program "/cygdrive/c/Squid/lib/squid/ncsa_auth.exe" "/cygdrive/c/Squid/etc/passwd"
3. i wrote a bat file that checks simple texts
WARNING: no_suid: setuid(0): (22) Invalid argument
helperOpenServers: Starting 1/5 'auth.bat' processes
WARNING: no_suid: setuid(0): (22) Invalid argument
The process tried to write to a nonexistent pipe.
WARNING: basicauthenticator #Hlpr1560 exited
auth_param basic program "/cygdrive/c/Squid/auth.bat" "/cygdrive/c/Squid/etc/passwd"
is there a bug on squid at the authentication checking execution file calls? Is something missing or misconfigured when compiling squid for windows? From what i read about, message no_suid: setuid(0) is about a problem for calling an executable with 'elevated privileges' ( setuid - like needing a sudo user's id on linux) ???
Any help would be much appreciated!
Thank you.
Links to read:
from squid-windows.
Related Issues (20)
- Not work in win10 21H2
- Squid 4.14 for Windows runs into stackdumpfile HOT 13
- squid ignores default DNS servers HOT 4
- Squid 3.5.27 for windows - Squid close proxy port with errors
- Enable X-Forward-For HOT 1
- Thank you for the great product!
- How to Install Squid 3.5.28 | Squid 4.14 for Windows not working on Windows Server
- SSL Bumping may cause an Unreachable Network and/or certificate issues HOT 1
- Under Windows fail to setup cache dir HOT 2
- Download Squid for Windows 3.5.28? HOT 1
- THIS PROJECT IS DEAD AND IT DOESN'T WORK ON WINDOWS HOT 8
- Squid 4.14 and helpers use 100% of CPU HOT 4
- ssl_crtd.exe is missing from Windows installer? HOT 2
- Linux Lite Version (squid-openssl) Does Not Require Certificate For Client - Request, Can We have that on your builds for windows? HOT 1
- You have too many 'http_port' , The limit is 128 HTTP ports HOT 3
- Squid for Windows 4.14 not working on Windows Server 2019 HOT 10
- [Question] Possible to use network interface name instead of IP address?
- Install without Administrator rights
- Is it possible run squid-windows service on 'Network Service' Logon ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from squid-windows.