Seger 123 Posted June 20, 2020 Posted June 20, 2020 There was an error sending the test email. Please check your email settings and try again.Error: Could not load type of field 'MediaBrowser.Plugins.SmtpNotifications.Notifier+<SendNotification>d__11:<mail>5__2' (6) due to: Could not load file or assembly 'MimeKit, Version=2.8.0.0, Culture=neutral, PublicKeyToken=bede1c8a46c66814' or one of its dependencies Synology 4.4.3.0
Anthony Musgrove 220 Posted June 20, 2020 Posted June 20, 2020 29 minutes ago, Seger said: There was an error sending the test email. Please check your email settings and try again.Error: Could not load type of field 'MediaBrowser.Plugins.SmtpNotifications.Notifier+<SendNotification>d__11:<mail>5__2' (6) due to: Could not load file or assembly 'MimeKit, Version=2.8.0.0, Culture=neutral, PublicKeyToken=bede1c8a46c66814' or one of its dependencies Synology 4.4.3.0 That's very interesting, I'd need to debug on the device to find out what's missing. MimeKit has a few dependencies: .NETStandard 2.0 Portable.BouncyCastle (>= 1.8.5) System.Reflection.TypeExtensions (>= 4.4.0) System.Security.Cryptography.Cng (>= 4.4.0) System.Text.Encoding.CodePages (>= 4.4.0) I wonder what is missing from Synology that it needs.
Anthony Musgrove 220 Posted June 20, 2020 Posted June 20, 2020 (edited) Okay, in my test scenarios, I've checked the emby system directory which contains all the system-wide core dlls, and I have the following listed: System.Reflection.TypeExtensions.dll (version is 4.4.0+) so this is a tick for this dependency, System.Security.Cryptography.Cng.dll (version is 4.4.0+) so this is also a tick, System.Text.Encoding.CodePages.dll (version is 4.4.0+) so this is also a tick. (BouncyCastle.Crypto.dll is not present in my system directory, perhaps it hasn't needed it) Could you perhaps check these three files in your emby system directory and let me know if all of yours are i) present, and ii) version 4.4.0 or above? I'd like to figure this one out if we can. thank you! Edited June 20, 2020 by Anthony Musgrove
Seger 123 Posted June 20, 2020 Posted June 20, 2020 @Anthony Musgrove There is no file, now that you write it, I also remember that I think Luke once had to go back to mono in the current Synology version.
Ninko 78 Posted July 8, 2020 Author Posted July 8, 2020 Has there been any progress regarding this problem? Thanks
chudak 24 Posted September 6, 2020 Posted September 6, 2020 (edited) @Anthony Musgrove New case for your debugging effort Setup the email plugin on Ubuntu 20.04 LCX container, it does send emails on test but does not work in general from emby and throws errors, see below Pls let me know if I can try something or help you with testing, thx! 2020-09-06 08:20:54.705 Error HttpServer: Error processing request *** Error Report *** Version: 4.4.3.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Unix 5.4.34.1 64-Bit OS: True 64-Bit Process: True User Interactive: True Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll System.Environment.Version: 3.1.2 Processor count: 12 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object. at MediaBrowser.Plugins.SmtpNotifications.Notifier.<>c__DisplayClass8_0.<GetOptions>b__0(SMTPOptions i) at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found) at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate) at MediaBrowser.Plugins.SmtpNotifications.Notifier.GetOptions(User user) at MediaBrowser.Plugins.SmtpNotifications.Notifier.SendNotification(UserNotification request, CancellationToken cancellationToken) Source: MediaBrowser.Plugins.SmtpNotifications TargetSite: Boolean <GetOptions>b__0(MediaBrowser.Plugins.SmtpNotifications.Configuration.SMTPOptions) @Anthony Musgrove Anything I can do to make it work ? I have other emby server and see no problems at all with email ... Edited September 8, 2020 by chudak
chudak 24 Posted September 17, 2020 Posted September 17, 2020 I could not get attention to my question in another thread for awhile, so creating a new one with hopes that somebody can suggest a resolution ? Thx in advance ! Setup the email plugin on Ubuntu 20.04 LCX container, it does send emails on test but does not work in general from emby and throws errors, see below 2020-09-06 08:20:54.705 Error HttpServer: Error processing request *** Error Report *** Version: 4.4.3.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Unix 5.4.34.1 64-Bit OS: True 64-Bit Process: True User Interactive: True Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll System.Environment.Version: 3.1.2 Processor count: 12 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object. at MediaBrowser.Plugins.SmtpNotifications.Notifier.<>c__DisplayClass8_0.<GetOptions>b__0(SMTPOptions i) at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found) at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate) at MediaBrowser.Plugins.SmtpNotifications.Notifier.GetOptions(User user) at MediaBrowser.Plugins.SmtpNotifications.Notifier.SendNotification(UserNotification request, CancellationToken cancellationToken) Source: MediaBrowser.Plugins.SmtpNotifications TargetSite: Boolean <GetOptions>b__0(MediaBrowser.Plugins.SmtpNotifications.Configuration.SMTPOptions)
Luke 42077 Posted September 17, 2020 Posted September 17, 2020 Hi, what other thread are you referring to?
chudak 24 Posted September 17, 2020 Posted September 17, 2020 1 minute ago, Luke said: Hi, what other thread are you referring to?
Luke 42077 Posted September 17, 2020 Posted September 17, 2020 @chudak I've merged your posting into here so that we can keep relevant discussion in one place. Thanks.
chudak 24 Posted October 5, 2020 Posted October 5, 2020 @Luke @Anthony Musgrove Any help with that error ^ is appreciated !
chudak 24 Posted October 7, 2020 Posted October 7, 2020 I reinstalled a fresh emby and confirmed that email notifications work. However after restoring backup its when I get the same error again with email notifications. So it's a premier back up that messes it up ! @Luke
Luke 42077 Posted October 7, 2020 Posted October 7, 2020 Just now, chudak said: I reinstalled a fresh emby and confirmed that email notifications work. However after restoring backup its when I get the same error again with email notifications. So it's a premier back up that messes it up ! @Luke No, it's probably the email plugin configuration you had in your backup that was the issue.
chudak 24 Posted October 7, 2020 Posted October 7, 2020 15 minutes ago, Luke said: No, it's probably the email plugin configuration you had in your backup that was the issue. Hmm I probably can confirm this. @Luke Can you tell me how to remove all email related config files ?
Luke 42077 Posted October 7, 2020 Posted October 7, 2020 I'd have to check but I think there will be an xml file for it under the server's config folder.
chudak 24 Posted October 7, 2020 Posted October 7, 2020 2 minutes ago, Luke said: I'd have to check but I think there will be an xml file for it under the server's config folder. @Luke I removed the email plugin and deleted configurations/MediaBrowser.Plugins.SmtpNotifications.xml and after installing it back my from came up pre-filled, so there must be something else.
Luke 42077 Posted October 7, 2020 Posted October 7, 2020 make sure to do that with the server shut down.
chudak 24 Posted October 7, 2020 Posted October 7, 2020 1 minute ago, Luke said: make sure to do that with the server shut down. Yeah I got it and got an email from cleaned up, but then it still generates an error. Maybe I will try a fresh install again and restore a better backup very odd...
chudak 24 Posted October 7, 2020 Posted October 7, 2020 1 hour ago, Luke said: No, it's probably the email plugin configuration you had in your backup that was the issue. @Luke Well I let you draw conclusions: did a fresh emby install again and restored a backup from the system where email notifications work, and .... it does not work ! Is it backup or email notifications yo be the judge !
Luke 42077 Posted October 7, 2020 Posted October 7, 2020 9 minutes ago, chudak said: @Luke Well I let you draw conclusions: did a fresh emby install again and restored a backup from the system where email notifications work, and .... it does not work ! Is it backup or email notifications yo be the judge ! There's probably an issue in the config file that you're restoring.
chudak 24 Posted October 7, 2020 Posted October 7, 2020 Just now, Luke said: There's probably an issue in the config file that you're restoring. Must be, but... Fresh install - notifications work Restore good back up - notifications don't work Restore no-so-good back up - notifications don't work If this is in configuration file - which one? But can be backup problem AFAImC
Luke 42077 Posted October 7, 2020 Posted October 7, 2020 3 minutes ago, chudak said: Must be, but... Fresh install - notifications work Restore good back up - notifications don't work Restore no-so-good back up - notifications don't work If this is in configuration file - which one? But can be backup problem AFAImC The only information you're providing is work/don't work, so my response is based on that, which is purely speculation. If you can provide more specifics and details then I can probably give a better answer.
chudak 24 Posted October 7, 2020 Posted October 7, 2020 5 minutes ago, Luke said: The only information you're providing is work/don't work, so my response is based on that, which is purely speculation. If you can provide more specifics and details then I can probably give a better answer. The bug is 26 days old https://github.com/MediaBrowser/Emby/issues/3634
Luke 42077 Posted October 7, 2020 Posted October 7, 2020 1 minute ago, chudak said: The bug is 26 days old https://github.com/MediaBrowser/Emby/issues/3634 Right but talking to you right now you've mentioned the config files, so seeing the contents of them before/after certain changes would make this easier to evaluate.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now