I am following steps from this Local development environment | Speckle Docs to run speckle server. I am getting below error.
I have tried changing redis default port from 6379 to 6380 but still same error. Please let me know what is problem here
Hi @vandana.babshetti, and welcome to the forum! It’s usually a pain to debug local server setups, so get ready If your redis db is running at a custom port, you probably might want to change this line in the .env file of the server.
(PS: I don’t spin up dependencies using docker; on windows you can install redis from here).
Hmm, here’s a quick checklist to make sure i understand correctly:
You are using Windows have Redis installed. Can you check if redis is running and you can use it independently? Also, on what port is it listening for connections?
in your .env file you have the default REDIS_URL="redis://localhost:6379" ?
Can you copy paste the server output, after verifying the above?
Hmm, the error mentions that there is no program listening on port 6380 on localhost… but u mentioned your redis listens on that port.
Can you run the following in a cmd window, to confirm?
netstat -ano | find "6379"
and
netstat -ano | find "6380"
The commands should display a line if there’s a program listenting on that port (with the pid of the process), or it will not display anything if there’s nothing listening on that port
Oooh, that explains it! If you run in docker container and want to be able to access services running on localhost, you can pass the parameter --net=host when running the container.
When you run directly, there seems to be a linux/windows small issue that we will fix. In the meantime, you can remove the debug variable in package.json.
I can give more details tomorrow if u need, as i’ll board a plane soon
Okay!! Sounds good!! I will remove debug variable. Please help to fix it on tomorrow. I will be waiting for your reply. I am working on windows. Thanks.
Hi @vandana.babshetti, one thing that i would try is to start the services one by one. The essential ones are the server and the frontend. That would mean:
cd packages/server
npm run dev
and in a different terminal:
cd packages/frontend
npm run dev
I’m saying this because the critical error message in that dump is, i suspect:
@speckle/preview-service: - relation “object_preview” does not exist
Which potentially can mean that the migrations didn’t run yet, and the preview service starts before they completed. Anyway, this will help us drill down a bit more.