socket exception: permission denied: connect

Any questions? Need some help?
Post Reply
yzfr6drw
Posts: 8
Joined: 30 Mar 2013, 13:55

socket exception: permission denied: connect

Post by yzfr6drw »

Hi, I had been running filebot for a few months without problems, I think in the past two weeks, I've been getting the following:

Jun 16, 2013 3:45:29 PM net.sourceforge.filebot.media.MediaDetection detectSeriesNames
WARNING: Failed to lookup info by id: Permission denied: connect
java.net.SocketException: Permission denied: connect
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at net.sourceforge.filebot.web.WebRequest.getReader(Unknown Source)
at net.sourceforge.filebot.web.WebRequest.getDocument(Unknown Source)
at net.sourceforge.filebot.web.WebRequest.getDocument(Unknown Source)
at net.sourceforge.filebot.web.TheTVDBClient.lookupByIMDbID(Unknown Source)
at net.sourceforge.filebot.media.MediaDetection.lookupSeriesNameByInfoFile(Unknown Source)
at net.sourceforge.filebot.media.MediaDetection.detectSeriesNames(Unknown Source)
at net.sourceforge.filebot.media.MediaDetection$detectSeriesNames.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at Script2.detectSeriesName(Script2.groovy:219)
at Script2.detectSeriesName(Script2.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1085)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:952)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:909)
at groovy.lang.Closure.call(Closure.java:411)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.callGlobal(GroovyScriptEngineImpl.java:411)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.access$000(GroovyScriptEngineImpl.java:90)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl$2.invokeMethod(GroovyScriptEngineImpl.java:332)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl$2.invokeMethod(GroovyScriptEngineImpl.java:321)
at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44)
at groovy.lang.Script.invokeMethod(Script.java:78)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:407)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:346)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:909)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at Script3$_run_closure29.doCall(Script3.groovy:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:909)
at groovy.lang.Closure.call(Closure.java:411)
at groovy.lang.Closure.call(Closure.java:427)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.groupBy(DefaultGroovyMethods.java:3534)
at org.codehaus.groovy.runtime.dgm$267.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at Script3.run(Script3.groovy:116)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:346)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:146)
at javax.script.AbstractScriptEngine.eval(Unknown Source)
at net.sourceforge.filebot.cli.ScriptShell.evaluate(Unknown Source)
at net.sourceforge.filebot.cli.ScriptShell.runScript(Unknown Source)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
at net.sourceforge.filebot.Main.main(Unknown Source)
Caused by: java.net.SocketException: Permission denied: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
at java.net.URLConnection.getContentType(Unknown Source)
... 61 more

Jun 16, 2013 3:45:31 PM net.sourceforge.filebot.media.MediaDetection detectMovie
WARNING: OpenSubtitles: A network error occurred.
SocketException: Permission denied: connect
java.net.SocketException: Permission denied: connect
at net.sourceforge.filebot.web.WebRequest.fetch(Unknown Source)
at net.sourceforge.filebot.web.WebRequest.fetchIfModified(Unknown Source)
at net.sourceforge.filebot.web.CachedResource.fetchData(Unknown Source)
at net.sourceforge.filebot.web.TMDbClient$1.fetchData(Unknown Source)
at net.sourceforge.filebot.web.CachedResource.get(Unknown Source)
at net.sourceforge.filebot.web.TMDbClient.request(Unknown Source)
at net.sourceforge.filebot.web.TMDbClient.getMovieInfo(Unknown Source)
at net.sourceforge.filebot.web.TMDbClient.getMovieDescriptor(Unknown Source)
at net.sourceforge.filebot.media.MediaDetection.detectMovie(Unknown Source)
at net.sourceforge.filebot.media.MediaDetection$detectMovie.call(Unknown Source)
at Script2.detectMovie(Script2.groovy:224)
at Script2.detectMovie(Script2.groovy)
at Script3$_run_closure29.doCall(Script3.groovy:131)
at Script3.run(Script3.groovy:116)
at net.sourceforge.filebot.cli.ScriptShell.evaluate(Unknown Source)
at net.sourceforge.filebot.cli.ScriptShell.runScript(Unknown Source)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (°_°)
Launch4j: Failed to run the given command.

There are no more files.
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: socket exception: permission denied: connect

Post by rednoah »

Check your firewall/proxy/etc settings and Java settings. Whatever might block it from opening up network connections.

Sometimes forcing IPv4 can fix wierd network issues:

Code: Select all

-Djava.net.preferIPv4Stack=true
:idea: Please read the FAQ and How to Request Help.
yzfr6drw
Posts: 8
Joined: 30 Mar 2013, 13:55

Re: socket exception: permission denied: connect

Post by yzfr6drw »

I figured it out. Thank you rednoah. It was my VPN that somehow isn't letting it through.
yzfr6drw
Posts: 8
Joined: 30 Mar 2013, 13:55

Re: socket exception: permission denied: connect

Post by yzfr6drw »

Hi Rednoah, I understand this is not filebot's problem, but would you mind shedding some insights into how filebot access the internet? All programs are accessing the internet fine, utorrent, IE, etc. It just seems that filebot is not. It works fine if I exit the Private Internet Access client program.

Does it access the internet through a different port? different protocol?

Thanks.
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: socket exception: permission denied: connect

Post by rednoah »

Not doing anything special. Except Java programs might do networking a bit different from other Windows programs.

Did you try the IPv4 switch? Maybe Java is already running things through the IPv6 interface, while Windows programs still stick to IPv4.
:idea: Please read the FAQ and How to Request Help.
yzfr6drw
Posts: 8
Joined: 30 Mar 2013, 13:55

Re: socket exception: permission denied: connect

Post by yzfr6drw »

HI, I am not sure how to insert that. This is what my utorrent is automatically executing:

filebot -script fn:amc --output "z:" --action copy --conflict override -non-strict --def plex=10.0.0.100 music=y subtitles=en artwork=y "ut_dir=C:\Users\aazan\Downloads\The Purge (2013) DVDRIP HD XVID - LIOV" "ut_file=read.txt" "ut_kind=multi" "ut_title=The Purge (2013) DVDRIP HD XVID - LIOV" "ut_label=" "ut_state=5" >> "C:\Users\aazan\Downloads\filebot.log" 2>&1
yzfr6drw
Posts: 8
Joined: 30 Mar 2013, 13:55

Re: socket exception: permission denied: connect

Post by yzfr6drw »

never mind. I put it in the ini file and it's working. Thanks.
Post Reply