Unpackerr/unpackerr

Activity setting being ignored

Gex2501 opened this issue · 4 comments

It would appear that setting activity = true does not have the desired effect as described in the .conf file. Maybe this is related to docker? Perhaps it is only skipping the lines with zero if there is a specified log file? The output continues to appear to STDOUT. Using docker playground I used the follow command to test. I have attached the .conf file at the bottom, but it's just the default with only activity = true changed on line 16. Below is the output of the command until terminated.

docker run -v ~/config:/config golift/unpackerr --config /config/unpackerr.conf

[node1] (local) root@192.168.0.28 ~/config
$ docker run -v ~/config:/config golift/unpackerr --config /config/unpackerr.conf
[INFO] 2023/11/25 08:42:07 Unpackerr v0.12.0 Starting! PID: 1, UID: 0, GID: 0, Now: 2023-11-25 08:42:08 +0000 UTC
[INFO] 2023/11/25 08:42:07 ==> GoLift Discord: https://golift.io/discord <==
[INFO] 2023/11/25 08:42:07 ==> Startup Settings <==
[INFO] 2023/11/25 08:42:07 => Sonarr Config: 0 servers
[INFO] 2023/11/25 08:42:07 => Radarr Config: 0 servers
[INFO] 2023/11/25 08:42:07 => Lidarr Config: 0 servers
[INFO] 2023/11/25 08:42:07 => Readarr Config: 0 servers
[INFO] 2023/11/25 08:42:07 => Folder Config: 0 paths, event buffer: 20000
[INFO] 2023/11/25 08:42:07 => Using Config File: /config/unpackerr.conf
[INFO] 2023/11/25 08:42:07 => Parallel: 1
[INFO] 2023/11/25 08:42:07 => Passwords: 0 (rar/7z)
[INFO] 2023/11/25 08:42:07 => Interval: 2m
[INFO] 2023/11/25 08:42:07 => Start Delay: 1m
[INFO] 2023/11/25 08:42:07 => Retry Delay: 5m, max: 3
[INFO] 2023/11/25 08:42:07 => Debug / Quiet: false / false
[INFO] 2023/11/25 08:42:07 => Activity / Queues: true / 1m
[INFO] 2023/11/25 08:42:07 => Directory & File Modes: 0755 & 0644
[INFO] 2023/11/25 08:42:07 => Webhook Configs: 0 URLs
[INFO] 2023/11/25 08:42:07 => Command Hook Configs: 0 commands
[INFO] 2023/11/25 08:42:07 => Webserver Disabled
[INFO] 2023/11/25 08:43:07 [Unpackerr] Queue: [0 waiting] [0 queued] [0 extracting] [0 extracted] [0 imported] [0 failed] [0 deleted]
[INFO] 2023/11/25 08:43:07 [Unpackerr] Totals: [0 retries] [0 finished] [0|0 webhooks] [0|0 cmdhooks] [stacks; event:0, hook:0, del:0]
[INFO] 2023/11/25 08:44:07 [Unpackerr] Queue: [0 waiting] [0 queued] [0 extracting] [0 extracted] [0 imported] [0 failed] [0 deleted]
[INFO] 2023/11/25 08:44:07 [Unpackerr] Totals: [0 retries] [0 finished] [0|0 webhooks] [0|0 cmdhooks] [stacks; event:0, hook:0, del:0]
*****************************REPEATED EVERY MINUTE *****************************
[INFO] 2023/11/25 09:16:07 [Unpackerr] Queue: [0 waiting] [0 queued] [0 extracting] [0 extracted] [0 imported] [0 failed] [0 deleted]
[INFO] 2023/11/25 09:16:07 [Unpackerr] Totals: [0 retries] [0 finished] [0|0 webhooks] [0|0 cmdhooks] [stacks; event:0, hook:0, del:0]
^C[INFO] 2023/11/25 09:16:12 [unpackerr] Need help? GoLift Discord: https://golift.io/discord
=====> Exiting! Caught Signal: interrupt

unpackerr.conf.zip

With no starr apps configured, no activity is happening, so the setting has no effect whatsoever. If you wish to adjust how often the internal queue data is printed, adjust the log_queues setting.

Okay, but I have starr apps configured on my server and the behavior is the same. I submitted using docker playground and didn't change any other parts of the config to try and demonstrate/isolate the issue. With nothing configured and activity = true shouldn't all those lines with zero totals be ignored/absent? Perhaps I'm not understanding the behavior/purpose of the setting... I was wanting to eliminate the unnecessary output from the log/stdout.

Here is a copy of my actual unpackerr.conf file.
unpackerr.conf.zip

I have starr apps configured on my server and the behavior is the same.

Share that behavior. What you've shared now is normal.

With nothing configured and activity = true shouldn't all those lines with zero totals be ignored/absent?

No, activity=true only suppresses the printing of starr apps' Activity Queue if the queue is empty.

I was wanting to eliminate the unnecessary output from the log/stdout.

I understand, and that's why I pointed you to the other setting that controls the lines you want fewer of. Set log_queues to 1h.

No, activity=true only suppresses the printing of starr apps' Activity Queue if the queue is empty.

Oooohh...okay, I didn't realize it was only related to the configured apps. I thought it would suppress all those entries shown that were zero. I'll just change the log_queues to 1h