cube-js / cube

πŸ“Š Cube β€” The Semantic Layer for Building Data Applications
https://cube.dev
Other
17.92k stars 1.78k forks source link

Empty page when running Docker container #8630

Closed hongbo-miao closed 1 day ago

hongbo-miao commented 2 months ago

Describe the bug

I am trying to follow the readme to run local instance. However, I got an empty page when running a local instance. πŸ₯² I am using latest v0.35.76 as of today.

To Reproduce

docker run -p 4000:4000 \
  -p 15432:15432 \
  -v ${PWD}:/cube/conf \
  -e CUBEJS_DEV_MODE=true \
  cubejs/cube:v0.35.76

Unable to find image 'cubejs/cube:v0.35.76' locally
v0.35.76: Pulling from cubejs/cube
Digest: sha256:5a555ceb67cb375dc8eba72bc55697812a2d68007484aea200e420a1bafc7085
Status: Downloaded newer image for cubejs/cube:v0.35.76
Warning. There is no cube.js file. Continue with environment variables
πŸ”₯ Cube Store (0.35.76) is assigned to 3030 port.
Warning. Option apiSecret is required in dev mode. Cube has generated it as 828f6433e528784aa01d68d3b8b5f6a3
πŸ”“ Authentication checks are disabled in developer mode. Please use NODE_ENV=production to enable it.
πŸ¦… Dev environment available at http://localhost:4000
πŸ”— Cube SQL (pg) is listening on 0.0.0.0:15432
πŸš€ Cube API server (0.35.76) is listening on 4000
2024-08-25T03:16:19.675Z INFO  [cubestored] <pid:21> Cube Store version 0.35.73
2024-08-25T03:16:19.679Z INFO  [cubestore::http::status] <pid:21> Serving status probes at 0.0.0.0:3031
2024-08-25T03:16:19.681Z INFO  [cubestore::metastore::rocks_fs] <pid:21> Using existing metastore in /cube/conf/.cubestore/data/metastore
2024-08-25T03:16:19.707Z INFO  [cubestore::mysql] <pid:21> MySQL port open on 0.0.0.0:13306
2024-08-25T03:16:19.707Z INFO  [cubestore::http] <pid:21> Http Server is listening on 0.0.0.0:3030

Here is its log:

Warning. There is no cube.js file. Continue with environment variables
πŸ”₯ Cube Store (0.35.76) is assigned to 3030 port.
Warning. Option apiSecret is required in dev mode. Cube has generated it as 828f6433e528784aa01d68d3b8b5f6a3
πŸ”“ Authentication checks are disabled in developer mode. Please use NODE_ENV=production to enable it.
πŸ¦… Dev environment available at http://localhost:4000
πŸ”— Cube SQL (pg) is listening on 0.0.0.0:15432
πŸš€ Cube API server (0.35.76) is listening on 4000
2024-08-25T03:16:19.675Z INFO  [cubestored] <pid:21> Cube Store version 0.35.73
2024-08-25T03:16:19.679Z INFO  [cubestore::http::status] <pid:21> Serving status probes at 0.0.0.0:3031
2024-08-25T03:16:19.681Z INFO  [cubestore::metastore::rocks_fs] <pid:21> Using existing metastore in /cube/conf/.cubestore/data/metastore
2024-08-25T03:16:19.707Z INFO  [cubestore::mysql] <pid:21> MySQL port open on 0.0.0.0:13306
2024-08-25T03:16:19.707Z INFO  [cubestore::http] <pid:21> Http Server is listening on 0.0.0.0:3030
2024-08-25T03:16:34.714Z INFO  [cubestore::metastore::rocks_fs] <pid:21> Using existing cachestore in /cube/conf/.cubestore/data/cachestore

Expected behavior

I expect I can open http://localhost:4000/

Screenshots

image

Version:

0.35.76

igorlukanin commented 2 months ago

Hi @hongbo-miao πŸ‘‹

Were you able to resolve this?

I've tried to reproduce using exactly the command that you've provided but wasn't able to: everything works as expected, Cube starts and it's available at http://localhost:4000.

I guess you might have an issue with Docker networking. Which platform are you on?

igorlukanin commented 1 day ago

Closing due to inactivity.

hongbo-miao commented 1 day ago

Hi @igorlukanin sorry, I missed previous message. Will try again when got time. If I succeed or still failed, will let you know! But based on your info, most likely my end issue. Thanks! ☺️