You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am a starter of Ankaios framework, I deployed the dashboard in the state.yaml for Amkaios Server, but after I started ank-server and ank-agent and ank --insecure get workloads I got error like following:
WORKLOAD NAME AGENT RUNTIME EXECUTION STATE ADDITIONAL INFO
Ankaios_Dashboard agent_B podman Pending(Initial)
databroker agent_A podman Running(Ok)
I ran "podman run --rm -p 5001:5001 ghcr.io/felixmoelders/ankaios-dashboard:latest" I got error like:
File "/ankaios-dashboard/main.py", line 1, in
import DashboardAPI as api
File "/ankaios-dashboard/DashboardAPI.py", line 23, in
ank_comm_service = AnkCommunicationService()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ankaios-dashboard/AnkCommunicationService.py", line 11, in init
self.ankaios = Ankaios()
^^^^^^^^^
File "/usr/lib/python3.11/site-packages/ankaios_sdk/ankaios.py", line 173, in init
self._connect()
File "/usr/lib/python3.11/site-packages/ankaios_sdk/ankaios.py", line 210, in _connect
raise AnkaiosConnectionException(
ankaios_sdk.exceptions.AnkaiosConnectionException: Control interface input fifo does not exist.
I check the source code of sdk in ankaios.py and I found the error was triggered by:
if not os.path.exists(
f"{self.ANKAIOS_CONTROL_INTERFACE_BASE_PATH}/output"):
raise AnkaiosConnectionException(
"Control interface output fifo does not exist."
)
And the ANKAIOS_CONTROL_INTERFACE_BASE_PATH is "/run/ankaios/control_interface", the thing is after I ran "sudo systemctl start ank-server" I did not find "/run/ankaios/control_interface" in my system, may I ask what is the cause of this issue?
The text was updated successfully, but these errors were encountered:
´´´yaml
apiVersion: v0.1
workloads:
Ankaios_Dashboard:
.... controlInterfaceAccess:
allowRules:
- type: StateRule
operation: ReadWrite
filterMask:
- "desiredState"
- "workloadStates"
´´´
which version of ankaios and which version of the ankaios-dashboard do you use?
@FelixMoelders Hallo, thank you very much for your reply! I used the same yaml file as you posted in your answer, I think it was the latest version
Now I just made it run, this is how I solve this issue:
Just copy only the content of dashboard yaml file to the state.yaml file
Start Ankaois Server and start Ankaois Agent, after that I can see the dahsboard in the browser
Add other Agents through separate yamk files and then start them though "ank -k apply", refresh the browser, then I am able to see the new Agents in dashboard
But when I write all the Agents in state.yaml file, it did not work, maybe it is because my Ubuntu version is 22.04, about that I am not quite sure
Hi, I am a starter of Ankaios framework, I deployed the dashboard in the state.yaml for Amkaios Server, but after I started ank-server and ank-agent and ank --insecure get workloads I got error like following:
WORKLOAD NAME AGENT RUNTIME EXECUTION STATE ADDITIONAL INFO
Ankaios_Dashboard agent_B podman Pending(Initial)
databroker agent_A podman Running(Ok)
I ran "podman run --rm -p 5001:5001 ghcr.io/felixmoelders/ankaios-dashboard:latest" I got error like:
File "/ankaios-dashboard/main.py", line 1, in
import DashboardAPI as api
File "/ankaios-dashboard/DashboardAPI.py", line 23, in
ank_comm_service = AnkCommunicationService()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ankaios-dashboard/AnkCommunicationService.py", line 11, in init
self.ankaios = Ankaios()
^^^^^^^^^
File "/usr/lib/python3.11/site-packages/ankaios_sdk/ankaios.py", line 173, in init
self._connect()
File "/usr/lib/python3.11/site-packages/ankaios_sdk/ankaios.py", line 210, in _connect
raise AnkaiosConnectionException(
ankaios_sdk.exceptions.AnkaiosConnectionException: Control interface input fifo does not exist.
I check the source code of sdk in ankaios.py and I found the error was triggered by:
if not os.path.exists(
f"{self.ANKAIOS_CONTROL_INTERFACE_BASE_PATH}/output"):
raise AnkaiosConnectionException(
"Control interface output fifo does not exist."
)
And the ANKAIOS_CONTROL_INTERFACE_BASE_PATH is "/run/ankaios/control_interface", the thing is after I ran "sudo systemctl start ank-server" I did not find "/run/ankaios/control_interface" in my system, may I ask what is the cause of this issue?
The text was updated successfully, but these errors were encountered: