Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ombi on Linux has stopped importing any new Plex users (UnprocessableEntity) #5169

Open
cthierman opened this issue Sep 8, 2024 · 1 comment

Comments

@cthierman
Copy link

Summary

New Plex Users no longer being imported when trying to manually import, or allowing for regular scheduled imports.

To Reproduce:

  1. Go to Ombi settings
  2. Click on Configuration
  3. finally click on "Run Importer" at bottom of screen.

Message comes back saying "Plex Users import started" but nothing happens.

Expected Behavior:
Any new plex users added my plex server since last import should be added to Ombi.

Logs:

2024-09-07 23:26:46.970 -06:00 [ERR] StatusCode: UnprocessableEntity, Reason: Unprocessable Entity, RequestUri: https://plex.tv/users/account.json
2024-09-07 23:26:46.973 -06:00 [ERR] Job Plex.IPlexUserImporter threw an unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Ombi.Schedule.Jobs.Plex.PlexUserImporter.<>c__DisplayClass10_0.b__0(OmbiUser x) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 202
at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable1 source, Func2 predicate, Boolean& found)
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 predicate)
at Ombi.Schedule.Jobs.Plex.PlexUserImporter.ImportAdmin(UserManagementSettings settings, PlexServers server, List1 allUsers) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 201 at Ombi.Schedule.Jobs.Plex.PlexUserImporter.Execute(IJobExecutionContext job) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 74 at Ombi.Schedule.QuartzJobRunner.Execute(IJobExecutionContext context) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/QuartzJobRunner.cs:line 23 at Quartz.Core.JobRunShell.Run(CancellationToken cancellationToken) 2024-09-07 23:26:46.974 -06:00 [ERR] Job Plex.IPlexUserImporter threw an exception. Quartz.SchedulerException: Job threw an unhandled exception. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Ombi.Schedule.Jobs.Plex.PlexUserImporter.<>c__DisplayClass10_0.<ImportAdmin>b__0(OmbiUser x) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 202 at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable1 source, Func2 predicate, Boolean& found) at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 predicate) at Ombi.Schedule.Jobs.Plex.PlexUserImporter.ImportAdmin(UserManagementSettings settings, PlexServers server, List1 allUsers) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 201
at Ombi.Schedule.Jobs.Plex.PlexUserImporter.Execute(IJobExecutionContext job) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 74
at Ombi.Schedule.QuartzJobRunner.Execute(IJobExecutionContext context) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/QuartzJobRunner.cs:line 23
at Quartz.Core.JobRunShell.Run(CancellationToken cancellationToken)
--- End of inner exception stack trace --- [See nested exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Ombi.Schedule.Jobs.Plex.PlexUserImporter.<>c__DisplayClass10_0.b__0(OmbiUser x) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 202
at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable1 source, Func2 predicate, Boolean& found)
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 predicate)
at Ombi.Schedule.Jobs.Plex.PlexUserImporter.ImportAdmin(UserManagementSettings settings, PlexServers server, List`1 allUsers) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 201
at Ombi.Schedule.Jobs.Plex.PlexUserImporter.Execute(IJobExecutionContext job) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 74
at Ombi.Schedule.QuartzJobRunner.Execute(IJobExecutionContext context) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/QuartzJobRunner.cs:line 23
at Quartz.Core.JobRunShell.Run(CancellationToken cancellationToken)]

Ombi Version

4.46.3

What platform(s) does this occur on?

Linux

What database are you using?

MySQL

Relevant log output

2024-09-07 23:26:46.970 -06:00 [ERR] StatusCode: UnprocessableEntity, Reason: Unprocessable Entity, RequestUri: https://plex.tv/users/account.json
2024-09-07 23:26:46.973 -06:00 [ERR] Job Plex.IPlexUserImporter threw an unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Ombi.Schedule.Jobs.Plex.PlexUserImporter.<>c__DisplayClass10_0.<ImportAdmin>b__0(OmbiUser x) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 202
   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 Ombi.Schedule.Jobs.Plex.PlexUserImporter.ImportAdmin(UserManagementSettings settings, PlexServers server, List`1 allUsers) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 201
   at Ombi.Schedule.Jobs.Plex.PlexUserImporter.Execute(IJobExecutionContext job) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 74
   at Ombi.Schedule.QuartzJobRunner.Execute(IJobExecutionContext context) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/QuartzJobRunner.cs:line 23
   at Quartz.Core.JobRunShell.Run(CancellationToken cancellationToken)
2024-09-07 23:26:46.974 -06:00 [ERR] Job Plex.IPlexUserImporter threw an exception.
Quartz.SchedulerException: Job threw an unhandled exception.
 ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Ombi.Schedule.Jobs.Plex.PlexUserImporter.<>c__DisplayClass10_0.<ImportAdmin>b__0(OmbiUser x) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 202
   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 Ombi.Schedule.Jobs.Plex.PlexUserImporter.ImportAdmin(UserManagementSettings settings, PlexServers server, List`1 allUsers) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 201
   at Ombi.Schedule.Jobs.Plex.PlexUserImporter.Execute(IJobExecutionContext job) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 74
   at Ombi.Schedule.QuartzJobRunner.Execute(IJobExecutionContext context) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/QuartzJobRunner.cs:line 23
   at Quartz.Core.JobRunShell.Run(CancellationToken cancellationToken)
   --- End of inner exception stack trace --- [See nested exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at Ombi.Schedule.Jobs.Plex.PlexUserImporter.<>c__DisplayClass10_0.<ImportAdmin>b__0(OmbiUser x) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 202
   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 Ombi.Schedule.Jobs.Plex.PlexUserImporter.ImportAdmin(UserManagementSettings settings, PlexServers server, List`1 allUsers) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 201
   at Ombi.Schedule.Jobs.Plex.PlexUserImporter.Execute(IJobExecutionContext job) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs:line 74
   at Ombi.Schedule.QuartzJobRunner.Execute(IJobExecutionContext context) in /home/runner/work/Ombi/Ombi/src/Ombi.Schedule/QuartzJobRunner.cs:line 23
   at Quartz.Core.JobRunShell.Run(CancellationToken cancellationToken)]
@BJWTech
Copy link

BJWTech commented Dec 20, 2024

Same thing is happening here. I had a user reach out stating they don't use their old email any longer. So I removed the friend in Plex and added him with his new email. He accepted and is working in Plex.

So I went to ombi to check and he had not been imported yet. I went ahead and did the "run importer" manually. Ombi stated it would do so.

I get the same ERR in my logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants