# Weaviate didn't start up

**URL:** <https://forum.weaviate.io/t/weaviate-didnt-start-up/1495>\
**Category:** Support\
**Created:** [February 15, 2024, 7:01am UTC](https://forum.weaviate.io/t/weaviate-didnt-start-up/1495 "2024-02-15T07:01:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dhinesh\_Prabakaran](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dhinesh_prabakaran/32/978_2.png) [@Dhinesh\_Prabakaran](https://forum.weaviate.io/u/Dhinesh_Prabakaran)\
**Post date:** [February 15, 2024, 7:01am UTC](https://forum.weaviate.io/t/weaviate-didnt-start-up/1495/1 "2024-02-15T07:01:59Z")

</div>

Hi Team,  
I’ve created a free tier cluster in WCS. Upon trying to connect from my python code, I’m facing the below chalenge.

**weaviate.exceptions.WeaviateStartUpError: Weaviate did not start up in 10 seconds. Either the Weaviate URL [https://wcsurl](https://wcsurl) is wrong or Weaviate did not start up in the interval given in ‘startup\_period’.**

Could I get some help on this ?

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [February 15, 2024, 2:35pm UTC](https://forum.weaviate.io/t/weaviate-didnt-start-up/1495/2 "2024-02-15T14:35:12Z")

</div>

Hi @Dhinesh_Prabakaran!

Can you share the code you are using to connect??

This is usually some connectivy issue, or wrong url.

Please, feel free to ping me in our Slack so I can take a close look.

Thanks!

---

<div class="post-metadata">

**Author:** ![Dhinesh\_Prabakaran](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dhinesh_prabakaran/32/978_2.png) [@Dhinesh\_Prabakaran](https://forum.weaviate.io/u/Dhinesh_Prabakaran)\
**Post date:** [February 16, 2024, 6:35am UTC](https://forum.weaviate.io/t/weaviate-didnt-start-up/1495/3 "2024-02-16T06:35:04Z")

</div>

Hi Duda,  
Please find the code below,  
import weaviate  
import os

# Set these environment variables

URL = os.getenv(“YOUR\_WCS\_URL”)  
APIKEY = os.getenv(“YOUR\_WCS\_API\_KEY”)

# Connect to a WCS instance

client = weaviate.connect\_to\_wcs(  
cluster\_url=URL,  
auth\_credentials=weaviate.auth.AuthApiKey(APIKEY))

---

<div class="post-metadata">

**Author:** ![sebawita](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/sebawita/32/5_2.png) [@sebawita](https://forum.weaviate.io/u/sebawita)\
**Post date:** [February 16, 2024, 11:59am UTC](https://forum.weaviate.io/t/weaviate-didnt-start-up/1495/4 "2024-02-16T11:59:23Z")

</div>

Hi @Dhinesh_Prabakaran,

Do you have the following env variables configured in your environment?

- `YOUR_WCS_URL` – you can get it from the WCS console, click on Details (1), and copy Cluster URL (2)
- `YOUR_WCS_API_KEY` – click on API Keys (3), and copy your key (note, free sandboxes have only one key)

 ![WCS-Steps-1-2-3](https://canada1.discourse-cdn.com/flex027/uploads/weaviate/original/1X/21dce81d8916a36dec1a97d549b6e0282476c9b5.png)

 ![WCS-Step-4](https://canada1.discourse-cdn.com/flex027/uploads/weaviate/original/1X/5e5d27750b850b2e29f3e24dd86122a606e5807a.png)

Note, if you run your code locally (and don’t publish it to GitHub or somewhere else), you can just enter your Cluster URL and API Key straight in the code (not recommended for production). Like this:

```auto
import weaviate
  
# Set these connection variables
URL = "https://YOUR_WCS_URL"
APIKEY = "YOUR_WCS_API_KEY"
  
# Connect to a WCS instance
client = weaviate.connect_to_wcs(
    cluster_url=URL,
    auth_credentials=weaviate.auth.AuthApiKey(APIKEY))

```

---

<div class="post-metadata">

**Author:** ![shaheen](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@shaheen](https://forum.weaviate.io/u/shaheen)\
**Post date:** [July 30, 2024, 1:01pm UTC](https://forum.weaviate.io/t/weaviate-didnt-start-up/1495/5 "2024-07-30T13:01:00Z")

</div>

I still get this error even after hard coding url and api key

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [July 30, 2024, 1:25pm UTC](https://forum.weaviate.io/t/weaviate-didnt-start-up/1495/6 "2024-07-30T13:25:02Z")

</div>

hi @shaheen !!

Welcome to our community!

What is the exact error code you get?

Also, please, feel free to create a new thread so we can help you.

Thanks!

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [July 30, 2024, 1:25pm UTC](https://forum.weaviate.io/t/weaviate-didnt-start-up/1495/7 "2024-07-30T13:25:06Z")

</div>


