-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tcp connection error #2402
Comments
I am getting the same error |
I have battled with STDB for the past few days to learn it, and I think this might be because you have forgot to do one of two things:
In case it helps, I have one terminal open with (E: It also does some optimization with the CLI flags to skip unnecessary builds, there is no incremental build brain built into the CLI it seems) #!/usr/bin/env bash
set -euo pipefail
ARG=${1:-""} # Edit: Fixed bug with no args, I have been only nuking so far :)
STDB_PROJECT_PATH="./path-to-your-server-module"
STDB_MODULE_NAME="what-you-want-to-publish-it-as"
STDB_WASM_PROJECT_RELATIVE_PATH="bin/Release/net8.0/wasi-wasm/AppBundle/StdbModule.wasm"
STDB_TYPESCRIPT_OUTPUT_PATH="where-you-want-to-generate-client-code-bindings"
message () {
echo "******************************************************"
echo "$1"
echo "******************************************************"
}
pushd "$STDB_PROJECT_PATH" > /dev/null || exit 1
message "Cleaning build files from $(pwd)"
rm -rf obj bin
message "Restoring dotnet dependencies"
dotnet restore
message "Building SpacetimeDB module from $(pwd)"
spacetime build
message "Publishing SpacetimeDB module from $(pwd)/$STDB_WASM_PROJECT_RELATIVE_PATH to local server as $STDB_MODULE_NAME"
PUBLISH_ARGS=("--server" "local" "$STDB_MODULE_NAME" "--bin-path" "$STDB_WASM_PROJECT_RELATIVE_PATH")
if [[ "$ARG" == "nuke" ]]; then
message "NUKE command received! Appending --delete-data."
PUBLISH_ARGS+=("--delete-data")
fi
spacetime publish "${PUBLISH_ARGS[@]}"
popd || exit 1
message "Generating client bindings from $STDB_PROJECT_PATH/$STDB_WASM_PROJECT_RELATIVE_PATH to $STDB_TYPESCRIPT_OUTPUT_PATH"
spacetime generate --lang typescript --out-dir $STDB_TYPESCRIPT_OUTPUT_PATH --bin-path "$STDB_PROJECT_PATH/$STDB_WASM_PROJECT_RELATIVE_PATH" |
Running |
Thanks @puttehi . Running |
I tried recreating the quickstart-chat example as mentioned in https://spacetimedb.com/docs/sdks/rust/quickstart
However when I ran
spacetime publish --project-path server quickstart-chat
, I got this errorOS: Ubuntu 24.04.1 LTS x86_64
Not sure if it's relevant:
I have seen this type of errors in other software and those can be fixed by editing the
/etc/hosts
file as mentioned here https://www.errorsolutions.tech/error/linux-error-111-connection-refused/The text was updated successfully, but these errors were encountered: