# Typedb server doesn't run

**URL:** <https://forum.typedb.com/t/typedb-server-doesnt-run/413>\
**Category:** TypeDB\
**Tags:** typedb-server\
**Created:** [10 November 2023 15:35 UTC](https://forum.typedb.com/t/typedb-server-doesnt-run/413 "2023-11-10T15:35:51Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.typedb.com/u/Paul)\
**Post date:** [10 November 2023 15:35 UTC](https://forum.typedb.com/t/typedb-server-doesnt-run/413/1 "2023-11-10T15:35:51Z")

</div>

![image](https://europe1.discourse-cdn.com/flex005/uploads/vaticle/original/1X/b1c413f86c0ca5a396f98a09a651002cb4e1f10e.png)  
WTF?

---

<div class="post-metadata">

**Author:** ![joshua](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.typedb.com/joshua/32/28_2.png) [@joshua](https://forum.typedb.com/u/joshua)\
**Post date:** [10 November 2023 15:38 UTC](https://forum.typedb.com/t/typedb-server-doesnt-run/413/2 "2023-11-10T15:38:51Z")

</div>

Hi Paul, welcome! First off, please keep the language to the practical, like useful logs and things you tried to help us debug.

On windows, the bootup script searches for java using `where java` - what happens if you run this?

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.typedb.com/u/Paul)\
**Post date:** [10 November 2023 15:40 UTC](https://forum.typedb.com/t/typedb-server-doesnt-run/413/3 "2023-11-10T15:40:32Z")

</div>

Ok I am sorry. When I type where java nothing happens.  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/vaticle/original/1X/c88e8baa5e6a207904fc6b4cb8df3a8fbe56951f.png)

---

<div class="post-metadata">

**Author:** ![joshua](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.typedb.com/joshua/32/28_2.png) [@joshua](https://forum.typedb.com/u/joshua)\
**Post date:** [10 November 2023 15:46 UTC](https://forum.typedb.com/t/typedb-server-doesnt-run/413/4 "2023-11-10T15:46:34Z")

</div>

If you can find where the java binary is located, you can try to explicitly set `JAVA_HOME` environment variable to see if that works?  
[https://confluence.atlassian.com/doc/setting-the-java\_home-variable-in-windows-8895.html](https://confluence.atlassian.com/doc/setting-the-java_home-variable-in-windows-8895.html)

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.typedb.com/u/Paul)\
**Post date:** [10 November 2023 15:48 UTC](https://forum.typedb.com/t/typedb-server-doesnt-run/413/5 "2023-11-10T15:48:26Z")

</div>

Thanks. I have done that and rebooted. But that doesn’t seem to change anything. I have also done everything with Java 21 version.  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/vaticle/original/1X/d59d57eb0a580cec1e522c5c73febc6a98d7e0d5.png)

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.typedb.com/u/Paul)\
**Post date:** [10 November 2023 15:50 UTC](https://forum.typedb.com/t/typedb-server-doesnt-run/413/6 "2023-11-10T15:50:08Z")

</div>

![image](https://europe1.discourse-cdn.com/flex005/uploads/vaticle/original/1X/1e521ba35348d7495fb27293ec4ff4b3336c12a5.png)

---

<div class="post-metadata">

**Author:** ![joshua](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.typedb.com/joshua/32/28_2.png) [@joshua](https://forum.typedb.com/u/joshua)\
**Post date:** [10 November 2023 16:00 UTC](https://forum.typedb.com/t/typedb-server-doesnt-run/413/7 "2023-11-10T16:00:11Z")

</div>

If you don’t mind editing the ‘typedb’ (bat) script that boots up the server, you could try commenting out the line that checks Java does not exist – it’s these ones:

```auto
where java >NUL 2>NUL
if %ERRORLEVEL% GEQ 1 (
    echo Java is not installed on this machine.
    echo TypeDB needs Java 11+ in order to run. See the following setup guide: http://docs.vaticle.com/docs/get-started/setup-guide
    pause
    exit 1
)

```

It could be that for some reason ‘where java’ fails but that ‘java’ command is found (strangely!)

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.typedb.com/u/Paul)\
**Post date:** [10 November 2023 16:14 UTC](https://forum.typedb.com/t/typedb-server-doesnt-run/413/9 "2023-11-10T16:14:40Z")

</div>

Thanks. I’ve commented it out. Now the following happens: the window with the word TYPEDB comes up very briefly and closes immideatly after. In my prompt appear two strings …

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/vaticle/original/1X/809b2b3a8d812be4d1c767171370f7b328bceb67.png)

---

<div class="post-metadata">

**Author:** ![joshua](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.typedb.com/joshua/32/28_2.png) [@joshua](https://forum.typedb.com/u/joshua)\
**Post date:** [10 November 2023 16:16 UTC](https://forum.typedb.com/t/typedb-server-doesnt-run/413/10 "2023-11-10T16:16:19Z")

</div>

Is there anything in the typedb log?

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.typedb.com/u/Paul)\
**Post date:** [10 November 2023 16:19 UTC](https://forum.typedb.com/t/typedb-server-doesnt-run/413/11 "2023-11-10T16:19:16Z")

</div>

I am sorry. Do you have any idea where I can find this log file? Thanks!

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.typedb.com/u/Paul)\
**Post date:** [10 November 2023 16:23 UTC](https://forum.typedb.com/t/typedb-server-doesnt-run/413/12 "2023-11-10T16:23:27Z")

</div>

IS it this file:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/vaticle/original/1X/a2be4de210b00a7f81d543c2bc7dfbd3a0dbe076.png)

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.typedb.com/u/Paul)\
**Post date:** [10 November 2023 16:33 UTC](https://forum.typedb.com/t/typedb-server-doesnt-run/413/13 "2023-11-10T16:33:32Z")

</div>

If I am correct and if there are logs it should be in the server folder: server/logs according to the server config file:  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/vaticle/original/1X/ee363bb0307da352fd8aa6a552746b39c28d8cf0.png)  
But there is no “logs” directory in the server folder so I guess no logs were produced?

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.typedb.com/u/Paul)\
**Post date:** [10 November 2023 16:34 UTC](https://forum.typedb.com/t/typedb-server-doesnt-run/413/14 "2023-11-10T16:34:11Z")

</div>

![image](https://europe1.discourse-cdn.com/flex005/uploads/vaticle/original/1X/e50ef524c3c0fb07a6076087a1c80c63d7feff74.png)

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.typedb.com/u/Paul)\
**Post date:** [10 November 2023 16:38 UTC](https://forum.typedb.com/t/typedb-server-doesnt-run/413/15 "2023-11-10T16:38:28Z")

</div>

I have found the issue. You can close this issue. I had to run things as an administrator. Thanks for your help. have a nice weekend!

---

<div class="post-metadata">

**Author:** ![joshua](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.typedb.com/joshua/32/28_2.png) [@joshua](https://forum.typedb.com/u/joshua)\
**Post date:** [10 November 2023 16:38 UTC](https://forum.typedb.com/t/typedb-server-doesnt-run/413/16 "2023-11-10T16:38:51Z")

</div>

Interestingly, it may not have booted up? If you run it with with `start` before the command what happens?

```auto
start typedb server

```
