WillyXJ / facileManager

A modular suite of web apps built with the sysadmin in mind.
www.facilemanager.com
GNU General Public License v2.0
88 stars 37 forks source link

fmDNS not updating to latest version #623

Closed arvig-scotttaylor closed 5 months ago

arvig-scotttaylor commented 6 months ago

Please prefix your issue title with one of the following: [BUG], [ISSUE], [FEATURE REQUEST], [MODULE REQUEST], [OTHER].

Replace everything between stars with current version of your facileManager and module installations:
fM Version : 4.6.1 fmDNS Version : 5.3.3

In raising this issue, I confirm the following (please check boxes, eg [X]):


(BUG | ISSUE) Expected Behavior: Update fmDNS to the latest version

(BUG | ISSUE) Actual Behavior: Upgrade reports the current version of fmDNS and halts or If manually updated fmDNS to latest version facileManger reports that the server needs to be updated and when the update is run it reinstalls the older version of fmDNS.

(BUG | ISSUE) Steps to reproduce:

  1. sudo php /usr/local/facileManager/fmDNS/client.php upgrade with current version of fmDNS (5.3.3) installed

  2. Manually update fmDNS to latest version (6.0.4) and run sudo php /usr/local/facileManager/fmDNS/client.php upgrade

  3. Try to update fmDNS module through facileManger gui

Response from 1st step: Installed version: 5.3.0

Response from 2nd step: Installed version: 6.0.0 Latest version: 5.3.0 Downloading http://www.facilemanager.com/download/facilemanager-core-4.6.1.tar.gz Downloading http://www.facilemanager.com/download/module/fmdns-5.3.0.tar.gz Extracting client files Cleaning up Client upgrade complete

Response from 3rd step: image

WillyXJ commented 6 months ago

Clients cannot have a newer module version installed than what's running on the server so your steps 1 and 2 have expected behavior. You need to update your webUI version first. You can either do that manually by downloading the package from facilemanager.com and extracting it into your document root, or through the webUI provided it sees there's an update. Do you have this setting enabled in your Settings -> General?

image

Once fM checks for updates, the modules page will look similar to this if there are any updates:

image

Update the core, modules, and then clients in that order.

arvig-scotttaylor commented 6 months ago

Thank you for the information provided. The settings were set as shown but when I clicked the "Check Now" button it updated and showed 6.0.4. I am not sure why the weekly check was not working.

Besides that another thing showed up when I tried to upgrade the clients. I ended up upgrading them manually for now. When I did "sudo php /usr/local/facileManager/fmDNS/client.php upgrade" I got: Installed version: 5.3.0 Latest version: 6.0.0 Downloading http://www.facilemanager.com/download/facilemanager-core-4.6.1.tar.gz Unable to download file.

I then tried to use wget to try and go to the same path and got: wget http://www.facilemanager.com/download/facilemanager-core-4.6.1.tar.gz --2024-03-22 15:07:35-- http://www.facilemanager.com/download/facilemanager-core-4.6.1.tar.gz Resolving www.facilemanager.com (www.facilemanager.com)... 198.54.115.176 Connecting to www.facilemanager.com (www.facilemanager.com)|198.54.115.176|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://www.example.com/download/facilemanager-core-4.6.1.tar.gz [following] --2024-03-22 15:07:36-- https://www.example.com/download/facilemanager-core-4.6.1.tar.gz Resolving www.example.com (www.example.com)... 93.184.216.34, 2606:2800:220:1:248:1893:25c8:1946 Connecting to www.example.com (www.example.com)|93.184.216.34|:443... connected. HTTP request sent, awaiting response... 500 Internal Server Error 2024-03-22 15:07:36 ERROR 500: Internal Server Error.

On Fri, Mar 22, 2024 at 2:02 PM WillyXJ @.***> wrote:

Clients cannot have a newer module version installed than what's running on the server so your steps 1 and 2 have expected behavior. You need to update your webUI version first. You can either do that manually by downloading the package from facilemanager.com and extracting it into your document root, or through the webUI provided it sees there's an update. Do you have this setting enabled in your Settings -> General?

image.png (view on web) https://github.com/WillyXJ/facileManager/assets/1309591/9ab4d7d6-2ccf-4b2b-a43e-65e7eedc90d2

Once fM checks for updates, the modules page will look similar to this if there are any updates:

image.png (view on web) https://github.com/WillyXJ/facileManager/assets/1309591/c37c9ac2-bc75-44fb-8aa9-f54d94cc1fd6

Update the core, modules, and then clients in that order.

— Reply to this email directly, view it on GitHub https://github.com/WillyXJ/facileManager/issues/623#issuecomment-2015734620, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQRGOF3L67C7IQH5IFNBSVLYZR557AVCNFSM6AAAAABFDT4DZ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJVG4ZTINRSGA . You are receiving this because you authored the thread.Message ID: @.***>

--

Scott Taylor

System Engineer II

ph:320.256.0257

c: 320.262.9596

@.***

150 Second Street SW | Perham, MN 56573 | arvig.com

WillyXJ commented 6 months ago

This should be resolved now.