#Install Error

1 messages · Page 1 of 1 (latest)

hidden olive
#

I'm trying to install on my Windows 11 system but always getting this error using both curl and wget, I've also followed the steps

wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --nightly-channel --claim-token [TOKEN] --claim-rooms [ROOM] --claim-url https://app.netdata.cloud

At line:1 char:69
+ ... s://my-netdata.io/kickstart.sh > /tmp/netdata-kickstart.sh && sh /tmp ...
+                                                                ~~
The token '&&' is not a valid statement separator in this version.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : InvalidEndOfLine

junior vale
#

You can't run Linux Bash scripts on Windows nor does Windows understand &&

hidden olive
#

Then why is it in the install guide for Windows?

nova sierra
#

since when does netdata itself run on windows?

wheat loom
hidden olive
nova sierra
#

netdata requires a posix system to run on. what you can install on windows are collectors and expose those to netdata running on linux

#

I'm assuming because WSL might be a bit finnicky

wheat loom
#

nm, I see the idea is that a Prometheus exporter runs on the WIndows host and a DIFFERENT machine running netdata scrapes that prometheus data

#

for some reason I recall people running the agent in a a WSL container

nova sierra
#

it'd probably work

#

my guess is, it's a lot easier to just say "look, we don't have a windows build, just put the agent on a linux machine"

wheat loom
#

yeah, I agree. The instructions for the "add node" really do suck though 😛

nova sierra
#

than to say "oh windows, sure...just get wsl2, docker and go through hoops to maybe get it working"

wheat loom
#

yah, totally

nova sierra
#

would that even work for win server?

#

surely there's no wsl for server, no?

#

so you'd have to go hyperv and run the agent in a vm

wheat loom
#

i have no idea tbh. containers are supported on some versions with Hyper-V so it's possible. I havent tried it though

nova sierra
#

that'd be equivalent to "just run the agent on a linux machine"

#

oh hyperv can container

#

I didn't know that

wheat loom
#

yeah, think it was 2019 that brought it in

nova sierra
#

that's something

wheat loom
#

i use WSL etc heavily on Windows 11 (linux on server-side) and tbh I doubt anyone would want to deploy WSL on server (if they were sane, that is)

#

(having administered Hyper-V infrastructure in my previous incarnation)

nova sierra
#

yea, neither would I, then again nor would I use windows, let alone win server xd