# Deploying lightning - error after adding asdf lines

**URL:** <https://community.openfn.org/t/deploying-lightning-error-after-adding-asdf-lines/422>\
**Category:** Self-Hosting\
**Created:** [March 28, 2024, 4:06pm UTC](https://community.openfn.org/t/deploying-lightning-error-after-adding-asdf-lines/422 "2024-03-28T16:06:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![aleksa-krolls](https://community.openfn.org/user_avatar/community.openfn.org/aleksa-krolls/32/156_2.png) [@aleksa-krolls](https://community.openfn.org/u/aleksa-krolls)\
**Post date:** [March 28, 2024, 4:06pm UTC](https://community.openfn.org/t/deploying-lightning-error-after-adding-asdf-lines/422/1 "2024-03-28T16:06:21Z")

</div>

hey @taylordowns2000 @stu @rogerio we received the below query from @Kiefer and the os4h team. Can you assist?

I am currently trying to install an OpenFn lightning instance via docker.

I am following this documentation [GitHub - OpenFn/lightning: OpenFn/Lightning ⚡️ is the newest version of the OpenFn DPG and provides a web UI to visually manage complex workflow automation projects.](https://github.com/OpenFn/lightning?tab=readme-ov-file#run-via-docker).

Is there any specific adjustments needed to be made to the .env file before running this command **“docker compose run --rm web mix ecto.migrate”.** Currently I am getting this error after adding the asdf lines to the ~/.bashrc file.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![Kiefer](https://community.openfn.org/letter_avatar_proxy/v4/letter/k/8e7dd6/32.png) [@Kiefer](https://community.openfn.org/u/Kiefer)\
**Post date:** [March 28, 2024, 4:15pm UTC](https://community.openfn.org/t/deploying-lightning-error-after-adding-asdf-lines/422/2 "2024-03-28T16:15:37Z")

</div>

![Screenshot 2024-03-28 112228](https://community.openfn.org/uploads/default/original/1X/7e31e699ee899da15f85c24ea9e10b7018a13c1d.png)

Here is a screenshot of the error i am getting.

---

<div class="post-metadata">

**Author:** ![taylordowns2000](https://community.openfn.org/user_avatar/community.openfn.org/taylordowns2000/32/165_2.png) [@taylordowns2000](https://community.openfn.org/u/taylordowns2000)\
**Post date:** [March 29, 2024, 11:17am UTC](https://community.openfn.org/t/deploying-lightning-error-after-adding-asdf-lines/422/3 "2024-03-29T11:17:43Z")

</div>

Hey @Kiefer , great to hear from you!

There may be two things going on here—I’ll try to separate them:

1. We’ve just merged a change to the Docker compose file that means you won’t need to set any specific ENVs if you don’t want. The new compose file has built-in defaults that should work for many people. Check out the [**“Run via Docker”**](https://openfn.github.io/lightning/readme.html#run-via-docker) section of the **Getting Started** guide for instructions.

2. I’ve got to admit I’m thrown off by your mention of [asdf](https://asdf-vm.com/)—so maybe there is something else going on? ASDF is a tool for managing runtime versions and it makes devving, building, and running on directly on Erlang, Elixir, Node, etc. a breeze, but it’s not necessary for running a Lightning image _inside Docker_. If you _are_ interested in setting up a local environment that’s well suited to building new features in for Lightning, follow the [**“Dev on Lightning Locally”**](https://openfn.github.io/lightning/readme.html#dev-on-lightning-locally) part of the **Getting Started** guide.

And thanks for using the forum! Please let me know if either of the above suggestions are helpful and how you get on with the local setup 🙂

---

<div class="post-metadata">

**Author:** ![Kiefer](https://community.openfn.org/letter_avatar_proxy/v4/letter/k/8e7dd6/32.png) [@Kiefer](https://community.openfn.org/u/Kiefer)\
**Post date:** [April 2, 2024, 3:49pm UTC](https://community.openfn.org/t/deploying-lightning-error-after-adding-asdf-lines/422/4 "2024-04-02T15:49:35Z")

</div>

Hey @taylordowns2000 Following the instructions of “Run Via Docker” metioned in #1 i got the following error.

Attaced is the error and the logs of the docker compose.

![Screenshot 2024-04-02 114821](https://community.openfn.org/uploads/default/original/1X/fc645ba56d363ff75a9b84ac7a60fac639d0683f.png)

 ![Screenshot 2024-04-02 114435](https://community.openfn.org/uploads/default/original/1X/d503d30e2d8bdeff13ae22553703f3ff49d972b5.png)

---

<div class="post-metadata">

**Author:** ![taylordowns2000](https://community.openfn.org/user_avatar/community.openfn.org/taylordowns2000/32/165_2.png) [@taylordowns2000](https://community.openfn.org/u/taylordowns2000)\
**Post date:** [April 2, 2024, 4:29pm UTC](https://community.openfn.org/t/deploying-lightning-error-after-adding-asdf-lines/422/5 "2024-04-02T16:29:05Z")

</div>

Thanks @Kiefer . That `relation ... does not exist` looks to me like the migrations haven’t been run. Can you make sure you’re on the latest version? (And maybe paste in your current tagged version? You should be on lightning **v2.3.0**.)

[https://hub.docker.com/repository/docker/openfn/lightning/general](https://hub.docker.com/repository/docker/openfn/lightning/general) - `latest` or `v2.3.0` should both do the trick.

@rogerio recently added [this commit](https://github.com/OpenFn/lightning/pull/1947/files) which should have baked-in the migrations.

---

<div class="post-metadata">

**Author:** ![Kiefer](https://community.openfn.org/letter_avatar_proxy/v4/letter/k/8e7dd6/32.png) [@Kiefer](https://community.openfn.org/u/Kiefer)\
**Post date:** [April 2, 2024, 7:15pm UTC](https://community.openfn.org/t/deploying-lightning-error-after-adding-asdf-lines/422/6 "2024-04-02T19:15:59Z")

</div>

I got it running sucessfully. I just started fresh by removing all the images and files and went through the “Run Via Docker” instrcutions and it worked.

Thanks for your assistance.

---

<div class="post-metadata">

**Author:** ![taylordowns2000](https://community.openfn.org/user_avatar/community.openfn.org/taylordowns2000/32/165_2.png) [@taylordowns2000](https://community.openfn.org/u/taylordowns2000)\
**Post date:** [April 2, 2024, 8:03pm UTC](https://community.openfn.org/t/deploying-lightning-error-after-adding-asdf-lines/422/7 "2024-04-02T20:03:06Z")

</div>

Fantastic. Thanks for the update and thanks @rogerio for the docker setup changes!
