https://prefect.io logo
Title
j

Josh Greenhalgh

03/11/2021, 4:43 PM
Hi wonder of anyone could help? I have a colleague running windows and they get the following error when they run
prefect server start
- traceback in thread
[4:19 PM] ful trace back;
Exception caught; killing services (press ctrl-C to force)
Traceback (most recent call last):
  File "c:\users\44786\envs\poetry\lib\site-packages\prefect\cli\server.py", line 498, in start
    subprocess.check_call(
  File "C:\Users\44786\.pyenv\pyenv-win\versions\3.8.7\lib\subprocess.py", line 359, in check_call
    retcode = call(*popenargs, **kwargs)
  File "C:\Users\44786\.pyenv\pyenv-win\versions\3.8.7\lib\subprocess.py", line 340, in call
    with Popen(*popenargs, **kwargs) as p:
  File "C:\Users\44786\.pyenv\pyenv-win\versions\3.8.7\lib\subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\44786\.pyenv\pyenv-win\versions\3.8.7\lib\subprocess.py", line 1307, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\44786\.pyenv\pyenv-win\versions\3.8.7\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\44786\.pyenv\pyenv-win\versions\3.8.7\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\44786\Envs\poetry\Scripts\prefect.exe\__main__.py", line 7, in <module>
  File "c:\users\44786\envs\poetry\lib\site-packages\click\core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "c:\users\44786\envs\poetry\lib\site-packages\click\core.py", line 782, in main
    rv = self.invoke(ctx)
  File "c:\users\44786\envs\poetry\lib\site-packages\click\core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\users\44786\envs\poetry\lib\site-packages\click\core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\users\44786\envs\poetry\lib\site-packages\click\core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\users\44786\envs\poetry\lib\site-packages\click\core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "c:\users\44786\envs\poetry\lib\site-packages\prefect\cli\server.py", line 536, in start
    subprocess.check_output(
  File "C:\Users\44786\.pyenv\pyenv-win\versions\3.8.7\lib\subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\44786\.pyenv\pyenv-win\versions\3.8.7\lib\subprocess.py", line 489, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\44786\.pyenv\pyenv-win\versions\3.8.7\lib\subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\44786\.pyenv\pyenv-win\versions\3.8.7\lib\subprocess.py", line 1307, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Seems like the compose file generated in the temp location isn't actually there...
z

Zanie

03/11/2021, 5:50 PM
The error looks to be coming from Windows not Docker so I think actually the
docker-compose
binary is what can't be found?
j

Josh Greenhalgh

03/11/2021, 6:29 PM
Ahhh it means the compose executable when it says the file cannot be found!! I really hate windows...
Thats unfair Im just very unfamiliar...
z

Zanie

03/11/2021, 6:49 PM
Haha I'd take linux any day.
but yeah I think that error is the
CreateProcess
function, if it was reaching docker-compose you'd have a different error for sure.