Skip to content

Error: tail: cannot open '/tmp/record/cmd' for reading: No such file or directory #5

@prog110

Description

@prog110

Steps to reproduce

  1. Run the following command in terminal
docker run -it --rm \
  --name ubuntu-experiment \
  ubuntu \
  /bin/bash
  1. Run the following command in another terminal
./docker-record ubuntu-experiment

Observe the following error in the log

tail: cannot open '/tmp/record/cmd' for reading: No such file or directory
root@40bb5ab59031:/# Traceback (most recent call last):
                                                         File "/home/user/dev/utils/docker-record/docker_record/main.py", line 152, in read_fs_changes
                                                                                                                                                                fin_fs = open(get_filesystem_track_filename(container_name), 'rb', 0)
                 FileNotFoundError: [Errno 2] No such file or directory: 'traces/ubuntu-experiment_fs.txt'

                                                                                                          During handling of the above exception, another exception occurred:

                                                                                                                                                                             Traceback (most recent call last):
                                                                                                                                                                                                                 File "./docker-record", line 28, in <module>
                                             main.record(container)
                                                                     File "/home/user/dev/utils/docker-record/docker_record/main.py", line 82, in record
                                                                                                                                                                  fs_changes = read_fs_changes(container_name)
                                                                                                                                                                                                                File "/home/user/dev/utils/docker-record/docker_record/main.py", line 159, in read_fs_changes
                                                                                                   print(ex.with_traceback())
                                                                                                                             TypeError: with_traceback() takes exactly one argument (0 given)

Environment

Python 3.7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions