Shift, a new web UI - UPDATE 2017.04.22

Discussion of the Web Interface for Transmission, formerly known as Clutch. This applies to all version of Transmission
killemov
Posts: 342
Joined: Sat Jul 31, 2010 5:04 pm

Shift, a new web UI - UPDATE 2017.02.24

Postby killemov » Fri Feb 24, 2017 5:51 am

Changelog
  • Fixed tracker removal.

killemov
Posts: 342
Joined: Sat Jul 31, 2010 5:04 pm

Shift, a new web UI - UPDATE 2017.04.22

Postby killemov » Sat Apr 22, 2017 12:07 pm

  • Do not render pieces data when torrent data not complete.

nealosis
Posts: 1
Joined: Thu Jun 15, 2017 2:09 pm

Re: Shift, a new web UI - UPDATE 2017.04.22

Postby nealosis » Thu Jun 15, 2017 2:18 pm

I've followed the instructions but can't get the new UI to run, transmission-web always just renders the old web-ui.

Code: Select all

USER=debian-transmission

# Added this line into: /etc/init.d/transmission-daemon
export TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift



You can see the export path in the daemon is there and the user 'debian-transmission' has ownership of the files

Code: Select all

developer@LINUXFS01:~$ ls /usr/share/transmission/Shift/
base.css    prototype.js  shift.css  shift.json    touch.css
index.html  README.md     shift.js   terminal.css



Code: Select all

developer@LINUXFS01:/usr/share/transmission/Shift$ getfacl /usr/share/transmission/Shift/
getfacl: Removing leading '/' from absolute path names
# file: usr/share/transmission/Shift/
# owner: debian-transmission
# group: debian-transmission
user::rwx
group::rwx
other::r-x



What am I missing here? I've restarted the service several times and rebooted the server itself but no new web interface is ever rendered, just the plain old boring stock web user interface

killemov
Posts: 342
Joined: Sat Jul 31, 2010 5:04 pm

Re: Shift, a new web UI - UPDATE 2017.04.22

Postby killemov » Mon Jun 19, 2017 7:00 am

Does this file exist?:

Code: Select all

./system/multi-user.target.wants/transmission-daemon.service

Then you are running systemd and you need to do the other thing from the opening post.

If not check if there are multiple scripts in /etc/rc* and that you edited the correct one.

Lokotito
Posts: 1
Joined: Wed Jul 05, 2017 4:47 pm

Re: Shift, a new web UI - UPDATE 2017.04.22

Postby Lokotito » Wed Jul 05, 2017 5:01 pm

Hi, I try to install in Debian client transmission-daemon as follow:

(1) Stop Service
(2) Git Shit

Code: Select all

$ cd /usr/share/transmission/
$ git clone https://github.com/killemov/Shift.git

permision is same as default web folder (root ownner)
(3) ADD Environment Variable:

Code: Select all

$ nano /etc/init.d/transmission-deamon

just folow the line: export PATH=, as

Code: Select all

export PATH="${PATH:+$PATH:}/sbin"
export TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift


(4) Add Environment variable to SERVICE (in my case runs by Systemd process)

Code: Select all

$ nano /etc/systemd/system/multi-user.target.wants/transmission-daemon.service

add variable:

Code: Select all

[Service]
Environment=TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift



reload:

Code: Select all

$ systemctl daemon-reload


(5) Rebbot PC (work after reboot =) )


Also try to add a shift.sh scrit in etc/profile.d:

Code: Select all

#!/bin/sh
export TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift

But not sure if this is really needed at the end, but without add the environment variable in service shift didn't work.

After reboot machine SHIFT web UI works ok.

[edit:] After add environment variable to service all work.

bl0ndasse
Posts: 2
Joined: Fri Jul 07, 2017 8:07 pm

Re: Shift, a new web UI - UPDATE 2017.04.22

Postby bl0ndasse » Fri Jul 07, 2017 8:38 pm

Hi,

I'm on debian 9 and have same problem.
Previously on debian 8 everthing works fine.

Here are the modifications I've made

Code: Select all

me@nucleon ~ $ ls /usr/share/transmission/Shift
base.css  images  index.html  javascript  prototype.js  README.md  shift.css  shift.js  shift.json  style  terminal.css  touch.css

# Should not be used
me@nucleon ~ $ ls -l /usr/share/transmission/web
lrwxrwxrwx 1 root root 5 juil.  4 22:41 /usr/share/transmission/web -> Shift
bdr@nucleon ~ $ ls /usr/share/transmission/web/
base.css  images  index.html  javascript  prototype.js  README.md  shift.css  shift.js  shift.json  style  terminal.css  touch.css

# Should not be used
me@nucleon ~ $ grep TRANSMISSION /etc/init.d/transmission-daemon
export TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift

