linuxserver / docker-transmission

GNU General Public License v3.0
577 stars 179 forks source link

[BUG] stats.json isn't written when stopping the container #262

Closed Metal-Snake closed 5 months ago

Metal-Snake commented 10 months ago

Is there an existing issue for this?

Current Behavior

transmission and the container stops without writing the stats.json file. Losing the active time stats since last write to the file (usually when finishing a torrent)

Expected Behavior

It should write the stats.json file, so that the total active time is updated.

Steps To Reproduce

  1. start the container
  2. just wait a few minutes without finishing or adding torrents
  3. check total active time
  4. stop the container
  5. start the container
  6. check total active time (now it's less than before)

Environment

- OS: DSM 7.2
- How docker service was installed: DSM Container Manager

CPU architecture

x86-64

Docker creation

Bildschirmfoto 2023-11-01 um 18 51 51 Bildschirmfoto 2023-11-01 um 18 52 05

Container logs

[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1026
User GID:    100
───────────────────────────────────────

ln: failed to create symbolic link '/transmissionic/index.html': File exists
ln: failed to create symbolic link '/combustion-release/index.html': File exists
ln: failed to create symbolic link '/flood-for-transmission/index.html': File exists
ln: failed to create symbolic link '/kettu/index.html': File exists
ln: failed to create symbolic link '/transmission-web-control/index.html': File exists
[custom-init] No custom files found, skipping...
crond[159]: crond (busybox 1.36.0) started, log level 5
[ls.io-init] done.
crond[159]: USER root pid 201 cmd run-parts /etc/periodic/15min
github-actions[bot] commented 10 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

smeretech commented 9 months ago

Hello Just tested with latest version and the system not open the ports to the docker:

root@0d38ccc66b68:/# netstat -an Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 127.0.0.11:42559 0.0.0.0: LISTEN udp 0 0 0.0.0.0:8472 0.0.0.0: udp 0 0 127.0.0.11:58998 0.0.0.0:*

I tried with the repository version 4.0.3 and all it worked.

root@53e745cad67d:/# netstat -an | more Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:9091 0.0.0.0: LISTEN tcp 0 0 127.0.0.11:40164 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:51413 0.0.0.0:* LISTEN

Below the last image from Log:

image

DSM Version: DSM 7.2.1-69057 Update 2

j0nnymoe commented 9 months ago

@smeretech don't know how this is related to the OP issue. Please open a new thread.

LinuxServer-CI commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Metal-Snake commented 8 months ago

activity bump

KuraiAndras commented 7 months ago

Bumping, I have the same issue. Is this realted to https://github.com/transmission/transmission/issues/870 ?

LinuxServer-CI commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Metal-Snake commented 6 months ago

activity bump

LinuxServer-CI commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Metal-Snake commented 5 months ago

activity bump

homerr commented 5 months ago

Can confirm I have reproduced this, I will look into what is causing it and if we can fix it. It may be related to issue 870 on transmission

homerr commented 5 months ago

Unfortunately, I have bad news. I've tried this two different ways;

Running up an Alpine based VM and installing Transmission from apk (effectively how our container works) exhibited the same behaviour.

Compiling from source on a Debian machine, also exhibited the same behaviour.

It seems that the issue referenced above could be to do with this, but there is certainly something broken upstream.

I'd recommend reporting it to the transmission team hopefully they will be able to resolve the bug in their app.

Sorry to not have better news!

Metal-Snake commented 5 months ago

Thank you for looking into it!