<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<a id="OWAAM777160" class="t0qjo mention ms-bgc-nlr ms-fcl-b" href="mailto:kevin@km6g.us">@Kevin P. Fleming</a></div>
<div style="font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
That is correct. There is an agent running on the server. Should I not? I read somewhere in the documentation or in the readdoc.io that this may be necessary. I had not considered that this may be the challenge I am experiencing.</div>
<div style="font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
R,</div>
<div style="font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
John</div>
<div>
<div id="Signature">
<div></div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Stork-users <stork-users-bounces@lists.isc.org> on behalf of Kevin P. Fleming <kevin@km6g.us><br>
<b>Sent:</b> Tuesday, July 5, 2022 16:22<br>
<b>Cc:</b> stork-users@lists.isc.org <stork-users@lists.isc.org><br>
<b>Subject:</b> Re: [stork-users] Error: Cannot get state of machine</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">You have STORK_AGENT_HOST and STORK_AGENT_SERVER_URL pointed to the<br>
same IP address. Are they running on the same machine?<br>
<br>
On Tue, Jul 5, 2022 at 4:30 PM John Gammon <john.gammon@forkeddeer.com> wrote:<br>
><br>
> Good afternoon, folks.<br>
><br>
> I am building a TESTBENCH environment with a complete Kea, Stork, and database. I am completing the prototype of what I will be expanding into a production environment eventually.<br>
><br>
> I have three Stork 'machines' in the management console. Each of the three are throwing the same error, "Cannot get state of machine". I am curious as to why this error is being thrown. I am able to see them in the air-gapped network and the configuration
seems solid, according to the documentation.<br>
><br>
> Any pointers in the right direction for troubleshooting? I am including the .env files from our AIR-GAPPED TESTBENCH.<br>
><br>
> <<-----------------------------server.env----------------------------->><br>
> /////////////////////////////////////////////////////////////////////////////////////////<br>
> // Date [YYYYMMDD] ... Initials [JPG||JV||MY||BV] ... Changes of record<br>
> //-------------------------------------------------------------------------------------//<br>
> ## 20220526...jpg...TESTBENCH Config Items for agent config<br>
> /////////////////////////////////////////////////////////////////////////////////////////<br>
> ### database settings<br>
> ### the address of a PostgreSQL database<br>
> STORK_DATABASE_HOST=localhost<br>
> ### the port of a PostgreSQL database<br>
> STORK_DATABASE_PORT=5432<br>
> ### the name of a database<br>
> STORK_DATABASE_NAME=stork<br>
> ### the username for connecting to the database<br>
> STORK_DATABASE_USER_NAME=stork<br>
> ### the SSL mode for connecting to the database<br>
> ### possible values: disable, require, verify-ca or verify-full<br>
> # STORK_DATABASE_SSLMODE=<br>
> ### the location of the SSL certificate used by the server to connect to the database<br>
> # STORK_DATABASE_SSLCERT=<br>
> ### the location of the SSL key used by the server to connect to the database<br>
> # STORK_DATABASE_SSLKEY=<br>
> ### the location of the root certificate file used to verify the database server's certificate<br>
> # STORK_DATABASE_SSLROOTCERT=<br>
> ### the password for the username connecting to the database<br>
> ### empty password is set to avoid prompting a user for database password<br>
> STORK_DATABASE_PASSWORD=D3f@ultP@ssW0rd5<br>
><br>
> ### REST API settings<br>
> ### IP address on which the server listens<br>
> STORK_REST_HOST=6.6.6.2<br>
> ### port number on which the server listens<br>
> STORK_REST_PORT=8080<br>
> ### a file with a certificate to use for secure connections<br>
> # STORK_REST_TLS_CERTIFICATE=<br>
> ### a file with a private key to use for secure connections<br>
> # STORK_REST_TLS_PRIVATE_KEY=<br>
> ### a certificate authority file used for mutual TLS authentication<br>
> # STORK_REST_TLS_CA_CERTIFICATE=<br>
> ### a directory with static files served in the UI<br>
> STORK_REST_STATIC_FILES_DIR=/usr/share/stork/www<br>
><br>
> ### Enable Prometheus /metrics HTTP endpoint for exporting metrics from<br>
> ### the server to Prometheus. It is recommended to secure this endpoint<br>
> ### (e.g. using HTTP proxy).<br>
> # STORK_SERVER_ENABLE_METRICS=true<br>
><br>
><br>
> <<-----------------------------agent.env----------------------------->><br>
> /////////////////////////////////////////////////////////////////////////////////////////<br>
> // Date [YYYYMMDD] ... Initials [JPG||JV||MY||BV] ... Changes of record<br>
> //-------------------------------------------------------------------------------------//<br>
> ## 20220526...jpg...TESTBENCH Config Items for agent config<br>
> /////////////////////////////////////////////////////////////////////////////////////////<br>
> ##<br>
> ### the IP or hostname to listen on for incoming Stork server connections<br>
> STORK_AGENT_HOST=6.6.6.2<br>
><br>
> ### the TCP port to listen on for incoming Stork server connections<br>
> STORK_AGENT_PORT=8080<br>
><br>
> ### listen for commands from the Stork server only, but not for Prometheus requests<br>
> STORK_AGENT_LISTEN_STORK_ONLY=true<br>
><br>
> ### listen for Prometheus requests only, but not for commands from the Stork server<br>
> # STORK_AGENT_LISTEN_PROMETHEUS_ONLY=true<br>
><br>
> ### settings for exporting stats to Prometheus<br>
> ### the IP or hostname on which the agent exports Kea statistics to Prometheus<br>
> # STORK_AGENT_PROMETHEUS_KEA_EXPORTER_ADDRESS=<br>
> ### the port on which the agent exports Kea statistics to Prometheus<br>
> # STORK_AGENT_PROMETHEUS_KEA_EXPORTER_PORT=<br>
> ### how often the agent collects stats from Kea, in seconds<br>
> # STORK_AGENT_PROMETHEUS_KEA_EXPORTER_INTERVAL=<br>
> ## enable or disable collecting per subnet stats from Kea<br>
> # STORK_AGENT_PROMETHEUS_KEA_EXPORTER_PER_SUBNET_STATS=true<br>
> ### the IP or hostname on which the agent exports BIND9 statistics to Prometheus<br>
> # STORK_AGENT_PROMETHEUS_BIND9_EXPORTER_ADDRESS=<br>
> ### the port on which the agent exports BIND9 statistics to Prometheus<br>
> # STORK_AGENT_PROMETHEUS_BIND9_EXPORTER_PORT=<br>
> ### how often the agent collects stats from BIND 9, in seconds<br>
> # STORK_AGENT_PROMETHEUS_BIND9_EXPORTER_INTERVAL=<br>
><br>
> ### Stork Server URL used by the agent to send REST commands to the server during agent registration<br>
> STORK_AGENT_SERVER_URL=http://6.6.6.2<br>
><br>
> ### skip TLS certificate verification when the Stork Agent connects<br>
> ### to Kea over TLS and Kea uses self-signed certificates<br>
> # STORK_AGENT_SKIP_TLS_CERT_VERIFICATION=true<br>
><br>
><br>
><br>
> John Gammon<br>
> Network Engineer<br>
> Forked Deer Electric Cooperative, Inc./Forked Deer Connect, LLC.<br>
> Halls, TN 38040<br>
><br>
> John Gammon<br>
><br>
> Network Engineer<br>
><br>
> Office 731-903-4282<br>
><br>
> john.gammon@forkeddeer.com<mailto:%20john.gammon@forkeddeer.com><br>
><br>
> [fdec logo]<br>
><br>
> 1135 North Church Street<br>
><br>
> PO Box 67<br>
><br>
> Halls, TN 38040<br>
><br>
> <a href="http://www.forkeddeer.com">www.forkeddeer.com</a><br>
> --<br>
> Stork-users mailing list<br>
> Stork-users@lists.isc.org<br>
> <a href="https://lists.isc.org/mailman/listinfo/stork-users">https://lists.isc.org/mailman/listinfo/stork-users</a><br>
-- <br>
Stork-users mailing list<br>
Stork-users@lists.isc.org<br>
<a href="https://lists.isc.org/mailman/listinfo/stork-users">https://lists.isc.org/mailman/listinfo/stork-users</a><br>
</div>
</span></font></div>
</body>
</html>