me@nucleon ~ $ grep TRANSMISSION /etc/systemd/system/multi-user.target.wants/transmission-daemon.service
Environment=TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift

me@nucleon ~ $ sudo systemctl daemon-reload
me@nucleon ~ $ sudo systemctl restart transmission-daemon


But always the same old web interface...

Code: Select all

me@nucleon ~ $ sudo -u debian-transmission transmission-daemon -f --log-debug
[...]
[2017-07-07 22:05:17.906] Saved "/etc/transmission-daemon/settings.json" (variant.c:1266)
[2017-07-07 22:05:21.906] Searching for web interface file "/var/lib/transmission-daemon/.local/share/transmission/web/index.html" (platform.c:430)
[2017-07-07 22:05:21.906] Searching for web interface file "/usr/share/transmission/web/index.html" (platform.c:430)
[2017-07-07 22:05:21.906] Blocklist "blocklist.bin" contains 227850 entries (blocklist.c:100)

me@nucleon ~ $ cat /tmp/test.sh
#!/bin/bash
export TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift
echo '---'
env | grep TRANSMISSION -C1
echo '---'
transmission-daemon -f --log-debug

me@nucleon ~ $ sudo -u debian-transmission /tmp/test.sh
---
TERM=xterm-256color
TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift
SHLVL=1
---
[2017-07-07 22:34:22.894] Transmission 2.92 (14714) started (session.c:738)
[2017-07-07 22:34:22.895] Cache Maximum cache size set to 16.00 MiB (1024 blocks) (cache.c:261)
[2017-07-07 22:34:22.895] RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:903)
[2017-07-07 22:34:22.895] RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:1110)
[2017-07-07 22:34:22.895] RPC Server Started listening on 127.0.0.1:9091 (rpc-server.c:780)
[2017-07-07 22:34:22.895] Bound socket 16 to port 64636 on 0.0.0.0 (net.c:388)
[2017-07-07 22:34:22.895] Bound socket 17 to port 64636 on :: (net.c:388)
[2017-07-07 22:34:22.895] Port Forwarding Stopped (port-forwarding.c:180)
[2017-07-07 22:34:22.895] UDP Failed to set receive buffer: requested 4194304, got 425984 (tr-udp.c:84)
[2017-07-07 22:34:22.895] UDP Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf (tr-udp.c:89)
[2017-07-07 22:34:22.895] UDP Failed to set send buffer: requested 1048576, got 425984 (tr-udp.c:95)
[2017-07-07 22:34:22.895] UDP Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf (tr-udp.c:100)
[2017-07-07 22:34:22.895] DHT Initializing DHT (tr-dht.c:278)
[2017-07-07 22:34:22.895] DHT Reusing old id (tr-dht.c:307)
[2017-07-07 22:34:22.895] DHT DHT initialized (tr-dht.c:332)
[2017-07-07 22:34:22.895] DHT Bootstrapping from 48 IPv4 nodes (tr-dht.c:156)
[2017-07-07 22:34:22.895] Using settings from "/var/lib/transmission-daemon/.config/transmission-daemon" (daemon.c:528)
[2017-07-07 22:34:22.895] Saved "/etc/transmission-daemon/settings.json" (variant.c:1266)
[2017-07-07 22:34:25.895] Blocklist "blocklist.bin" contains 227850 entries (blocklist.c:100)


Does someone know what is the problem ?
Thanks in advance.

killemov
Posts: 342
Joined: Sat Jul 31, 2010 5:04 pm

Re: Shift, a new web UI - UPDATE 2017.04.22

Postby killemov » Sat Jul 08, 2017 1:19 pm

bl0ndasse wrote:...
Does someone know what is the problem ?
Thanks in advance.

The problem is users dist-upgrading Debian and having no clue that the init-system has changed completely and the configuration in /etc/init.d has become obsolete.

bl0ndasse
Posts: 2
Joined: Fri Jul 07, 2017 8:07 pm

Re: Shift, a new web UI - UPDATE 2017.04.22

Postby bl0ndasse » Mon Jul 10, 2017 8:25 am

killemov, thank you for your answer.
The system having no clue that init-system has changed, but the environment parameter is definied in systemctl configuration too.

Code: Select all

me@nucleon ~ $ grep TRANSMISSION /etc/systemd/system/multi-user.target.wants/transmission-daemon.service
Environment=TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift


Moreover without using any system process launcher, the problem is the same.

Code: Select all

e@nucleon ~ $ cat /tmp/test.sh
#!/bin/bash
export TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift
echo '---'
env | grep TRANSMISSION -C1
echo '---'
transmission-daemon -f --log-debug

me@nucleon ~ $ sudo -u debian-transmission /tmp/test.sh
---
TERM=xterm-256color
TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift
SHLVL=1
---
[...]
# always the same old interface...


Return to “Web Interface”