https://netmaker.org logo
#install
Title
# install
j

jolly-london-20127

05/18/2022, 5:43 PM
Issue using config file for server start: token fields missing
Hello, I just installed a fresh new netmaker server (0.14 pre release, on an Ubuntu server, not on docker), everything looks fine, I created a network in the UI without problem, but when I create a new access key, the base64 generated Access token doesn't include the server hostname so I get an error when I try to join with netclient:
Copy code
[netclient] 2022-05-18 18:47:59 joining testnetwork at  
[netclient] 2022-05-18 18:47:59 unable to authenticate: Post "https:///api/nodes/adm/testnetwork/authenticate": http: no Host in request URL
The decoded string (from access token) gives:
Copy code
{
  "server": "",
  "apiconnstring": "",
  "network": "testnetwork",
  "key": "87bd33af12e542f0",
  "localrange": ""
}
Is this a known bug in 0.14 or did I forget to put some info somewhere ? My YAML configuration file if that can help, is (modified):
Copy code
server:
  host: netmaker.test.net
  apiport: "8081"
  masterkey: "this-is-not-secret"
  allowedorigin: "*"
  restbackend: true
  agentbackend: true
  dnsmode: "off"
  rce: "on"
  telemetry: "off"
  mqhost: 127.0.0.1
Copy code
SERVER_NAME: "broker.NETMAKER_BASE_DOMAIN"
      SERVER_HOST: "SERVER_PUBLIC_IP"
      SERVER_API_CONN_STRING: "api.NETMAKER_BASE_DOMAIN:443"
      COREDNS_ADDR: "SERVER_PUBLIC_IP"
      SERVER_HTTP_HOST: "api.NETMAKER_BASE_DOMAIN"
need to add these values to config, but it's in yaml config, not docker-compose
Copy code
server:
  server: broker.domain
  host: netmaker.test.net
  apihost: api.domain
  apiconn: api.domain:port
  apiport: "8081"
  masterkey: "this-is-not-secret"
  allowedorigin: "*"
  restbackend: true
  agentbackend: true
  dnsmode: "off"
  rce: "on"
  telemetry: "off"
  mqhost: 127.0.0.1
missing values were server, apihost, apiconn. Now it works after restarting server and regenerating a token
b

bored-island-21407

05/18/2022, 5:56 PM
this is the netmaker.yaml file (with generic domain name) I use when I run netmaker on bare metal with netmaker -c /etc/netmaker/netmaker.yaml
3 Views