• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting LiveTV fails, permissions

     
    • 0 Vote(s) - 0 Average

    LiveTV fails, permissions

    LiveTV permissions are failing when setting up the timer
    paulc
    Offline

    Member

    Posts: 85
    Threads: 7
    Joined: 2023 Jun
    Reputation: 5
    Country:United States
    #1
    2024-05-13, 06:38 AM (This post was last modified: 2024-05-13, 06:38 AM by paulc. Edited 1 time in total.)
    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)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-05-13, 12:12 PM
    Someone in another post said they had to run the update schedule task in the dashboard and that fixed this issue for them.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    paulc
    Offline

    Member

    Posts: 85
    Threads: 7
    Joined: 2023 Jun
    Reputation: 5
    Country:United States
    #3
    2024-05-13, 12:21 PM (This post was last modified: 2024-05-13, 12:28 PM by paulc. Edited 1 time in total.)
    (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.


    Attached Files Thumbnail(s)
       
    cofulese
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    Country:United Kingdom
    #4
    2024-05-13, 01:24 PM
    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"
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #5
    2024-05-13, 01:34 PM
    Can you double check permissions on that directory?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    paulc
    Offline

    Member

    Posts: 85
    Threads: 7
    Joined: 2023 Jun
    Reputation: 5
    Country:United States
    #6
    2024-05-13, 02:05 PM
    (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)
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode