_Originally posted by @cisaacstern in https://github.com/pangeo-forge/staged-recipes/pull/169#discussion_r983005046, in discussion with @andersy005 about how to debug failed /run commands on staged-recipes, when the issue is a CalledProcessError on the call to pangeo-forge-runner. This important debugging trick should be added to docs/README.md._
So what I did was watch the server logs right after /runing the test. And I saw:
{"message": "Error during running: 'eobs-tg-tn-tx-rr-hu-pp'", "exc_info": "Traceback (most recent call last):\n File \"/Users/charlesstern/miniconda3/envs/pfo-new/bin/pangeo-forge-runner\", line 8, in <module>\n sys.exit(main())\n File \"/Users/charlesstern/miniconda3/envs/pfo-new/lib/python3.9/site-packages/pangeo_forge_runner/cli.py\", line 28, in main\n app.start()\n File \"/Users/charlesstern/miniconda3/envs/pfo-new/lib/python3.9/site-packages/pangeo_forge_runner/cli.py\", line 23, in start\n super().start()\n File \"/Users/charlesstern/miniconda3/envs/pfo-new/lib/python3.9/site-packages/traitlets/config/application.py\", line 462, in start\n return self.subapp.start()\n File \"/Users/charlesstern/miniconda3/envs/pfo-new/lib/python3.9/site-packages/pangeo_forge_runner/commands/bake.py\", line 112, in start\n recipes = feedstock.parse_recipes()\n File \"/Users/charlesstern/miniconda3/envs/pfo-new/lib/python3.9/site-packages/pangeo_forge_runner/feedstock.py\", line 55, in parse_recipes\n recipes[r[\"id\"]] = self._import(r[\"object\"])\n File \"/Users/charlesstern/miniconda3/envs/pfo-new/lib/python3.9/site-packages/pangeo_forge_runner/feedstock.py\", line 43, in _import\n return self._import_cache[module][export]\nKeyError: 'eobs-tg-tn-tx-rr-hu-pp'", "status": "failed"}
So what I did was watch the server logs right after
/run
ing the test. And I saw:But I didn't get much detail on what the called process error issue actually was. So I copy-and-pasted the config in the first log line
into a local JSON file on my laptop
and then I copied the
pangeo-forge-runner
command from the second log lineand, replacing
'-f=/tmp/tmplol5klds.json'
with the path to my local JSON config (c.json
), ranwhich gave me a descriptive error