{"action":"created","issue":{"url":"https://api.github.com/repos/pantsbuild/pants/issues/1763","labels_url":"https://api.github.com/repos/pantsbuild/pants/issues/1763/labels{/name}","comments_url":"https://api.github.com/repos/pantsbuild/pants/issues/1763/comments","events_url":"https://api.github.com/repos/pantsbuild/pants/issues/1763/events","html_url":"https://github.com/pantsbuild/pants/issues/1763","id":93632712,"number":1763,"title":"Problem sharing the artifact cache between two different users","user":{"login":"ericzundel","id":119728,"avatar_url":"https://avatars.githubusercontent.com/u/119728?v=3","gravatar_id":"","url":"https://api.github.com/users/ericzundel","html_url":"https://github.com/ericzundel","followers_url":"https://api.github.com/users/ericzundel/followers","following_url":"https://api.github.com/users/ericzundel/following{/other_user}","gists_url":"https://api.github.com/users/ericzundel/gists{/gist_id}","starred_url":"https://api.github.com/users/ericzundel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericzundel/subscriptions","organizations_url":"https://api.github.com/users/ericzundel/orgs","repos_url":"https://api.github.com/users/ericzundel/repos","events_url":"https://api.github.com/users/ericzundel/events{/privacy}","received_events_url":"https://api.github.com/users/ericzundel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"stuhood","id":46740,"avatar_url":"https://avatars.githubusercontent.com/u/46740?v=3","gravatar_id":"","url":"https://api.github.com/users/stuhood","html_url":"https://github.com/stuhood","followers_url":"https://api.github.com/users/stuhood/followers","following_url":"https://api.github.com/users/stuhood/following{/other_user}","gists_url":"https://api.github.com/users/stuhood/gists{/gist_id}","starred_url":"https://api.github.com/users/stuhood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuhood/subscriptions","organizations_url":"https://api.github.com/users/stuhood/orgs","repos_url":"https://api.github.com/users/stuhood/repos","events_url":"https://api.github.com/users/stuhood/events{/privacy}","received_events_url":"https://api.github.com/users/stuhood/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-07-07T21:23:36Z","updated_at":"2015-07-07T22:02:17Z","closed_at":null,"body":"I'm seeing this problem when trying to setup my laptop as a  read-only client of an artifact cache populated in our CI builder.  Our CI builder runs under the username `kochiku-user`:\r\n\r\n```\r\n$  ./pants compile foo\r\n17:11:59 00:00 [main]\r\n               See a report at: http://localhost:59407/run/pants_run_2015_07_07_17_11_59_699\r\n17:11:59 00:00   [bootstrap]\r\n17:12:01 00:02   [setup]\r\n17:12:01 00:02     [parse]\r\n               Executing tasks in goals: bootstrap -> imports -> unpack-jars -> deferred-sources -> gen -> resolve -> compile\r\n17:12:02 00:03   [bootstrap]\r\n17:12:02 00:03     [bootstrap-jvm-tools]\r\n17:12:02 00:03   [imports]\r\n17:12:02 00:03     [ivy-imports]\r\n17:12:04 00:05       [cache]        \r\n                   No cached artifacts for 8 targets.\r\n                   Invalidated 8 targets.\r\n                   Mapping import jars for external-protos/google/src/main/proto:proto-source-set: \r\n                     jar('com.google.protobuf', 'protobuf-java', '2.6.1.square.1.2')\r\n17:12:04 00:05       [map-jars]\r\n                     ==== stderr ====\r\n                     \r\n                     ==== stdout ====\r\n                     \r\n17:12:14 00:15   [complete]\r\n               FAILURE\r\n\r\nException message: Failed to read ng output after 10 seconds.\r\n jvm_options=['-Duser.timezone=UTC', '-Xmx1g', '-XX:MaxPermSize=256m', u'-Dsun.io.useCanonCaches=false', u'-Divy.cache.dir=/Users/zundel/.ivy2/pants'] classpath=['/data/app/kochiku-worker/.ivy2/pants/com.martiansoftware/nailgun-server/jars/nailgun-server-0.9.1.jar', '/Users/zundel/.ivy2/pants/org.apache.ivy/ivy/jars/ivy-2.3.0.jar']\r\n```\r\n\r\n`/data/app/kochiku-worker/.ivy2/pants/com.martiansoftware/nailgun-server/jars/nailgun-server-0.9.1.jar` is a file that only exists on our CI \r\n\r\nOnly Square uses the ivy-import task, but this just happens to be the first time we try to invoke a nailgun server.  \r\n\r\nTurning off the cache in the jvm_bootstrapper should fix the problem.  I think that would be:\r\n\r\n```\r\n[cache.bootstrap.bootstrap-jvm-tools]\r\nread: False\r\n```"},"comment":{"url":"https://api.github.com/repos/pantsbuild/pants/issues/comments/119357225","html_url":"https://github.com/pantsbuild/pants/issues/1763#issuecomment-119357225","issue_url":"https://api.github.com/repos/pantsbuild/pants/issues/1763","id":119357225,"user":{"login":"stuhood","id":46740,"avatar_url":"https://avatars.githubusercontent.com/u/46740?v=3","gravatar_id":"","url":"https://api.github.com/users/stuhood","html_url":"https://github.com/stuhood","followers_url":"https://api.github.com/users/stuhood/followers","following_url":"https://api.github.com/users/stuhood/following{/other_user}","gists_url":"https://api.github.com/users/stuhood/gists{/gist_id}","starred_url":"https://api.github.com/users/stuhood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuhood/subscriptions","organizations_url":"https://api.github.com/users/stuhood/orgs","repos_url":"https://api.github.com/users/stuhood/repos","events_url":"https://api.github.com/users/stuhood/events{/privacy}","received_events_url":"https://api.github.com/users/stuhood/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T22:02:17Z","updated_at":"2015-07-07T22:02:17Z","body":"@ericzundel : if we didn't, then every invoke of _any_ JVM tool would involve a roundtrip through ivy, afaik."}}