Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: [Errno 2] No such file or directory: , let's reduce its probability #308

Open
fgeorgatos opened this issue Mar 12, 2018 · 0 comments

Comments

@fgeorgatos
Copy link
Collaborator

i believe that this occurs when 2 instances of qtop run in same system, under same user, which hints towards a race due to filename collission; which invites for asking if it can be randomized a bit better!

Log file created in /home/fgeorgatos/.local/qtop/logs/qtop.log
Traceback (most recent call last):
  File "/home/fgeorgatos/qtop/qtop.py", line 1775, in <module>
    fileutils.deprecate_old_output_files(config)
  File "/home/fgeorgatos/qtop/qtop_py/fileutils.py", line 83, in deprecate_old_output_files
    file_modified = datetime.datetime.fromtimestamp(os.path.getmtime(curpath))
  File "/usr/lib64/python2.6/genericpath.py", line 54, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: '/tmp/qtop_results_fgeorgatos/qtop_partview_20180311T140756_dHitcN.out'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant