Comments (29)
I’ll be fixing this in the next few days. Apologies I’ve been on vacation
from ombi.
Just create the bin\debug\net6.0 folder and copy in the templates folder and it works!
from ombi.
Ok, it was the colors throwing me off. Apologies.
What’s in your log file?
from ombi.
I just stumbled into the same thing running Ombi in Docker.
fail: Ombi.Notifications.GenericEmailProvider[0]
Exception when attempting to send an email
System.IO.DirectoryNotFoundException: Could not find a part of the path '/app/ombi/bin/Debug/net6.0/Templates/BasicTemplate.html'.
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at Ombi.Notifications.Templates.EmailBasicTemplate.LoadTemplate(String subject, String body, String imgsrc, String logo, String url) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs:line 36
at Ombi.Notifications.GenericEmailProvider.SendAdHoc(NotificationMessage model, EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/GenericEmailProvider.cs:line 40
warn: Ombi.Controllers.V1.External.TesterController[0]
Exception when testing Email Notifications
System.IO.DirectoryNotFoundException: Could not find a part of the path '/app/ombi/bin/Debug/net6.0/Templates/BasicTemplate.html'.
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at Ombi.Notifications.Templates.EmailBasicTemplate.LoadTemplate(String subject, String body, String imgsrc, String logo, String url) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs:line 36
at Ombi.Notifications.GenericEmailProvider.SendAdHoc(NotificationMessage model, EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/GenericEmailProvider.cs:line 40
at Ombi.Controllers.V1.External.TesterController.Email(EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi/Controllers/V1/External/TesterController.cs:line 300
It appears to be looking for /app/ombi/bin/Debug/net6.0/Templates/BasicTemplate.html'
but the file is in /app/ombi/Templates/BasicTemplate.html'
Obligatory server version/info:
from ombi.
i downgraded back to stable/release and mail started to work again.
from ombi.
yep that's the one. i didn't remember it offhand and didn't want to make up a number on the spot.
from ombi.
Did the same. I could go through the process of hacking this to make it work, but that's not the right way to go about things. I'll just wait to continue testing.
from ombi.
Just create the bin\debug\net6.0 folder and copy in the templates folder and it works!
That's nice to know!
I'll still wait until an update properly resolves it though.
Shouldn't be too hard or complicated to include the missing folder in the package, or have the script create the folder if missing.
Any manual intervention is appreciated, but not a real final solution.
(Unless there's technical reason why it can't be done, and in which it should be documented in the Wiki!)
Thanks for the workaround though!
For now I stick to v4.43.5
from ombi.
Just create the bin\debug\net6.0 folder and copy in the templates folder and it works!
This workaround fixes the email issue on my 4.43.14 (docker)
Altering the container is meh meh but I hope that the next build will include a fix.
from ombi.
Correction, after looking into it more, it should finally be fixed in 4.43.16.
Sorry bout that lol.
from ombi.
There’s no way you are using the latest develop version with that screenshot. That’s a really old version
from ombi.
There’s no way you are using the latest develop version with that screenshot. That’s a really old version
Literally updated tonight before I made this and Ombi specifically says so
from ombi.
There’s no way you are using the latest develop version with that screenshot. That’s a really old version
Let me know if you need anything else:
from ombi.
Just re-downloaded the latest from: https://github.com/Ombi-app/Ombi/releases/tag/v4.43.14
Extracted the contents to my Ombi folder overwriting whatever was there, version still reports 4.43.14 and the test page looks identical.
Problem continues.
from ombi.
Removed my Custom CSS and the test page looks the same except for the colors?
Not sure why you say this version is clearly old? What is missing? Ombi is reporting latest dev.
from ombi.
Ok, it was the colors throwing me off. Apologies.
What’s in your log file?
@tidusjar I had provided the log output when hitting the test email function, but here below is the output for trying to send a mass email:
2024-03-06 15:10:00.015 -05:00 [ERR] An error occurred using the connection to database 'Ombi' on server '127.0.0.1'.
2024-03-06 18:30:03.847 -05:00 [ERR] Failed to notify for notification: {"NotificationName":"EmailNotification","$type":"EmailNotification"}
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Ombi\bin\Debug\net6.0\Templates\BasicTemplate.html'.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at Ombi.Notifications.Templates.EmailBasicTemplate.LoadTemplate(String subject, String body, String imgsrc, String logo, String url) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs:line 36
at Ombi.Notifications.Agents.EmailNotification.LoadTemplate(NotificationType type, NotificationOptions model, EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/Agents/EmailNotification.cs:line 67
at Ombi.Notifications.Agents.EmailNotification.PartiallyAvailable(NotificationOptions model, EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/Agents/EmailNotification.cs:line 207
at Ombi.Notifications.BaseNotification`1.NotifyAsync(NotificationOptions model, Settings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/BaseNotification.cs:line 122
at Ombi.Notifications.BaseNotification`1.NotifyAsync(NotificationOptions model) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/BaseNotification.cs:line 62
at Ombi.Notifications.NotificationService.NotifyAsync(INotification notification, NotificationOptions model) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/NotificationService.cs:line 49
2024-03-06 19:00:07.785 -05:00 [ERR] Failed to notify for notification: {"NotificationName":"EmailNotification","$type":"EmailNotification"}
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Ombi\bin\Debug\net6.0\Templates\BasicTemplate.html'.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at Ombi.Notifications.Templates.EmailBasicTemplate.LoadTemplate(String subject, String body, String imgsrc, String logo, String url) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs:line 36
at Ombi.Notifications.Agents.EmailNotification.LoadTemplate(NotificationType type, NotificationOptions model, EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/Agents/EmailNotification.cs:line 67
at Ombi.Notifications.Agents.EmailNotification.PartiallyAvailable(NotificationOptions model, EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/Agents/EmailNotification.cs:line 207
at Ombi.Notifications.BaseNotification`1.NotifyAsync(NotificationOptions model, Settings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/BaseNotification.cs:line 122
at Ombi.Notifications.BaseNotification`1.NotifyAsync(NotificationOptions model) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/BaseNotification.cs:line 62
at Ombi.Notifications.NotificationService.NotifyAsync(INotification notification, NotificationOptions model) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/NotificationService.cs:line 49
2024-03-06 21:45:34.212 -05:00 [ERR] Exception when attempting to send an email
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Ombi\bin\Debug\net6.0\Templates\BasicTemplate.html'.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at Ombi.Notifications.Templates.EmailBasicTemplate.LoadTemplate(String subject, String body, String imgsrc, String logo, String url) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs:line 36
at Ombi.Notifications.GenericEmailProvider.SendAdHoc(NotificationMessage model, EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/GenericEmailProvider.cs:line 40
2024-03-06 21:45:34.218 -05:00 [ERR] Something bad happened, ErrorMiddleware caught this
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Ombi\bin\Debug\net6.0\Templates\BasicTemplate.html'.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at Ombi.Notifications.Templates.EmailBasicTemplate.LoadTemplate(String subject, String body, String imgsrc, String logo, String url) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs:line 36
at Ombi.Notifications.GenericEmailProvider.SendAdHoc(NotificationMessage model, EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/GenericEmailProvider.cs:line 40
at Ombi.Core.Senders.MassEmailSender.SendMassEmail(MassEmailModel model) in /home/runner/work/Ombi/Ombi/src/Ombi.Core/Senders/MassEmailSender.cs:line 78
at Ombi.Controllers.V1.NotificationsController.SendMassEmail(MassEmailModel model) in /home/runner/work/Ombi/Ombi/src/Ombi/Controllers/V1/NotificationsController.cs:line 52
at lambda_method18927(Closure , Object )
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Ombi.ApiKeyMiddlewear.Invoke(HttpContext context) in /home/runner/work/Ombi/Ombi/src/Ombi/Middleware/ApiKeyMiddlewear.cs:line 58
at Ombi.ErrorHandlingMiddleware.Invoke(HttpContext context) in /home/runner/work/Ombi/Ombi/src/Ombi/Middleware/ErrorHandlingMiddlewear.cs:line 30
2024-03-06 21:48:01.964 -05:00 [ERR] Exception when attempting to send an email
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Ombi\bin\Debug\net6.0\Templates\BasicTemplate.html'.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at Ombi.Notifications.Templates.EmailBasicTemplate.LoadTemplate(String subject, String body, String imgsrc, String logo, String url) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs:line 36
at Ombi.Notifications.GenericEmailProvider.SendAdHoc(NotificationMessage model, EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/GenericEmailProvider.cs:line 40
2024-03-06 21:48:01.964 -05:00 [WRN] Exception when testing Email Notifications
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Ombi\bin\Debug\net6.0\Templates\BasicTemplate.html'.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at Ombi.Notifications.Templates.EmailBasicTemplate.LoadTemplate(String subject, String body, String imgsrc, String logo, String url) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs:line 36
at Ombi.Notifications.GenericEmailProvider.SendAdHoc(NotificationMessage model, EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/GenericEmailProvider.cs:line 40
at Ombi.Controllers.V1.External.TesterController.Email(EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi/Controllers/V1/External/TesterController.cs:line 300
2024-03-06 21:48:12.182 -05:00 [ERR] Exception when attempting to send an email
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Ombi\bin\Debug\net6.0\Templates\BasicTemplate.html'.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at Ombi.Notifications.Templates.EmailBasicTemplate.LoadTemplate(String subject, String body, String imgsrc, String logo, String url) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs:line 36
at Ombi.Notifications.GenericEmailProvider.SendAdHoc(NotificationMessage model, EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/GenericEmailProvider.cs:line 40
2024-03-06 21:48:12.183 -05:00 [WRN] Exception when testing Email Notifications
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Ombi\bin\Debug\net6.0\Templates\BasicTemplate.html'.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at Ombi.Notifications.Templates.EmailBasicTemplate.LoadTemplate(String subject, String body, String imgsrc, String logo, String url) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs:line 36
at Ombi.Notifications.GenericEmailProvider.SendAdHoc(NotificationMessage model, EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/GenericEmailProvider.cs:line 40
at Ombi.Controllers.V1.External.TesterController.Email(EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi/Controllers/V1/External/TesterController.cs:line 300
from ombi.
Thanks for confirming @twomoses that it isn't only me :)
Did you try downgrading at all? I was about to try later today to see if it makes a difference.
from ombi.
i downgraded back to stable/release and mail started to work again.
As in you downgraded back to version https://github.com/Ombi-app/Ombi/releases/tag/v4.43.5 ?
Just want to validate the version we know works.
from ombi.
yep that's the one. i didn't remember it offhand and didn't want to make up a number on the spot.
Confirmed. Downgrading to v4.43.5 has resolved my issue as well (with the same settings as in the screenshots above)
I will simple disable the Powershell Auto-update script for Ombi until this issue is solved :)
from ombi.
Confirmed I have this issue as well. Should we stop testing with latest beta?
from ombi.
Confirmed I have this issue as well. Should we stop testing with latest beta?
I rolled back as mentioned above, and I'm waiting for @tidusjar to close this issue before I update again.
Email notifications is important for the mass emails from the server owner, and also for the newsletter and approved/downloaded content and is an expected normal standard that people notice right away unfortunately when it stops working.
from ombi.
I’ll be fixing this in the next few days. Apologies I’ve been on vacation
No rush, we can survive while you vacation, we have a workaround (downgrading).
Enjoy the vacation, as mentioned above I'll simply hold off on updating until we are ready to close the issue :)
from ombi.
I downgraded to 4.43.11 since I remembered that emails were working then as well. Confirmed, working.
from ombi.
Same issue here with .5 / .11 / . 14
2024-03-27 04:37:28.506 +03:00 [WRN] Exception when testing Email Notifications
System.IO.DirectoryNotFoundException: Could not find a part of the path '/app/ombi/bin/Debug/net6.0/Templates/BasicTemplate.html'.
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at Interop.CheckIo(Error error, String path, Boolean isDirectory, Func`2 errorRewriter)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at Ombi.Notifications.Templates.EmailBasicTemplate.LoadTemplate(String subject, String body, String imgsrc, String logo, String url) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs:line 36
at Ombi.Notifications.GenericEmailProvider.SendAdHoc(NotificationMessage model, EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/GenericEmailProvider.cs:line 40
at Ombi.Controllers.V1.External.TesterController.Email(EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi/Controllers/V1/External/TesterController.cs:line 300
from ombi.
This issue should be fixed on 4.43.15.
from ombi.
This issue should be fixed on 4.43.15.
Will attempt updating to 4.43.15 and advise :)
from ombi.
This issue should be fixed on 4.43.15.
Update as seen below:
Cleared out the logs and restarted the service. Attempted to send a test email and the logs populated:
2024-03-30 13:02:38.838 -04:00 [ERR] Exception when attempting to send an email
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Ombi\bin\Debug\net6.0\Templates\BasicTemplate.html'.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at Ombi.Notifications.Templates.EmailBasicTemplate.LoadTemplate(String subject, String body, String imgsrc, String logo, String url) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs:line 36
at Ombi.Notifications.GenericEmailProvider.SendAdHoc(NotificationMessage model, EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/GenericEmailProvider.cs:line 40
2024-03-30 13:02:38.841 -04:00 [WRN] Exception when testing Email Notifications
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Ombi\bin\Debug\net6.0\Templates\BasicTemplate.html'.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at Ombi.Notifications.Templates.EmailBasicTemplate.LoadTemplate(String subject, String body, String imgsrc, String logo, String url) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs:line 36
at Ombi.Notifications.GenericEmailProvider.SendAdHoc(NotificationMessage model, EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi.Notifications/GenericEmailProvider.cs:line 40
at Ombi.Controllers.V1.External.TesterController.Email(EmailNotificationSettings settings) in /home/runner/work/Ombi/Ombi/src/Ombi/Controllers/V1/External/TesterController.cs:line 300
Anything I'm missing?
Downgraded back to v4.43.5 which has again resolved the issues.
from ombi.
Just create the bin\debug\net6.0 folder and copy in the templates folder and it works!
This workaround fixes the email issue on my 4.43.14 (docker)
Altering the container is meh meh but I hope that the next build will include a fix.
In my eyes you did a valuable test by replicating the results. So thank you!
After my tests to update to the latest and confirmed the issue still, I went out and won't be back until tonight. Much appreciated!
I also hope the next build includes a final resolution
from ombi.
Correction, after looking into it more, it should finally be fixed in 4.43.16.
Sorry bout that lol.
Confirmed it's fixed in the latest release. This issue can be closed.
Thanks to those involved for helping get this important functionality working again for server owners.
from ombi.
Related Issues (20)
- Ombi not pulling folder list from Sonarr HOT 2
- Can't suddenly not send email HOT 8
- Invisible Request
- Unable to Load Discovery or Search
- Music request artist images not populating HOT 2
- Ombi over http using Android app Issue HOT 6
- Mobile App not working HOT 1
- Cannot send welcome email HOT 2
- iOS app reports wrong server version. HOT 10
- Exception When Caching Emby for Server HOT 1
- Requests showing incorrect/different time than host machine HOT 1
- A typo and a missing picture on the website
- Emby Login not working in 4.8.3
- Fail to contact API with Traefik and Authentik HOT 2
- Ombi Newsletter failing to show TV Shows
- App (iOS & Android) crashes when selecting all episodes via "Select Season" in season on request HOT 3
- Will not send shows to sonarr unless selecting advanced options HOT 4
- High CPU usage during hourly sync tasks HOT 2
- Plex User Import stopped working. HOT 8
- Missing arm64 develop artifact HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ombi.