GithubHelp home page GithubHelp logo

Unable to use SQL API about cube HOT 5 OPEN

1043038630 avatar 1043038630 commented on June 15, 2024
Unable to use SQL API

from cube.

Comments (5)

etburke avatar etburke commented on June 15, 2024

I've run into a similar issue. I ended up running the process I needed to connect to the Cube SQL within Docker Compose, which, while it's a workaround, got me unblocked. Have you tried setting CUBEJS_PG_SQL_PORT to 15432 ? I think it's a good practice to leave 5432 for vanilla Postgres as I often forget I have it running locally for some other project. This can lead to un-obvious connection failures.

from cube.

igorlukanin avatar igorlukanin commented on June 15, 2024

Hey @1043038630, I believe this issue is related to Docker Compose networking or Docker Desktop networking rather than Cube itself.

For instance, when you run Cube like this, are you able to open the Playground at http://localhost:4000 in your web browser?

from cube.

1043038630 avatar 1043038630 commented on June 15, 2024

I've run into a similar issue. I ended up running the process I needed to connect to the Cube SQL within Docker Compose, which, while it's a workaround, got me unblocked. Have you tried setting CUBEJS_PG_SQL_PORT to 15432 ? I think it's a good practice to leave 5432 for vanilla Postgres as I often forget I have it running locally for some other project. This can lead to un-obvious connection failures.

Thank you for replying to me. I've tried it before, but it still doesn't work. I later solved this problem because the version of my Docker deployment was incorrect. I deployed it completely according to the documentation, but it was incomplete. It seems that the API service was missing. Later, I found the latest stable version in the Docker hub and redeployed it, and it was fine

from cube.

1043038630 avatar 1043038630 commented on June 15, 2024

Hey @1043038630, I believe this issue is related to Docker Compose networking or Docker Desktop networking rather than Cube itself.

For instance, when you run Cube like this, are you able to open the Playground at http://localhost:4000 in your web browser?

Thank you for your reply. I have resolved the issue because my version is incorrect. The official documentation deployment method does not include API services

from cube.

igorlukanin avatar igorlukanin commented on June 15, 2024

@1043038630 I'm glad to hear that you have resolved your issue!

The official documentation deployment method does not include API services

Could you please kindly provide a link to the docs page or its part where you think that is missing? That would help fix it. Thank you in advance!

from cube.

Related Issues (20)

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.