Seite 1 von 1
Hostname on Opsi server
Verfasst: 06 Jun 2025, 13:36
von Infotech
Hello guys,
How to change name of opsi server?
Is there a way when deploying a docker container in .yml docker file to change it and then bring up the server with correct name and not: opsi.domain.tld
It makes problems later with clients.
Re: Hostname on Opsi server
Verfasst: 06 Jun 2025, 13:49
von j.schneider
Hello,
sure, you can just change "hostname: opsi" and "domainname: domain.tld" in the docker-compose.yml.
Best regards,
Jan Schneider
Re: Hostname on Opsi server
Verfasst: 06 Jun 2025, 14:02
von Infotech
Hello Jan,
So shorty run opsi-server.sh, stop the containers, change the docker-compose.yml file and then bring the containers up again?
Re: Hostname on Opsi server
Verfasst: 06 Jun 2025, 14:13
von j.schneider
This should be sufficient:
* docker compose down
* Modify docker-compose.yml
* docker compose up -d
Re: Hostname on Opsi server
Verfasst: 06 Jun 2025, 15:07
von Infotech
Hello again,
I just tried it but without success
- When I try to push installation this is the error message I can see on the client side:
" Failed to connect: Opsi service connection error: HTTPSConnectionPool(host='opsi.domain.tld', port=4447): Max retries exceeded with "
It's still trying to connect to opsi.domain.tld
Re: Hostname on Opsi server
Verfasst: 06 Jun 2025, 15:29
von j.schneider
The old service URL is still configured on the client.
You need to change the URL in the opsiclientd.conf or reinstall the opsi-client-agent.
Re: Hostname on Opsi server
Verfasst: 07 Jun 2025, 18:58
von Infotech
Hello,
I tried reinstalling, and setting everything from scratch but its the same problem.
Installing the client on every pc then reconfiguring the client config is not suitable. Lot of manual work.
Is there a way to reconfigure the client before its installed then use the same client for everybody?
Re: Hostname on Opsi server
Verfasst: 07 Jun 2025, 19:30
von Infotech
Is there another way of installing clients because downloading the client from opsi config server is just "bad", i tried it multiple times and its always doing this:
"[6] [2025-06-07 19:26:45.320] [permanent service connection ] CA cert file 'C:\opsi.org\tls\opsi-ca-cert.pem' successfully updated (2 certificates total) (opsiservice.py:840)
[3] [2025-06-07 19:26:45.324] [permanent service connection ] Connection to opsi service
https://opsi.domain.tld:4447 failed: Opsi service connection error: HTTPSConnectionPool(host='opsi.domain.tld', port=4447): Max retries exceeded with url: /rpc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x0BA1DA10>: Failed to resolve 'opsi.domain.tld' ([Errno 11001] getaddrinfo failed)")) (OpsiService.py:396)
[6] [2025-06-07 19:26:45.324] [permanent service connection ] Failed to connect: Opsi service connection error: HTTPSConnectionPool(host='opsi.domain.tld', port=4447): Max retries exceeded with url: /rpc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x0BA1DA10>: Failed to resolve 'opsi.domain.tld' ([Errno 11001] getaddrinfo failed)")) (OpsiService.py:270)"
Always trying to connect to some default value.
Re: Hostname on Opsi server
Verfasst: 10 Jun 2025, 08:24
von j.schneider