https://dagster.io/ logo
#ask-community
Title
# ask-community
t

Timothy Elder

03/14/2023, 8:27 PM
Trying to initiate a tail on a log file that is generated by a job and keep getting this. Has anyone seen this before??
Copy code
FileNotFoundError: [Errno 2] No such file or directory: 'tail'
  File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster/_core/execution/plan/execute_plan.py", line 47, in inner_plan_execution_iterator
    log_context = capture_stack.enter_context(
  File "/usr/lib/python3.8/contextlib.py", line 425, in enter_context
    result = _cm_type.__enter__(cm)
  File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster/_core/storage/cloud_storage_compute_log_manager.py", line 102, in capture_logs
    with self.local_manager.capture_logs(log_key) as context:
  File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster/_core/storage/local_compute_log_manager.py", line 95, in capture_logs
    with mirror_stream_to_file(sys.stdout, outpath), mirror_stream_to_file(sys.stderr, errpath):
  File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster/_core/execution/compute_logs.py", line 35, in mirror_stream_to_file
    with tail_to_stream(filepath, stream) as pids:
  File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster/_core/execution/compute_logs.py", line 83, in tail_to_stream
    with execute_posix_tail(path, stream) as pids:
  File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster/_core/execution/compute_logs.py", line 128, in execute_posix_tail
    tail_process = subprocess.Popen(tail_cmd, stdout=stream)
  File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
y

yuhan

03/14/2023, 10:33 PM
can you provide some code snippets?
2 Views