@incapsulatesshamala Here is complete error stack
{
"errors": [
{
"message": "Access Denied",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"createProduct"
],
"extensions": {
"code": "FORBIDDEN",
"exception": {
"eventData": {},
"error": "access-denied",
"isClientSafe": true,
"reason": "Access Denied",
"details": {},
"stacktrace": [
"ReactionError: Access Denied",
" at Object.context.validatePermissions (file:///usr/local/src/app/src/core/util/buildContext.js:52:13)",
" at Object.createProduct (file:///usr/local/src/app/src/core-services/product/mutations/createProduct.js:24:17)",
" at createProduct (file:///usr/local/src/app/src/core-services/product/resolvers/Mutation/createProduct.js:21:43)",
" at field.resolve (/usr/local/src/app/node_modules/graphql-extensions/dist/index.js:133:26)",
" at resolveFieldValueOrError (/usr/local/src/app/node_modules/graphql/execution/execute.js:467:18)",
" at resolveField (/usr/local/src/app/node_modules/graphql/execution/execute.js:434:16)",
" at /usr/local/src/app/node_modules/graphql/execution/execute.js:244:18",
" at /usr/local/src/app/node_modules/graphql/jsutils/promiseReduce.js:23:10",
" at Array.reduce (<anonymous>)",
" at promiseReduce (/usr/local/src/app/node_modules/graphql/jsutils/promiseReduce.js:20:17)"
]
}
}
}
],
"data": null
}
yes it is
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ef86ec696434 reactioncommerce/admin:3.0.0-beta.5 "docker-entrypoint.s…" 6 minutes ago Up 5 minutes 0.0.0.0:4080->4080/tcp, 0.0.0.0:9231->9229/tcp reaction-admin_reaction-admin_1
c9237d3cec17 reactioncommerce/identity:3.0.0 "docker-entrypoint.s…" 18 hours ago Up 5 minutes 0.0.0.0:4100->4100/tcp reaction-identity_identity_1
d783b4daa651 reactioncommerce/example-storefront:3.0.0 "docker-entrypoint.s…" 19 hours ago Up 5 minutes 0.0.0.0:4000->4000/tcp example-storefront_web_1
01130c0a7793 reactioncommerce/reaction:3.0.0 "docker-entrypoint.s…" 19 hours ago Up 5 minutes 0.0.0.0:3000->3000/tcp reaction_api_1
a46a288ee669 mongo:4.2.0 "docker-entrypoint.s…" 19 hours ago Up 5 minutes 0.0.0.0:27017->27017/tcp reaction_mongo_1
441081dde269 oryd/hydra:v1.0.8 "hydra serve all --d…" 19 hours ago Up 5 minutes 0.0.0.0:4444-4445->4444-4445/tcp, 0.0.0.0:5555->5555/tcp reaction-hydra_hydra_1
65ff354ada04 postgres:10.3 "docker-entrypoint.s…" 19 hours ago Up 5 minutes 0.0.0.0:32772->5432/tcp reaction-hydra_postgres_1
@HarisSpahijaPon also my identity app not showing up at http://localhost:4100/
i dont see any errors, no network calls on load of http://localhost:4100/
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ef86ec696434 reactioncommerce/admin:3.0.0-beta.5 "docker-entrypoint.s…" 6 minutes ago Up 5 minutes 0.0.0.0:4080->4080/tcp, 0.0.0.0:9231->9229/tcp reaction-admin_reaction-admin_1 c9237d3cec17 reactioncommerce/identity:3.0.0 "docker-entrypoint.s…" 18 hours ago Up 5 minutes 0.0.0.0:4100->4100/tcp reaction-identity_identity_1 d783b4daa651 reactioncommerce/example-storefront:3.0.0 "docker-entrypoint.s…" 19 hours ago Up 5 minutes 0.0.0.0:4000->4000/tcp example-storefront_web_1 01130c0a7793 reactioncommerce/reaction:3.0.0 "docker-entrypoint.s…" 19 hours ago Up 5 minutes 0.0.0.0:3000->3000/tcp reaction_api_1 a46a288ee669 mongo:4.2.0 "docker-entrypoint.s…" 19 hours ago Up 5 minutes 0.0.0.0:27017->27017/tcp reaction_mongo_1 441081dde269 oryd/hydra:v1.0.8 "hydra serve all --d…" 19 hours ago Up 5 minutes 0.0.0.0:4444-4445->4444-4445/tcp, 0.0.0.0:5555->5555/tcp reaction-hydra_hydra_1 65ff354ada04 postgres:10.3 "docker-entrypoint.s…" 19 hours ago Up 5 minutes 0.0.0.0:32772->5432/tcp reaction-hydra_postgres_1
docker-compose up
all good here
reaction-identity_identity_1 is up-to-date
Attaching to reaction-identity_identity_1
identity_1 | Waiting for MongoDB...
identity_1 | MongoDB ready.
identity_1 | Waiting for MongoDB replica set...
identity_1 | MongoDB replica set ready.
identity_1 | 18:26:15.365Z INFO Reaction: Serving Reaction Identity at http://localhost:4100
identity_1 | Waiting for MongoDB...
identity_1 | MongoDB ready.
identity_1 | Waiting for MongoDB replica set...
identity_1 | MongoDB replica set ready.
identity_1 | 12:31:03.179Z INFO Reaction: Serving Reaction Identity at http://localhost:4100
yes when i open http://localhost:4100, i see this
`
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" class="__meteor-css__" href="/37e42b737262b860c4904c46dd85cf833511dc77.css?meteor_css_resource=true">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,400,600,700" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
</head>
<body><div id="react-root"><div class="jss1"><div class="jss2"></div></div></div>
<script type="text/javascript">meteor_runtime_config = JSON.parse(decodeURIComponent("%7B%22meteorRelease%22%3A%22METEOR%401.9%22%2C%22gitCommitHash%22%3A%22999098e1900b1d71ce2ec5f68f809d710b7f336c%22%2C%22meteorEnv%22%3A%7B%22NODE_ENV%22%3A%22production%22%2C%22TEST_METADATA%22%3A%22%7B%7D%22%7D%2C%22PUBLIC_SETTINGS%22%3A%7B%7D%2C%22ROOT_URL%22%3A%22http%3A%2F%2Flocalhost%3A4100%22%2C%22ROOT_URL_PATH_PREFIX%22%3A%22%22%2C%22isModern%22%3Atrue%7D"))</script>
<script type="text/javascript" src="/dd941fbe856beda43dc812683f609b928148a662.js?meteor_js_resource=true"></script>
</body>
</html>`
@HarisSpahijaPon looks like issue is in hydra
Could this help?
time="2020-02-12T17:47:05Z" level=error msg="Unable to connect to database, retrying..." error="could not ping SQL connection: dial tcp: lookup postgres.reaction.localhost on 127.0.0.11:53: no such host"
hydra_1 | time="2020-02-12T17:47:05Z" level=info msg="Retrying in 0.800000 seconds..."
hydra_1 | time="2020-02-12T17:47:06Z" level=info msg="Establishing connection with SQL database backend" dsn="postgres://*:*@postgres.reaction.localhost:5432/hydra?sslmode=disable"
hydra_1 | time="2020-02-12T17:47:06Z" level=error msg="Unable to ping SQL database backend" dsn="postgres://*:*@postgres.reaction.localhost:5432/hydra?sslmode=disable" error="dial tcp: lookup postgres.reaction.localhost on 127.0.0.11:53: no such host"
Attaching to reaction-hydra_postgres_1, reaction-hydra_hydra-migrate_1, reaction-hydra_hydra_1
hydra_1 | time="2020-02-13T12:56:20Z" level=info msg="No tracer configured - skipping tracing setup"
hydra_1 | Config file not found because "Config File ".hydra" Not Found in "[/]""
hydra_1 | time="2020-02-13T12:56:20Z" level=info msg="Establishing connection with SQL database backend" dsn="postgres://*:*@postgres.reaction.localhost:5432/hydra?sslmode=disable"
hydra_1 | time="2020-02-13T12:56:20Z" level=info msg="Successfully connected to SQL database backend" dsn="postgres://*:*@postgres.reaction.localhost:5432/hydra?sslmode=disable"
hydra_1 | Thank you for using ORY Hydra v1.0.8+oryOS.12!
hydra_1 |
hydra_1 | Take security seriously and subscribe to the ORY Security Newsletter. Stay on top of new patches and security insights.
hydra_1 |
hydra_1 | >> Subscribe now: http://eepurl.com/di390P <<
hydra_1 | time="2020-02-13T12:56:20Z" level=info msg="Software quality assurance features are enabled. Learn more at: https://www.ory.sh/docs/ecosystem/sqa"
hydra_1 | time="2020-02-13T12:56:20Z" level=info msg="Setting up http server on :4445"
hydra_1 | time="2020-02-13T12:56:20Z" level=warning msg="HTTPS disabled. Never do this in production."
hydra_1 | time="2020-02-13T12:56:20Z" level=info msg="Setting up http server on :4444"
hydra_1 | time="2020-02-13T12:56:20Z" level=warning msg="HTTPS disabled. Never do this in production."
postgres_1 | 2020-02-13 12:56:18.831 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres_1 | 2020-02-13 12:56:18.832 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres_1 | 2020-02-13 12:56:18.837 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1 | 2020-02-13 12:56:18.856 UTC [23] LOG: database system was shut down at 2020-02-13 12:55:53 UTC
postgres_1 | 2020-02-13 12:56:18.866 UTC [1] LOG: database system is ready to accept connections
hydra-migrate_1 | time="2020-02-13T12:57:01Z" level=info msg="No tracer configured - skipping tracing setup"
hydra-migrate_1 | time="2020-02-13T12:57:01Z" level=info msg="Establishing connection with SQL database backend" dsn="postgres://*:*@postgres.reaction.localhost:5432/hydra?sslmode=disable"
hydra-migrate_1 | Config file not found because "Config File ".hydra" Not Found in "[/]""
hydra-migrate_1 | time="2020-02-13T12:57:01Z" level=info msg="Successfully connected to SQL database backend" dsn="postgres://*:*@postgres.reaction.localhost:5432/hydra?sslmode=disable"
Attaching to reaction-hydra_postgres_1, reaction-hydra_hydra-migrate_1, reaction-hydra_hydra_1
postgres_1 | 2020-02-13 12:56:18.831 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres_1 | 2020-02-13 12:56:18.832 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres_1 | 2020-02-13 12:56:18.837 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1 | 2020-02-13 12:56:18.856 UTC [23] LOG: database system was shut down at 2020-02-13 12:55:53 UTC
postgres_1 | 2020-02-13 12:56:18.866 UTC [1] LOG: database system is ready to accept connections
hydra_1 | time="2020-02-13T12:56:20Z" level=info msg="No tracer configured - skipping tracing setup"
hydra_1 | Config file not found because "Config File ".hydra" Not Found in "[/]""
hydra_1 | time="2020-02-13T12:56:20Z" level=info msg="Establishing connection with SQL database backend" dsn="postgres://*:*@postgres.reaction.localhost:5432/hydra?sslmode=disable"
hydra_1 | time="2020-02-13T12:56:20Z" level=info msg="Successfully connected to SQL database backend" dsn="postgres://*:*@postgres.reaction.localhost:5432/hydra?sslmode=disable"
hydra_1 | Thank you for using ORY Hydra v1.0.8+oryOS.12!
hydra_1 |
hydra_1 | Take security seriously and subscribe to the ORY Security Newsletter. Stay on top of new patches and security insights.
hydra_1 |
hydra_1 | >> Subscribe now: http://eepurl.com/di390P <<
hydra_1 | time="2020-02-13T12:56:20Z" level=info msg="Software quality assurance features are enabled. Learn more at: https://www.ory.sh/docs/ecosystem/sqa"
hydra_1 | time="2020-02-13T12:56:20Z" level=info msg="Setting up http server on :4445"
hydra_1 | time="2020-02-13T12:56:20Z" level=warning msg="HTTPS disabled. Never do this in production."
hydra_1 | time="2020-02-13T12:56:20Z" level=info msg="Setting up http server on :4444"
hydra_1 | time="2020-02-13T12:56:20Z" level=warning msg="HTTPS disabled. Never do this in production."
hydra_1 | time="2020-02-13T12:57:14Z" level=info msg="started handling request" method=GET remote="172.24.0.1:42420" request=/.well-known/openid-configuration
hydra_1 | time="2020-02-13T12:57:14Z" level=info msg="completed handling request" measure#hydra/public: http://localhost:4444/.latency=466100 method=GET remote="172.24.0.1:42420" request=/.well-known/openid-configuration status=200 text_status=OK took="466.1µs"
hydra-migrate_1 | Config file not found because "Config File ".hydra" Not Found in "[/]""
hydra-migrate_1 | time="2020-02-13T13:55:17Z" level=info msg="No tracer configured - skipping tracing setup"
hydra-migrate_1 | time="2020-02-13T13:55:17Z" level=info msg="Establishing connection with SQL database backend" dsn="postgres://*:*@postgres.reaction.localhost:5432/hydra?sslmode=disable"
hydra-migrate_1 | time="2020-02-13T13:55:17Z" level=info msg="Successfully connected to SQL database backend" dsn="postgres://*:*@postgres.reaction.localhost:5432/hydra?sslmode=disable"
hydra-migrate_1 | The following migration is planned:
hydra-migrate_1 |
hydra-migrate_1 | | DRIVER | MODULE | ID | # | QUERY |
hydra-migrate_1 | |--------|--------|----|---|----------------------|
hydra-migrate_1 | |--------|--------|----|---|----------------------|
hydra-migrate_1 | Successfully applied 0 SQL migrations!
reaction-hydra_hydra-migrate_1 exited with code 0
This is my identity app
This is my admin, the spinner keeps rotating indefinetly when i try to create a product
beta
. While we do try to keep it up to date with the latest API features, it's not always going to work 100%. If you're not able to complete this mutations and queires directly via the GraphQL API, then it's a separate API issue which we'd generally tackle more quickly than an issue solely in Reaction Admin