rogerfar / rdt-client

Real-Debrid Client Proxy
MIT License
896 stars 113 forks source link

rdt-client use huge upload bandwidth while idle #411

Closed tjengbudi closed 8 months ago

tjengbudi commented 9 months ago

i download some 20-22 file torrent. and my storage full. so it cannot download anymore. and i check from web it stuck there. however i see weird behavior. it has used upload network at 6MBps, it used a lot for me cause i do not know what to upload. after i disable rdt-client docker service the upload activity disappeared. the list left is 11 file to download. 9 is queue and 2 is downloading but idle. (caused by not enough space) is there any explanation about this? if it is used debrid service i think there is no upload required to torrent network, am i right?

What version are you using? 2.0.59

Wat OS are you running? synology

Are you using Docker or as a service? yes

Which debrid provider are you using? real-debrid

Which downloader are you using? internal

Please attach a log file here with the log setting set to debug

2024-01-22 21:30:21.128 +00:00 [ERR] RdtClient.Service.Services.TorrentRunner: Cannot unrestrict link: {ex.Message} System.Exception: Unable to deserialize Real Debrid API response to UnrestrictLink. Response was: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Temporarily Down For Maintenance
Maintenance
Veuillez nous excuser pour cette interruption.
Toute l'équipe travaille actuellement à la remise en service du site dans les plus brefs délais.
Sorry, our website is experiencing some technical issues.
We are doing our best to make our website available as soon as possible.
Twitter - Facebook

