Hostname on Opsi server
Hostname on Opsi server
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.
- j.schneider
- uib-Team
- Beiträge: 2042
- Registriert: 29 Mai 2008, 15:14
Re: Hostname on Opsi server
sure, you can just change "hostname: opsi" and "domainname: domain.tld" in the docker-compose.yml.
Best regards,
Jan Schneider
Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.
Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.
uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de
Re: Hostname on Opsi server
So shorty run opsi-server.sh, stop the containers, change the docker-compose.yml file and then bring the containers up again?
- j.schneider
- uib-Team
- Beiträge: 2042
- Registriert: 29 Mai 2008, 15:14
Re: Hostname on Opsi server
* docker compose down
* Modify docker-compose.yml
* docker compose up -d
Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.
Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.
uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de
Re: Hostname on Opsi server
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
- j.schneider
- uib-Team
- Beiträge: 2042
- Registriert: 29 Mai 2008, 15:14
Re: Hostname on Opsi server
You need to change the URL in the opsiclientd.conf or reinstall the opsi-client-agent.
Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.
Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.
uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de
Re: Hostname on Opsi server
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
"[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.
- j.schneider
- uib-Team
- Beiträge: 2042
- Registriert: 29 Mai 2008, 15:14
Re: Hostname on Opsi server
Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.
Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.
uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de