Comments (4)
you need to tell Docker to attach an interactive termina
of course, silly me. Might be worth a sentence in the docs but yeah, in retrospect it's obvious :) closing.
from surrealdb.
@spookyvision, If you have docker running first and are then following the steps in the docs on Run with Docker, this should work for you.
Can you kindly confirm you have
- Docker Running
- Run the steps mentioned in the docs above?
from surrealdb.
I can confirm it's not an issue of the docker db not running or a wrong connection parameter, because then I get this instead (using -e
to force an invalid endpoint):
❯ docker run --rm --net=host --pull always surrealdb/surrealdb:latest sql --namespace demo --database demo -e 'ws://localhost:12345'
latest: Pulling from surrealdb/surrealdb
Digest: sha256:bc6d4b37fc79b8e4e93ab5630862e5211668a10a3302bad23bdc27a415b782f2
Status: Image is up to date for surrealdb/surrealdb:latest
2024-05-24T17:56:31.409609Z ERROR surreal::cli: There was a problem with the database: There was an error processing a remote WS request: IO error: Connection refused (os error 111)
To further clarify: I get the same buggy "instant quit" behavior whether I supply no -e
parameter at all, or the assumed default -e ws://localhost:8000
, where the DB is running.
I can also use the database from both the python and Rust SDKs fine.
Do I have to add authentication for the REPL to work? (that would surprise me, but I can surely give it a try)
from surrealdb.
To use the REPL with the sql
command, you need to tell Docker to attach an interactive terminal after running the container. Try doing docker run -it ...
. Also check docker run --help
for details on the -i
and -t
options.
The REPL itself doesn't need auth AFAIK but you won't be able to interact with any table. To clarify, sql
connects you to an existing SurrealDB instance, whether spawned by Surrealist or another terminal running the start
command as presented in the docs.
from surrealdb.
Related Issues (20)
- Suggestion: Should the parser check for a valid UUID version when checking for the UUID format?
- Feature(Rust): `surrealdb::sql::parse` should be generic over string types HOT 4
- Feature: Ability to control the default id generator for a table HOT 2
- Bug: `surrealdb::api::engine::local::SurrealKV` uses incorrect casing
- Bug: Query times excessively long when SurrealDB is under load. HOT 3
- Bug: Inverted `IF NOT EXISTS` is not `NOT` on `DEFINE NAMESPACE` and `DEFINE DATABASE`? HOT 2
- Bug: Union types not working with casted strings HOT 1
- Bug: SurrealDB 2.0 Beta 2 on OSX Giving Telemetry Errors on Startup HOT 2
- Feature: Inherited table types / EXTENDS HOT 2
- Bug: SurrealDB 2.0 Beta 3 Still Giving Telemetry Errors on OSX HOT 2
- Feature: Record aliases HOT 1
- Bug: Stack overflow when SELECT RELATE QUERY
- Bug: Can't insert vectors above a certain size (dimension) - crashes DB - surrealkv issue
- Bug: `INSERT INTO` not work in javascript function with surrealdb.query HOT 1
- Bug: Can't use record::id(id) inside WHERE HOT 3
- Feature: Reactive <future> / COMPUTED HOT 1
- Feature: missing hooks and issues with current ones
- Feature: 2.x wishlist
- Bug: An obvious query performance difference between `embedded surrealdb server` and `standalone surrealdb server` HOT 7
- Bug: Error in sdk/examples/fetch HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from surrealdb.