mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-02-05 07:52:03 -06:00
[BUG] error occurred instantiating job #143
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @prlahiff on GitHub.
Before submitting a bug report, I have:
What is the behavior?
I am using UNRAID. When I Install based on install guide, app starts but doesn't do anything. Logs are provided as I'm not sure why it isn't spinning up. I am using GLUETUN VPN, but I have both Cleanuperr and Qbit on the same container network
[2025-02-26 20:51:53.386 INF] cleanuperr v1.5.8
[2025-02-26 20:51:53.428 INF] timezone: (UTC) Coordinated Universal Time
[2025-02-26 20:51:53.753 INF] Application started. Press Ctrl+C to shut down.
[2025-02-26 20:51:53.753 INF] Hosting environment: Production
[2025-02-26 20:51:53.753 INF] Content root path: /app
[2025-02-26 20:51:53.808 ERR] An error occurred instantiating job to be executed. job= 'DEFAULT.QueueCleaner, message=This operation is not supported for a relative URI.'
Quartz.SchedulerException: Problem instantiating type 'Executable.Jobs.GenericJob
1[[Infrastructure.Verticals.QueueCleaner.QueueCleaner, Infrastructure, Version=1.5.8.0, Culture=neutral, PublicKeyToken=null]]: This operation is not supported for a relative URI.' ---> System.InvalidOperationException: This operation is not supported for a relative URI. at System.Uri.get_AbsolutePath() at QBittorrent.Client.Extensions.UriExtensions.EnsureTrailingSlash(Uri uri) at QBittorrent.Client.QBittorrentClient..ctor(HttpClient httpClient, Uri uri, ApiLevel apiLevel) at QBittorrent.Client.QBittorrentClient..ctor(HttpClient httpClient, Uri uri) at Infrastructure.Verticals.DownloadClient.QBittorrent.QBitService..ctor(ILogger1 logger, IHttpClientFactory httpClientFactory, IOptions1 config, IOptions1 queueCleanerConfig, IOptions1 contentBlockerConfig, IOptions1 downloadCleanerConfig, IMemoryCache cache, IFilenameEvaluator filenameEvaluator, IStriker striker, INotificationPublisher notifier, IDryRunInterceptor dryRunInterceptor) in /app/Infrastructure/Verticals/DownloadClient/QBittorrent/QBitService.cs:line 47at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Which operating system do you use?
Unraid
What type of deployment do you use?
Docker container
Relevant log output
Anything else?
No response
@prlahiff commented on GitHub:
I replaced those and it seemed to initially work! then it returns this in the log every 100s. would verbose logging be helpful? I really appreciate the assistance:
[2025-02-26 21:23:12.696 INF] cleanuperr v1.5.8
[2025-02-26 21:23:12.740 INF] timezone: (UTC) Coordinated Universal Time
[2025-02-26 21:23:12.748 DBG] Hosting starting
[2025-02-26 21:23:13.076 INF] Application started. Press Ctrl+C to shut down.
[2025-02-26 21:23:13.076 INF] Hosting environment: Production
[2025-02-26 21:23:13.076 INF] Content root path: /app
[2025-02-26 21:23:13.076 DBG] Hosting started
[2025-02-26 21:24:53.178 ERR] [QueueCleaner] QueueCleaner failed
System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
---> System.TimeoutException: A task was canceled.
---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Threading.Tasks.TaskCompletionSourceWithCancellation
1.WaitWithCancellationAsync(CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|4_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken) at Microsoft.Extensions.Http.PolicyHttpMessageHandler.SendCoreAsync(HttpRequestMessage request, Context context, CancellationToken cancellationToken) at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates1 shouldRetryResultPredicates, Func5 onRetryAsync, Int32 permittedRetryCount, IEnumerable1 sleepDurationsEnumerable, Func4 sleepDurationProvider, Boolean continueOnCapturedContext)at Polly.AsyncPolicy
1.ExecuteAsync(Func3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext)at Microsoft.Extensions.Http.PolicyHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.g__Core|4_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at QBittorrent.Client.Extensions.HttpClientExtensions.GetStringWithCancellationAsync(HttpClient client, Uri uri, Boolean returnEmptyIfNotFound, CancellationToken token)
at QBittorrent.Client.QBittorrentClient.GetLegacyApiVersionPrivateAsync(CancellationToken token)
at QBittorrent.Client.QBittorrentClient.<>c__DisplayClass7_0.<<-ctor>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at QBittorrent.Client.QBittorrentClient.PostAsync(Func
2 builder, CancellationToken token, ApiLevel minApiLevel, ApiVersion minApiVersion, Nullable1 maxApiVersion)at Infrastructure.Verticals.DownloadClient.QBittorrent.QBitService.LoginAsync() in /app/Infrastructure/Verticals/DownloadClient/QBittorrent/QBitService.cs:line 57
at Infrastructure.Verticals.Jobs.GenericHandler.ExecuteAsync() in /app/Infrastructure/Verticals/Jobs/GenericHandler.cs:line 58
at Executable.Jobs.GenericJob`1.Execute(IJobExecutionContext context) in /app/Executable/Jobs/GenericJob.cs:line 26
[2025-02-26 21:26:40.004 ERR] [QueueCleaner] QueueCleaner failed
@Flaminel commented on GitHub:
Looks like you might have a problem with one of the configuration URLs. Can you please share your configuration, excluding sensitive information?
@Flaminel commented on GitHub:
Replace this type of URL
192.168.0.153:8080with this typehttp://192.168.0.153:8080. Do that for all URLs like qBit, Sonarr and Radarr.@prlahiff commented on GitHub:
[
{
"Id": "6da9356a4c5615643e15136ea2f4bb4fb8696a866f9878cf7e56928ef5323766",
"Created": "2025-02-26T21:10:48.129626016Z",
"Path": "./cleanuperr",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 974534,
"ExitCode": 0,
"Error": "",
"StartedAt": "2025-02-26T21:10:48.220501244Z",
"FinishedAt": "0001-01-01T00:00:00Z"
},
"Image": "sha256:8904ce239fa24752d1cb0872f2b17b46644a5e9fa0bd11fba600aafe304a9212",
"ResolvConfPath": "/var/lib/docker/containers/138df8a6d5c7bfd0ce807a4e23f7e45852b92fabbfd5f6e126d4b7fbf7e8d4f8/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/138df8a6d5c7bfd0ce807a4e23f7e45852b92fabbfd5f6e126d4b7fbf7e8d4f8/hostname",
"HostsPath": "/var/lib/docker/containers/138df8a6d5c7bfd0ce807a4e23f7e45852b92fabbfd5f6e126d4b7fbf7e8d4f8/hosts",
"LogPath": "/var/lib/docker/containers/6da9356a4c5615643e15136ea2f4bb4fb8696a866f9878cf7e56928ef5323766/6da9356a4c5615643e15136ea2f4bb4fb8696a866f9878cf7e56928ef5323766-json.log",
"Name": "/cleanuperr",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": null,
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {
"max-file": "1",
"max-size": "50m"
}
},
"NetworkMode": "container:138df8a6d5c7bfd0ce807a4e23f7e45852b92fabbfd5f6e126d4b7fbf7e8d4f8",
"PortBindings": {},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"ConsoleSize": [
0,
0
],
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "private",
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": [],
"BlkioDeviceReadBps": [],
"BlkioDeviceWriteBps": [],
"BlkioDeviceReadIOps": [],
"BlkioDeviceWriteIOps": [],
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DeviceCgroupRules": null,
"DeviceRequests": null,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": null,
"PidsLimit": 2048,
"Ulimits": [],
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware",
"/sys/devices/virtual/powercap"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/87e7e5b22e4098332a36da73a5e262f67707fe67b390ad526d631da36c4e76e2-init/diff:/var/lib/docker/overlay2/95622f8245bed03933b0eb6594f9dc3f5b6436d9cf7060f740e6c61b15f14e1c/diff:/var/lib/docker/overlay2/34d8b40fb5f562e97ec87b899b7bf8acecee792b850cd93196448cdab1c84d60/diff:/var/lib/docker/overlay2/0ceb93280baf9601cfb39d7d5ae37cf122c9830cbdbd368d2b0ebd94284e0e9b/diff:/var/lib/docker/overlay2/e7eebf2225ed4dadc501615a119865daccd39f3ebcaeef33e9dbd56e07d818be/diff:/var/lib/docker/overlay2/5582631252d0d288cc84afe302ce9607c0c16ca8c0dca639c00a5d1346c34eeb/diff:/var/lib/docker/overlay2/69423c89d05a078430b711739f592f474a474b42cc511969fbf583f0390c21a4/diff",
"MergedDir": "/var/lib/docker/overlay2/87e7e5b22e4098332a36da73a5e262f67707fe67b390ad526d631da36c4e76e2/merged",
"UpperDir": "/var/lib/docker/overlay2/87e7e5b22e4098332a36da73a5e262f67707fe67b390ad526d631da36c4e76e2/diff",
"WorkDir": "/var/lib/docker/overlay2/87e7e5b22e4098332a36da73a5e262f67707fe67b390ad526d631da36c4e76e2/work"
},
"Name": "overlay2"
},
"Mounts": [],
"Config": {
"Hostname": "138df8a6d5c7",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"LOGGING__LOGLEVEL=Debug",
"QBITTORRENT__PASSWORD=X",
"TRIGGERS__CONTENTBLOCKER=0 0/5 * * * ?",
"DOWNLOADCLEANER__CATEGORIES__0__MAX_RATIO=-1",
"SONARR__BLOCK__TYPE=blacklist",
"RADARR__ENABLED=true",
"HTTP_MAX_RETRIES=0",
"QUEUECLEANER__IMPORT_FAILED_DELETE_PRIVATE=false",
"CONTENTBLOCKER__IGNORE_PRIVATE=false",
"RADARR__INSTANCES__0__URL=192.168.0.153:7878",
"RADARR__INSTANCES__0__APIKEY=X",
"LIDARR__ENABLED=true",
"HOST_OS=Unraid",
"QUEUECLEANER__RUNSEQUENTIALLY=true",
"DOWNLOADCLEANER__ENABLED=false",
"SONARR__BLOCK__PATH=https://raw.githubusercontent.com/flmorg/cleanuperr/refs/heads/main/blacklist",
"RADARR__BLOCK__TYPE=blacklist",
"QUEUECLEANER__STALLED_RESET_STRIKES_ON_PROGRESS=true",
"DOWNLOADCLEANER__CATEGORIES__0__MAX_SEED_TIME=-1",
"QBITTORRENT__URL=192.168.0.153:8080",
"LOGGING__FILE__ENABLED=true",
"QUEUECLEANER__IMPORT_FAILED_IGNORE_PATTERNS__0=",
"DOWNLOAD_CLIENT=qbittorrent",
"DRY_RUN=false",
"TRIGGERS__QUEUECLEANER=0 0/5 * * * ?",
"DOWNLOADCLEANER__DELETE_PRIVATE=false",
"SONARR__INSTANCES__0__APIKEY=X",
"LOGGING__FILE__PATH=/var/logs",
"QUEUECLEANER__STALLED_DELETE_PRIVATE=false",
"DOWNLOADCLEANER__CATEGORIES__0__NAME=",
"QBITTORRENT__USERNAME=admin",
"SONARR__INSTANCES__0__URL=192.168.0.153:8989",
"TZ=Etc/America/Chicago",
"TRIGGERS__DOWNLOADCLEANER=0 0 * * * ?",
"QUEUECLEANER__STALLED_IGNORE_PRIVATE=false",
"LIDARR__INSTANCES__0__URL=192.168.0.153:8686",
"HOST_CONTAINERNAME=cleanuperr",
"CONTENTBLOCKER__ENABLED=false",
"HOST_HOSTNAME=HomeServer",
"QUEUECLEANER__STALLED_MAX_STRIKES=5",
"CONTENTBLOCKER__DELETE_PRIVATE=false",
"LOGGING__ENHANCED=true",
"SONARR__ENABLED=true",
"LIDARR__BLOCK__TYPE=blacklist",
"LIDARR__BLOCK__PATH=https://raw.githubusercontent.com/flmorg/cleanuperr/refs/heads/main/blacklist",
"LIDARR__INSTANCES__0__APIKEY=X",
"HTTP_TIMEOUT=100",
"QUEUECLEANER__IMPORT_FAILED_MAX_STRIKES=0",
"DOWNLOADCLEANER__CATEGORIES__0__MIN_SEED_TIME=0",
"SONARR__SEARCHTYPE=Episode",
"QUEUECLEANER__ENABLED=true",
"QUEUECLEANER__IMPORT_FAILED_IGNORE_PRIVATE=false",
"RADARR__BLOCK__PATH=https://raw.githubusercontent.com/flmorg/cleanuperr/refs/heads/main/blacklist",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"APP_UID=1654",
"ASPNETCORE_HTTP_PORTS=8080",
"DOTNET_RUNNING_IN_CONTAINER=true",
"DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true"
],
"Cmd": null,
"Image": "ghcr.io/flmorg/cleanuperr:latest",
"Volumes": null,
"WorkingDir": "/app",
"Entrypoint": [
"./cleanuperr"
],
"OnBuild": null,
"Labels": {
"commit": "sha-5adbdbd9203965b0b7b832483X",
"net.unraid.docker.icon": "https://raw.githubusercontent.com/flmorg/unraid/refs/heads/main/templates/img/cleanuperr.png",
"net.unraid.docker.managed": "dockerman",
"version": "1.5.8"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "",
"SandboxKey": "",
"Ports": {},
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {}
}
}
]
@Flaminel commented on GitHub:
The app can't reach qBit, so you're probably running into the same issue as described in #41. Check out the discussion over there and see if anything could help, but it's most probably from your VPN and how the communication between the containers is configured.
@Flaminel commented on GitHub:
@prlahiff any updates?
@prlahiff commented on GitHub:
OK thank you! I will check that when i'm at the terminal itself and let you
know if this gets sorted TY again
On Wed, Feb 26, 2025 at 3:50 PM Flaminel @.***> wrote:
@prlahiff commented on GitHub:
I had previously tried setting Cleanuperr to use gluetun as a container network as of the last logs provided. today I switched it back to host mode, left qbit on VPN and it is now working. thanks for your help and your app!
@prlahiff commented on GitHub:
i tried to install an instance of qbit not on a VPN, and it didn't want to connect either. I'm going to try and set my existing in bridge mode and see if that'll work