Jump to content

Adic7ed plugin crashing all the time


vanshyr

Recommended Posts

vanshyr

Hello community!

Recently i changed my setup to some more complex setup, I installed a FreeBSD box with emby inside a jail, everything works. The other day i installed the adic7ed pluging for the subtitles among with the rest of subtitles plugins.
All the subtitles puglins works well except the addic7ed one which is crashing all the time throwing we exceptions.

The FreeBSD box is quite well restricted allowing just 8096 and 8920 connections to emby box from outside redirected to SSL with a letsencryopt certificate.
Traffic from inside to ouside is granted on emby jail at ports 80,443,53,8096,8920 and basically if emby resquested something from inside to outside the way back from outside to inside is allowed.

Traffic from outside to 80 and 443 is redirected to another jail where there is a web server non related to emby, so if a connection tries to contact emby server in those ports and emby server has not inittiated it, the connexion will fail.

The emby data directory is used by other applications so there is ACLv4 setup there and emby have full access to write and read on that directory.

To me it looks is just a connection problem but in the logs is not clear to me exactly why, so maybe someone can bring light to it? Does anyone have tips about jail environments on "do not forget to define this options in your jail?"

As i say, playing videos, metadata search and everything works fine except for that plugin.

I attach the stack trace from when the addic7ed exception occurs.

Thanks in advance!
 

addic7ed_exception.txt

Edited by vanshyr
  • Like 1
Link to comment
Share on other sites

Q-Droid

Have you checked to see if you can still reach the addic7ed site thru a browser from the same machine or network? I ask because shortly after I installed the plug-in in Emby it started to fail and I can no longer get to the site on port 80, like they've blocked me or something. I can reach them with VPN, cell and even port 81 but not port 80. And as far as I can tell they don't support HTTPS.

Link to comment
Share on other sites

vanshyr

Have you checked to see if you can still reach the addic7ed site thru a browser from the same machine or network? I ask because shortly after I installed the plug-in in Emby it started to fail and I can no longer get to the site on port 80, like they've blocked me or something. I can reach them with VPN, cell and even port 81 but not port 80. And as far as I can tell they don't support HTTPS.

 Hi Q-Droid, tahnsk for your reply, I do not have a browser installed in that server but as far as i can see the machine can connect to the site in both ports 80 and 443 when i telnet them:

 

# telnet www.addic7ed.com 80
Trying 46.105.102.174...
Connected to www.addic7ed.com.
Escape character is '^]'.
~
HTTP/1.1 400 Bad Request
Server: nginx
Date: Sat, 30 Mar 2019 12:52:34 GMT
Content-Type: text/html
Content-Length: 166
Connection: close

<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx</center>
</body>
</html>
Connection closed by foreign host.

 

# telnet www.addic7ed.com 443
Trying 46.105.102.174...
Connected to www.addic7ed.com.
Escape character is '^]'.
^C
~
Connection closed by foreign host.

I do not know what you mean with they do not supoort https, if you access the site from a browser to http they redirect you to https and as far as I know the plugin just support the option of user name and password which is setup already. So i do not know the internals of the plugin

Link to comment
Share on other sites

The plugin isn't crashing, rather the connection is timing out for some reason. Something could be blocking the emby server process from accessing that domain.

Link to comment
Share on other sites

Q-Droid

I do not know what you mean with they do not supoort https, if you access the site from a browser to http they redirect you to https and as far as I know the plugin just support the option of user name and password which is setup already. So i do not know the internals of the plugin

 

You know what? You're right about https. What appears to be broken, at least for me, is their redirect if they have one.

 

From my end http://www.addic7ed.com times out, same from port 80 telnet. But https://www.addic7ed.com works from both browser and port 443 telnet. It looks like the plugin is using http (80). And while the names www.addic7ed.com and addic7ed.com resolve to the same addr only www works me.

 

@@Luke, is there a way to change this to https if you can test with the same results?

  • Like 1
Link to comment
Share on other sites

Q-Droid

Following up on this, would it be possible to change the Addic7ed plug-in to use https instead of http for the connection to download subs?

Link to comment
Share on other sites

addic7ed just upgraded their site with https but also added reCAPTCHA to the login page. This means the plugin can not login in.


The dev for the page said they are working on an API very soon.


Link to comment
Share on other sites

Q-Droid

That makes sense, thanks for the update. I guess I'll wait until the API based plug-in is available.

Link to comment
Share on other sites

vanshyr

Thanks, got crazy analyzing the fw again and again :P, same conclusion here after following manually the same steps the plugin does. You can see at the top left of the side is written in small letters "Bad captcha" when visiting https://www.addic7ed.com/dologin.php

But the weird thing is that if you go to the page and try to log in... -> https://www.addic7ed.com/login.php it does not ask me for a captcha

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

I don't recall but it shouldn't matter because if you read the above it's due to changes on acid7ed's side.

Link to comment
Share on other sites

  • 2 weeks later...
Baenwort

