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

Running server update for 1.1.4 to 1.1.13 on Windows completely broke installation. #5440

Closed
geg-ck opened this issue Oct 17, 2023 · 5 comments

Comments

@geg-ck
Copy link

geg-ck commented Oct 17, 2023

Describe the bug
Under Windows 10. I ran the built-in auto update to go to the latest 1.1.13 version. Left the system alone for at least 20 minutes and nothing seemed to be happening. Meshcentral wasn't restarting, nothing was going on. Rebooted the server and meshcentral service would not start. Went swimming for log files and found the meshcentral.err.log for the service but the file permissions blocked access. File permissions were a mess throughout the meshcentral folder for some reason. I reset the permissions to inherited and opened the Meshcentral.err.log file and the immediate errors are:

Node.js v18.18.2
node:internal/modules/cjs/loader:1080
throw err;
^

Error: Cannot find module 'C:\Program Files\MeshCentral\node_modules\node-windows\lib\wrapper.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:86:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

I went looking for the missing module and the entire folder tree starting with node-windows doesn't exist.

I think I need to fully re-install MeshCentral. However, none of the links I've found for the Windows installer work. They all return 404 errors. How do I re-install on Windows?

Thanks

@geg-ck geg-ck added the bug label Oct 17, 2023
@geg-ck
Copy link
Author

geg-ck commented Oct 17, 2023

Finally found a working WindowsInstaller link. Re-installed, put my config.json back in after the re-install. Launched the Windows Service and it didn't work. :(. Launched MeshCentral from the command line. It looks like it went through some additional "installing" steps as the files and folders in the node-module path were updated and then, hoozah, it started working. Closed the command line instance and tried to launch the Windows Service and all is back to working again.

@Ylianst
Copy link
Owner

Ylianst commented Oct 21, 2023

Just released v1.1.14 that should fix update issues. This new version has a bunch of fixes on how new modules are installed. You may get you MeshCentral auto-updated to v1.1.14 due to a NPM behavior, but once on 1.1.14, you should be fine.

@si458
Copy link
Collaborator

si458 commented Oct 22, 2023

@CSW2000 please can u open a separate issue as u have multiple things wrong here like mysql config and config.json issues

@geg-ck
Copy link
Author

geg-ck commented Oct 23, 2023

Ran the v1.1.14 update via the server's web ui. Took a little under 5 minutes. No issues seen.

@si458
Copy link
Collaborator

si458 commented Jan 20, 2024

this is how to fix this type of issue:

  1. backup the whole meshcentral folder (not including node_modules), but importantly the meshcentral-data folder !?
  2. STOP MESHCENTRAL
  3. UNINSTALL MESHCENTRAL COMPLETELY! (including delete folders)
  4. UNINSTALL NODEJS (no idea why????)
  5. REINSTALL MESHCENTRAL (this will install node 14)
  6. STOP MESHCENTRAL AGAIN
  7. RESTORE meshcentral-data folder
  8. START MESHCENTRAL
  9. check all is ok
    CARRY ON IF YOU WANT THE LATEST NODEJS
  10. STOP MESHCENTRAL
  11. INSTALL NODE 20 (tick box asking for extra packages with chocolatey)
  12. START MESHCENTRAL

@si458 si458 closed this as completed Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants