GithubHelp home page GithubHelp logo

Comments (7)

wiz21b avatar wiz21b commented on September 18, 2024 1

Forget about it, a cntlm proxy was already running (and took over the socket/port) :-(

from px.

genotrance avatar genotrance commented on September 18, 2024

I guess it could do with a nicer error message :)

from px.

genotrance avatar genotrance commented on September 18, 2024

I've improved the error message in v0.2.1. Thanks for your feedback.

from px.

domOrielton avatar domOrielton commented on September 18, 2024

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.

genotrance avatar genotrance commented on September 18, 2024

Can you please share the log or full stack trace? Will help identify where this is coming from.

from px.

domOrielton avatar domOrielton commented on September 18, 2024

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.

genotrance avatar genotrance commented on September 18, 2024

Looks like I was only printing the exception message and not a clean message - fixed this for real :)

from px.

Related Issues (20)

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.