# Once weaviate.connect\_to\_embedded , do I need to start it before insert data into collection?

**URL:** <https://forum.weaviate.io/t/once-weaviate-connect-to-embedded-do-i-need-to-start-it-before-insert-data-into-collection/7381>\
**Category:** Support\
**Tags:** technical\
**Created:** [November 1, 2024, 10:21pm UTC](https://forum.weaviate.io/t/once-weaviate-connect-to-embedded-do-i-need-to-start-it-before-insert-data-into-collection/7381 "2024-11-01T22:21:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cw257900](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/cw257900/32/2771_2.png) [@cw257900](https://forum.weaviate.io/u/cw257900)\
**Post date:** [November 1, 2024, 10:21pm UTC](https://forum.weaviate.io/t/once-weaviate-connect-to-embedded-do-i-need-to-start-it-before-insert-data-into-collection/7381/1 "2024-11-01T22:21:32Z")

</div>

I tried local connection with data inserted successfully. When I switch from connect\_to\_local to connect\_to\_embeded, data can’t insert .

I saw error on the path now. anyway to suppress those messages to only show error? I tried to set log level which seems not working

INFO:weaviate-client:Started /Users/connie.wang/.cache/weaviate-embedded: process ID 33040  
{“action”:“startup”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“default\_vectorizer\_module”:“none”,“level”:“info”,“msg”:“the default vectorizer modules is set to "none", as a result all new schema classes without an explicit vectorizer setting, will use this vectorizer”,“time”:“2024-11-01T17:24:14-05:00”}  
{“action”:“startup”,“auto\_schema\_enabled”:true,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“auto schema enabled setting is set to "true"”,“time”:“2024-11-01T17:24:14-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“No resource limits set, weaviate will use all available memory and CPU. To limit resources, set LIMIT\_RESOURCES=true”,“time”:“2024-11-01T17:24:14-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“module offload-s3 is enabled”,“time”:“2024-11-01T17:24:14-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“warning”,“msg”:“Multiple vector spaces are present, GraphQL Explore and REST API list objects endpoint module include params has been disabled as a result.”,“time”:“2024-11-01T17:24:14-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“open cluster service”,“servers”:{“Embedded\_at\_8079”:62794},“time”:“2024-11-01T17:24:14-05:00”}  
{“address”:“192.168.1.44:62795”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“starting cloud rpc server …”,“time”:“2024-11-01T17:24:14-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“starting raft sub-system …”,“time”:“2024-11-01T17:24:14-05:00”}  
{“address”:“192.168.1.44:62794”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“tcp transport”,“tcpMaxPool”:3,“tcpTimeout”:10000000000,“time”:“2024-11-01T17:24:14-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“loading local db”,“time”:“2024-11-01T17:24:14-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“local DB successfully loaded”,“time”:“2024-11-01T17:24:14-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“schema manager loaded”,“n”:0,“time”:“2024-11-01T17:24:14-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“metadata\_only\_voters”:false,“msg”:“construct a new raft node”,“name”:“Embedded\_at\_8079”,“time”:“2024-11-01T17:24:14-05:00”}  
{“action”:“raft”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“index”:98,“level”:“info”,“msg”:“raft initial configuration”,“servers”:“[[{Suffrage:Voter ID:Embedded\_at\_8079 Address:192.168.1.44:62432}]]”,“time”:“2024-11-01T17:24:14-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“last\_snapshot\_index”:0,“last\_store\_applied\_index\_on\_start”:72,“level”:“info”,“msg”:“raft node constructed”,“raft\_applied\_index”:0,“raft\_last\_index”:98,“time”:“2024-11-01T17:24:14-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“hasState”:true,“level”:“info”,“msg”:“raft init”,“time”:“2024-11-01T17:24:14-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“attempting to join”,“remoteNodes”:[“192.168.1.44:62794”],“time”:“2024-11-01T17:24:14-05:00”}  
{“action”:“raft”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“follower”:{},“leader-address”:“”,“leader-id”:“”,“level”:“info”,“msg”:“raft entering follower state”,“time”:“2024-11-01T17:24:14-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“attempted to join and failed”,“remoteNode”:“192.168.1.44:62794”,“status”:8,“time”:“2024-11-01T17:24:14-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“attempting to join”,“remoteNodes”:[“192.168.1.44:62794”],“time”:“2024-11-01T17:24:15-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“attempted to join and failed”,“remoteNode”:“192.168.1.44:62794”,“status”:8,“time”:“2024-11-01T17:24:15-05:00”}  
{“action”:“raft”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“last-leader-addr”:“”,“last-leader-id”:“”,“level”:“warning”,“msg”:“raft heartbeat timeout reached, starting election”,“time”:“2024-11-01T17:24:15-05:00”}  
{“action”:“raft”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“raft entering candidate state”,“node”:{},“term”:48,“time”:“2024-11-01T17:24:15-05:00”}  
{“action”:“raft”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“raft pre-vote successful, starting election”,“refused”:0,“tally”:1,“term”:48,“time”:“2024-11-01T17:24:15-05:00”,“votesNeeded”:1}  
{“action”:“raft”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“raft election won”,“tally”:1,“term”:48,“time”:“2024-11-01T17:24:15-05:00”}  
{“action”:“raft”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“leader”:{},“level”:“info”,“msg”:“raft entering leader state”,“time”:“2024-11-01T17:24:15-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“reload local db: update schema …”,“time”:“2024-11-01T17:24:15-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“index”:“PDF\_COLLECTION”,“level”:“info”,“msg”:“reload local index”,“time”:“2024-11-01T17:24:15-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“docker\_image\_tag”:“localhost”,“level”:“info”,“msg”:“configured versions”,“server\_version”:“1.26.6”,“time”:“2024-11-01T17:24:16-05:00”}  
{“action”:“grpc\_startup”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“grpc server listening at [::]:50050”,“time”:“2024-11-01T17:24:16-05:00”}  
{“address”:“192.168.1.44:62794”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“current Leader”,“time”:“2024-11-01T17:24:16-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“attempting to join”,“remoteNodes”:[“192.168.1.44:62794”],“time”:“2024-11-01T17:24:16-05:00”}  
{“action”:“raft”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“command”:0,“level”:“info”,“msg”:“raft updating configuration”,“server-addr”:“192.168.1.44:62794”,“server-id”:“Embedded\_at\_8079”,“servers”:“[[{Suffrage:Voter ID:Embedded\_at\_8079 Address:192.168.1.44:62794}]]”,“time”:“2024-11-01T17:24:16-05:00”}  
{“action”:“restapi\_management”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“docker\_image\_tag”:“localhost”,“level”:“info”,“msg”:“Serving weaviate at [http://127.0.0.1:8079](http://127.0.0.1:8079)”,“time”:“2024-11-01T17:24:16-05:00”}  
Error from /Users/connie.wang/Desktop/connie/inspiration\_azure/fastapi\_onazure/app/with\_weaviate/app/rag/data/constitution.pdf: Invalid PDF file path: /Users/connie.wang/Desktop/connie/inspiration\_azure/fastapi\_onazure/app/with\_weaviate/app/rag/data/constitution.pdf  
Error: Invalid PDF file path: /Users/connie.wang/Desktop/connie/inspiration\_azure/fastapi\_onazure/app/with\_weaviate/app/rag/data/constitution.pdf  
{“action”:“restapi\_management”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“docker\_image\_tag”:“localhost”,“level”:“info”,“msg”:“Shutting down… “,“time”:“2024-11-01T17:24:16-05:00”}  
{“action”:“restapi\_management”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“docker\_image\_tag”:“localhost”,“level”:“info”,“msg”:“Stopped serving weaviate at [http://127.0.0.1:8079](http://127.0.0.1:8079)”,“time”:“2024-11-01T17:24:16-05:00”}  
{“action”:“hnsw\_prefill\_cache\_async”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“not waiting for vector cache prefill, running in background”,“time”:“2024-11-01T17:24:17-05:00”,“wait\_for\_cache\_prefill”:false}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“Completed loading shard pdf\_collection\_uo8EdlUehjpj in 11.185209ms”,“time”:“2024-11-01T17:24:17-05:00”}  
{“action”:“hnsw\_compressed\_vector\_cache\_prefill”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“count”:0,“level”:“info”,“msg”:“prefilled compressed vector cache”,“time”:“2024-11-01T17:24:17-05:00”,“took”:399084}  
{“action”:“telemetry\_push”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“telemetry started”,“payload”:”\u0026{MachineID:3eedf617-c28f-47d7-adf0-449c23f70447 Type:INIT Version:1.26.6 NumObjects:0 OS:darwin Arch:arm64 UsedModules:[generative-cohere text2vec-openai]}”,“time”:“2024-11-01T17:24:17-05:00”}  
{“action”:“telemetry\_push”,“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“telemetry terminated”,“payload”:“\u0026{MachineID:3eedf617-c28f-47d7-adf0-449c23f70447 Type:TERMINATE Version:1.26.6 NumObjects:0 OS:darwin Arch:arm64 UsedModules:[generative-cohere text2vec-openai]}”,“time”:“2024-11-01T17:24:17-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“closing raft FSM store …”,“time”:“2024-11-01T17:24:17-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“shutting down raft sub-system …”,“time”:“2024-11-01T17:24:17-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“transferring leadership to another server”,“time”:“2024-11-01T17:24:17-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“error”:“cannot find peer”,“level”:“error”,“msg”:“transferring leadership”,“time”:“2024-11-01T17:24:17-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“closing raft-net …”,“time”:“2024-11-01T17:24:17-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“closing log store …”,“time”:“2024-11-01T17:24:17-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“closing data store …”,“time”:“2024-11-01T17:24:17-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“closing loaded database …”,“time”:“2024-11-01T17:24:17-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“closing raft-rpc client …”,“time”:“2024-11-01T17:24:17-05:00”}  
{“build\_git\_commit”:“ab0312d5d”,“build\_go\_version”:“go1.23.1”,“build\_image\_tag”:“localhost”,“build\_wv\_version”:“1.26.6”,“level”:“info”,“msg”:“closing raft-rpc server …”,“time”:“2024-11-01T17:24:17-05:00”}

---

<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:** [November 2, 2024, 4:13pm UTC](https://forum.weaviate.io/t/once-weaviate-connect-to-embedded-do-i-need-to-start-it-before-insert-data-into-collection/7381/2 "2024-11-02T16:13:12Z")

</div>

Hi!

Once that you get a valid client, with a connected instance behind it, you should be able to insert your objects.

You can check that with `client.is_ready()`

Please note that Weaviate Embedded is marked as experimental.

Also, that when you run Weaviate Embedded, and close the client, the server will be stopped.

If you do not close the server, it may still be running on background, so if you spin a second embedded, you may have problems with port bindings.

---

<div class="post-metadata">

**Author:** ![cw257900](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/cw257900/32/2771_2.png) [@cw257900](https://forum.weaviate.io/u/cw257900)\
**Post date:** [November 3, 2024, 7:32am UTC](https://forum.weaviate.io/t/once-weaviate-connect-to-embedded-do-i-need-to-start-it-before-insert-data-into-collection/7381/3 "2024-11-03T07:32:49Z")

</div>

yah. i made the connection work yesterday, and observed the issue with connection as you planned already. Will data be persist after client is disconnected?

---

<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:** [November 4, 2024, 1:50pm UTC](https://forum.weaviate.io/t/once-weaviate-connect-to-embedded-do-i-need-to-start-it-before-insert-data-into-collection/7381/4 "2024-11-04T13:50:13Z")

</div>

Hi!

Yes, the data will persist.

If you do not specify a [persistence\_path, as describre here](https://weaviate.io/developers/weaviate/installation/embedded#configuration-options), by default, it will store your data in `~/.local/share/weaviate`

If you have issues running the embedded client, because there is another process binding to that port, you will need to kill the process.

So:

```auto
ps aux | grep weaviate

```

then kill the ID of the running process.

Let me know if that helps!
