Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtorrent not installed or not starting #522

Closed
bignick8t3 opened this issue Aug 25, 2020 · 17 comments
Closed

rtorrent not installed or not starting #522

bignick8t3 opened this issue Aug 25, 2020 · 17 comments

Comments

@bignick8t3
Copy link

Ran the install script on a fresh Ubuntu 20.04.1 install and rtorrent either won't install or won't start.

I found the following issue so as per a comment on there edited the script to output everything into the terminal.
#442

I appreciate that the script hasn't been tested on 20.04.

rtinst.txt

I removed my IP's from the terminal extract and ports replacing them with Ext-IP, Int-IP and SSH Port.

@V33m
Copy link
Collaborator

V33m commented Aug 25, 2020

I did a clean install last week with Ubuntu Focal and faced the same issue, which is Issue #518. I'll do a new release of rtinst in some minutes where the issue is hopefully fixed. I've not tested the fix, so I hope that you are able to verify if everything is fine.

V33m added a commit that referenced this issue Aug 25, 2020
Added checking to verify if current distribution (release name, ex. focal) has available PPA packages. If not, packages will be installed from Ubuntu Package archive.

Solves Issue #518 and #522.
@V33m
Copy link
Collaborator

V33m commented Aug 25, 2020

I've added a simple fix for your issue. So, remove PPA from /etc/apt/sources.list and give the latest rtinst v.1.8.12 a try as I've not tested the version yet. Please let me know if everything went fine for your with the latest rtinst.

@V33m V33m closed this as completed Aug 25, 2020
@bignick8t3
Copy link
Author

What would the process be to integrate the scripts as running the rtsetup pulls the scripts from git and uses v1.8.11

I tried running the rtinst script but nginx failed to install as the /etc/rtinst directory didn't exist.

I was doing this on a fresh Ubuntu box.

@V33m
Copy link
Collaborator

V33m commented Aug 26, 2020

It's fixed now. Thanks for letting me know! 👍 Remove PPA again from /etc/apt/sources.list and re-run rtsetup.

@bignick8t3
Copy link
Author

Unless I'm doing something wrong it's still having issues.
rtinst.txt

Again I've omitted IP's.

So I downloaded the zip and then ran rtsetup then ran with rtinst, once again a fresh install of 20.04.1 fully patched.

@V33m
Copy link
Collaborator

V33m commented Aug 27, 2020

I just did a clean install for Ubuntu Focal on Arm64 so it's strange that you are having issues. I certainly need more information. And, could you please run the following command:
sudo rtsetup && sudo sed -i "/^\(\s\|#\)*#\!\/bin\/bash/ a\set -x" /etc/rtinst/scripts/rtinst && sudo chmod +x /etc/rtinst/scripts/rtinst && sudo rtinst
Then post everything that output in terminal. The beginning will look like

$ sudo rtinst
+ PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/bin:/sbin
+ rtorrentrel=0.9.6
+ rt_url=http://rtorrent.net/downloads/
+ xmlrpc_url=https://svn.code.sf.net/p/xmlrpc-c/code/advanced/
+ xmlrpc_url_alt=https://github.com/mirror/xmlrpc-c
+ ru_url=https://github.com/Novik/ruTorrent/
+ adl_url=https://github.com/autodl-community/
++ dpkg-query -W '-f=${Status}' lsb-release
++ grep -c 'ok installed'
+ '[' 1 -eq 0 ']'
++ lsb_release -sd
+ fullrel='Ubuntu 20.04.1 LTS'
++ lsb_release -si
+ osname=Ubuntu
++ lsb_release -sr
++ cut -d. -f1
+ relno=20

@bignick8t3
Copy link
Author

Hi there, apologies in my delay but I got side tracked!

As a quick test I spun up a fresh vm and ran your latest 1.8.14 and still rtorrent didn't install.

Do you want me to run the above command(s) with this later version?

@bignick8t3
Copy link
Author

I ran the command you asked for with 1.8.14 anyway, output attached.
rtinst.txt

Again a vanilla install of 20.04.1 fully patched.

Hope it helps

@V33m
Copy link
Collaborator

V33m commented Sep 4, 2020

Thanks for the log 👍 I've done three installations with Ubuntu 20.04 on arm64 without any similar issues. Are you using amd64?

I've spotted the section where it fails. There are no folders in your homefolder/source (/home/USERNAME/source), right? If there are folders there, they are not named xmlrpc, libtorrent-0.13.8 and rtorrent-0.9.8, correct? I'll look into this when I get home from the weekend.

@V33m V33m reopened this Sep 4, 2020
@bignick8t3
Copy link
Author

Yes the test box is on a Xen hypervisor and will be amd64 also the physical box I will ultimately install to will be amd64.

Looking in /home/nick/source I have libtorrent-0.13.8 and rtorrent-0.9.8.
So the xmlrpc that you mention is not there.

@V33m
Copy link
Collaborator

V33m commented Sep 8, 2020

Unfortunately, I'm not able to test, but if you are able, copy the content of the attached file to /etc/rtinst/scripts/rtupdate. Then make the script executable with sudo chmod +x /etc/rtinst/scripts/rtupdate before you run it with rtupdate.

rtupdate.txt

@bignick8t3
Copy link
Author

Did that and it didn't like that.

nick@test:/etc/rtinst/scripts$ sudo rtupdate
Checking File Repositories
xmlrpc-c: OK
rtorrent: OK
rtorrent NOT installed
This script is for upgrading/downgrading only, not for initial install
nick@test:/etc/rtinst/scripts$

@V33m
Copy link
Collaborator

V33m commented Sep 9, 2020

Yes, I should have mentioned rtinst and not rtupdate since rtorrent hasn't been installed yet. So, run rtinst 👍

@bignick8t3
Copy link
Author

Maybe I was a bit to literal in following your instructions.

Running rtinst has worked, console extract in case you should need it:
rtinst.txt

What was the issue with amd64?

@V33m
Copy link
Collaborator

V33m commented Sep 9, 2020

Well, rtinst is executing parts of rtupdate. So if you are having issues with rtorrent after the first time you provided the log to me, you have to run rtinst to try to install rtorrent again.

I'm not sure, but I don't have any issues with arm64. However, reading from your first log, it seems that the command
svn co $xmlrpcloc xmlrpc >> $logfile 2>&1 did not download and add the folder xmlrpc to ~/sources, which rtorrent is dependent on. I've added an additional check to verify that if there doesn't exist a xmlrpc folder, it will fallback to github and try to download and add the folder with the files from an alternative mirror and method.

@V33m
Copy link
Collaborator

V33m commented Sep 10, 2020

@bignick8t3, have you been able to run rtinst again with the changes in the rtupdate script? If not, try the latest rtinst v1.8.15 👍

@V33m V33m closed this as completed Sep 10, 2020
@bignick8t3
Copy link
Author

@V33m I can confirm that using v1.8.15 on a fresh install now works as expected.

Top work 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants