Windows exe stopping and access denied with custom exe

Description

We have been testing weaviate exe file for running it into windows. Its running successfully with http scheme on 8010 port.

image

When i shutdown my system and then restart it or restart the weaviate server then sometimes it running and sometime it just crash without any reason.

we also try to build weaviate exe using cmd\weaviate-server\main.go file. When i restart this exe after adding data into database there issue with accessing files inside data folder.

Server Setup Information

  • Weaviate Server Version: 1.26.18 - weaviate-v1.26.18-windows-amd64.zip
  • Deployment Method: running exe in windows 2022 server
  • Multi Node? Number of Running Nodes:
  • Client Language and Version:
  • Multitenancy?:

Any additional Information

Good morning @Blue_Data welcome to the community! Great to have you here, and we’re happy to help however we can.

I haven’t personally deployed Weaviate on Windows before, but if you can share the error or crash logs, I’d be happy to take a look and see what we can figure out together.

Cheers,

Mohamed Shahin
Weaviate Support – Ireland (UTC±00:00/+01:00)

We are trying to deploy weaviate on windows server 2022 without containerized approach. So, basically we are utilizing exe(binary) file to run it.

command to run weaviate exe: .\weavite.exe --scheme http --host 0.0.0.0 --port 8010

Below are methods that we have tried:

Method 1: Using weaviate exe from Releases · weaviate/weaviate · GitHub (weaviate-v1.26.18-windows-amd64.zip)

For first time its running well I can add the data but sometime it crashes on its own. When I restart it, It showing below error

I have not even access the folder and restart the weaviate server then also its saying like file is altered.

Method 2: Building exe by cloning git repo and compiling it with go to create exe (go version - 1.24.5)

Error while using custome exe build by us using below command:
go build -o weaviate.exe .\cmd\weaviate-server

First time this running well I can add the data into it, but after restarting weaviate server its showing below error

Also there is one more issue with this method 2 like I have dump the data into vectorstore and I Can also see the size of data folder is increasing like its saving the data but while extracting all data using python code its not returning all data.

For example I have dumped 17 tickets in weaviate.

Using above code its returning only 2 tickets.

weaviate crash logs

Here you can see the logs of crashing weaviate.

From the crash logs, it looks like the issue starts with a panic caused by some older bugs. Since you’re running Weaviate 1.26 which is quite outdated. I’d suggest upgrading first. The latest version is 1.32.1, and bugs (including panics like the one you’re seeing) have been fixed in recent releases. So this issue might already be resolved in the newer version.

Also, make sure your cluster has enough resources CPU, memory, and disk space to avoid any resource-related crashes.

Once you upgrade, try again and see if the same error shows up. It’s important we test with the latest version, because even if we were to raise this as a bug or improvement, the engineering team won’t look into issues on old versions.

Now, regarding the data you mentioned you inserted 17 objects, but only 2 came back. Are you sure all 17 were successfully ingested? It could be that only 2 made it in and the rest failed.

To help verify that, you can use this snippet to log failed objects during the batch import:

# Batching Snippet
try:
    with items.batch.fixed_size(batch_size=10) as batch:
        [YOUR_LOOP_FOR_DATA]
    failed_objs_a = items.batch.failed_objects  # Get failed objects
    if failed_objs_a:
        print(f"Number of failed objects in the first batch: {len(failed_objs_a)}")
        for i, failed_obj in enumerate(failed_objs_a, 1):
            print(f"Failed object {i}:")
            print(f"Error message: {failed_obj.message}")
    else:
        print("All objects were successfully added.")
except Exception as e:
    print(f"Error during batch import: {e}")
    print(f"Exception details: {str(e)}")

As for the “access denied” issue, that might be related to Windows permissions. Try running things as admin that usually helps, though I can’t say for sure since I mainly use macOS for local testing and deployments.

So yeah, step one is definitely: upgrade to the latest version. Then we’ll see what issues (if any) remain and go from there.

You can also check out these repos I put together, they might come in handy:

Cheers,

Mohamed Shahin
Weaviate Support – Ireland (UTC±00:00/+01:00)