Comments (4)
I think I found *part of the problem why I have a dev.yaml and no ENV.yaml.
But in addition it seems like the user: and pass: below overwrite what
I passed as my "user" and "pass" when I installed?
In the Netmaker repo:
https://raw.githubusercontent.com/gravitl/netmaker/v0.2/netmaker-server.sh
#!/bin/sh
set -emkdir -p /etc/netmaker/config/environments
wget -O /etc/netmaker/netmaker https://github.com/gravitl/netmaker/releases/download/latest/netmaker
chmod +x /etc/netmaker/netmakercat >/etc/netmaker/config/environments/dev.yaml<<EOL
server:
host:
apiport: "8081"
grpcport: "50051"
masterkey: "secretkey"
allowedorigin: "*"
restbackend: true
agentbackend: true
defaultnetname: "default"
defaultnetrange: "10.10.10.0/24"
createdefault: true
mongoconn:
user: "mongoadmin"
pass: "mongopass"
host: "localhost"
port: "27017"
opts: '/?authSource=admin'
EOLcat >/etc/systemd/system/netmaker.service<<EOL
[Unit]
Description=Netmaker Server
After=network.target[Service]
Type=simple
Restart=on-failureWorkingDirectory=/etc/netmaker
ExecStart=/etc/netmaker/netmaker[Install]
WantedBy=multi-user.target
EOL
systemctl daemon-reload
systemctl start netmaker.service
from netmaker.
Hi Brian, yes this is another mis-clarification in docs. It specifies "ENV.yaml" as a placeholder for whatever you're calling your env file. It could be dev.yaml or prod.yaml or something else. On startup, netmaker will look for an environment variable $APP_ENV.
If that value is not found, it will use "dev" by default and choose the dev.yaml file.
Based on your output, this does appear to be an authentication issue with mongo so the problem is likely the mongo user:pass.
from netmaker.
@afeiszli
re your comment
Based on your output, this does appear to be an authentication issue with mongo so the problem is likely the mongo user:pass.
You may have missed this in my previous post:
But in addition it seems like the user: and pass: below overwrite what
I passed as my "user" and "pass" when I installed?
In my command I was specifying both "user=admin" and "pass=admin"
but I found those were ignored/overwritten by the above script and was setting user=mongoadmin and pass=mongopass
I'm not sure why my user: and pass: were overwritten
from netmaker.
Were user/pass overwritten on the server (config for connecting with mongo), or on mongo itself There's nothing written in Netmaker that can write a user/pass to mongodb.
from netmaker.
Related Issues (20)
- Feature: `/nmui-config.js` could be served directly from Caddyfile
- [Bug]: Egress blocks access for LAN networks
- [Bug]: Error Status: 502 Response (on install) HOT 1
- [Bug]: CoreDNS - cannot assing requested address HOT 5
- [Bug]: https://raw.githubusercontent.com/gravitl/netmaker/master/scripts/nm-certs.sh is missing HOT 5
- [Bug]: Installation fails HOT 5
- How to install netclient on Wireguard-go HOT 1
- [Bug]: multiple nodes (mesh clients) behind a single firewall/router cannot reach each other HOT 9
- Problem regarding modifying the ACL using the API HOT 3
- [Feature]: Please add wechat and Alipay to stripe subscription
- [Bug]: netclient container reports log file not existed HOT 2
- [Bug]: Cannot generate certificate via Caddy when ISP blocks port 80
- [Bug]: Windows application event log has the same Event ID (0) for all netclient events HOT 3
- [Bug]: Connecting between lxc containers behind nat HOT 2
- [Bug]: Azure AD authentication fails with a working configuration from v0.21.2 -> v0.22.0+ HOT 3
- [Bug]: auth provider redirect URL is wrong for custom public API port HOT 1
- Why can't my nodes reach each other directly? HOT 4
- [Bug]: IPv6 not assigned with netclient on MacOS HOT 1
- [Bug]: The connection between the servers is interrupted for a second if the connection to the server(netmaker) is lost HOT 6
- [Bug]: Cannot Access The Api Server - Netmaker HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netmaker.