Jump to content


Photo

Asynchronous socket Issue


  • Please log in to reply
14 replies to this topic

#1 Erv OFFLINE  

Erv

    Newbie

  • Members
  • 8 posts
  • Local time: 11:26 PM

Posted 21 May 2019 - 01:07 PM

Hello,

 

I keep getting these Asynchronous Socket Errors, it wont let me use the identify feature, use to not apply my premiere key (kept saying invalid key) but somehow I got past that just recently. I have attached the logs

 

Here is the error I keep seeing -

InnerException: System.InvalidOperationException: An asynchronous socket operation is already in progress using this SocketAsyncEventArgs instance.

Edited by Erv, 04 June 2019 - 10:19 PM.


#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 128649 posts
  • Local time: 11:26 PM

Posted 21 May 2019 - 01:09 PM

Hi there, you could try rebooting your machine. Beyond that I would check your network configuration. Something is probably blocking the outgoing traffic.



#3 Erv OFFLINE  

Erv

    Newbie

  • Members
  • 8 posts
  • Local time: 11:26 PM

Posted 21 May 2019 - 01:28 PM

Yeah have rebooted it, and I thought the same thing about something being blocked. But the thing is, when I restart the emby service, I can identify and things work as intended, but at some point within about 30 mins it will just stop working, and will throw those errors.


Edited by Erv, 21 May 2019 - 01:28 PM.


#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 128649 posts
  • Local time: 11:26 PM

Posted 21 May 2019 - 02:16 PM

I see you setup a windows service. Try not running that way and see how it compares. thanks.



#5 Erv OFFLINE  

Erv

    Newbie

  • Members
  • 8 posts
  • Local time: 11:26 PM

Posted 21 May 2019 - 08:06 PM

I'm sorry I used the wrong word, this is on Linux. I mean when I restart the emby server through a Linux command.

#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 128649 posts
  • Local time: 11:26 PM

Posted 22 May 2019 - 02:59 PM

I'm sorry I used the wrong word, this is on Linux. I mean when I restart the emby server through a Linux command.

Sorry, ignore that, i must have been looking at the wrong user log.



#7 Erv OFFLINE  

Erv

    Newbie

  • Members
  • 8 posts
  • Local time: 11:26 PM

Posted 23 May 2019 - 07:36 PM

So what do you think then? I have contacted my server host support and this is the reply they gave me.

 

Hello,

We've been looking into this, and it's looking like it might be an Emby bug. HTTP connections in general aren't being blocked on the server (and it doesn't appear to be affecting everyone's Emby instance that has a server with us). You mgiht need to raise the logs with them and see what they make of it.



#8 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 128649 posts
  • Local time: 11:26 PM

Posted 23 May 2019 - 11:55 PM

I think this is an issue in the .NET core runtime. I found a couple tickets related to it:

 

https://github.com/d...fx/issues/32971

https://github.com/d...fx/issues/33094

 

It looks like the fix will be in .NET Core 3.0, although that won't release until later this year. If we can find what causes it in the first place, maybe we can come up with a workaround.



#9 Erv OFFLINE  

Erv

    Newbie

  • Members
  • 8 posts
  • Local time: 11:26 PM

Posted 31 May 2019 - 06:15 PM

So I have been playing with this issue for a bit, and it seems like I am getting something similar to the audiodb error you guys disabled in linux.

I keep getting these -

System.Net.Sockets.SocketException: System.Net.Sockets.SocketException (98): Address already in use

And I think they might be related and/or causing my issue. It takes a little bit for my issue to happen, almost like these errors are just filling up and causing my identify or downloading of meta data to fail out. I turned on debug logging. censored IP/Hostname, attached.

Attached Files


Edited by Erv, 31 May 2019 - 06:16 PM.


#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 128649 posts
  • Local time: 11:26 PM

Posted 31 May 2019 - 06:31 PM

So I have been playing with this issue for a bit, and it seems like I am getting something similar to the audiodb error you guys disabled in linux.

I keep getting these -

System.Net.Sockets.SocketException: System.Net.Sockets.SocketException (98): Address already in use

And I think they might be related and/or causing my issue. It takes a little bit for my issue to happen, almost like these errors are just filling up and causing my identify or downloading of meta data to fail out. I turned on debug logging. censored IP/Hostname, attached.

 

@Erv, did you read my previous post? The explanation is there. But if you want to try the beta server, we added a workaround.  Keep in mind this has nothing to do with downloading of metadata or the identify feature. This is related to the Dlna feature, and only that.

 

Thanks.



#11 Erv OFFLINE  

Erv

    Newbie

  • Members
  • 8 posts
  • Local time: 11:26 PM

Posted 02 June 2019 - 12:51 PM

Hello,

 

I did read your previous post, it just seems that no one else is really complaining about this. I have installed the beta, what is the workaround because its still happening to me. Also, I had uninstalled the DLNA plugin but it still persisted after a reboot, on beta or general release. I get it has nothing to do with the downloading of metadata/identify, its just the most used feature on my end and I can find when it starts happening by using that.



#12 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 128649 posts
  • Local time: 11:26 PM

Posted 02 June 2019 - 01:08 PM

Hello,

 

I did read your previous post, it just seems that no one else is really complaining about this. I have installed the beta, what is the workaround because its still happening to me. Also, I had uninstalled the DLNA plugin but it still persisted after a reboot, on beta or general release. I get it has nothing to do with the downloading of metadata/identify, its just the most used feature on my end and I can find when it starts happening by using that.

 

Please attach the emby server log. thanks.



#13 Erv OFFLINE  

Erv

    Newbie

  • Members
  • 8 posts
  • Local time: 11:26 PM

Posted 04 June 2019 - 10:14 PM

Hey Luke,

 

Sorry for the delay, the log is attached with IP/Hostname/URL Censored like so "***CENSORED IP***"

This log was not in debug mode.

 

Thanks!

Attached Files



#14 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 128649 posts
  • Local time: 11:26 PM

Posted 04 June 2019 - 10:26 PM

Unfortunately that is a different issue in the netcore runtime, although luckily it's only affecting a few people. I'll look around and see if there's any workaround we might be able to try.


  • Erv likes this

#15 Erv OFFLINE  

Erv

    Newbie

  • Members
  • 8 posts
  • Local time: 11:26 PM

Posted 05 June 2019 - 05:50 PM

Awesome that sounds a bit more promising :) thanks!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users