Bug updating plugins/docker/os with GUI + a FIX


FoxyNC
Go to solution Solved by bonienl,

Recommended Posts

Since version 6.10 RC... I've noticed troubles updating plugins, docker containers and OS using the GUI.

I'm getting a "not available" error message each time.

image.png.3d04b79f07bfa94fc026387cf0e32766.png

 

Same issue reported with Docker containers here https://forums.unraid.net/topic/108643-all-docker-containers-lists-version-“not-available”-under-update/

 

The "CA Auto Update Applications"  is working fine though so it was not a big deal but still, annoying.

 

I could't find any answer on Google nor this forum so I started digging and found what seems to be the culprit.

The script /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/checkall implements a connectivity test trying to reach http://www.msftncsi.com/ncsi.txt but fails to do so :

...
// check connectivity first
echo _("Checking connectivty")."...\n";
if (exec("wget --spider -nv -T10 -t1 http://www.msftncsi.com/ncsi.txt 2>&1|grep -o 'OK'")) {
  $check = popen('plugin checkall','r');
  while (!feof($check)) echo fgets($check);
  pclose($check);
} else {
  echo _("No response, aborting")."!\n";
}
?>

 

Running the command below shows the error

image.png.a4e38a85fc75ebabb791ece0a22a6c79.png

 

The fix is quite simple, at least for manually updating plugins through GUI: try reaching using HTTPS instead of HTTP and ignore the certificate

image.png.52eae5959fcea7c2afef79171ab0ea28.png

Now we get the "OK" response which will make the script work again.

 

Still trying to figure out where to fix the docker update through GUI...

Edited by FoxyNC
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.