<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font size="5">Hello</font></p>
<p><font size="5"> there are a couple of parts below.. As I found
what seems to be a bug and ran into another issue..... <br>
</font></p>
<p><font size="5">---<br>
</font></p>
<p><font size="5">I reinstalled stork-agent 2.0 [ after purging the
1.x version + configuration with ' apt purge <span
style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">isc-stork-agent
].</span></span></font></p>
<p><font size="5"><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">version
info:</span></span></font></p>
<p><font size="5"><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;"># apt show
isc-stork-agent<br>
Package: isc-stork-agent<br>
Version: 2.0.0.241112163127<br>
Priority: required<br>
Section: admin<br>
Maintainer: Stork team <a class="moz-txt-link-rfc2396E" href="mailto:stork-users@lists.isc.org"><stork-users@lists.isc.org></a><br>
<br>
</span></span></font></p>
<p><font size="5"><b><span style="font-family:monospace">when I try
to register by cli: <br>
</span></b></font></p>
<p><font size="5"><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;"># su
stork-agent -s /bin/sh -c 'stork-agent register --server-url
10.1.3.3:8080' </span><br>
>>> Enter the Stork server access token (optional): <br>
>>> Enter IP address or FQDN of the host with Stork
agent (for the Stork server connection)
[dhcp-vlan37.fantinibakery.com]: 10.1.3.3
<br>
>>> Enter port number that Stork Agent will listen on
[8080]: 8080
<br>
<span style="color:#b21818;background-color:#ffffff;">ERRO</span><span
style="color:#000000;background-color:#ffffff;">[2024-11-22
15:08:15] register.go:312 <b> Cannot parse server
URL: 10.1.3.3:8080 </b></span><b><span
style="color:#b21818;background-color:#ffffff;">error</span><span
style="color:#000000;background-color:#ffffff;">="parse
\"10.1.3.3:8080\": first</span><br>
path segment in URL cannot contain colon"
</b><br>
<span style="color:#b21818;background-color:#ffffff;">FATA</span><span
style="color:#000000;background-color:#ffffff;">[2024-11-22
15:08:15] main.go:321 Registration failed
</span><br>
<br>
----------------------------------</span></font></p>
<p><font size="5"><span style="font-family:monospace"><br>
</span></font></p>
<p><font size="5"><span style="font-family:monospace">So I tried
removing the ':' and got further:</span></font></p>
<p><font size="5"><span style="font-family:monospace"># su
stork-agent -s /bin/sh -c 'stork-agent register --server-url
10.1.3.3 8080'<br>
>>> Enter the Stork server access token (optional): <br>
>>> Enter IP address or FQDN of the host with Stork
agent (for the Stork server connection)
[dhcp-vlan37.fantinibakery.com]: <br>
>>> Enter port number that Stork Agent will listen on
[8080]: <br>
INFO[2024-11-22 15:38:01] register.go:95 Forced
agent certificates regeneration. <br>
INFO[2024-11-22 15:38:01] register.go:398
=============================================================================
<br>
INFO[2024-11-22 15:38:01] register.go:399 AGENT
TOKEN: hidden <br>
INFO[2024-11-22 15:38:01] register.go:400
=============================================================================
<br>
INFO[2024-11-22 15:38:01] register.go:405 Machine
will be automatically registered using the server token <br>
INFO[2024-11-22 15:38:01] register.go:406 Agent
token is printed above for informational purposes only <br>
INFO[2024-11-22 15:38:01] register.go:407 User does
not need to copy or verify the agent token during registration
via the server token <br>
INFO[2024-11-22 15:38:01] register.go:408 It will be
sent to the server but it is not directly used in this type of
machine registration <br>
INFO[2024-11-22 15:38:01] register.go:416 Try to
register agent in Stork Server <br>
FATA[2024-11-22 15:38:01] main.go:320
Registration failed error="problem
registering machine: problem registering machine: problem
sending POST to /api/machines: Post \"/api/machines\":
unsupported protocol scheme \"\""<br>
</span></font></p>
<p><font size="5"><span style="font-family:monospace"><br>
</span></font></p>
<p><font size="5"><span style="font-family:monospace">--------------------------------------------------------------------</span></font></p>
<p><font size="5"><span style="font-family:monospace"><br>
</span></font></p>
<p><font size="5"><span style="font-family:monospace">1- so
instructions show to use a : . the script has an issue
with the :. my shell = bash .</span></font></p>
<p><font size="5"><span style="font-family:monospace"><br>
</span></font></p>
<p><font size="5"><span style="font-family:monospace">2- how can I
solve the fatal error: </span></font><font size="5"><span
style="font-family:monospace">FATA[2024-11-22
15:38:01] main.go:320 Registration
failed error="problem registering
machine: problem registering machine: problem sending POST to
/api/machines: Post \"/api/machines\": unsupported protocol
scheme \"\""</span></font></p>
<p><font size="5"><span style="font-family:monospace"><br>
</span></font></p>
<p><font size="5"><span style="font-family:monospace"><br>
</span></font></p>
</body>
</html>