Jellyfin Forum
LiveTV fails, permissions - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: LiveTV fails, permissions (/t-livetv-fails-permissions)



LiveTV fails, permissions - paulc - 2024-05-13

LiveTV fails when clicking record and when EPG updates the schedule on Windows 10. There are No FFMPEG logs applicable. LiveTV was working prior to upgrade to 10.9.0.

Appears to be an issue writing to the timers. I removed the timer files to see if it would write news ones. It didn't. Issue happens during EPG updates, also, when it adjusts the schedule. 

I swapped logs from informational to debug and clicked record and this is the output:


Code:
[2024-05-13 02:23:23.396 -04:00] [ERR] [14] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "POST" "/LiveTv/Timers".
System.UnauthorizedAccessException: Access to the path 'C:\Users\REDACTED\AppData\Local\Jellyfin\data\livetv' is denied.
  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, Nullable`1 unixCreateMode)
  at System.IO.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
  at Jellyfin.LiveTv.Timers.ItemDataProvider`1.SaveList()
  at Jellyfin.LiveTv.Timers.ItemDataProvider`1.Add(T item)
  at Jellyfin.LiveTv.Timers.TimerManager.Add(TimerInfo item)
  at Jellyfin.LiveTv.DefaultLiveTvService.CreateTimer(TimerInfo info, CancellationToken cancellationToken)
  at Jellyfin.LiveTv.LiveTvManager.CreateTimer(TimerInfoDto timer, CancellationToken cancellationToken)
  at Jellyfin.Api.Controllers.LiveTvController.CreateTimer(TimerInfoDto timerInfo)
  at lambda_method1703(Closure, Object)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, 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()
--- End of stack trace from previous location ---
  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()
--- End of stack trace from previous location ---
  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 Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
  at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
  at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
  at Jellyfin.Api.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
  at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
  at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
  at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
  at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
  at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
  at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
  at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
  at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
  at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
  at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
  at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context)



RE: LiveTV fails, permissions - TheDreadPirate - 2024-05-13

Someone in another post said they had to run the update schedule task in the dashboard and that fixed this issue for them.


RE: LiveTV fails, permissions - paulc - 2024-05-13

(2024-05-13, 12:12 PM)TheDreadPirate Wrote: Someone in another post said they had to run the update schedule task in the dashboard and that fixed this issue for them.
I didn't see another post about it but running guide update didn't work for me. I tried it twice under 10.9.0 and now under 10.9.1. Is there a Live TV task missing?

   

Even Library scans are failing. I changed my logs from information to debug. Going to stop and start and then run with a fresh log.

EDIT: Just ran. Same permission error on guide update.

Code:
System.InvalidOperationException: Unable to convert any images to local
  at Emby.Server.Implementations.Library.LibraryManager.ConvertImageToLocal(BaseItem item, ItemImageInfo image, Int32 imageIndex, Boolean removeOnFailure)
  at Jellyfin.LiveTv.Guide.GuideManager.<>c__DisplayClass21_0.<<PrecacheImages>b__2>d.MoveNext()
[2024-05-13 08:26:09.080 -04:00] [ERR] [31] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error executing Scheduled Task
System.UnauthorizedAccessException: Access to the path 'C:\Users\p3730\AppData\Local\Jellyfin\data\livetv' is denied.



RE: LiveTV fails, permissions - cofulese - 2024-05-13

I get the same issue running through docker - guide refresh fails with the same access denied message. I raised another thread yesterday "Jellyfin 10.9 docker guide update fails"


RE: LiveTV fails, permissions - TheDreadPirate - 2024-05-13

Can you double check permissions on that directory?


Triaging on Github RE: LiveTV fails, permissions - paulc - 2024-05-13

(2024-05-13, 01:34 PM)TheDreadPirate Wrote: Can you double check permissions on that directory?
I confirmed the permissions were the same. So, I renamed the folder, hoping it would recreate it.

I chose a random show, Father Knows Best, and tried to live record it. It started recording.

Instead of a folder with Json files in it, it created a file called 'livetv'  with this in it:
Code:
[{"ProviderIds":{"SeriesZap2It":"EP00001581","ProgramEtag":"9x22VgCnxfO65WTGjDyptw"},"SeriesProviderIds":{"Zap2It":"EP00001581"},"Tags":["Repeat","Series"],"Id":"689daab6f3f741608c9cc7d7877a9355","ChannelId":"hdhr_996","ProgramId":"EP000015810123T638512038000000000C69299_hdhr_996","Name":"Father Knows Best","Overview":"Jim decides that Bud can\u0027t play in the church baseball game because he hasn\u0027t done his chores.","SeriesId":"EP00001581","StartDate":"2024-05-13T13:30:00.0000000Z","EndDate":"2024-05-13T14:00:00.0000000Z","Status":"InProgress","PrePaddingSeconds":60,"PostPaddingSeconds":120,"IsPrePaddingRequired":false,"IsPostPaddingRequired":false,"IsManual":true,"Priority":0,"RetryCount":0,"SeasonNumber":1,"EpisodeNumber":26,"IsMovie":false,"IsKids":false,"IsSports":false,"IsNews":false,"IsSeries":true,"ProductionYear":1955,"EpisodeTitle":"Close Decision","OriginalAirDate":"1955-03-27T00:00:00.0000000Z","IsProgramSeries":true,"IsRepeat":true,"OfficialRating":"TV-G","Genres":[],"KeepUntil":"UntilDeleted"}]

I then ran the guide update, which ran successfully.

I looked at the livetv file, and it remained the same.

However, all my previous series and schedules are gone.

Carbon Copying this to that github post. With my Parkinsons', I can't keep troubleshoot two posts on one issue so I will stay over there since someone started one about this issue there and I started participating.  [Issue]: Live TV Recordings No Longer Scheduled · Issue #11579 · jellyfin/jellyfin (github.com)  [Issue]: Live TV Recordings No Longer Scheduled · Issue #11579 · jellyfin/jellyfin (github.com)