{"action":"created","issue":{"url":"https://api.github.com/repos/LLNL/spack/issues/1904","repository_url":"https://api.github.com/repos/LLNL/spack","labels_url":"https://api.github.com/repos/LLNL/spack/issues/1904/labels{/name}","comments_url":"https://api.github.com/repos/LLNL/spack/issues/1904/comments","events_url":"https://api.github.com/repos/LLNL/spack/issues/1904/events","html_url":"https://github.com/LLNL/spack/issues/1904","id":181003695,"number":1904,"title":"File lock issue on Cray system? (fcntl.lockf : Bad file descriptor)","user":{"login":"pramodk","id":666852,"avatar_url":"https://avatars.githubusercontent.com/u/666852?v=3","gravatar_id":"","url":"https://api.github.com/users/pramodk","html_url":"https://github.com/pramodk","followers_url":"https://api.github.com/users/pramodk/followers","following_url":"https://api.github.com/users/pramodk/following{/other_user}","gists_url":"https://api.github.com/users/pramodk/gists{/gist_id}","starred_url":"https://api.github.com/users/pramodk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pramodk/subscriptions","organizations_url":"https://api.github.com/users/pramodk/orgs","repos_url":"https://api.github.com/users/pramodk/repos","events_url":"https://api.github.com/users/pramodk/events{/privacy}","received_events_url":"https://api.github.com/users/pramodk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LLNL/spack/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/LLNL/spack/labels/locking","name":"locking","color":"e99695"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-04T21:00:35Z","updated_at":"2016-10-04T22:37:02Z","closed_at":null,"body":"Trying spack first time on Cray system and see following:\r\n\r\n```bash\r\n$ git clone https://github.com/LLNL/spack.git\r\n$ ./spack/bin/spack arch\r\ncray-cnl-sahdybridge\r\n```\r\n\r\nBut for find command:\r\n```\r\n$ ./spack/bin/spack find\r\nTraceback (most recent call last):\r\n  File \"./spack/bin/spack\", line 192, in <module>\r\n    main()\r\n  File \"./spack/bin/spack\", line 169, in main\r\n    return_val = command(parser, args)\r\n  File \"/users/kumbhar/spack/lib/spack/spack/cmd/find.py\", line 148, in find\r\n    specs = set(spack.installed_db.query(**q_args))\r\n  File \"/users/kumbhar/spack/lib/spack/spack/database.py\", line 630, in query\r\n    with self.read_transaction():\r\n  File \"/users/kumbhar/spack/lib/spack/llnl/util/lock.py\", line 211, in __enter__\r\n    self._as = self._acquire_fn()\r\n        self._file_path = file_path\r\n  File \"/users/kumbhar/spack/lib/spack/spack/database.py\", line 447, in _read\r\n    self.reindex(spack.install_layout)\r\n  File \"/users/kumbhar/spack/lib/spack/spack/database.py\", line 351, in reindex\r\n    with transaction:\r\n  File \"/users/kumbhar/spack/lib/spack/llnl/util/lock.py\", line 210, in __enter__\r\n    if self._enter() and self._acquire_fn:\r\n  File \"/users/kumbhar/spack/lib/spack/llnl/util/lock.py\", line 241, in _enter\r\n    return self._lock.acquire_write(self._timeout)\r\n  File \"/users/kumbhar/spack/lib/spack/llnl/util/lock.py\", line 134, in acquire_write\r\n    self._lock(fcntl.LOCK_EX, timeout)   # can raise LockError.\r\n  File \"/users/kumbhar/spack/lib/spack/llnl/util/lock.py\", line 76, in _lock\r\n    fcntl.lockf(self._fd, op | fcntl.LOCK_NB)\r\nIOError: [Errno 9] Bad file descriptor\r\n```\r\n\r\nI see this issue on TITAN and Daint Cray systems.\r\nAny suggestion?"},"comment":{"url":"https://api.github.com/repos/LLNL/spack/issues/comments/251533878","html_url":"https://github.com/LLNL/spack/issues/1904#issuecomment-251533878","issue_url":"https://api.github.com/repos/LLNL/spack/issues/1904","id":251533878,"user":{"login":"tgamblin","id":299842,"avatar_url":"https://avatars.githubusercontent.com/u/299842?v=3","gravatar_id":"","url":"https://api.github.com/users/tgamblin","html_url":"https://github.com/tgamblin","followers_url":"https://api.github.com/users/tgamblin/followers","following_url":"https://api.github.com/users/tgamblin/following{/other_user}","gists_url":"https://api.github.com/users/tgamblin/gists{/gist_id}","starred_url":"https://api.github.com/users/tgamblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgamblin/subscriptions","organizations_url":"https://api.github.com/users/tgamblin/orgs","repos_url":"https://api.github.com/users/tgamblin/repos","events_url":"https://api.github.com/users/tgamblin/events{/privacy}","received_events_url":"https://api.github.com/users/tgamblin/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T22:37:02Z","updated_at":"2016-10-04T22:37:02Z","body":"Fixed by #1906"}}
{"actor":{"display_login":"tgamblin"}}