cassandra-data-apis
cassandra-data-apis copied to clipboard
Traefik error
I create config.
scylla-data-apis: image: datastaxlabs/cassandra-data-apis hostname: scylla-data-apis container_name: scylla-data-apis restart: unless-stopped volumes: - ./config.yaml:/root/config.yaml networks: - scylla labels: - "traefik.enable=true" - "traefik.http.routers.scylla.entrypoints=web" - "traefik.http.routers.scylla.rule=Host(
DOMAIN)" - "traefik.http.middlewares.scylla-https-redirect.redirectscheme.scheme=websecure" - "traefik.http.routers.scylla.middlewares=scylla-https-redirect" - "traefik.http.routers.scylla-secure.entrypoints=websecure" - "traefik.http.routers.scylla-secure.rule=Host(DOMAIN)" - "traefik.http.routers.scylla-secure.tls=true" - "traefik.http.routers.scylla-secure.tls.certresolver=cloudflare" - "traefik.http.services.scylla.loadbalancer.server.port=8080" - "traefik.docker.network=proxy"

{"level":"info","ts":1588522561.0406232,"caller":"log/logger.go:74","msg":"using config file","file":"/root/config.yaml"}, {"level":"info","ts":1588522561.2010622,"caller":"log/logger.go:74","msg":"building schemas"}, {"level":"info","ts":1588522561.2910392,"caller":"log/logger.go:74","msg":"get started by visiting the GraphQL playground","url":"http://localhost:8080/graphql-playground"}, {"level":"info","ts":1588522561.2911048,"caller":"log/logger.go:74","msg":"server listening","port":8080,"type":"GraphQL"},
curl http://192.168.16.5:8080/graphql-playground work
But https://DOMAIN/graphql-playground Error 504 Gateway time-out
Traefik work, cassandra-data-apis not resolv
`
`
curl http://192.168.16.5:8080/graphql
404 page not found
Hi @pomazanbohdan
From the log messages, it looks like you don't have a keyspace created in your database. You need at least a user-defined keyspace in your database for the service to expose it.
I'm not sure I follow the issue related to the playground. If you are able to access the graphql playground, the playground will default to http://localhost:8080/graphql/<first_keyspace>. Make sure you change localhost with the accessible IP/name of the service and have a user defined keyspace. For example, if you have the service running on 192.168.16.5:8080 and you have a keyspace named my_keyspace, change the url on the playground to http://192.168.16.5:8080/graphql/my_keyspace
The graphql-playground can fail because of CORs (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors). After https://github.com/datastax/cassandra-data-apis/pull/119 is merged you can use the following configuration to access from any IP address.
docker run -e "DATA_API_ACCESS_CONTROL_ALLOW_ORIGIN=*"
From the log messages, it looks like you don't have a keyspace created in your database. You need at least a user-defined keyspace in your database for the service to expose it.
@jorgebay
For me as a non-programmer, this is a problem. I installed this product just so that it would deploy an access point over a clean cluster. I would like for him to be able to initiate the default space with an empty cluster.
In the future, already with the help of convenient and familiar tools for using graphql, I would have continued my work.
For me as a non-programmer, this is a problem.
Sure, we are here to make the project as easy to use as possible, I've filed #121 to make sure the behaviour is clear.