PhAzE-Variance / unRAID

unRAID Files
GNU General Public License v3.0
7 stars 3 forks source link

Having a issues installing the plugins #10

Closed andrewchumchal closed 8 years ago

andrewchumchal commented 8 years ago

Everytime i try to install a plugin i get this error plugin: installing: /boot/config/plugins/Sonarr.plg Installing Sonarr plugin Checking for current bundle files Control file: Not Found Dependency file: Not found Mono file: Not found Check OK! Downloading new control file Install failed: Unable to detect internet connection plugin: run failed: /bin/bash retval: 1

Do not known how to fix it. I can ping outside network fine. Please help

Edit: I can update other apps and plugins. Just cannot install this one or sickrage are the only ones i tried

PhAzE-Variance commented 8 years ago

From your unraid console, what do you see when you run the following: timeout 5 wget --no-check-certificate -qST4 --spider "https://github.com/PhAzE-Variance" 2>&1 | grep HTTP | tail -1 | cut -f1 | awk '{print $NF}'

andrewchumchal commented 8 years ago

Thanks for your quick reply. When i put that in my unraid console. I got nothing back. Capture1.jpg

PhAzE-Variance commented 8 years ago

How about just this part: wget --no-check-certificate -qST4 --spider "https://github.com/PhAzE-Variance"

The output should start with: HTTP/1.1 200 OK

If you see that, it means you can reach my repo but if not, your sever is unable to reach my repo. Do you see anything odd in the output from the above command when you run it?

andrewchumchal commented 8 years ago

That command also comes up blank. Strange Any ideas why ?

PhAzE-Variance commented 8 years ago

Can you ping it from your server, and also try nslookup to see if you get an ip. Chances are your server is not getting the dns ressolved correctly.

andrewchumchal commented 8 years ago

I can net lookup and ping github.com fine Capture2.jpg

PhAzE-Variance commented 8 years ago

Ok, now try: telnet github.com 443

Does it open the connection and stay open or does it disconnect immediately?

andrewchumchal commented 8 years ago

It seems to stay open Capture3.jpg

PhAzE-Variance commented 8 years ago

So, it's strange that you can resovle the DNS to an IP, ping it, telnet to it, but wget will not connect.

try: wget --no-check-certificate -qO- "https://github.com/PhAzE-Variance"

You should see the code for the github web site dump on your screen.

andrewchumchal commented 8 years ago

That is correct. I do get the html dump Capture4.jpg

PhAzE-Variance commented 8 years ago

So it is working.

What version of unraid are you running? When you run: wget --help -> do you see an option for capital S (print server code) and one for --spider?

andrewchumchal commented 8 years ago

I do have the option for wget -S and --spider. I'm running unRAID 6.2.1

PhAzE-Variance commented 8 years ago

ok so we need to figure out which wget option isn't playing nice. try the following until one stops showing results:

wget --no-check-certificate -qO- "https://github.com/PhAzE-Variance" wget --no-check-certificate -q --spider "https://github.com/PhAzE-Variance" wget --no-check-certificate -qS --spider "https://github.com/PhAzE-Variance" wget --no-check-certificate -qST4 --spider "https://github.com/PhAzE-Variance"

andrewchumchal commented 8 years ago

1 output code. WGet qO.jpg 2 blank WGet q spider.jpg 3 output code 3 WGET qS spider.jpg 4 blank 4 WGET.jpg

andrewchumchal commented 8 years ago

Any update on this ?

PhAzE-Variance commented 8 years ago

With it being intermittent, there isn't much more I can do since it should either never work, or always work. If you try option 3 and 4 above over and over a few times, does it work every time on 3 and fail every time on 4?

andrewchumchal commented 8 years ago

3 comes back always with the correct output

andrewchumchal commented 8 years ago

I was finally able to install the plugin by making some edits to your plg file :)

PhAzE-Variance commented 8 years ago

Excellent. The difference between option 3 and 4 is the 4 second timeout. Likely the response was talking longer than the timer.