Page 1 of 1

ubuntu 10.04 reinstall transmission not working

Posted: Fri Jul 15, 2011 2:24 pm
by klein
hi
last night i had to reinstall ubuntu 10.04 desktop on a computer that i used just to download
torrents. i had transmission 2.31 (12441) installed and working dependable with cron resume and pause my torrents. but after reinstalling ubuntu 10.04 and transmission cron and my sh scripts do not work any more, i have been reading a lot and do not wish to mess up a fresh install is there a way to make transmission-remote pause and resume? easily? what i have been reading seems in depth for what i wont to do and a little over my head.

files that are installed
transmission, transmission-cli, transmission-common, transmission-daemon,


my cron entries:

01 2 * * * root /usr/mysbin/transresume.sh
01 7 * * * root /usr/mysbin/transpause.sh

my scripts:

#!/bin/sh
/usr/bin/transmission-remote -t all -s
date >> /home/klein/Desktop/tyler
echo "transmission resume" >> /home/klein/Desktop/tyler



#!/bin/bash
/usr/bin/transmission-remote -t all -S
date >> /home/klein/Desktop/tyler
echo "transmission pause" >> /home/klein/Desktop/tyler

Re: ubuntu 10.04 reinstall transmission not working

Posted: Sat Jul 16, 2011 4:28 pm
by gunzip
on the surface it looks like what you have should work. maybe as basic sanity check make sure both the transmission and cron daemons are running:

Code: Select all

# ps aux | grep -e 'cron' -e 'transmission'
also double-check both your scripts are executable

Code: Select all

# chmod +x /usr/mysbin/transresume.sh /usr/mysbin/transpause.sh
check logs at /var/log/syslog and see if there is entries regarding cron, or any errors noted there.

Re: ubuntu 10.04 reinstall transmission not working

Posted: Sat Jul 16, 2011 8:18 pm
by klein
hi x190 and gunzip

i'v tried all of what you mentioned, been over it 100 times checked my spelling too witch is usually the problem.
i have a computer running 8.04.02 amd64 , transmission 2.22 (12099) and the above works perfectly, crontab pauses and resumes transmission

the computer i'm working on when i installed transmission, was about a year ago, on a fresh install of 10.04 and it worked fine with crontab , and has worked fine up this week when i reinstalled 10.04.2 for another reason.

every time i run the command it wants to connect over my local network, could not find (http://localhost//////transmission/rpc)

ok so i have another computer with with 10.04.2 installed nothing done to it and if i run the command it tells me transmission-remote isn't installed when i install it, it treys to connect to my local network too

i even went as far as downloading transmission-cli_2.22-0ubuntu1.08.04.2_i386.deb, transmission-common_2.22-0ubuntu1.08.04.2_all.deb, transmission-gtk_2.22-0ubuntu1.08.04.2_i386.deb and deleted everything transmission touched when installed and reinstalled the 2.22 packages in 10.04, transmission worked but still could not resume or pause it with crontab.

i'm not sure if it is transmission or something they have done to ubuntu 10.04.2 but it looks to me like my command is trying to connect to a headless server running transmission and crontab from the command line isn't working any more .

at this point i have reinstalled 10.04.2 contemplating what to do next

Re: ubuntu 10.04 reinstall transmission not working

Posted: Sat Jul 16, 2011 10:15 pm
by gunzip
klein wrote:i even went as far as downloading transmission-cli_2.22-0ubuntu1.08.04.2_i386.deb, transmission-common_2.22-0ubuntu1.08.04.2_all.deb, transmission-gtk_2.22-0ubuntu1.08.04.2_i386.deb and deleted everything transmission touched when installed and reinstalled the 2.22 packages in 10.04, transmission worked but still could not resume or pause it with crontab.
you seem to have left out the transmission-daemon deb package, which would be required for your cron scripts to work.

if you do get the daemon up and running, try running your scripts manually from the command line:

/usr/mysbin/transresume.sh
/usr/mysbin/transpause.sh

and see what happens.

Re: ubuntu 10.04 reinstall transmission not working

Posted: Sat Jul 16, 2011 11:30 pm
by klein
gunzip

i left out the transmission-daemon deb package package out because it isn't running or should i say it doesn't show in my synaptic package manager on the 8.04.2 machine that works also i for got that my scripts have an output to the desktop so ever time i run them i know at least the commands were sent

ok i i reinstalled this computer to day so with a fresh install of 10.04.2, when i run /usr/mysbin/transresume.sh it tells me transmission-remote not found , and it would like me to install transmission-cli.

so i tried installing transmission-remote couldn't find package transmission-remote so i installed transmission-cli now we are back to transmission-remote: (localhost:9091) could not connect to server so i little light bulb comes on i went into transmission preferences and enabled web client and it works . what turned the bulb on was port 9091.
so it works now thank you very much everything i kept finding to reed was connecting to a server and controlling transmission