Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
3.67k stars 511 forks source link

Windows installer "MeshCentralInstaller.exe" don´t work for V 1.1.24 #6193

Open muepep opened 2 weeks ago

muepep commented 2 weeks ago

We try to install Meshcentral on a Windows system - this works for V 1.1.22. Since release 1.1.24 the setup stops with "Cant´t find node_modulesfolder, installation failded." Folder C:\Program Files\Open Source\MeshCentral are created. The error ocurs even if we install node.js before.

si458 commented 2 weeks ago

PLEASE FOLLOW THE BUG TEMPLATE IN THE FUTURE!!!

are you using the latest meshcentralinstaller.exe from the website? https://meshcentral.com/downloads.html https://meshcentral.com/tools/MeshCentralInstaller.exe

did it install nodejs ok?

what windows os and version?

what nodejs version did it install?

muepep commented 2 weeks ago

Yes we use this actual download of the installer. Yes node.js are installed V 18.19.0 Same error we install actual node.js V 20.14.0 before we start meshcentrralinstaller We use windows server 2022

muepep commented 2 weeks ago

same problem if we use windows 10

si458 commented 2 weeks ago

hmm yes im seeing sort of the same issue, it just sits on Installing MeshCentral Service... i can see it install node fine, npm installs fine, installs service fine, but then doesnt start the service for some reason? BUT while its stuck on Installing MeshCentral Service... if i go into Windows Services then start the meshcentral service, it carrys on and finishes perfectly fine!?

muepep commented 2 weeks ago

Sorry, i didn´t reach this point. The MC-Service is in "C:\Program Files\Open Source\MeshCentral\winservice\daemon\meshcentral.exe" (seen on a server which run´s 1.1.22) Trying to install 1.1.24 the folder C:\Program Files\Open Source\MeshCentral Remains empty – but is created Getting this error @.*** Where can i find some log-files of this task ?

si458 commented 2 weeks ago

HUH? 😕 can you share a screenshot of folder and also the error?

have you tried right clicking and running as admin?

also juct try removing the C:\Program Files\Open Source folder FIRST before re-running as i did notice on a test machine of mine, that the Open Source folder had weird permissions set and i couldnt delete it as i didnt OWN the folder which seemed odd?

muepep commented 2 weeks ago

Hi,

sure i run this as admin. I have done a (unattended) installation of this system before I try to install (same unattended installation I use for the system which works with 1.1.22) – so I am sure that the folder doesn´t exist before the installation starts @.***

Rights seems to be normal, no problem to delete this folder

si458 commented 2 weeks ago

im not sure what you mean by it works on my 1.1.22 system? the meshcentralinstaller just installs the latest version every time you run it? so how have you installed 1.1.22?

muepep commented 2 weeks ago

Sec. screenshot @.***

Access rights @.***

From: Simon Smith @.> Sent: Donnerstag, 20. Juni 2024 22:09 To: Ylianst/MeshCentral @.> Cc: Münch-Peplinski, Jürgen @.>; Author @.> Subject: Re: [Ylianst/MeshCentral] Windows installer "MeshCentralInstaller.exe" don´t work for V 1.1.24 (Issue #6193)

HUH? 😕 can you share a screenshot of folder and also the error?

have you tried right clicking and running as admin?

also juct try removing the C:\Program Files\Open Source folder FIRST before re-running as i did notice on a test machine of mine, that the Open Source folder had weird permissions set and i couldnt delete it as i didnt OWN the folder which seemed odd?

— Reply to this email directly, view it on GitHubhttps://protection.retarus.com/v1?u=https%3A%2F%2Fgithub.com%2FYlianst%2FMeshCentral%2Fissues%2F6193%23issuecomment-2181478250&c=3ikQ43P&r=udn1GclP9bkfeecQ0bNUd&k=7s1&s=uZA0otgg2HPjMfnmDdwu0Q7I9rJzYSz3TZUUnUkea2n, or unsubscribehttps://protection.retarus.com/v1?u=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FBJETNFAW5FKPFTI4NAAA2ZTZIMZHPAVCNFSM6AAAAABJR32U6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBRGQ3TQMRVGA&c=3ikQ43P&r=3ND03TWDqgQk9PjQdFm4d4&k=7s1&s=fDeJNx38x4iRpOvyzKTHcoTuQlA0WYL6cWGk0wuimJO. You are receiving this because you authored the thread.Message ID: @.**@.>>

si458 commented 2 weeks ago

@muepep we dont see any screenshots when u send emails, you need to put them inline of the email or upload them using github website

muepep commented 2 weeks ago

Screenshots as pdf

si458 commented 2 weeks ago

@muepep still no attachments in afraid

muepep commented 1 week ago

I installed 1.1.22 few weeks ago

im not sure what you mean by it works on my 1.1.22 system? the meshcentralinstaller just installs the latest version every time you run it? so how have you installed 1.1.22?

— Reply to this email directly, view it on GitHubhttps://protection.retarus.com/v1?u=https%3A%2F%2Fgithub.com%2FYlianst%2FMeshCentral%2Fissues%2F6193%23issuecomment-2181496541&c=3ikQ43P&r=4FeR21WjrezXpfuGOb0saL&k=7s1&s=hDY7CMmDZMpGefbIyC41UBBDOLrb8OTyGtC0DJzD01z, or unsubscribehttps://protection.retarus.com/v1?u=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FBJETNFHKWY4TIJVWYUJITL3ZIM23BAVCNFSM6AAAAABJR32U6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBRGQ4TMNJUGE&c=3ikQ43P&r=5VvnWtsb54EkUCGYuXrJtr&k=7s1&s=BrYoHyGWij9O3hhjfsftBXIbqqpNeazcdvA5Usn1L1e. You are receiving this because you authored the thread.Message ID: @.**@.>>

muepep commented 1 week ago

screenshots.pdf

muepep commented 1 week ago

Sorry, yesterday I running out of time, now it works you get a pdf with screenshots

si458 commented 1 week ago

can you just try running node -v and npm -v from your command line and see if it outputs anything? i think the installer cant find node.exe and npm.exe, they should be set in your environment variables of the system PATH

muepep commented 1 week ago

On both systems the path contains C:\Program Files\nodejs\ Commands returns the version on both systems

node -v v20.14.0 and npm -v 10.7.0

From: Simon Smith @.> Sent: Freitag, 21. Juni 2024 10:28 To: Ylianst/MeshCentral @.> Cc: Münch-Peplinski, Jürgen @.>; Mention @.> Subject: Re: [Ylianst/MeshCentral] Windows installer "MeshCentralInstaller.exe" don´t work for V 1.1.24 (Issue #6193)

can you just try running node -v and npm -v from your command line and see if it outputs anything? i think the installer cant find node.exe and npm.exe, they should be set in your environment variables of the system PATH

— Reply to this email directly, view it on GitHubhttps://protection.retarus.com/v1?u=https%3A%2F%2Fgithub.com%2FYlianst%2FMeshCentral%2Fissues%2F6193%23issuecomment-2182264380&c=3ikQ43P&r=6HH9U9TJvO6JcXL1Hh5XtL&k=7s1&s=ut5DcoEhdMObKMJ2PxkSmTskNSXoOLPEtbdvkDNYGjw, or unsubscribehttps://protection.retarus.com/v1?u=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FBJETNFGZCVBIP24QC7ADPTLZIPPXFAVCNFSM6AAAAABJR32U6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBSGI3DIMZYGA&c=3ikQ43P&r=6BLzYb8Ix3r9k4cDOi9Ga3&k=7s1&s=wc0hp0HmC1aMY1SLKcrmzot1EUCPIB9cpYFjuAmgr72. You are receiving this because you were mentioned.Message ID: @.**@.>>

si458 commented 1 week ago

can you just try running the commands directly from a fresh 'command prompt', without cd to any folder?

muepep commented 1 week ago

Was done in this way

C:>npm -v 10.7.0

C:>node -v v20.14.0

C:>

From: Simon Smith @.> Sent: Freitag, 21. Juni 2024 14:38 To: Ylianst/MeshCentral @.> Cc: Münch-Peplinski, Jürgen @.>; Mention @.> Subject: Re: [Ylianst/MeshCentral] Windows installer "MeshCentralInstaller.exe" don´t work for V 1.1.24 (Issue #6193)

can you just try running the commands directly from a fresh 'command prompt', without cd to any folder?

— Reply to this email directly, view it on GitHubhttps://protection.retarus.com/v1?u=https%3A%2F%2Fgithub.com%2FYlianst%2FMeshCentral%2Fissues%2F6193%23issuecomment-2182673850&c=3ikQ43P&r=4YQuDmnCUanZwGjqxDZexE&k=7s1&s=pzdUzQSQPjMdkvL7Z3fRNwytd2BL380OXv67cjjWptT, or unsubscribehttps://protection.retarus.com/v1?u=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FBJETNFCCU5B44RBKPZY4DQ3ZIQNBVAVCNFSM6AAAAABJR32U6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBSGY3TGOBVGA&c=3ikQ43P&r=rk1FLQX1Pge9ZDAgkTMxQ&k=7s1&s=9nSTqPbIL1GYrusXqq7zueTHdmStg0f88K3vOUj12Wb. You are receiving this because you were mentioned.Message ID: @.**@.>>

muepep commented 1 week ago

Create a .js file and test node like described How to Install Node.js and NPM on Your Windows System (phoenixnap.com)https://phoenixnap.com/kb/install-node-js-npm-on-windows

C:\Temp>node test.js Hello, world!

Works – but no solution for the installer problem

From: Münch-Peplinski, Jürgen Sent: Freitag, 21. Juni 2024 14:39 To: 'Ylianst/MeshCentral' @.***> Subject: RE: [Ylianst/MeshCentral] Windows installer "MeshCentralInstaller.exe" don´t work for V 1.1.24 (Issue #6193)

Was done in this way

C:>npm -v 10.7.0

C:>node -v v20.14.0

C:>

From: Simon Smith @.**@.>> Sent: Freitag, 21. Juni 2024 14:38 To: Ylianst/MeshCentral @.**@.>> Cc: Münch-Peplinski, Jürgen @.**@.>>; Mention @.**@.>> Subject: Re: [Ylianst/MeshCentral] Windows installer "MeshCentralInstaller.exe" don´t work for V 1.1.24 (Issue #6193)

can you just try running the commands directly from a fresh 'command prompt', without cd to any folder?

— Reply to this email directly, view it on GitHubhttps://protection.retarus.com/v1?u=https%3A%2F%2Fgithub.com%2FYlianst%2FMeshCentral%2Fissues%2F6193%23issuecomment-2182673850&c=3ikQ43P&r=4YQuDmnCUanZwGjqxDZexE&k=7s1&s=pzdUzQSQPjMdkvL7Z3fRNwytd2BL380OXv67cjjWptT, or unsubscribehttps://protection.retarus.com/v1?u=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FBJETNFCCU5B44RBKPZY4DQ3ZIQNBVAVCNFSM6AAAAABJR32U6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBSGY3TGOBVGA&c=3ikQ43P&r=rk1FLQX1Pge9ZDAgkTMxQ&k=7s1&s=9nSTqPbIL1GYrusXqq7zueTHdmStg0f88K3vOUj12Wb. You are receiving this because you were mentioned.Message ID: @.**@.>>

si458 commented 1 week ago

if (Directory.Exists(modulesdir.FullName) == false) { displayMessage("Can't find node_modules folder, installation failed.", 2); workerThread = null; return; }

are you customing where meshcentral gets installed at all?

all it does is run C:\Program Files\nodejs\npm.cmd install --no-package-lock meshcentral from the ServerInstallPath folder and that folder defaults to C:\Program Files\Open Source\MeshCentral

muepep commented 1 week ago

Hi,

No I use the default installer., Ok this helps – we have logfiles and a clear error message, I check this with the college form the firewall team. Do you have any successions ?

npm error code SELF_SIGNED_CERT_IN_CHAIN npm error errno SELF_SIGNED_CERT_IN_CHAIN npm error request to https://registry.npmjs.org/meshcentral failed, reason: self-signed certificate in certificate chain npm error A complete log of this run can be found in: C:\Users\u45730\AppData\Local\npm-cache_logs\2024-06-24T12_19_01_200Z-debug-0.log

Debug-log

0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js 1 info using @. 2 info using @. 3 silly config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc 4 silly config:load:file:C:\Program Files\nodejs.npmrc 5 silly config:load:file:C:\Users\u45730.npmrc 6 silly config:load:file:C:\Users\u45730\AppData\Roaming\npm\etc\npmrc 7 verbose title npm install meshcentral 8 verbose argv "install" "--no-package-lock" "meshcentral" 9 verbose logfile logs-max:10 dir:C:\Users\u45730\AppData\Local\npm-cache_logs\2024-06-24T12_19_01_200Z- 10 verbose logfile C:\Users\u45730\AppData\Local\npm-cache_logs\2024-06-24T12_19_01_200Z-debug-0.log 11 silly logfile done cleaning log files 12 silly idealTree buildDeps 13 silly fetch manifest meshcentral@ 14 http fetch GET https://registry.npmjs.org/meshcentral attempt 1 failed with SELF_SIGNED_CERT_IN_CHAIN 15 http fetch GET https://registry.npmjs.org/meshcentral attempt 2 failed with SELF_SIGNED_CERT_IN_CHAIN 16 http fetch GET https://registry.npmjs.org/meshcentral attempt 3 failed with SELF_SIGNED_CERT_IN_CHAIN 17 silly placeDep ROOT meshcentral@ OK for: want: 18 verbose type system 19 verbose stack FetchError: request to https://registry.npmjs.org/meshcentral failed, reason: self-signed certificate in certificate chain 19 verbose stack at ClientRequest. (C:\Program Files\nodejs\node_modules\npm\node_modules\minipass-fetch\lib\index.js:130:14) 19 verbose stack at ClientRequest.emit (node:events:519:28) 19 verbose stack at _destroy (node:_http_client:880:13) 19 verbose stack at onSocketNT (node:_http_client:900:5) 19 verbose stack at process.processTicksAndRejections (node:internal/process/task_queues:83:21) 20 verbose cwd C:\Program Files\nodejs 21 verbose Windows_NT 10.0.20348 22 verbose node v20.14.0 23 verbose npm v10.7.0 24 error code SELF_SIGNED_CERT_IN_CHAIN 25 error errno SELF_SIGNED_CERT_IN_CHAIN 26 error request to https://registry.npmjs.org/meshcentral failed, reason: self-signed certificate in certificate chain 27 verbose exit 1 28 verbose code 1 29 silly unfinished npm timer reify 1719231544390 30 silly unfinished npm timer reify:loadTrees 1719231544410 31 error A complete log of this run can be found in: C:\Users\u45730\AppData\Local\npm-cache_logs\2024-06-24T12_19_01_200Z-debug-0.log

if (Directory.Exists(modulesdir.FullName) == false) { displayMessage("Can't find node_modules folder, installation failed.", 2); workerThread = null; return; }

are you customing where meshcentral gets installed at all?

all it does is run C:\Program Files\nodejs\npm.cmd install --no-package-lock meshcentral from the ServerInstallPath folder and that folder defaults to C:\Program Files\Open Source\MeshCentral

— Reply to this email directly, view it on GitHubhttps://protection.retarus.com/v1?u=https%3A%2F%2Fgithub.com%2FYlianst%2FMeshCentral%2Fissues%2F6193%23issuecomment-2182948766&c=3ikQ43P&r=h7iwaoIUnmp7hw1GXK43s&k=7s1&s=uirMte6A4LDhO6HugoL7I627b6lJWPVhOFIBMTVDhjs, or unsubscribehttps://protection.retarus.com/v1?u=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FBJETNFER6FLRYEER4JEJXFLZIQ7YTAVCNFSM6AAAAABJR32U6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBSHE2DQNZWGY&c=3ikQ43P&r=3gGOwmAJwC4B4IrUQNww9F&k=7s1&s=2R87NDoQOy1962WhKUkuAoqPPun1cObvB7ZYuqXBIJq. You are receiving this because you were mentioned.Message ID: @.**@.>>

si458 commented 1 week ago

the is something wrong with your setup/internet

attempt 1 failed with SELF_SIGNED_CERT_IN_CHAIN

verbose stack FetchError: request to https://registry.npmjs.org/meshcentral failed, reason: self-signed certificate in certificate chain

try visiting the url https://registry.npmjs.org/meshcentral in your browser and see if loads ok, if its saying self-signed then the is something wrong ur side, nothing to do with meshcentral im afraid

silversword411 commented 1 week ago

And don't forget to pay for support services rendered: https://github.com/sponsors/si458