Code Monkey home page Code Monkey logo

Comments (9)

KyahWill avatar KyahWill commented on May 18, 2024

Is the database running as well?

from surreal-sveltekit.

oren avatar oren commented on May 18, 2024

How do I verify that?

from surreal-sveltekit.

oskar-gmerek avatar oskar-gmerek commented on May 18, 2024

This error usually means that database instance is not running or is not reachable on 127.0.0.1:8000

You can check what is running on the port 8000 with this cmd: sudo lsof -i:8000

If there is a conflict then you can

kill process by cmd: kill -9
or change ports docker-compose and .env to something else

This error can also happens when network is misconfigurated, or ports are blocked by firewall etc.

Firstly check if there is no conflicts on port 8000 and let me know

from surreal-sveltekit.

oren avatar oren commented on May 18, 2024

the lsof command shows nothing. I tried changing both .env and docker-compose.yml to 8001 but got the same error. Maybe i need to remove my docker image or stop it from running (if it's running already, I am not sure)?

Also, in docker-compose I tried changing the number twice (it shows up twice in one line) and i also tried to only change the first number, but in both cases I got the same error.

 - 8000:8000

from surreal-sveltekit.

oskar-gmerek avatar oskar-gmerek commented on May 18, 2024

That sounds like some kind of problem with Docker. I will suggest to restart docker engine, remove SurrealDB container and turn off all others containers (just for testing). After restart run: npm run multitaskum:developum again.

Let me know if that helps, if not then let me know if there was running container for surrealdb, if not let me know if SurrealDB container exists at all.

from surreal-sveltekit.

oren avatar oren commented on May 18, 2024

ok. I'll will look up the docker documentation (unless you know what commands I should run) and report back!

from surreal-sveltekit.

oren avatar oren commented on May 18, 2024

I found the docker commands:

systemclt start docker
docker ps
docker stop d728f5ebb68b
docker rm d728f5ebb68b
npm run multitaskum:developum

And it looks like the container is crashing every few seconds:

docker ps
CONTAINER ID   IMAGE                        COMMAND                  CREATED          STATUS                        PORTS     NAMES
d728f5ebb68b   surrealdb/surrealdb:latest   "/surreal start --al…"   17 seconds ago   Restarting (1) 1 second ago             database

from surreal-sveltekit.

oskar-gmerek avatar oskar-gmerek commented on May 18, 2024

I apologize for the late reply, but I don't have constant access to the Internet as I am abroad right now.

I can't reproduce this. I clone repository, run bun install and bun run multitaskum:developum and everything just works.

Please try to change in .env file DB_LOG_LEVEL=INFO to =FULL and check the inside logs of the container by cmd: docker logs <container id>, maybe there will be any helpful information that can help debug this.

With current info I can only guess that there is a problem with read/write access on db folder. So you can check this as well.

from surreal-sveltekit.

oskar-gmerek avatar oskar-gmerek commented on May 18, 2024

I am closing this matter due to insufficient information for replication, and it has also been inactive for over three weeks. Please feel free to reopen it if necessary.

from surreal-sveltekit.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.