Cannot access Transmission web interface on boot

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
studioai

Cannot access Transmission web interface on boot

Post by studioai »

Hi,

My transmission doesn't seems to open rpc port on boot.

result of netstat -lntp

Code: Select all

tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      2250/dnsmasq    
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      1436/vsftpd     
tcp        0      0 0.0.0.0:51413           0.0.0.0:*               LISTEN      815/transmission-da
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      618/sshd        
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      1228/master     
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      1260/smbd       
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      2126/mysqld     
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      1260/smbd       
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1484/nginx -g daemo
tcp6       0      0 :::53                   :::*                    LISTEN      2250/dnsmasq    
tcp6       0      0 :::51413                :::*                    LISTEN      815/transmission-da
tcp6       0      0 :::22                   :::*                    LISTEN      618/sshd        
tcp6       0      0 :::25                   :::*                    LISTEN      1228/master     
tcp6       0      0 :::445                  :::*                    LISTEN      1260/smbd       
tcp6       0      0 :::139                  :::*                    LISTEN      1260/smbd   
and after I restart transmission-daemon manually It works

result of netstat -lntp after restart daemon

Code: Select all

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:51413           0.0.0.0:*               LISTEN      13162/transmission-
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      2250/dnsmasq    
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      1436/vsftpd     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      618/sshd        
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      1228/master     
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      1260/smbd       
tcp        0      0 0.0.0.0:10080           0.0.0.0:*               LISTEN      2242/kodi.bin   
tcp        0      0 0.0.0.0:9091            0.0.0.0:*               LISTEN      13162/transmission-
tcp        0      0 127.0.0.1:65252         0.0.0.0:*               LISTEN      2242/kodi.bin   
tcp        0      0 0.0.0.0:48233           0.0.0.0:*               LISTEN      3100/quasar     
tcp        0      0 0.0.0.0:1961            0.0.0.0:*               LISTEN      2242/kodi.bin   
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      2126/mysqld     
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      1260/smbd       
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      1588/config.ru  
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1484/nginx -g daemo
tcp        0      0 0.0.0.0:4433            0.0.0.0:*               LISTEN      3100/quasar     
tcp        0      0 127.0.0.1:52307         0.0.0.0:*               LISTEN      2242/kodi.bin   
tcp6       0      0 :::51413                :::*                    LISTEN      13162/transmission-
tcp6       0      0 :::53                   :::*                    LISTEN      2250/dnsmasq    
tcp6       0      0 :::22                   :::*                    LISTEN      618/sshd        
tcp6       0      0 :::25                   :::*                    LISTEN      1228/master     
tcp6       0      0 :::36667                :::*                    LISTEN      2242/kodi.bin   
tcp6       0      0 :::445                  :::*                    LISTEN      1260/smbd       
tcp6       0      0 :::10080                :::*                    LISTEN      2242/kodi.bin   
tcp6       0      0 :::9090                 :::*                    LISTEN      2242/kodi.bin   
tcp6       0      0 :::65251                :::*                    LISTEN      3100/quasar     
tcp6       0      0 :::48233                :::*                    LISTEN      3100/quasar     
tcp6       0      0 :::139                  :::*                    LISTEN      1260/smbd       
tcp6       0      0 :::4433                 :::*                    LISTEN      3100/quasar     
How can I make it work on boot?

Thanks for any help
Last edited by studioai on Sun May 15, 2016 5:45 pm, edited 1 time in total.
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Cannot access Transmission web interface on boot

Post by k-plan »

Hi studioai,

can you please list output of:

Code: Select all

root@RPi-B-Plus:~# service --status-all

Code: Select all

root@RPi-B-Plus:~# dietpi-services restart
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
studioai

Re: Cannot access Transmission web interface on boot

Post by studioai »

Hi, k-plan

Here's result of commands you requested

thanks!

Code: Select all

 [ - ]  alsa-utils
 [ - ]  bootlogs
 [ - ]  bootmisc.sh
 [ - ]  checkfs.sh
 [ - ]  checkroot-bootclean.sh
 [ - ]  checkroot.sh
 [ + ]  console-setup
 [ + ]  cron
 [ + ]  dbus
 [ ? ]  dietpi-service
 [ + ]  dnsmasq
 [ + ]  dphys-swapfile
 [ + ]  fail2ban
 [ + ]  fake-hwclock
 [ + ]  hdparm
 [ - ]  hostname.sh
 [ - ]  hwclock.sh
 [ + ]  kbd
 [ + ]  keyboard-setup
 [ - ]  keymap.sh
 [ - ]  killprocs
 [ + ]  kmod
 [ - ]  lirc
 [ - ]  motd
 [ - ]  mountall-bootclean.sh
 [ - ]  mountall.sh
 [ - ]  mountdevsubfs.sh
 [ - ]  mountkernfs.sh
 [ - ]  mountnfs-bootclean.sh
 [ - ]  mountnfs.sh
 [ + ]  mysql
 [ + ]  netplug
 [ + ]  networking
 [ + ]  nginx
 [ + ]  nmbd
 [ ? ]  noip2
 [ + ]  php5-fpm
 [ + ]  postfix
 [ + ]  procps
 [ + ]  resolvconf
 [ - ]  rmnologin
 [ - ]  rsync
 [ + ]  rsyslog
 [ + ]  samba
 [ + ]  samba-ad-dc
 [ - ]  sendsigs
 [ + ]  smartmontools
 [ + ]  smbd
 [ + ]  ssh
 [ - ]  sudo
 [ + ]  transmission-daemon
 [ + ]  udev
 [ + ]  udev-finish
 [ - ]  umountfs
 [ - ]  umountnfs.sh
 [ - ]  umountroot
 [ + ]  urandom
 [ + ]  vsftpd
 [ - ]  x11-common

