Comments (17)
@TimVNL is this still an issue for you?
from docker-transmission.
Same issue here, over and over, every minute. On Synology DS1817+ DSM 6.1.1-15101 Update 2
01:10:00 crond[226]: wakeup dt=60
01:10:00 crond[226]: file root:
01:10:00 crond[226]: line run-parts /etc/periodic/15min
01:10:00 crond[226]: line run-parts /etc/periodic/hourly
01:10:00 crond[226]: line run-parts /etc/periodic/daily
01:10:00 crond[226]: line run-parts /etc/periodic/weekly
01:10:00 crond[226]: line run-parts /etc/periodic/monthly
01:10:00 crond[226]: line /config/blocklist-update.sh 2>&1
01:11:00 crond[226]: wakeup dt=60
<etc>
run-parts
is busybox
, running, of course, run-parts
, which executes everything in the folders provided as args.
Not sure why it happens every minute. root's crontab is:
root@transmission:/etc/periodic$ crontab -l
# do daily/weekly/monthly maintenance
# min hour day month weekday command
*/15 * * * * run-parts /etc/periodic/15min
0 * * * * run-parts /etc/periodic/hourly
0 2 * * * run-parts /etc/periodic/daily
0 3 * * 6 run-parts /etc/periodic/weekly
0 5 1 * * run-parts /etc/periodic/monthly
# run daily blocklist update
0 3 * * * /config/blocklist-update.sh 2>&1
Except that those folders are empty on my docker image:
root@transmission:/etc/periodic$ ls -la *
15min:
total 0
drwxr-xr-x 1 root root 0 May 13 07:08 .
drwxr-xr-x 1 root root 58 May 13 07:08 ..
daily:
total 0
drwxr-xr-x 1 root root 0 May 13 07:08 .
drwxr-xr-x 1 root root 58 May 13 07:08 ..
hourly:
total 0
drwxr-xr-x 1 root root 0 May 13 07:08 .
drwxr-xr-x 1 root root 58 May 13 07:08 ..
monthly:
total 0
drwxr-xr-x 1 root root 0 May 13 07:08 .
drwxr-xr-x 1 root root 58 May 13 07:08 ..
weekly:
total 0
drwxr-xr-x 1 root root 0 May 13 07:08 .
drwxr-xr-x 1 root root 58 May 13 07:08 ..
There are some other processes running. This one caught my eye:
226 root 0:00 /usr/sbin/crond -f -S -l 0 -c /etc/crontabs
What's in /etc/crontabs
? Oh, it's just the cron import file for the jobs above.
What's /usr/sbin/crond
.. it's crond
via busybox
Usage: crond -fbS -l N -d N -L LOGFILE -c DIR
-f Foreground
-b Background (default)
-S Log to syslog (default)
-l N Set log level. Most verbose:0, default:8
-d N Set log level, log to stderr
-L FILE Log to FILE
-c DIR Cron dir. Default:/var/spool/cron/crontabs
So, in foreground, log most verbosely to syslog, and use the provided dir to search for crontabs. OK, checking the man page this is the actual daemon that determines when to run jobs in all user's crontabs, if they exist, but only one (root) exists.
If the /etc/periodic folders are empty, do we need to insert the jobs? Or do they do something special?
I'm not sure syslog is running on this containers. Can anyone tell me where the log is?
thanks
James
from docker-transmission.
I'm still having this issue in April 2018, anyone got to a solution before?
from docker-transmission.
This is still an issue
from docker-transmission.
I suspect this is a niche issue with Nas devices - I'm going to test this at some point on my unraid box and also on my Qnap and I'll report back. Does the issue show up instantly?
from docker-transmission.
Yes, it appears immediately in a new container. It may very well be a NAS issue, mine arises on a Synology NAS, haven't tried it on desktop linux.
from docker-transmission.
This is still an issue.
from docker-transmission.
@onedr0p what setup/configuration/etc are you experiencing this issue on?
from docker-transmission.
Just spun this container up on my Ubuntu Mate VM - so far no cron errors.
I will leave this running for a good couple of hours to see if anything shows up.
from docker-transmission.
Update: I got this by chance as I ran the container passing the interactive flag "-t" these devices must be passing this flag to these containers, without it all startup output from crond is suppressed.
I am able to reproduce this by running the command manually in this container:
/usr/sbin/crond -f -S -l 0 -c /etc/crontabs
Investigating what could have changed.
from docker-transmission.
My set up is Ubuntu 18.04 server running Docker 18.03.
from docker-transmission.
Here is my docker-compose.yml:
version: '2'
services:
transmission:
image: linuxserver/transmission:latest
environment:
PGID: '1000'
PUID: '1000'
TZ: America/New_York
UMASK: '1000'
stdin_open: true
volumes:
- <path_to_config>:/config
- <path_to_media>:/media
tty: true
ports:
- 51413:51413/tcp
- 51413:51413/udp
- 9091:9091/tcp
from docker-transmission.
Drop the tty from that compose and you will stop seeing the spam in your logs .
from docker-transmission.
I understand that, but every other linuxserver container I use doesn't have this problem.
from docker-transmission.
Every other container you use does not have crond running. What advantage do you see with having an interactive shell attached to your container for s6 overlay ?
I have told you how to fix it, if you want to become a hardcore c dev and start working on the Alpine BusyBox package , go for it.
from docker-transmission.
Your fix is really a workaround and I highly doubt it comes down to Alpine or Busybox being the culprit here. Anyways, I've updated my deployment in Rancher to only to be -i
instead of -i -t
for now.
from docker-transmission.
@onedr0p this is not a blame thing, it is just the state of crond, alpine, and docker. When the binary is run in the foreground without dumping to syslog it would seem that it spams it startup message every iteration.
In order to actually fix it you would need to participate in the development of the baked in crond and add some kind of flag to suppress this behaviour which I am assuming the devs put in for a reason.
It can be made less by changing the log level for crond, but this would then suppress the output for the actual execution of timed cron jobs. In the case of this container that is the execution and output of "blocklist-update.sh".
from docker-transmission.
Related Issues (20)
- [FEAT] Document Supported WebUIs HOT 4
- [BUG] Incomplete folder HOT 3
- Transmission exits due to s6-overlay timeout resulting in SIGKILL HOT 5
- [BUG] stats.json isn't written when stopping the container HOT 13
- [BUG] Service not start with Stable release (4.0.4) HOT 21
- [FEAT] Delete images with date tags (2021.11.18, 2021.10.28, 2021.10.21 and 2021.10.07) HOT 3
- [FEAT] Read complete/incomplete folder paths from docker env HOT 5
- [BUG] Can't pass magnet link to container via Desktop file HOT 2
- [BUG] Custom crontabs no longer work HOT 7
- [FEAT] Allow running transmission with custom IO priority (`ionice`) HOT 5
- [FEAT] Add new web interface TrguiNG HOT 2
- [BUG] Building manually results in errors in the container HOT 4
- [BUG] UMASK does not affect `settings.json` HOT 6
- [BUG] <title> HOT 3
- [FEAT] Frequent releases / Understand releases changes HOT 5
- [FEAT] .torrent files HOT 6
- [BUG] PUID and PGID not having any effect HOT 4
- [BUG] Web UI no longer included? HOT 4
- [BUG] s6-notifyoncheck SIGKILL HOT 7
- [FEAT] <Copy Magnet Link> HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-transmission.