CatalogSyncJob.ExecuteAsync (catalog)

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

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

Parameters

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

State

9/30/2026 10:04:31 PM (+1m 49.902s) Failed

An exception occurred during performance of the job.

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

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)

+18.508s Processing

Server:
gozaronline-monitoring:catalog:2160
Worker:
f36abc33
+6msCatalog sync started
+7msStage: catalog_sync
catalog_sync
+9msStage: collect_lists
collect_lists
+10msCollecting TMDb list pages…
+3.180sStage: collect_changes
collect_changes
+3.197sUpserting 510 titles…
+3.197sStage: upsert
upsert
+1m 49.876sERROR: An error occurred while saving the entity changes. See the inner exception for details.

+2ms Scheduled

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

Enqueue at:
9/30/2026 10:02:41 PM

+2m 11.623s Failed

An exception occurred during performance of the job.

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

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)

+3ms Processing

Server:
gozaronline-monitoring:catalog:2160
Worker:
f36abc33
+5msCatalog sync started
+6msStage: catalog_sync
catalog_sync
+18msStage: collect_lists
collect_lists
+21msCollecting TMDb list pages…
+3.632sStage: collect_changes
collect_changes
+3.743sUpserting 516 titles…
+3.744sStage: upsert
upsert
+2m 11.598sERROR: An error occurred while saving the entity changes. See the inner exception for details.

+1ms Enqueued

Triggered by recurring job scheduler

Queue:
catalog

9/30/2026 10:00:11 PM Created