I don't recall but it shouldn't matter because if you read the above it's due to changes on acid7ed's side.

 

Is there a way to be notified that it is working so that I can know when it is safe to re-enable the Addic7ed plugin so that my logs aren't filled with:

2019-05-10 00:01:00.490 Error HttpClient: Error RequestCanceled getting response from 
	*** Error Report ***
	Version: 4.2.0.4
	Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd11_{version}_amd64.txz -noautorunwebapp
	Operating system: Unix 11.2.0.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 5.10.1.57 (5.10.1.57 Sun Dec 23 02:16:34 UTC 2018)
	Runtime: file:///usr/local/lib/mono/4.5/mscorlib.dll
	Processor count: 4
	Program data path: /var/db/emby-server
	Application directory: /usr/local/lib/emby-server/system
	System.Net.WebException: System.Net.WebException: Aborted.
	  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00058] in <b3922b7d60404fa9ae645f1fb97f5b6b>:0 
	  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x0000f] in <0e06830de9a44394a7e366951eabca52>:0 
	Source: System
	TargetSite: System.Net.WebResponse EndGetResponse(System.IAsyncResult)
	
2019-05-10 00:01:00.491 Error SubtitleManager: Error downloading subtitles from Addic7ed
	*** Error Report ***
	Version: 4.2.0.4
	Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd11_{version}_amd64.txz -noautorunwebapp
	Operating system: Unix 11.2.0.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 5.10.1.57 (5.10.1.57 Sun Dec 23 02:16:34 UTC 2018)
	Runtime: file:///usr/local/lib/mono/4.5/mscorlib.dll
	Processor count: 4
	Program data path: /var/db/emby-server
	Application directory: /usr/local/lib/emby-server/system
	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Aborted. ---> System.Net.WebException: Aborted.
	  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00058] in <b3922b7d60404fa9ae645f1fb97f5b6b>:0 
	  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x0000f] in <0e06830de9a44394a7e366951eabca52>:0 
	   --- End of inner exception stack trace ---
	  at Emby.Server.Implementations.HttpClientManager.HttpClientManager+<SendAsyncInternal>d__19.MoveNext () [0x00693] in <eeaf4c65f9004d75b79f5eea6df10654>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 
	  at Emby.Server.Implementations.HttpClientManager.HttpClientManager+<SendAsync>d__16.MoveNext () [0x0009e] in <eeaf4c65f9004d75b79f5eea6df10654>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 
	  at Addic7ed.Addic7edDownloader+<Login>d__23.MoveNext () [0x001be] in <b207fa6c19e048ff9824653df1f1c792>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 
	  at Addic7ed.Addic7edDownloader+<Search>d__34.MoveNext () [0x00084] in <b207fa6c19e048ff9824653df1f1c792>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 
	  at MediaBrowser.Providers.Subtitles.SubtitleManager+<SearchSubtitles>d__15.MoveNext () [0x001cc] in <f0436e65e798448dbc52bf5a5900dcea>:0 
	Source: mscorlib
	TargetSite: Void Throw()
	InnerException: System.Net.WebException: Aborted.
	Source: System
	TargetSite: System.Net.WebResponse EndGetResponse(System.IAsyncResult)
	  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00058] in <b3922b7d60404fa9ae645f1fb97f5b6b>:0 
	  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x0000f] in <0e06830de9a44394a7e366951eabca52>:0  

and the download subtitle task actually finishes?  There doesn't seem to be a way short of periodically checking the plug-in and hoping I don't lose the sticky note with the version number that didn't work.

Link to comment
Share on other sites

Well you'll receive an updated version of the plugin once it is updated.

Link to comment
Share on other sites

  • 2 months later...
Ixnay7

Hi guys,

 

I'm new to Emby, just purchased a monthly account to test all the features.

I configured my server one month ago and noticed that the subs from addic7ed didn't seem to be downloaded.

What I understand in this topic is that it doesn't work since Addic7ed implemented ReCaptcha 

 

Do you have any news on an API from their side ?

I have found this one published 3 months ago : https://www.npmjs.com/package/addic7ed-api

But I don't think it is official and if it can be used here...

 

Btw I come from Plex, I switched because I had lots of trouble playing my files with subtitles on my chromecast, especially.

It seems to work way better with Emby ! :)

Anyway I've seen that the Subzero plugin for plex has added the option to use an anti-captcha service to bybass the issue on Addic7ed. I didn't test it but it might be a workaround, even though the API from Addi7ed would be the best option here.

Hope they can deliver soon since it's really the best sub source for FR subs.

Link to comment
Share on other sites

Addi7ed is working on an api but it is not ready yet. We are following it closely and will implement it once available.

 

Have you tried our open subtitles support? I would check that out in the meantime.

Link to comment
Share on other sites

Ixnay7

Yes Open subtitles addon is working great.

I was just under the impression that Addic7ed had more choice for FR subs for TV shows but I'll go with opensubtitles in the meantime.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...