Permission denied: getsockopt

Support for Windows users
Post Reply
RutenRudi
Posts: 7
Joined: 05 Sep 2024, 09:46

Permission denied: getsockopt

Post by RutenRudi »

Hi there,

just today I started to get this issue when I try to match a show. The error I get from a popup is "Network Connection Error: Permission denied: getsockopt"
My Groovy Pad output is like this:

Groovy: Select all

Network Connection Error: Permission denied: getsockopt
java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.net.ConnectException: Permission denied: getsockopt
	at net.filebot.util.ui.SwingUI$SwingLambda.done(Unknown Source)
Caused by: java.util.concurrent.ExecutionException: java.net.ConnectException: Permission denied: getsockopt
	at net.filebot.Parallelism.map(Unknown Source)
	at net.filebot.ui.rename.EpisodeListMatcher.matchVideoFiles(Unknown Source)
	at net.filebot.ui.rename.EpisodeListMatcher.match(Unknown Source)
	at net.filebot.ui.rename.RenamePanel$AutoCompleteAction.lambda$start$3(Unknown Source)
	at net.filebot.util.ui.SwingUI$SwingLambda.doInBackground(Unknown Source)
Caused by: java.net.ConnectException: Permission denied: getsockopt
	at net.filebot.web.WebRequest.doRequest(Unknown Source)
	at net.filebot.web.WebRequest.httpRequestV2(Unknown Source)
	at net.filebot.web.WebRequest.fetch(Unknown Source)
	at net.filebot.CachedResource.lambda$fetchIfNoneMatch$19(Unknown Source)
	at net.filebot.CachedResource.lambda$get$0(Unknown Source)
	at net.filebot.CachedResource.retry(Unknown Source)
	at net.filebot.CachedResource.retry(Unknown Source)
	at net.filebot.CachedResource.retry(Unknown Source)
	at net.filebot.CachedResource.lambda$get$1(Unknown Source)
	at net.filebot.Cache.computeIf(Unknown Source)
	at net.filebot.Cache$ConcurrentCache.lambda$computeIf$1(Unknown Source)
	at net.filebot.Cache$ConcurrentCache.withLock(Unknown Source)
	at net.filebot.Cache$ConcurrentCache.computeIf(Unknown Source)
	at net.filebot.CachedResource.get(Unknown Source)
	at net.filebot.web.TMDbCore.request(Unknown Source)
	at net.filebot.web.TMDbTVClient.search(Unknown Source)
	at net.filebot.web.TMDbTVClient.fetchSearchResult(Unknown Source)
	at net.filebot.WebServices$TMDbTVClient.fetchSearchResult(Unknown Source)
	at net.filebot.web.AbstractEpisodeListProvider.lambda$search$0(Unknown Source)
	at net.filebot.Cache.computeIf(Unknown Source)
	at net.filebot.Cache$TypedCache.computeIf(Unknown Source)
	at net.filebot.Cache.computeIfAbsent(Unknown Source)
	at net.filebot.Cache$TypedCache.computeIfAbsent(Unknown Source)
	at net.filebot.web.AbstractEpisodeListProvider.search(Unknown Source)
	at net.filebot.ui.rename.EpisodeListMatcher.lookupSeries(Unknown Source)
	at net.filebot.ui.rename.EpisodeListMatcher.fetchEpisodeSet(Unknown Source)
	at net.filebot.ui.rename.EpisodeListMatcher.matchEpisodeSet(Unknown Source)
	at net.filebot.ui.rename.EpisodeListMatcher.lambda$matchVideoFiles$7(Unknown Source)
	at net.filebot.Parallelism$Task.call(Unknown Source)
	at net.filebot.Parallelism$Task.call(Unknown Source)
Caused by: java.net.ConnectException: Permission denied: getsockopt
Caused by: java.net.SocketException: Permission denied: getsockopt
I read that this happens with VPNs, or altered Network settings. I don't use a VPN, and I didn't change my Network in any way since I last used Filebot (I actually didn't use my PC at all since the last time I used it).
On my unRAID I also have a Docker of Filebot running, so I quickly checked on there if it's a general issue with FileBot and/or my internet, but there I can use it and it works fine. So it's neither Filebot, nor my Internet connection in general.

I checked various presets, TVDb as well as TMDb, same results. If it matters, my format is

Code: Select all

{n.ascii().replace(':' : ' -').removeAll(/[!'?.]'+$/).replaceAll(/[`´‘’ʻ']/, "") } - {s00e00} - { localize.eng.t.ascii().replace(':' : ' -').removeAll(/[!'?.]'+$/).replaceAll(/[`´‘’ʻ']/, "") }
Now I don't know what to check for to move this forward :(
User avatar
rednoah
The Source
Posts: 24046
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Permission denied: getsockopt

Post by rednoah »

SocketException: Permission denied: getsockopt would suggest an OS level issue with networking. Could be an OS issue that affects some code but not other code. Could be the OS (or some OS level software, e.g. firewall) denying access to networking APIs. The most likely culprit is something that interferes with networking, VPN, proxy, firewall, anti-virus, etc.

Since this is a generic issue not specific to FileBot, a Google search for SocketException: Permission denied: getsockopt might give you a few things you could try. The java.net.preferIPv4Stack=true network setting might be worth a try as well.
:idea: Please read the FAQ and How to Request Help.
RutenRudi
Posts: 7
Joined: 05 Sep 2024, 09:46

Re: Permission denied: getsockopt

Post by RutenRudi »

Good Morning rednoah!

I was a bit tired when I set the post up and forgot some of the base info, like OS etc; my bad :(
First: I changed the network settings as you suggested and didn't change anything else, and it works flawless again!

Let me still push out some additional info that may or may not help people who land here from Google:
I am on Windows 11 Pro, no Firewall or AntiVirus aside of the stock Windows stuff (like Defender). No VPN as mentioned, no Proxy.
What I did do yesterday is to install Sunshine, to stream my computer to my TV (through Moonshine). As this application relies on the network, I can imagine it did adjust some settings for optimization w/o asking me first. But I can't know. Either way, forcing IPv4 works :)

Thanks again!
Post Reply