[stork-users] issue registering new stork agent

Craig Dunn sendai789 at googlemail.com
Fri Sep 17 11:19:03 UTC 2021


Hey all,

I`m trying to do a new install of Stork server for my Kea setup.

I have Kea running and the Stork server running as a docker container on
the same machine. I configured the agent.env and the server popped up for
authorization, it seemed to have issues collecting data from the machine so
I deleted and and was going to try again, only I cant get it to show up in
the unauthorized machines anymore. My first though was maybe there is an
issue with my .env file but, I have tried multiple combinations and just
can't get it working.

My env file file is:

# address to bind ie. for listening
 STORK_AGENT_ADDRESS=0.0.0.0
 STORK_AGENT_PORT=8080

# enable Stork functionality only, i.e. disable Prometheus exporters
 STORK_AGENT_LISTEN_STORK_ONLY=false

# enable Prometheus exporters only, i.e. disable Stork functionality
 STORK_AGENT_LISTEN_PROMETHEUS_ONLY=false

# settings for exporting stats to Prometheus
 #STORK_AGENT_PROMETHEUS_KEA_EXPORTER_ADDRESS=127.0.0.1
 #STORK_AGENT_PROMETHEUS_KEA_EXPORTER_PORT=9547
 #STORK_AGENT_PROMETHEUS_KEA_EXPORTER_INTERVAL=10
 #STORK_AGENT_PROMETHEUS_BIND9_EXPORTER_ADDRESS=127.0.0.1
 #STORK_AGENT_PROMETHEUS_BIND9_EXPORTER_PORT=9119
 #STORK_AGENT_PROMETHEUS_BIND9_EXPORTER_INTERVAL=10

# this is used when agent is automatically registered in Stork server
 STORK_AGENT_SERVER_URL=http://192.168.0.23
 STORK_AGENT_ADDRESS=192.168.0.23

I have done a default install. I havnt changed any of the default ports
during the installation so, it should be a simple task of adding what's in
the guide. Another thing I considered was in earlier versions there was a
server.env file for database connections. I know there is a progress
container it must use but does it need an external database before working
correctly. also tried restarting the agent service multiple times and each
time I see the token as below so the agent seems to be working:

● isc-stork-agent.service - ISC Stork Agent
     Loaded: loaded (/lib/systemd/system/isc-stork-agent.service; enabled;
vendor preset: enabled)
     Active: active (running) since Fri 2021-09-17 10:55:32 UTC; 4s ago
       Docs: man:stork-agent(8)
   Main PID: 2436590 (stork-agent)
      Tasks: 8 (limit: 2189)
     Memory: 3.4M
     CGroup: /system.slice/isc-stork-agent.service
             └─2436590 /usr/bin/stork-agent

Sep 17 10:55:32 docker systemd[1]: Started ISC Stork Agent.
Sep 17 10:55:32 docker stork-agent[2436590]: INFO[2021-09-17 10:55:32]
        main.go:23    Starting Stork Agent, version 0.20.0, build date
2021-09-08 08:57
Sep 17 10:55:32 docker stork-agent[2436590]: INFO[2021-09-17 10:55:32]
    register.go:169   loaded existing agent key and generated CSR
Sep 17 10:55:32 docker stork-agent[2436590]: INFO[2021-09-17 10:55:32]
    register.go:439
=============================================================================
Sep 17 10:55:32 docker stork-agent[2436590]: INFO[2021-09-17 10:55:32]
    register.go:440   AGENT TOKEN:
1012AB5A7F86487D7BC9490D3A6B7938CB0368665F9BB153DB617F58ED6D64EB
Sep 17 10:55:32 docker stork-agent[2436590]: INFO[2021-09-17 10:55:32]
    register.go:441
=============================================================================
Sep 17 10:55:32 docker stork-agent[2436590]: INFO[2021-09-17 10:55:32]
    register.go:444   authorize machine in Stork web UI
Sep 17 10:55:32 docker stork-agent[2436590]: INFO[2021-09-17 10:55:32]
    register.go:458   try to register agent in Stork server
Sep 17 10:55:32 docker stork-agent[2436590]: INFO[2021-09-17 10:55:32]
    register.go:220   sleeping for 10 seconds before next registration
attempt

Can anyone help I have pretty much run out of idea and searching the web so
far has come up with no suggestions

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/stork-users/attachments/20210917/915fbf96/attachment.htm>


More information about the Stork-users mailing list