Comments (7)
Forget about it, a cntlm proxy was already running (and took over the socket/port) :-(
from px.
I guess it could do with a nicer error message :)
from px.
I've improved the error message in v0.2.1. Thanks for your feedback.
from px.
Not sure if it is something incorrect I have done but I'm still getting the following error in debug-MainProcess.log when px is trying to use a port that is already in use (port was still set to the standard 3128).
[WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions
I ran netstat -ban and could see the port was being used by spoolsv
[spoolsv.exe] TCP 10.171.42.80:3128 10.171.30.40:59606 ESTABLISHED
Changed the port in px.ini and everything worked again just fine - only mentioning this in case the improved error message you mentioned has been lost in some other change.
Thanks for a very useful program :)
from px.
Can you please share the log or full stack trace? Will help identify where this is coming from.
from px.
It doesn't seem to give much of a clue in the log - it creates a debug-MainProcess.log file with the following contents (spoolsv.exe was no longer using the port so I fired up CNTLM to intentionally use port 3128)
MainProcess: MainThread: 1529330679: attach_console: Attaching to console 13684
MainProcess: MainThread: 1529330679: parse_proxy: [('proxy.something.com', 80)]
Serving at 127.0.0.1:3128 proc MainProcess
MainProcess: MainThread: 1529330679: parse_config: proxy:server = proxy.something.com:80
MainProcess: MainThread: 1529330679: parse_config: proxy:port = 3128
MainProcess: MainThread: 1529330679: parse_config: proxy:listen = 127.0.0.1
MainProcess: MainThread: 1529330679: parse_config: proxy:allow = *.*.*.*
MainProcess: MainThread: 1529330679: parse_config: proxy:gateway = 0
MainProcess: MainThread: 1529330679: parse_config: proxy:hostonly = 0
MainProcess: MainThread: 1529330679: parse_config: proxy:noproxy = 127.0.0.*, 10.*.*.*, 192.168.*.*
MainProcess: MainThread: 1529330679: parse_config: proxy:useragent =
MainProcess: MainThread: 1529330679: parse_config: settings:workers = 2
MainProcess: MainThread: 1529330680: parse_config: settings:threads = 5
MainProcess: MainThread: 1529330680: parse_config: settings:idle = 30
MainProcess: MainThread: 1529330680: parse_config: settings:socktimeout = 5.0
MainProcess: MainThread: 1529330680: parse_config: settings:proxyreload = 60
MainProcess: MainThread: 1529330680: parse_config: settings:foreground = 0
MainProcess: MainThread: 1529330680: parse_config: settings:log = 1
MainProcess: MainThread: 1529330680: detach_console: Freed console successfully
[WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions
I can't see a version in the log or in the px.exe properties but I'm using the the latest Windows binary from https://github.com/genotrance/px/releases on a Windows 10 PC (build 1607).
If I can provide anything else just let me know
from px.
Looks like I was only printing the exception message and not a clean message - fixed this for real :)
from px.
Related Issues (20)
- import problem on macos pip install HOT 1
- Px Proxy Issue on Windows HOT 3
- "PROXY" prefix in web.pac HOT 2
- get_destination for local server not using direct connection since 0.8.0 HOT 8
- `_quickjs.JSException: InternalError: Python call failed.` with PAC file HOT 1
- Exit automatically if log = 0 HOT 4
- PAC file encoding HOT 11
- IPv6 connect support HOT 2
- have an option to launch in the background HOT 1
- px status command HOT 3
- Px related issues when other applocations make localhost request HOT 2
- hostonly and WSL2 HOT 7
- `curl: (56) Proxy CONNECT aborted` error with px 0.8 when using curl.exe HOT 7
- 'Requires libcurl' when using 'tools.py --libcurl' HOT 1
- Installing fails with: Invalid numerical argument /Werror=incompatible-pointer-types. HOT 1
- px.exe 18 security vendors and no sandboxes flagged this file as malicious HOT 25
- Support for macOS Ventura 13.4? HOT 4
- Spaces in PAC proxy list cause blank proxies to be added HOT 2
- Is there a way to restart the proxy (Windows)? HOT 7
- Windows Defender "Threat Found" display HOT 4
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 px.