---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at RDNET.Requests.Request[T](String baseUrl, String url, Boolean requireAuthentication, RequestType requestType, HttpContent data, CancellationToken cancellationToken) --- End of inner exception stack trace --- at RDNET.Requests.Request[T](String baseUrl, String url, Boolean requireAuthentication, RequestType requestType, HttpContent data, CancellationToken cancellationToken) at RDNET.Requests.PostRequestAsync[T](String url, IEnumerable`1 data, Boolean requireAuthentication, CancellationToken cancellationToken) at RDNET.UnrestrictApi.LinkAsync(String link, String password, Boolean remote, CancellationToken cancellationToken) at RdtClient.Service.Services.TorrentClients.RealDebridTorrentClient.Unrestrict(String link) in /appserver/server/RdtClient.Service/Services/TorrentClients/RealDebridTorrentClient.cs:line 233 at RdtClient.Service.Services.Torrents.UnrestrictLink(Guid downloadId) in /appserver/server/RdtClient.Service/Services/Torrents.cs:line 381 at RdtClient.Service.Services.TorrentRunner.Tick() in /appserver/server/RdtClient.Service/Services/TorrentRunner.cs:line 335 2024-01-22 21:31:26.053 +00:00 [ERR] RdtClient.Service.Services.TorrentRunner: Cannot unrestrict link: {ex.Message} System.Exception: Unable to deserialize Real Debrid API response to UnrestrictLink. Response was: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Temporarily Down For Maintenance
Maintenance
Veuillez nous excuser pour cette interruption.
Toute l'équipe travaille actuellement à la remise en service du site dans les plus brefs délais.
Sorry, our website is experiencing some technical issues.
We are doing our best to make our website available as soon as possible.
Twitter - Facebook

---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at RDNET.Requests.Request[T](String baseUrl, String url, Boolean requireAuthentication, RequestType requestType, HttpContent data, CancellationToken cancellationToken) --- End of inner exception stack trace --- at RDNET.Requests.Request[T](String baseUrl, String url, Boolean requireAuthentication, RequestType requestType, HttpContent data, CancellationToken cancellationToken) at RDNET.Requests.PostRequestAsync[T](String url, IEnumerable1 data, Boolean requireAuthentication, CancellationToken cancellationToken) at RDNET.UnrestrictApi.LinkAsync(String link, String password, Boolean remote, CancellationToken cancellationToken) at RdtClient.Service.Services.TorrentClients.RealDebridTorrentClient.Unrestrict(String link) in /appserver/server/RdtClient.Service/Services/TorrentClients/RealDebridTorrentClient.cs:line 233 at RdtClient.Service.Services.Torrents.UnrestrictLink(Guid downloadId) in /appserver/server/RdtClient.Service/Services/Torrents.cs:line 381 at RdtClient.Service.Services.TorrentRunner.Tick() in /appserver/server/RdtClient.Service/Services/TorrentRunner.cs:line 335 2024-01-23 01:54:02.259 +00:00 [WRN] : 101: /hub 2024-01-23 02:05:35.937 +00:00 [WRN] : 304: /main.248ad52fd9e672ae.js 2024-01-23 02:38:08.096 +00:00 [ERR] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand (30,238ms) [Parameters=[@p1='?' (DbType = Guid), @p0='?' (DbType = DateTimeOffset)], CommandType='"Text"', CommandTimeout='30'] UPDATE "Downloads" SET "DownloadFinished" = @p0 WHERE "DownloadId" = @p1 RETURNING 1; 2024-01-23 02:38:08.150 +00:00 [ERR] Microsoft.EntityFrameworkCore.Update: An exception occurred in the database while saving changes for context type 'RdtClient.Data.Data.DataContext'. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 5: 'database is locked'. at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.Data.Sqlite.SqliteCommand.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(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList1 entriesToSave, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 5: 'database is locked'. at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.Data.Sqlite.SqliteCommand.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(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList1 entriesToSave, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) 2024-01-23 02:38:08.154 +00:00 [ERR] RdtClient.Service.BackgroundServices.TaskRunner: Unexpected error occurred in TorrentDownloadManager.Tick: 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. ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 5: 'database is locked'. at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.Data.Sqlite.SqliteCommand.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(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList1 entriesToSave, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at RdtClient.Data.Data.DownloadData.UpdateDownloadFinished(Guid downloadId, Nullable1 dateTime) in /appserver/server/RdtClient.Data/Data/DownloadData.cs:line 106 at RdtClient.Service.Services.Downloads.UpdateDownloadFinished(Guid downloadId, Nullable1 dateTime) in /appserver/server/RdtClient.Service/Services/Downloads.cs:line 47 at RdtClient.Service.Services.TorrentRunner.Tick() in /appserver/server/RdtClient.Service/Services/TorrentRunner.cs:line 186 at RdtClient.Service.BackgroundServices.TaskRunner.ExecuteAsync(CancellationToken stoppingToken) in /appserver/server/RdtClient.Service/BackgroundServices/TaskRunner.cs:line 39 2024-01-23 03:08:25.998 +00:00 [ERR] Microsoft.EntityFrameworkCore.Update: An exception occurred in the database while saving changes for context type 'RdtClient.Data.Data.DataContext'. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 13: 'database or disk is full'. at Microsoft.Data.Sqlite.SqliteDataRecord.Dispose() at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at System.Data.Common.DbDataReader.NextResultAsync(CancellationToken cancellationToken) --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.ConsumeAsync(RelationalDataReader reader, CancellationToken cancellationToken) --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.ConsumeAsync(RelationalDataReader reader, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList1 entriesToSave, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 13: 'database or disk is full'. at Microsoft.Data.Sqlite.SqliteDataRecord.Dispose() at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at System.Data.Common.DbDataReader.NextResultAsync(CancellationToken cancellationToken) --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.ConsumeAsync(RelationalDataReader reader, CancellationToken cancellationToken) --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.ConsumeAsync(RelationalDataReader reader, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) a2024-01-23 08:45:25.803 +00:00 [WRN] : 304: /favicon.ico 2024-01-23 15:38:32.404 +00:00 [WRN] : 304: /favicon.ico 2024-01-24 08:55:12.750 +00:00 [WRN] : 304: /favicon.ico 2024-01-24 15:42:45.253 +00:00 [WRN] : 304: /favicon.ico 2024-01-25 02:30:02.548 +00:00 [WRN] : 304: /favicon.ico 2024-01-25 03:05:19.274 +00:00 [WRN] : 304: /index.html 2024-01-25 03:05:19.299 +00:00 [WRN] : 101: /hub 2024-01-25 03:05:19.439 +00:00 [WRN] : 304: /assets/logo.png 2024-01-25 03:05:19.452 +00:00 [WRN] : 304: /fa-solid-900.fd0b155cd663a8fa.woff2 2024-01-25 07:30:50.077 +00:00 [WRN] : 101: /hub 2024-01-25 07:32:26.465 +00:00 [WRN] : 101: /hub 2024-01-25 16:41:52.262 +00:00 [WRN] : 304: /index.html 2024-01-25 16:41:52.274 +00:00 [WRN] : 101: /hub 2024-01-25 16:41:52.292 +00:00 [WRN] : 304: /runtime.52f1d05aa6c3afea.js 2024-01-25 16:41:52.292 +00:00 [WRN] : 304: /polyfills.bc0070be939c8a90.js 2024-01-25 16:41:52.296 +00:00 [WRN] : 304: /main.248ad52fd9e672ae.js 2024-01-25 16:41:52.302 +00:00 [WRN] : 304: /styles.e0d9d5dcd8df4190.css 2024-01-25 16:41:52.384 +00:00 [WRN] : 304: /favicon.ico 2024-01-25 16:41:52.393 +00:00 [WRN] : 304: /assets/logo.png 2024-01-25 16:41:52.406 +00:00 [WRN] : 304: /fa-solid-900.fd0b155cd663a8fa.woff2 2024-01-29 01:07:47.051 +00:00 [WRN] : 101: /hub 2024-01-29 01:07:47.063 +00:00 [WRN] : 304: /runtime.52f1d05aa6c3afea.js 2024-01-29 01:07:47.065 +00:00 [WRN] : 304: /main.248ad52fd9e672ae.js 2024-01-29 01:07:47.065 +00:00 [WRN] : 304: /polyfills.bc0070be939c8a90.js 2024-01-29 01:07:47.066 +00:00 [WRN] : 304: /styles.e0d9d5dcd8df4190.css 2024-01-29 01:07:47.145 +00:00 [WRN] : 304: /favicon.ico 2024-01-29 01:07:47.159 +00:00 [WRN] : 304: /assets/logo.png 2024-01-29 01:07:47.181 +00:00 [WRN] : 304: /fa-solid-900.fd0b155cd663a8fa.woff2 2024-01-29 01:15:14.908 +00:00 [WRN] : 101: /hub 2024-01-29 01:15:14.919 +00:00 [ERR] RdtClient.Service.BackgroundServices.WatchFolderChecker: Unexpected error occurred in ProviderUpdater: A task was canceled. System.Threading.Tasks.TaskCanceledException: A task was canceled. at RdtClient.Service.BackgroundServices.WatchFolderChecker.ExecuteAsync(CancellationToken stoppingToken) in /appserver/server/RdtClient.Service/BackgroundServices/WatchFolderChecker.cs:line 40

rogerfar commented 8 months ago

The logs show Temporarily Down For Maintenance, so that's obvious, not sure what else would be uploading, but RDT only sends requests.