[stork-users] error: first path segment in URL cannot contain colon , and more
fbcadmin
fbcadmin at fantinibakery.com
Fri Nov 22 20:43:06 UTC 2024
Hello
there are a couple of parts below.. As I found what seems to be a bug
and ran into another issue.....
---
I reinstalled stork-agent 2.0 [ after purging the 1.x version +
configuration with ' apt purge isc-stork-agent ].
version info:
# apt show isc-stork-agent
Package: isc-stork-agent
Version: 2.0.0.241112163127
Priority: required
Section: admin
Maintainer: Stork team <stork-users at lists.isc.org>
*when I try to register by cli:
*
# su stork-agent -s /bin/sh -c 'stork-agent register --server-url
10.1.3.3:8080'
>>> Enter the Stork server access token (optional):
>>> Enter IP address or FQDN of the host with Stork agent (for the
Stork server connection) [dhcp-vlan37.fantinibakery.com]: 10.1.3.3
>>> Enter port number that Stork Agent will listen on [8080]: 8080
ERRO[2024-11-22 15:08:15] register.go:312 * Cannot parse server
URL: 10.1.3.3:8080 **error="parse \"10.1.3.3:8080\": first
path segment in URL cannot contain colon" *
FATA[2024-11-22 15:08:15] main.go:321 Registration failed
----------------------------------
So I tried removing the ':' and got further:
# su stork-agent -s /bin/sh -c 'stork-agent register --server-url
10.1.3.3 8080'
>>> Enter the Stork server access token (optional):
>>> Enter IP address or FQDN of the host with Stork agent (for the
Stork server connection) [dhcp-vlan37.fantinibakery.com]:
>>> Enter port number that Stork Agent will listen on [8080]:
INFO[2024-11-22 15:38:01] register.go:95 Forced agent
certificates regeneration.
INFO[2024-11-22 15:38:01] register.go:398
=============================================================================
INFO[2024-11-22 15:38:01] register.go:399 AGENT TOKEN: hidden
INFO[2024-11-22 15:38:01] register.go:400
=============================================================================
INFO[2024-11-22 15:38:01] register.go:405 Machine will be
automatically registered using the server token
INFO[2024-11-22 15:38:01] register.go:406 Agent token is
printed above for informational purposes only
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
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
INFO[2024-11-22 15:38:01] register.go:416 Try to register
agent in Stork Server
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 \"\""
--------------------------------------------------------------------
1- so instructions show to use a : . the script has an issue with
the :. my shell = bash .
2- how can I solve the fatal error: 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 \"\""
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/stork-users/attachments/20241122/92c5a111/attachment.htm>
More information about the Stork-users
mailing list