[stork-users] install issue unable to register agent

Doug Freed dwfreed at isc.org
Mon Mar 10 21:19:24 UTC 2025


On 3/10/25 1:18 PM, Mike W wrote:
> good day
> 
> AlmaLinux release 9.5 (Teal Serval)
> 
> isc-stork-agent.x86_64 2.0.1.250218103533-1     @isc-stork
> isc-stork-server.x86_64 2.0.1.250218103535-1     @isc-stork
> isc-stork-server-hook-ldap.x86_64    2.0.1.250218103335-1 @isc-stork
> pcp-pmda-postgresql.x86_64             6.2.2-7.el9_5.alma.1 @appstream
> postgresql.x86_64 13.20-1.el9_5                     @appstream
> postgresql-contrib.x86_64 13.20-1.el9_5                     @appstream
> postgresql-private-libs.x86_64 13.20-1.el9_5                      
> @appstream
> postgresql-server.x86_64 13.20-1.el9_5                      @appstream
> 
> 
> Trying to follow the stork quick start guide https://kb.isc.org/docs/ 
> stork-quickstart-guide
> 
> Installed client and then try to register using
>                    sudo su stork-agent -s /bin/sh -c 'stork-agent 
> register --server-url http://stork.example.org:8080'
> corrected to:
>                   sudo su stork-agent -s /bin/sh -c 'stork-agent 
> register --server-url http://172.27.0.245:8081'
> 
> The only active lines in server,env and agent.env are theses:
>   grep -v ^# /etc/stork/server.env
> STORK_DATABASE_USER_NAME=stork-server
> STORK_DATABASE_PASSWORD=
> STORK_REST_STATIC_FILES_DIR=/usr/share/stork/www
> 
>    grep -v ^# /etc/stork/agent.env
> 
> STORK_AGENT_PORT=8081
> 
> and the result is:
> $ sudo su stork-agent -s /bin/sh -c 'stork-agent register --server-url 
> http://172.27.0.245:8081'
>  >>> Enter the Stork server access token 
> (optional):                       ****the token is entered *****
>  >>> Enter IP address or FQDN of the host with Stork agent (for the 
> Stork server connection) [pcr-svr2.pcr.local]: 172.27.0.245
>  >>> Enter port number that Stork Agent will listen on [8080]: 8081
> INFO[2025-03-10 14:00:56]         register.go:95    Forced agent 
> certificates regeneration.
> INFO[2025-03-10 14:00:56]         register.go:398 
> =============================================================================
> INFO[2025-03-10 14:00:56]         register.go:399   AGENT TOKEN: 
> 74D6761A6FCA4781B6863C2A8B4B5E5C0E5AE4EB86A3F61E5735EF7FEAB0CDD8
> INFO[2025-03-10 14:00:56]         register.go:400 
> =============================================================================
> INFO[2025-03-10 14:00:56]         register.go:405   Machine will be 
> automatically registered using the server token
> INFO[2025-03-10 14:00:56]         register.go:406   Agent token is 
> printed above for informational purposes only
> INFO[2025-03-10 14:00:56]         register.go:407   User does not need 
> to copy or verify the agent token during registration via the server token
> INFO[2025-03-10 14:00:56]         register.go:408   It will be sent to 
> the server but it is not directly used in this type of machine registration
> INFO[2025-03-10 14:00:56]         register.go:416   Try to register 
> agent in Stork Server
> FATA[2025-03-10 14:00:56]             main.go:320   Registration 
> failed                           error="problem registering machine: 
> problem registering machine: problem sending POST to 
> http://172.27.0.245:8081/api/machines: Post \"http://172.27.0.245:8081/ 
> api/machines\": dial tcp 172.27.0.245:8081: connect: connection refused"
> $
> 
> api/machines directories are not found anywhere on the system.
> Not finding anythine it the messages log.
> Am I missing something?  What should I be looking for?
> Any Help would be appreciated.
> Thank You.

(This was accidentally sent privately; sending to list so the rest know)

You appear to be specifying the stork *agent*'s address as what should 
be the stork *server's* address for the parameter to `--server-url`, 
based on all of the information you provided.  If you're registering an 
agent that is running on the same host as the server, then your
`--server-url` parameter should be "http://172.27.0.245:8080" (note port 
8080, not 8081).

-Doug


More information about the Stork-users mailing list