{"action":"created","issue":{"url":"https://api.github.com/repos/cooperative-computing-lab/cctools/issues/742","labels_url":"https://api.github.com/repos/cooperative-computing-lab/cctools/issues/742/labels{/name}","comments_url":"https://api.github.com/repos/cooperative-computing-lab/cctools/issues/742/comments","events_url":"https://api.github.com/repos/cooperative-computing-lab/cctools/issues/742/events","html_url":"https://github.com/cooperative-computing-lab/cctools/issues/742","id":73397008,"number":742,"title":"\"Text file busy\" from parrot_run / CVMFS / alien_cache","user":{"login":"bbockelm","id":1093447,"avatar_url":"https://avatars.githubusercontent.com/u/1093447?v=3","gravatar_id":"","url":"https://api.github.com/users/bbockelm","html_url":"https://github.com/bbockelm","followers_url":"https://api.github.com/users/bbockelm/followers","following_url":"https://api.github.com/users/bbockelm/following{/other_user}","gists_url":"https://api.github.com/users/bbockelm/gists{/gist_id}","starred_url":"https://api.github.com/users/bbockelm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbockelm/subscriptions","organizations_url":"https://api.github.com/users/bbockelm/orgs","repos_url":"https://api.github.com/users/bbockelm/repos","events_url":"https://api.github.com/users/bbockelm/events{/privacy}","received_events_url":"https://api.github.com/users/bbockelm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-05T18:46:41Z","updated_at":"2015-05-05T19:27:10Z","closed_at":null,"body":"Hi,\r\n\r\nWhen running parrot_run with CVMFS and alien_cache, I'm getting the following error message from our job scripts:\r\n\r\n```\r\nCRITICAL:root:Error running SCRAM\r\nCRITICAL:root:\r\n        Scram Command Diagnostic:\r\n        Command : scramv1\r\n        Architecture: slc5_amd64_gcc472\r\n        Executed: eval `scramv1 ru -sh`\r\n        Exit Status: 4\r\n        Stdout:\r\n        Stderr: /usr/bin/env: perl: Text file busy\r\n\r\n```\r\n\r\nThis appears to occur when many jobs startup simultaneously - I'm guessing that either parrot or libcvmfs is opening files in the cache as writable?\r\n\r\nBrian\r\n"},"comment":{"url":"https://api.github.com/repos/cooperative-computing-lab/cctools/issues/comments/99195960","html_url":"https://github.com/cooperative-computing-lab/cctools/issues/742#issuecomment-99195960","issue_url":"https://api.github.com/repos/cooperative-computing-lab/cctools/issues/742","id":99195960,"user":{"login":"dthain","id":2752914,"avatar_url":"https://avatars.githubusercontent.com/u/2752914?v=3","gravatar_id":"","url":"https://api.github.com/users/dthain","html_url":"https://github.com/dthain","followers_url":"https://api.github.com/users/dthain/followers","following_url":"https://api.github.com/users/dthain/following{/other_user}","gists_url":"https://api.github.com/users/dthain/gists{/gist_id}","starred_url":"https://api.github.com/users/dthain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dthain/subscriptions","organizations_url":"https://api.github.com/users/dthain/orgs","repos_url":"https://api.github.com/users/dthain/repos","events_url":"https://api.github.com/users/dthain/events{/privacy}","received_events_url":"https://api.github.com/users/dthain/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T19:27:10Z","updated_at":"2015-05-05T19:27:10Z","body":"If the problem is related to executing programs, then the parrot file cache becomes involved, in addition to the cvmfs cache, because a locally accessible copy is needed to call exec. `decode_execve() -> pfs_get_local_name() -> pfs_open_cached()`\r\n\r\nSo, the possible culprit is in dttools/file_cache.c:file_cache_commit\r\n\r\n@btovar suggest that you put in a check for ETXTBSY there and emit a big fat warning message there.  That way, we will know if that is the source of the bug.\r\n\r\n"}}