CatalogSyncJob.ExecuteAsync (catalog)

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

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

Parameters

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

State

9/28/2026 12:04:33 AM (+1m 41.203s) Failed

An exception occurred during performance of the job.

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

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)

+29.214s Processing

Server:
gozaronline-monitoring:catalog:1815
Worker:
6647259d
+8msCatalog sync started
+8msStage: catalog_sync
catalog_sync
+11msStage: collect_lists
collect_lists
+13msCollecting TMDb list pages…
+2.888sStage: collect_changes
collect_changes
+3.182sUpserting 510 titles…
+3.182sStage: upsert
upsert
+1m 41.182sERROR: 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:
9/28/2026 12:02:50 AM

+2m 14.486s Failed

An exception occurred during performance of the job.

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

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:1815
Worker:
6647259d
+5msCatalog sync started
+6msStage: catalog_sync
catalog_sync
+9msStage: collect_lists
collect_lists
+11msCollecting TMDb list pages…
+3.670sStage: collect_changes
collect_changes
+3.777sUpserting 510 titles…
+3.778sStage: upsert
upsert
+2m 14.464sERROR: An error occurred while saving the entity changes. See the inner exception for details.

+2ms Enqueued

Triggered by recurring job scheduler

Queue:
catalog

9/28/2026 12:00:08 AM Created