{"action":"created","issue":{"url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/pserv/issues/13","repository_url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/pserv","labels_url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/pserv/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/pserv/issues/13/comments","events_url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/pserv/issues/13/events","html_url":"https://github.com/DarkEnergyScienceCollaboration/pserv/issues/13","id":189173631,"number":13,"title":"Trouble using load_db.py --dry_run option","user":{"login":"heather999","id":10982136,"avatar_url":"https://avatars.githubusercontent.com/u/10982136?v=3","gravatar_id":"","url":"https://api.github.com/users/heather999","html_url":"https://github.com/heather999","followers_url":"https://api.github.com/users/heather999/followers","following_url":"https://api.github.com/users/heather999/following{/other_user}","gists_url":"https://api.github.com/users/heather999/gists{/gist_id}","starred_url":"https://api.github.com/users/heather999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heather999/subscriptions","organizations_url":"https://api.github.com/users/heather999/orgs","repos_url":"https://api.github.com/users/heather999/repos","events_url":"https://api.github.com/users/heather999/events{/privacy}","received_events_url":"https://api.github.com/users/heather999/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-14T17:27:33Z","updated_at":"2016-11-21T14:53:39Z","closed_at":"2016-11-21T14:53:39Z","body":"Admittedly this was my first attempt to use the load_db.py script, however I ran into a problem trying to use the --dry_run parameter.  I was using the Twinkles Run3 First40 data in: /global/cscratch1/sd/desc/twinkles/work/4/output\r\nLater I was able to run the ingest after I gave up trying to use the --dry_run to test things out.  Was I doing something wrong? Or were my expectations about \"dry_run\" inappropriate?\r\n```heatherk@cori07:/global/cscratch1/sd/desc/twinkles/work/4> load_db.py --dry_run output \"Twinkles Run 3 Test\"                                                        \r\nIngest registry file /global/cscratch1/sd/desc/twinkles/work/4/output/_parent/registry.sqlite3                                                                      \r\nIngest calexp info\r\nIngest object catalog output/deepCoadd-results/merged/0/0,0/ref-0-0,0.fits\r\nProcessing band u for 0 visits.\r\nProcessing band g for 10 visits.\r\nProcessing v250-fg R2,2 S1,1\r\nTraceback (most recent call last):\r\n File \"/global/common/cori/contrib/lsst/pserv/20161111/pserv/bin/load_db.py\", line 104, in <module>\r\n   dry_run=args.dry_run)\r\n File \"/global/common/cori/contrib/lsst/pserv/20161111/pserv/bin/load_db.py\", line 38, in ingest_forced_catalogs\r\n   lambda c: [x[0] for x in c][0])\r\n File \"/global/common/cori/contrib/lsst/pserv/20161111/pserv/python/desc/pserv/Pserv.py\", line 91, in apply\r\n   results = cursorFunc(cursor)\r\n File \"/global/common/cori/contrib/lsst/pserv/20161111/pserv/bin/load_db.py\", line 38, in <lambda>\r\n   lambda c: [x[0] for x in c][0])\r\nIndexError: list index out of range```"},"comment":{"url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/pserv/issues/comments/261959123","html_url":"https://github.com/DarkEnergyScienceCollaboration/pserv/issues/13#issuecomment-261959123","issue_url":"https://api.github.com/repos/DarkEnergyScienceCollaboration/pserv/issues/13","id":261959123,"user":{"login":"heather999","id":10982136,"avatar_url":"https://avatars.githubusercontent.com/u/10982136?v=3","gravatar_id":"","url":"https://api.github.com/users/heather999","html_url":"https://github.com/heather999","followers_url":"https://api.github.com/users/heather999/followers","following_url":"https://api.github.com/users/heather999/following{/other_user}","gists_url":"https://api.github.com/users/heather999/gists{/gist_id}","starred_url":"https://api.github.com/users/heather999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heather999/subscriptions","organizations_url":"https://api.github.com/users/heather999/orgs","repos_url":"https://api.github.com/users/heather999/repos","events_url":"https://api.github.com/users/heather999/events{/privacy}","received_events_url":"https://api.github.com/users/heather999/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T14:53:39Z","updated_at":"2016-11-21T14:53:39Z","body":"Perhaps the problem was that I was running from within a directory where I didn't have write permissions?  I've rerun it from within a directory I have write access and it worked. Or maybe it was a transient issue on Cori - we had more than a few of those that week. Closing issue.."}}
{"actor":{"display_login":"heather999"}}