CatalogSyncJob.ExecuteAsync (catalog)

// Id: #18180
// Queue: catalog
using MovieTorrent.Shared.Jobs;

var catalogSyncJob = Activate<CatalogSyncJob>();
await catalogSyncJob.ExecuteAsync(null, null);

Parameters

RecurringJobId
"catalog-sync"
Time
1792317608
CurrentCulture
"en-US"
RetryCount
1

State

10/18/2026 10:04:54 AM (+1m 41.177s) Failed

An exception occurred during performance of the job.

Microsoft.EntityFrameworkCore.DbUpdateException (gozaronline-monitoring:catalog:2337506)

An error occurred while saving the entity changes. See the inner exception for details.

Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---> Npgsql.PostgresException: 22001: value too long for type character varying(16)
   at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
   at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
   at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
   at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)

   --- End of inner exception stack trace ---
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChangesAsync(IList`1 entries, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at MovieTorrent.Shared.Data.ResilientDbSave.SaveAsync(AppDbContext db, ILogger logger, CancellationToken ct, Boolean clearTracker) in /home/runner/work/MovieTorrent/MovieTorrent/src/MovieTorrent.Shared/Data/ResilientDbSave.cs:line 32
   at MovieTorrent.Shared.Catalog.CatalogSyncService.RunOnceAsync(IJobProgress progress, CancellationToken ct) in /home/runner/work/MovieTorrent/MovieTorrent/src/MovieTorrent.Shared/Catalog/CatalogSyncService.cs:line 138
   at MovieTorrent.Shared.Jobs.CatalogSyncJob.ExecuteAsync(PerformContext context, CancellationToken ct) in /home/runner/work/MovieTorrent/MovieTorrent/src/MovieTorrent.Shared/Jobs/BackgroundJobs.cs:line 209
   at MovieTorrent.Shared.Jobs.CatalogSyncJob.ExecuteAsync(PerformContext context, CancellationToken ct) in /home/runner/work/MovieTorrent/MovieTorrent/src/MovieTorrent.Shared/Jobs/BackgroundJobs.cs:line 220
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

+45.173s Processing

Server:
gozaronline-monitoring:catalog:2337506
Worker:
cfa339be
+6msCatalog sync started
+7msStage: catalog_sync
catalog_sync
+10msStage: collect_lists
collect_lists
+11msCollecting TMDb list pages…
+2.896sStage: collect_changes
collect_changes
+3.182sUpserting 504 titles…
+3.183sStage: upsert
upsert
+1m 41.157sERROR: An error occurred while saving the entity changes. See the inner exception for details.

+1ms Scheduled

Retry attempt 1 of 1: An error occurred while saving the entity changes…

Enqueue at:
10/18/2026 10:03:02 AM

+2m 19.704s Failed

An exception occurred during performance of the job.

Microsoft.EntityFrameworkCore.DbUpdateException (gozaronline-monitoring:catalog:2337506)

An error occurred while saving the entity changes. See the inner exception for details.

Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---> Npgsql.PostgresException: 22001: value too long for type character varying(16)
   at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
   at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
   at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
   at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)

   --- End of inner exception stack trace ---
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChangesAsync(IList`1 entries, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at MovieTorrent.Shared.Data.ResilientDbSave.SaveAsync(AppDbContext db, ILogger logger, CancellationToken ct, Boolean clearTracker) in /home/runner/work/MovieTorrent/MovieTorrent/src/MovieTorrent.Shared/Data/ResilientDbSave.cs:line 32
   at MovieTorrent.Shared.Catalog.CatalogSyncService.RunOnceAsync(IJobProgress progress, CancellationToken ct) in /home/runner/work/MovieTorrent/MovieTorrent/src/MovieTorrent.Shared/Catalog/CatalogSyncService.cs:line 138
   at MovieTorrent.Shared.Jobs.CatalogSyncJob.ExecuteAsync(PerformContext context, CancellationToken ct) in /home/runner/work/MovieTorrent/MovieTorrent/src/MovieTorrent.Shared/Jobs/BackgroundJobs.cs:line 209
   at MovieTorrent.Shared.Jobs.CatalogSyncJob.ExecuteAsync(PerformContext context, CancellationToken ct) in /home/runner/work/MovieTorrent/MovieTorrent/src/MovieTorrent.Shared/Jobs/BackgroundJobs.cs:line 220
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

+4ms Processing

Server:
gozaronline-monitoring:catalog:2337506
Worker:
299d37cd
+7msCatalog sync started
+7msStage: catalog_sync
catalog_sync
+10msStage: collect_lists
collect_lists
+12msCollecting TMDb list pages…
+3.589sStage: collect_changes
collect_changes
+3.791sUpserting 504 titles…
+3.791sStage: upsert
upsert
+2m 19.685sERROR: An error occurred while saving the entity changes. See the inner exception for details.

+1ms Enqueued

Triggered by recurring job scheduler

Queue:
catalog

10/18/2026 10:00:08 AM Created