삽질/개발,엔지니어링

ubuntu에서 transmission-daemon 업데이트

maengis 2023. 5. 3. 22:47

원래도 메모리릭이 심했는데, 요즘 들어서 너무 심해져서 이거 고치긴 할 건가 하는 생각이 들었다. (그라파나로 모니터링 걸어놓긴 했는데, 심할 때는 알럿도 없이 서버 자체가 뻗어서 SSH 접근도 안 돼서 재부팅을 해야 했다.)

 

https://github.com/transmission/transmission/pull/1378

 

fix: qt client memory leaks by ckerr · Pull Request #1378 · transmission/transmission

Over the weekend I ran the Qt client in valgrind and found a couple of leaks -- WatchDir's QFileSystemWatcher, and the QStyle that we pass to TorrentView.setStyle() in the main window. This PR fixe...

github.com

혹시나 검색해보니 3년이나 넘게 이슈 팝업된 메모리릭을 2023년 2월에 4버전대로 올리면서 해결했다.

 

우분투에서 업데이트는 아래 사이트 참고

 

https://ubuntuhandbook.org/index.php/2023/02/new-ppa-transmission-4-0-0/

 

New PPA for Installing Transmission 4.0.0 in Ubuntu 22.04 | 20.04 | 22.10 | UbuntuHandbook

The Transmission BitTorrent client released version 4.0.0 a few days ago. Here’s PPA repository contains the package for Ubuntu 20.04, Ubuntu 22.04, Ubuntu 22.10, Linux Mint 21/20. According to the release note, transmission 4.0 features new C++ and gtkm

ubuntuhandbook.org

 

현재 버전 확인

$ transmission-daemon -V
transmission-daemon 3.00 (bb6b5a062e)

 

저장소 추가

$ sudo add-apt-repository ppa:ubuntuhandbook1/transmission
Repository: 'deb https://ppa.launchpadcontent.net/ubuntuhandbook1/transmission/ubuntu/ jammy main'
Description:
Unofficial build of Transmission 4.0.0 for Ubuntu 20.04, 22.04, & 22.10.

NOTE: The package here so far does not include the new Web UI build.

Because the app now depends NPM, which requires internet connection. However, launchpad build farm does not have internet connection while building process.

Though, remote access via web browser somehow is still working in my case!

If the packages here are helpful, you may buy me a coffee:

         https://ko-fi.com/ubuntuhandbook1
More info: https://launchpad.net/~ubuntuhandbook1/+archive/ubuntu/transmission
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Found existing deb entry in /etc/apt/sources.list.d/ubuntuhandbook1-ubuntu-transmission-jammy.list
Adding deb entry to /etc/apt/sources.list.d/ubuntuhandbook1-ubuntu-transmission-jammy.list
Found existing deb-src entry in /etc/apt/sources.list.d/ubuntuhandbook1-ubuntu-transmission-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/ubuntuhandbook1-ubuntu-transmission-jammy.list
Adding key to /etc/apt/trusted.gpg.d/ubuntuhandbook1-ubuntu-transmission.gpg with fingerprint A0062203196CA4482DDB859E4C1CBE14852541CB
Hit:1 http://kr.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://kr.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://kr.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://kr.archive.ubuntu.com/ubuntu jammy-security InRelease
Ign:5 https://ppa.launchpadcontent.net/certbot/certbot/ubuntu jammy InRelease
Hit:6 https://ppa.launchpadcontent.net/ubuntuhandbook1/transmission/ubuntu jammy InRelease
Err:7 https://ppa.launchpadcontent.net/certbot/certbot/ubuntu jammy Release
  404  Not Found [IP: 185.125.190.52 443]
Reading package lists... Done
E: The repository 'https://ppa.launchpadcontent.net/certbot/certbot/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

 

업데이트

$ sudo apt install transmission-daemon
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  transmission-cli transmission-common
Suggested packages:
  transmission-gtk
The following packages will be upgraded:
  transmission-cli transmission-common transmission-daemon
3 upgraded, 0 newly installed, 0 to remove and 99 not upgraded.
Need to get 1,733 kB of archives.
After this operation, 2,728 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://ppa.launchpadcontent.net/ubuntuhandbook1/transmission/ubuntu jammy/main amd64 transmission-cli amd64 4.0.3-0build1~jammy [947 kB]
Get:2 https://ppa.launchpadcontent.net/ubuntuhandbook1/transmission/ubuntu jammy/main amd64 transmission-daemon amd64 4.0.3-0build1~jammy [692 kB]
Get:3 https://ppa.launchpadcontent.net/ubuntuhandbook1/transmission/ubuntu jammy/main amd64 transmission-common all 4.0.3-0build1~jammy [94.5 kB]
Fetched 1,733 kB in 8s (230 kB/s)
(Reading database ... 129264 files and directories currently installed.)
Preparing to unpack .../transmission-cli_4.0.3-0build1~jammy_amd64.deb ...
Unpacking transmission-cli (4.0.3-0build1~jammy) over (3.00-2ubuntu2) ...
Preparing to unpack .../transmission-daemon_4.0.3-0build1~jammy_amd64.deb ...
Unpacking transmission-daemon (4.0.3-0build1~jammy) over (3.00-2ubuntu2) ...
Preparing to unpack .../transmission-common_4.0.3-0build1~jammy_all.deb ...
Unpacking transmission-common (4.0.3-0build1~jammy) over (3.00-2ubuntu2) ...
Setting up transmission-common (4.0.3-0build1~jammy) ...
Setting up transmission-daemon (4.0.3-0build1~jammy) ...
Setting up transmission-cli (4.0.3-0build1~jammy) ...
Processing triggers for man-db (2.10.2-1) ...
Scanning processes...
Scanning candidates...
Scanning processor microcode...
Scanning linux images...

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

Restarting services...
 systemctl restart transmission-daemon.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

 

업데이트 된 버전 확인

$ transmission-daemon -V
transmission-daemon 4.0.3 (6b0e49bbb2)

 

이틀 정도 지났는데, 메모리릭 현상이 사라졌다.

반응형