Hi,
I set up OpenZiti following Controller deployment and Router deployment.
The strange thing I did to bypass "dns name" to the controller when running the bootstrap.bash script was deleting the condition:
elif [[ "${ZITI_CTRL_ADVERTISED_ADDRESS}" =~ ^[:0-9] ]]; then
to be able to pass my dns name (which looks like 8a1db54a85q97d.example.com
). See the issue of bootstrap.bash here.
Environment:
- Controller (ubuntu lxc)
- Edge-Router (ubuntu lxc)
Both are available on the internet via my dns name I provided in the bootstrap.bash of controller.
After the installation, I migrated from an old OpenZiti infrastructure, I copied my database file to the new openziti infrastructure.
Also installed ziti-console, seeing that after re-enrolling, the edge-router is online:
So in this case, the enrollment worked (I entered the DNS name address of the controller when running router's bootstrap.bash).
Topic issue:
I tried to do the same for my other identities (on my Android and my Windows devices).
And got an unexpected error:
Android:
java.lang.Exception: CONTROLLER_UNAVAILABLE
Windows:
I tried with two different enrollment tokens took directly from the ziti console (QRcode and JWT file) but doesnt work.
I tried to check both of applications and tunneler logs of the two devices but no log was generated except (JWT obfuscated):
[2024-11-03T14:52:00.775Z] TRACE ZitiDesktopEdge.ServiceClient.DataClient {"Data":{"JwtFileName":"Damien's laptop.jwt","JwtContent":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"},"Command":"AddIdentity"}
[2024-11-03T14:52:00.775Z] ERROR ZitiDesktopEdge.ServiceClient.DataClient Unexpected error System.IO.IOException: Unexpected error when sending data to service. the monitor service appears to be offline?
à ZitiDesktopEdge.ServiceClient.AbstractClient.<sendAsync>d__36.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à ZitiDesktopEdge.ServiceClient.DataClient.<AddIdentityAsync>d__49.MoveNext()
And got zero log on both controller and router service.
DNS name is reachable from the Internet (I can access to the API and ziti console) on differents browsers from differents networks and from differents dns servers.
I also tested to create a new identity and enrolled it on a device but got the same problem.
How is that possible ?
Thanks in advance