Giter Site home page Giter Site logo

Comments (19)

Kerwood avatar Kerwood commented on September 14, 2024

Have you checked that the .rtorrent.rc file is available and readable, for the rtorrent user ?

from rtorrent-auto-install.

GostlingX avatar GostlingX commented on September 14, 2024

no...on which directory I find it?

from rtorrent-auto-install.

Greqs avatar Greqs commented on September 14, 2024

/home/YOURS_USER_NAME/rtorrent.rc

from rtorrent-auto-install.

Kerwood avatar Kerwood commented on September 14, 2024

Cant help you

from rtorrent-auto-install.

GostlingX avatar GostlingX commented on September 14, 2024

Thk for instant close the issue...but not work

from rtorrent-auto-install.

Kerwood avatar Kerwood commented on September 14, 2024

No.. Thank you for giving me so specific details about your issue. It really makes everything easy.
Its an rtorrent issue, or its your server. Not my script.

from rtorrent-auto-install.

GostlingX avatar GostlingX commented on September 14, 2024

That's all I've done since before starting the installation script.

adduser rutorrent

During installation I inserted this user (rutorrent)

Installed, reboot the server and insert screen -fa -d -m -S rtorrent rtorrent

Rtorrent internal error (console)
Could not read resource file: ~/.rtorrent.rc

Rutorrent Site
No connection to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file.

I realized that the installation is very simple, I watched the video, but if once the installation is not working, and obviously I ask you ..

from rtorrent-auto-install.

Kerwood avatar Kerwood commented on September 14, 2024

Where do you insert the "screen" line ?
You shouldnt have to do that.

from rtorrent-auto-install.

dvu0704 avatar dvu0704 commented on September 14, 2024

Hi Kerwood,

I just installed fresh Ubuntu server 14.4 and latest rtorrent. Everything configured fine without any issue. But when I reboot the server the first time after rtorrent installed, I got this error below just like everyone else got.

No connection to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file.

Other ppl are saying, this is a bind issue, to fix it, simply edit the /var/www/html/rutorrent/conf/config.php

From:

$httpIP = null; // IP string. Or null for any.

To

$httpIP = IP; // IP string. Or null for any.

I got it fixed with previous installation, but not with this Ubuntu 14.4 version.

Starting/Stopping/Restarting service work fine, but auto restart on boot-up does not start it auto.

I checked the .rtorrent.rc file to make sure the system user account has read and write to the file or not, it does.

-rw-r--r-- 1 don don 3421 Mar 21 20:50 .rtorrent.rc

What's my next step here? Please advise.

Thanks!

from rtorrent-auto-install.

Kerwood avatar Kerwood commented on September 14, 2024

If i understand you right, rtorrent wont start after boot. You have to start it manually.

The init script was initially made for Debian. (The script that starts and stops rtorrent with service rtorrent-init). I suspect that is the problem. And I dont think its only you. My guess is that it would properly not work on any Ubuntu system.

Try and start it after boot with crontab.
If you dont use password when using sudo you can write this line in your own crontab.

@reboot sudo service rtorrent-init start

Else write it in root crontab, without sudo.

from rtorrent-auto-install.

dvu0704 avatar dvu0704 commented on September 14, 2024

You have understand me correctly.

I do use sudo with password, does that mean I don't have other option beside changing my system account with no password in-order to use the crontab?

Can I add that line with sudo password?

I tried with and without sudo, still does not work

from rtorrent-auto-install.

Kerwood avatar Kerwood commented on September 14, 2024

No.. You turn off password for sudo, not your system account.

You have to open crontab with crontab -e (NO SUDO!), then add the line, close and save.

If you do not have disabled password on sudo, login as root and add the line in root's crontab, without sudo.

from rtorrent-auto-install.

dvu0704 avatar dvu0704 commented on September 14, 2024

OK, here is what I did.

Disabled sudo password with the steps below

Edit the sudoers file:

sudo visudo
Find this line:

%sudo ALL=(ALL) ALL
Change the line:

%sudo ALL=(ALL) NOPASSWD: ALL
Save and Exit

Edit crontab

sudo nano /etc/crontab -e

Added a command line at the end of the crontab as

@reboot sudo service rtorrent-init start

Saved and reboot.

rtorrent still did not startup auto

from rtorrent-auto-install.

dvu0704 avatar dvu0704 commented on September 14, 2024

After rebooted, I ran the command line below.

ps -ef|grep rtorrent

looks like rtorrent started under don's account, but the rutorrent did not started

don 2042 1971 0 23:39 pts/1 00:00:00 grep --color=auto rtorrent

from rtorrent-auto-install.

dvu0704 avatar dvu0704 commented on September 14, 2024

The follow command I ran is

screen rtorrent

That seem to startup rutorrent webgui. What am I missing here?

I can de-attached the screen without issue.

from rtorrent-auto-install.

Kerwood avatar Kerwood commented on September 14, 2024

First of all.. If you run sudo nano /etc/crontab -e you are doing it wrong. Go back and read my last post again.

Rutorrent webui is always on. Rutorrent is not the problem.
Your problem is that rtorrent does not start, so rutorrent cannot connect to rtorrent.

from rtorrent-auto-install.

dvu0704 avatar dvu0704 commented on September 14, 2024

I re-read your last post, but not sure what you mean. Are you telling me not to edit the crontab -e with sudo?

I tried that, but unable to save the file, permission denied.

Can I do this?

sudo su -

and then

nano /etc/crontab -e

and then add the line below?

@reboot sudo service rtorrent-init start

from rtorrent-auto-install.

Kerwood avatar Kerwood commented on September 14, 2024

Dude.. You really need some basic Linux knowledge :)

Dont use nano /etc/crontab -e
Just run crontab -e - Nothing else!

If that doesent work Im out of ideas.

from rtorrent-auto-install.

dvu0704 avatar dvu0704 commented on September 14, 2024

LOL, I told you, I am new to XUNIL :).

I just tried that, no go. with or without sudo in the crontab, the result is the same. For now, I will start it up manually until you figure it out. If you can't, who does?

from rtorrent-auto-install.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.