# License and STARDOG\_HOME question, Ubuntu20.04

**URL:** <https://community.stardog.com/t/license-and-stardog-home-question-ubuntu20-04/3104>\
**Category:** Support\
**Created:** [June 16, 2021, 10:56pm UTC](https://community.stardog.com/t/license-and-stardog-home-question-ubuntu20-04/3104 "2021-06-16T22:56:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkm](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@bkm](https://community.stardog.com/u/bkm)\
**Post date:** [June 16, 2021, 10:56pm UTC](https://community.stardog.com/t/license-and-stardog-home-question-ubuntu20-04/3104/1 "2021-06-16T22:56:27Z")

</div>

Hi,  
I downloaded Startdog7.6.4 and installed it on a Ubuntu20.04 machine. I was able to run it with the default settings (STARDOG\_HOME set to /var/opt/stardog, license in that directory). I then stopped it, and tried to make it run with an existing /var/opt/stardog7 folder, which contains the databases from an earlier Stardog7 installation. I placed my key in the /var/opt/stardog7 and changed /etc/stardog.env.sh to contain  
export STARDOG\_HOME=/var/opt/stardog7

I rebooted to make sure the changes took effect and tried restarting Stardog. Now, it fails with the message "A valid Stardog license was not found in /opt/stardog/bin"  
I am very confused. I thought the license is supposed to be in STARDOG\_HOME, not /opt/starsdog/bin.

Also is it actually correct to have stardog.env.sh in /etc? I thought these application specific sh files were supposed to be in profile.d. Is that possibly the problem?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [June 30, 2021, 10:56pm UTC](https://community.stardog.com/t/license-and-stardog-home-question-ubuntu20-04/3104/2 "2021-06-30T22:56:41Z")

</div>

Closed on June 30, 2021, 10:56pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
