- Edited
I'm running into the following error while configuring ARTIQ on a Windows machine. I have successfully created an environment and have installed the necessary packages through conda, but when I try to submit experiments by opening the dashboard, I receive the following error:
(artiq-bb) C:\Users\esvd\Documents\BB_ARTIQ> artiq_dashboard
INFO:dashboard:root:ARTIQ dashboard version 7.8123.3038639
INFO:dashboard:root:ARTIQ dashboard connected to moninj_proxy (::1)
ERROR:dashboard:artiq.dashboard.moninj:failed to connect to moninj. Is aqctl_moninj_proxy running?
Traceback (most recent call last):
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\lib\site-packages\artiq\coredevice\comm_moninj.py", line 32, in connect
self._reader, seld._writer = await async_open_connection(
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\lib\site-packages\sipyco\keepalive.py", line 80, in async_open_connection
reader, writer = await asyncio.open_connection(host, port, *args, **kwargs)
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\lib\site-packages\asyncio\streams.py", line 47, in open_connection
transport, _ = await loop.create_connection(
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\lib\site-packages\asyncio\base_events.py", line 1064, in create_connection
raise exceptions[0]
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\lib\site-packages\asyncio\base_events.py", line 1049, in create_connection
sock = await self._connect_sock(
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\lib\site-packages\asyncio\base_events.py", line 960, in _connect_sock
await self.sock_connect(sock, address)
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\lib\site-packages\asyncio\proactor_events.py", line 705, in sock_connect
return await self._proactor.connect(sock, address)
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\lib\site-packages\qasync\_windows.py", line 43, in _process_events
value = callback(transferred, key, ov)
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\lib\site-packages\asyncio\windows_events.py", line 604, in finish_connect
ov.getresult()
ConnectionRefusedError: [WinError 1225] The remote computer refused the network connection
I have checked that I am using the correct IPv4 address (found using ipconfig\all
) - I have set core_addr
in device_db.py
to this address. In addition, I get a further error when attempting to run artiq_coremgmt -D 192.168.1.75 log
, where 192.168.1.75
is my host IP address:
(artiq-bb) C:\Users\esvd\Documents\BB_ARTIQ> artiq_coremgmt -D 192.168.1.75 log
Traceback (most recent call last):
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\Scripts\artiq_coremgmt-script.py", line 9, in <module>
sys.exit(main())
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\lib\site-packages\artiq\frontend\artiq_coremgmt.py", line 120, in main
print(mgmt.get_log(), end="")
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\lib\site-packages\artiq\coredevice\comm_mgmt.py", line 131, in get_log
self._write_header(Request.Getlog)
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\lib\site-packages\artiq\coredevice\comm_mgmt.py", line 79, in _write_header
self.open()
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\lib\site-packages\artiq\coredevice\comm_mgmt.py", line 56, in open
self.socket = create_connection(self.host, self.port)
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\lib\site-packages\sipyco\keepalive.py", line 103, in create_connection
sock = socket.create_connection((host, port), *args, **kwargs)
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\lib\socket.py", line 845, in create_connection
raise err
File "C:\Users\esvd\Anaconda3\envs\artiq-bb\lib\socket.py", line 833, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
From what I've read online, this latter error may indicate that the device exists but is not actively listening on the port I have specified and/or at the address I have specified. Currently, I have the core_log
using port 1068 at the IP address indicated above. Is this the right IP address to be using (the one from ipconfig\all
)? How do I figure out which port the core log should be listening on?
Edit: I've tried querying which ports I'm listening to using netstat -ano
and, accordingly, changed the ports in the device_db.py
file to the active ports returned. This does not seem to resolve the issue either. I have seen a similar issue discussed on this forum here and here, but was unable to figure out how the situation was resolved in either case - if the IP address is incorrect, how can I find the correct IP address to use for the core_addr
?
Thank you for your help!