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

Stuck trying to use this on Windows 11 #17

Open
frozen905 opened this issue Feb 17, 2023 · 1 comment
Open

Stuck trying to use this on Windows 11 #17

frozen905 opened this issue Feb 17, 2023 · 1 comment

Comments

@frozen905
Copy link

frozen905 commented Feb 17, 2023

Hi there, I've never used Docker before, and have absolutely no idea what I'm doing

Somehow I stumbled my way into installing Docker for Windows and searched for hothost-web and installed it.

Set the 3 envinroment variables in the boxes according to the setup guide linked in your post

But then, when I hit run, it fails with:

2023-02-17 17:06:41 node:fs:600 2023-02-17 17:06:41 handleErrorFromBinding(ctx); 2023-02-17 17:06:41 ^ 2023-02-17 17:06:41 2023-02-17 17:06:41 Error: ENOENT: no such file or directory, open '/var/lib/hothost/jwt' 2023-02-17 17:06:41 at Object.openSync (node:fs:600:3) 2023-02-17 17:06:41 at Object.writeFileSync (node:fs:2221:35) 2023-02-17 17:06:41 at file:///code/src/env.js:30:16 2023-02-17 17:06:41 at ModuleJob.run (node:internal/modules/esm/module_job:193:25) 2023-02-17 17:06:41 at async Promise.all (index 0) 2023-02-17 17:06:41 at async ESMLoader.import (node:internal/modules/esm/loader:530:24) 2023-02-17 17:06:41 at async loadESM (node:internal/process/esm_loader:91:5) 2023-02-17 17:06:41 at async handleMainPromise (node:internal/modules/run_main:65:12) { 2023-02-17 17:06:41 errno: -2, 2023-02-17 17:06:41 syscall: 'open', 2023-02-17 17:06:41 code: 'ENOENT', 2023-02-17 17:06:41 path: '/var/lib/hothost/jwt' 2023-02-17 17:06:41 } 2023-02-17 17:06:41 2023-02-17 17:06:41 Node.js v18.12.1

Novice user here and I was pretty happy about even getting this far.. as for what I'm hoping to do - I just want to monitor remote URL's that are ERROR 404 for when they go online, using my own desktop PC at home which runs Windows 11.

Thank you!

@ivictbor
Copy link
Contributor

@rolex905 but why do you need hothost agent in your local windows? Just to play with it before using on real servers? Just in case, this tool created for servers monitoring. So when you have offline machine which runs some web service(s) when there will be suspection then this machine runs out of resources it drops alert to email/slack/telegram.

Anyway on windows:

First of all install WSL2, then install Ubuntu into WSL2 from Microsoft Store. https://hinty.io/devforth/how-to-install-wsl-2-best-way-to-run-real-linux-on-windows/

Then Install dcoker desktop and enable WSL2 integration in it's settings. This is not a fresh post but settings tab is almoast same https://hinty.io/ivictbor/simple-way-to-docker-on-windows-10-home-with-wsl-2/

Then first of all run hothost web on your host, using docker command in readme, open http://localhost:8007 in browser and copy snippet from there to run agent. Paste into terminal and you are done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants