# Error running ncov-tutorial after fresh install

**URL:** <https://nextstrain.discourse.group/t/error-running-ncov-tutorial-after-fresh-install/1383>\
**Category:** Help and Getting Started\
**Created:** [May 10, 2023, 9:47pm UTC](https://nextstrain.discourse.group/t/error-running-ncov-tutorial-after-fresh-install/1383 "2023-05-10T21:47:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dstrange](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@dstrange](https://nextstrain.discourse.group/u/dstrange)\
**Post date:** [May 10, 2023, 9:47pm UTC](https://nextstrain.discourse.group/t/error-running-ncov-tutorial-after-fresh-install/1383/1 "2023-05-10T21:47:18Z")

</div>

Hello everyone,

Just did a fresh install of Nextstrain components. Conda runtime as default.

After running the ‘nextstrain setup --set-default conda’ command in my environment and getting the all good, I went through the process of running the example data and received the error below (appears to be related to generation of the ‘rbd\_levels.json’ file). Any help troubleshooting will be greatly appreciated. Thanks.

```auto
ERROR: results/default-build/rbd_levels.json did not contain either `nodes` or `branches`. Please check the formatting of this JSON!
Validating schema of 'results/default-build/nt_muts.json'...
Validating schema of 'results/default-build/aa_muts.json'...
[Wed May 10 11:32:07 2023]
Error in rule export:
    jobid: 4
    input: results/default-build/tree.nwk, results/default-build/metadata_adjusted.tsv.xz, results/default-build/branch_lengths.json, results/default-build/nt_muts.json, results/default-build/aa_muts.json, results/default-build/emerging_lineages.json, results/default-build/clades.json, results/default-build/recency.json, results/default-build/traits.json, results/default-build/logistic_growth.json, results/default-build/mutational_fitness.json, results/default-build/distances.json, results/default-build/epiweeks.json, results/default-build/rbd_levels.json, defaults/auspice_config.json, results/default-build/colors.tsv, defaults/lat_longs.tsv, results/default-build/description.md
    output: results/default-build/ncov_with_accessions.json, results/default-build/ncov_with_accessions_root-sequence.json
    log: logs/export_default-build.txt (check log file(s) for error details)
    conda-env: /data/nextstrain/hawaii_2023/.snakemake/conda/6d8107c87e6d133fe50e00ac4282e48f_
    shell:

        augur export v2 --tree results/default-build/tree.nwk --metadata results/default-build/metadata_adjusted.tsv.xz --node-data results/default-build/branch_lengths.json results/default-build/nt_muts.json results/default-build/aa_muts.json results/default-build/emerging_lineages.json results/default-build/clades.json results/default-build/recency.json results/default-build/traits.json results/default-build/logistic_growth.json results/default-build/mutational_fitness.json results/default-build/distances.json results/default-build/epiweeks.json results/default-build/rbd_levels.json --auspice-config defaults/auspice_config.json --include-root-sequence --colors results/default-build/colors.tsv --lat-longs defaults/lat_longs.tsv --title 'Genomic epidemiology of novel coronavirus - Default Build-focused subsampling' --description results/default-build/description.md --output results/default-build/ncov_with_accessions.json 2>&1 | tee logs/export_default-build.txt

        (one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)

Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message
Complete log: .snakemake/log/2023-05-10T113203.662797.snakemake.log

```

Contents of rbd\_levels.json file (opened in Notepad):

```auto
{
  "nodes": {},
  "rbd_level_details": {}
}

```

---

<div class="post-metadata">

**Author:** ![victorlin](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/victorlin/32/306_2.png) [@victorlin](https://nextstrain.discourse.group/u/victorlin)\
**Post date:** [May 11, 2023, 6:12pm UTC](https://nextstrain.discourse.group/t/error-running-ncov-tutorial-after-fresh-install/1383/2 "2023-05-11T18:12:50Z")

</div>

Hi @dstrange,

Sorry to hear you are running issues! Good thinking, your rbd\_levels.json files looks empty which is unexpected.

I just ran through the same process myself and was unable to reproduce your error. I’ll need more logs to troubleshoot. Can you re-run the workflow then upload all the logs as a compressed archive file? Here are the commands to do so:

```sh
# Go to the ncov directory if you haven't already
cd ncov

# Remove files from previous runs
git clean -fdx .

# Run the build command from the tutorial
nextstrain build . --configfile ncov-tutorial/example-data.yaml

# Create a compressed archive file
tar -cJf ncov-tutorial-log.tar.xz logs/

```

You can upload the file `ncov-tutorial-log.tar.xz` in a reply to this post using the upload icon in the reply editor toolbar.

– Victor

---

<div class="post-metadata">

**Author:** ![victorlin](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/victorlin/32/306_2.png) [@victorlin](https://nextstrain.discourse.group/u/victorlin)\
**Post date:** [May 11, 2023, 6:47pm UTC](https://nextstrain.discourse.group/t/error-running-ncov-tutorial-after-fresh-install/1383/3 "2023-05-11T18:47:51Z")

</div>

Actually, we are seeing this error [elsewhere](https://github.com/nextstrain/conda-base/pull/27#issuecomment-1544457814). It looks to be a problem with the Conda runtime which we will investigate.

In the meantime, the Docker runtime should work without this issue, if you are able to go back to the [Nextstrain installation instructions](https://docs.nextstrain.org/en/latest/install.html) and set that up.

---

<div class="post-metadata">

**Author:** ![dstrange](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@dstrange](https://nextstrain.discourse.group/u/dstrange)\
**Post date:** [May 11, 2023, 7:29pm UTC](https://nextstrain.discourse.group/t/error-running-ncov-tutorial-after-fresh-install/1383/4 "2023-05-11T19:29:00Z")

</div>

Hi @victorlin,

Thanks a lot for looking into it. Will go with the Docker runtime for now.

-Dan