Code: Select all

 DietPi-Services
 Mode: restart
 Please wait...
 Completed

 DietPi-Process Tool
 Applying settings, please wait...

Cron (5723)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0

DHCP Client (1438)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0

NoIp (6306)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0

OpenSSH Server (581)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0
OpenSSH Server (1746)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0

Pi-hole (6410)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0

Samba Server (Daemon) (1244)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0
Samba Server (Daemon) (1246)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0

Samba Server (NetBios) (1234)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0

Transmission (5741)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0

Webserver Nginx (5762)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0
Webserver Nginx (5763)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0
Webserver Nginx (5764)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0
Webserver Nginx (5765)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0
Webserver Nginx (5766)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0

Webserver MySql (5852)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0
Webserver MySql (6213)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0

Webserver Php-fpm (5778)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0
Webserver Php-fpm (5780)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0
Webserver Php-fpm (5781)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0
Webserver Php-fpm (5782)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0
Webserver Php-fpm (5783)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0

Webserver Redis (1205)
Ok | Nice      0
Ok | Affinity  0-7
Ok | Scheduler SCHED_OTHER 0

 Completed
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Cannot access Transmission web interface on boot

Post by k-plan »

Hi studioai,

for me it looks good, but that doesn't mean a lot.
I'm not a coder, programmer or scripting guy.

Hmm.. you can have a look here: https://github.com/Fourdee/DietPi/blob/ ... ware#L2954

Sorry, we have have to wait for someone with more consolidated knowledge.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
studioai

Re: Cannot access Transmission web interface on boot

Post by studioai »

k-plan,

thanks for helping me!

I found a solution by googling and I report to you.

https://www.raspberrypi.org/forums/view ... 8&t=124503

this solved my problem!
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Cannot access Transmission web interface on boot

Post by Fourdee »

Code: Select all

Ok | Affinity  0-7
I'll test a transmission install on my XU4 and see if I can replicate.

EDIT: ip:9091 Working fine after reboot.

I know the issue is now resolved, but, would you be able to paste the results of the following please:

Code: Select all

systemctl status dietpi-service && systemctl status transmission-daemon.service
DietPi disables program services for software you install with dietpi-software. This allows dietpi-services to take control of when they are launched during boot. I'am just wondering if this issue was caused by your transmission service being enabled, and launching via systemD too early.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
studioai

Re: Cannot access Transmission web interface on boot

Post by studioai »

Fourdee wrote:I know the issue is now resolved, but, would you be able to paste the results of the following please:
Sorry for late answer. Here's the results you asked!

Code: Select all

● dietpi-service.service - LSB: DietPi boot shutdown reboot.
   Loaded: loaded (/etc/init.d/dietpi-service)
   Active: active (exited) since Thu 2016-05-19 23:16:32 JST; 21h ago
  Process: 596 ExecStart=/etc/init.d/dietpi-service start (code=exited, status=0/SUCCESS)

May 19 23:16:32 DietPi dietpi-service[596]:  Twitter:    twitter.com/dietpi_
May 19 23:16:32 DietPi dietpi-service[596]:  DietPi's web hosting is powered by MyVirtualServer.com
May 19 23:16:32 DietPi dietpi-service[596]:  DietPi is a free product and relies on your donations for funding.
May 19 23:16:32 DietPi dietpi-service[596]:  Donations:  http://goo.gl/pzISt9
May 19 23:16:32 DietPi dietpi-service[596]:  dietpi-launcher  = All the DietPi programs in one place.
May 19 23:16:32 DietPi systemd[1]: Started LSB: DietPi boot shutdown reboot..
May 19 23:16:32 DietPi dietpi-service[596]:  dietpi-config    = Feature rich configuration tool for your device.
May 19 23:16:32 DietPi dietpi-service[596]:  dietpi-software  = Select optimized software for installation.
May 19 23:16:32 DietPi dietpi-service[596]:  htop             = Resource monitor.
May 19 23:16:32 DietPi dietpi-service[596]:  cpu              = Shows CPU information and stats.
● transmission-daemon.service - LSB: Start or stop the transmission-daemon.
   Loaded: loaded (/etc/init.d/transmission-daemon)
   Active: active (running) since Fri 2016-05-20 01:04:22 JST; 19h ago
  Process: 30466 ExecStop=/etc/init.d/transmission-daemon stop (code=exited, status=0/SUCCESS)
  Process: 32482 ExecStart=/etc/init.d/transmission-daemon start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/transmission-daemon.service
           └─32500 /usr/bin/transmission-daemon --config-dir /var/lib/transmission-daemon/info

May 20 01:04:22 DietPi transmission-daemon[32482]: Starting bittorrent daemon: transmission-daemon.
May 20 01:04:22 DietPi systemd[1]: Started LSB: Start or stop the transmission-daemon..
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Cannot access Transmission web interface on boot

Post by Fourdee »

This issue will be resolved for v119: https://github.com/Fourdee/DietPi/issues/350

Users can patch their system now, simply select all, copy/paste following over SSH:

Code: Select all

rm /etc/init.d/transmission-daemon
rm /etc/systemd/system/transmission-daemon.service
cat << _EOF_ > /etc/systemd/system/transmission-daemon.service
[Unit]
Description=Barebones transmission-daemon service
DefaultDependencies=no

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/transmission-daemon --config-dir /var/lib/transmission-daemon/info
ExecStop=/usr/bin/killall -w transmission-daemon
StandardOutput=tty

[Install]
WantedBy=multi-user.target
_EOF_
systemctl enable transmission-daemon.service
systemctl daemon-reload

dietpi-services disable

reboot
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply