Hi!
I'am create agent with OpenVAS (notLegacy) executor. Also, OpenVas running on same machine with faraday (just another 9392 port) in docker.
Executor config:
ip address local machine
port 9392
user/pass
When i am trying to run executor - get this error:
2025-03-23 08:51:44,429 - faraday_agent_dispatcher - INFO {MainThread} [metadata_utils.py:70 - check_commands()] Dependency check ended. Ready to go
2025-03-23 08:51:44,429 - faraday_agent_dispatcher - INFO {MainThread} [dispatcher_io.py:771 - on_run()] Running gvm_openvas executor
Task exception was never retrieved
future: <Task finished name='Task-16' coro=<AsyncClient._handle_eio_message() done, defined at /home/akorshunov/faraday-venv/lib/python3.12/site-packages/socketio/asyncio_client.py:505> exception=TypeError('expected str, bytes or os.PathLike object, not int')>
Traceback (most recent call last):
File "/home/akorshunov/faraday-venv/lib/python3.12/site-packages/socketio/asyncio_client.py", line 522, in _handle_eio_message
await self._handle_event(pkt.namespace, pkt.id, pkt.data)
File "/home/akorshunov/faraday-venv/lib/python3.12/site-packages/socketio/asyncio_client.py", line 381, in _handle_event
r = await self._trigger_event(data[0], namespace, *data[1:])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/akorshunov/faraday-venv/lib/python3.12/site-packages/socketio/asyncio_client.py", line 450, in _trigger_event
return await self.namespace_handlers[namespace].trigger_event(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/akorshunov/faraday-venv/lib/python3.12/site-packages/socketio/asyncio_namespace.py", line 178, in trigger_event
ret = await handler(*args)
^^^^^^^^^^^^^^^^^^^^
File "/home/akorshunov/faraday-venv/lib/python3.12/site-packages/faraday_agent_dispatcher/dispatcher_io.py", line 774, in on_run
process = await self.dispatcher.create_process(executor, passed_params, plugin_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/akorshunov/faraday-venv/lib/python3.12/site-packages/faraday_agent_dispatcher/dispatcher_io.py", line 538, in create_process
process = await asyncio.create_subprocess_shell(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/subprocess.py", line 211, in create_subprocess_shell
transport, protocol = await loop.subprocess_shell(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/base_events.py", line 1711, in subprocess_shell
transport = await self._make_subprocess_transport(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/unix_events.py", line 211, in _make_subprocess_transport
transp = _UnixSubprocessTransport(self, protocol, args, shell,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/base_subprocess.py", line 36, in init
self._start(args=args, shell=shell, stdin=stdin, stdout=stdout,
File "/usr/lib/python3.12/asyncio/unix_events.py", line 820, in _start
self._proc = subprocess.Popen(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.12/subprocess.py", line 1872, in _execute_child
env_list.append(k + b'=' + os.fsencode(v))
^^^^^^^^^^^^^^
File "", line 818, in fsencode
TypeError: expected str, bytes or os.PathLike object, not int
Thank you for help
Hi!
I'am create agent with OpenVAS (notLegacy) executor. Also, OpenVas running on same machine with faraday (just another 9392 port) in docker.
Executor config:
ip address local machine
port 9392
user/pass
When i am trying to run executor - get this error:
2025-03-23 08:51:44,429 - faraday_agent_dispatcher - INFO {MainThread} [metadata_utils.py:70 - check_commands()] Dependency check ended. Ready to go
2025-03-23 08:51:44,429 - faraday_agent_dispatcher - INFO {MainThread} [dispatcher_io.py:771 - on_run()] Running gvm_openvas executor
Task exception was never retrieved
future: <Task finished name='Task-16' coro=<AsyncClient._handle_eio_message() done, defined at /home/akorshunov/faraday-venv/lib/python3.12/site-packages/socketio/asyncio_client.py:505> exception=TypeError('expected str, bytes or os.PathLike object, not int')>
Traceback (most recent call last):
File "/home/akorshunov/faraday-venv/lib/python3.12/site-packages/socketio/asyncio_client.py", line 522, in _handle_eio_message
await self._handle_event(pkt.namespace, pkt.id, pkt.data)
File "/home/akorshunov/faraday-venv/lib/python3.12/site-packages/socketio/asyncio_client.py", line 381, in _handle_event
r = await self._trigger_event(data[0], namespace, *data[1:])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/akorshunov/faraday-venv/lib/python3.12/site-packages/socketio/asyncio_client.py", line 450, in _trigger_event
return await self.namespace_handlers[namespace].trigger_event(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/akorshunov/faraday-venv/lib/python3.12/site-packages/socketio/asyncio_namespace.py", line 178, in trigger_event
ret = await handler(*args)
^^^^^^^^^^^^^^^^^^^^
File "/home/akorshunov/faraday-venv/lib/python3.12/site-packages/faraday_agent_dispatcher/dispatcher_io.py", line 774, in on_run
process = await self.dispatcher.create_process(executor, passed_params, plugin_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/akorshunov/faraday-venv/lib/python3.12/site-packages/faraday_agent_dispatcher/dispatcher_io.py", line 538, in create_process
process = await asyncio.create_subprocess_shell(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/subprocess.py", line 211, in create_subprocess_shell
transport, protocol = await loop.subprocess_shell(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/base_events.py", line 1711, in subprocess_shell
transport = await self._make_subprocess_transport(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/unix_events.py", line 211, in _make_subprocess_transport
transp = _UnixSubprocessTransport(self, protocol, args, shell,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/base_subprocess.py", line 36, in init
self._start(args=args, shell=shell, stdin=stdin, stdout=stdout,
File "/usr/lib/python3.12/asyncio/unix_events.py", line 820, in _start
self._proc = subprocess.Popen(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.12/subprocess.py", line 1872, in _execute_child
env_list.append(k + b'=' + os.fsencode(v))
^^^^^^^^^^^^^^
File "", line 818, in fsencode
TypeError: expected str, bytes or os.PathLike object, not int
Thank you for help