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

script hangs at "checking major 3rd party components" #381

Closed
ieffedmybffjill opened this issue Nov 22, 2018 · 3 comments
Closed

script hangs at "checking major 3rd party components" #381

ieffedmybffjill opened this issue Nov 22, 2018 · 3 comments

Comments

@ieffedmybffjill
Copy link

the issue could very well be on my end, however I am using a fresh intall of ubuntu minimal 14.04.1.

upon running rtinst, it hangs at the xmlrpc-c check. here is terminal output:

user@server:~# rtinst
Ubuntu 14.04.1 LTS

Checking the web sites we will need are accessible
Checking Ubuntu mirrors
http://archive.ubuntu.com/ubuntu: OK
http://security.ubuntu.com/ubuntu: OK
http://archive.canonical.com/ubuntu: OK

Checking major 3rd party components
Rtorrent: OK
xmlrpc-c: 

it's odd because the pages referenced by xmlrpc_url and xmlrpc_url_alt both seem to resolve for me.

i also noticed there's some error messages to display if the urls don't resolve, but the script doesn't seem to get that far.

i git cloned the repo and changed the xmlrpc-c URL to the one referenced in commit #29a3ad9 but that didn't seem to fix it. i'm not actually sure what else i could try but i'm gonna play with it some more.

@ieffedmybffjill
Copy link
Author

ieffedmybffjill commented Nov 22, 2018

line #293 and #295 of /scripts/rtinst reference xmlrpc_repo=1 but this doesn't seem to be set, looks like it belongs at line #278. i added this, i alo switched xmlrpc_url and xmlrpc_alt because maybe there was a resolving error there? and i added a failure message similar to the other checks, but the script still hangs for me.

my guess is that the check_url function is returning some unexpected error, possibly related to SSL / HTTPS certificate?

either way, rtinst seems to get stuck in a loop without triggering a failure message.

# check required web repos are accessible
os_repo=0
major_repo=0
xmlrpc_repo=0

sed  -i "s/\/debian\s/\/debian\/ /g" /etc/apt/sources.list

echo
echo "Checking the web sites we will need are accessible"
echo  "Checking $osname mirrors"
for i in $(cat /etc/apt/sources.list | grep "^deb http" | cut -d' ' -f2 | uniq ); do
  echo -n $i": "
  check_url $i && echo "OK" || { echo "FAIL"; os_repo=1; }
done

echo
echo "Checking major 3rd party components"
echo -n "Rtorrent: "; check_url $rt_url && echo "OK" || { echo "FAIL"; major_repo=1; }

echo -n "xmlrpc-c: "; check_url $xmlrpc_url && echo "OK" || { echo "FAIL1"; xmlrpc_repo=1; }

if [[ $xmlrpc_repo = 1 ]]; then
  xmlrpc_url=$xmlrpc_url_alt
  check_url $xmlrpc_url && echo "OK" || { echo "FAIL2"; major_repo=1; }
fi

@lowprofileusername
Copy link

Same here. hang at xmlrpc-c:
any solutions?

@V33m
Copy link
Collaborator

V33m commented Sep 11, 2019

Is this issue still present? If so, please add the following to rtinst script after #!/usr/bin/env bash on the top:

set -e -x

And remember to make the script executable again with:

sudo chmod +x /etc/rtinst/scripts/rtinst

Re-run the script and post the whole output.

@V33m V33m closed this as completed Jul 5, 2020
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

3 participants