Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Javier Daza
    @javierdaza
    On the other hand, Chrome is telling me a different story
    DEBUG [react-context-oidc] : overriddenConfiguration 
    {client_id: "reaction-admin", redirect_uri: "https://admin.mydomain.com/authentication/callback", response_type: "code", post_logout_redirect_uri: "https://admin.mydomain.com", scope: "openid", …}
    authority: "https://hydra.mydomain.com"
    automaticSilentRenew: true
    client_id: "reaction-admin"
    loadUserInfo: true
    post_logout_redirect_uri: "https://admin.mydomain.com"
    redirect_uri: "https://admin.mydomain.com/authentication/callback"
    response_type: "code"
    scope: "openid"
    silent_redirect_uri: "https://admin.mydomain.com/authentication/silent_callback"
    triggerAuthFlow: true
    __proto__: Object
    INFO [react-context-oidc] : Protection :  true
    INFO [react-context-oidc] : Protected component mounted
    [Violation] 'setInterval' handler took 228ms
    Javier Daza
    @javierdaza
    Looks like the problem is with
    https://hydra.mydomain.com/.well-known/openid-configuration
    net::ERR_CONNECTION_TIMED_OUT
    Thomas
    @lacrx

    I'm having trouble loading the admin on a prod environment of the reaction admin. I've noticed in the websocket messages that I'm able to authenticate, but then I get this response:

    a["{\"msg\":\"updated\",\"methods\":[\"3\"]}"]
    a["{\"msg\":\"result\",\"id\":\"3\",\"error\":{\"isClientSafe\":true,\"error\":400,\"reason\":\"Match failed\",\"message\":\"Match failed [400]\",\"errorType\":\"Meteor.Error\"}}"]

    and then shows a blank admin area with only the Reaction logo and a logout buttun. From what I understand, "match failed" is an unhandled Meteor error. Has anyone experienced this before? Why might that be happening?

    Thomas
    @lacrx
    and I should add that I also am able to register a new user on the backend. In the messages, it shows the new user being created and signing in, then throws that same "match failed" error, then redirects me to a backend/undefined url
    Thomas
    @lacrx
    oh also i'm using v2.0.0
    Thomas
    @lacrx

    i also see this warning in the backend browser console:

    name: "reaction-client",
    hostname: "backend-prod.examplestore.com",
    pid: undefined,
    level: 40,
    msg: "Missing storefront home URL. Please set this from the shop settings panel so that customer users can be redirected to your storefront.",
    time: Date Sat Jun 06 2020 17:43:42 GMT-0700 (Pacific Daylight Time),
    v: 0

    i wonder if the pid being undefined is an issue

    Loan Laux
    @loan-laux
    @lacrx Any errors from the backend container?
    Loan Laux
    @loan-laux
    @javierdaza I had this issue once but I don’t remember how I handled it… Sorry, I know that’s not useful to you. Can you manually reach https://hydra.mydomain.com/.well-known/openid-configuration?
    Thomas
    @lacrx
    @loan-laux
    yeah actually, looking through the logs, i'm getting this:
    Exception while invoking method 'oauth/login' { Error: Match error: Expected string, got undefined
    at check (packages/check/match.js:36:17)
    at MethodInvocation.oauthLogin (imports/plugins/core/hydra-oauth/server/oauthMethods.js:18:3)
    at currentArgumentChecker.withValue (packages/check/match.js:118:15)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
    at Object._failIfArgumentsAreNotAllChecked (packages/check/match.js:116:43)
    at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1764:18)
    at DDP._CurrentMethodInvocation.withValue (packages/ddp-server/livedata_server.js:719:19)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
    at DDPServer._CurrentWriteFence.withValue (packages/ddp-server/livedata_server.js:717:46)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
    at Promise (packages/ddp-server/livedata_server.js:715:46)
    at new Promise (<anonymous>)
    at Session.method (packages/ddp-server/livedata_server.js:689:23)
    at packages/ddp-server/livedata_server.js:559:43
    message: 'Match error: Expected string, got undefined',
    path: '',
    sanitizedError: 
    { Error: Match failed [400]
    at errorClass.<anonymous> (packages/check/match.js:91:27)
    at new errorClass (packages/meteor.js:725:17)
    at check (packages/check/match.js:36:17)
    at MethodInvocation.oauthLogin (imports/plugins/core/hydra-oauth/server/oauthMethods.js:18:3)
    at currentArgumentChecker.withValue (packages/check/match.js:118:15)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
    at Object._failIfArgumentsAreNotAllChecked (packages/check/match.js:116:43)
    at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1764:18)
    at DDP._CurrentMethodInvocation.withValue (packages/ddp-server/livedata_server.js:719:19)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
    at DDPServer._CurrentWriteFence.withValue (packages/ddp-server/livedata_server.js:717:46)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
    at Promise (packages/ddp-server/livedata_server.js:715:46)
    at new Promise (<anonymous>)
    at Session.method (packages/ddp-server/livedata_server.js:689:23)
    at packages/ddp-server/livedata_server.js:559:43
    isClientSafe: true,
    error: 400,
    reason: 'Match failed',
    details: undefined,
    message: 'Match failed [400]',
    errorType: 'Meteor.Error' },
    B D
    @bayareacoder
    Hi, how can I obtain the user ID of a created user account when running locally in Docker. The doc says: "Substitute a real user ID, which is the internal user ID you see in the _id field in the MongoDB users collection." but how can I see this collection when Mongo is running in Docker locally ? Reference: https://docs.reactioncommerce.com/docs/developer-authentication
    B D
    @bayareacoder
    I guess my question is more of a fit for the 'installation' room that I just found. I'll ask it there too.
    B D
    @bayareacoder
    Answering my own question (for who might benefit): the docker-compose file of reaction exposes Mongo's 27017 port to external, so you can just access Mongo from localhost:27017. So simple I overlooked it!
    Javier Daza
    @javierdaza
    Captura de Pantalla 2020-06-08 a la(s) 8.07.33 a. m..png
    Thomas
    @lacrx

    another issue i'm running into is that my example storefront instance tries to open a websocket connection to the backend, but is receiving a 502 bad gateway error, even though i can connect to it through a firefox websocket client. i would also think that setting DISABLE_WEBSOCKETS=1 in the .env file would make it fall back to http(s), though that doesn't seem to work either.

    have you run into any issues with the frontend websocket connections in prod?

    Loan Laux
    @loan-laux
    @lacrx The WS implementation isn’t used by anything at the moment. Your GraphQL calls will all go through HTTPS even though a WS link is also initiated on page load. Nothing to worry about really.
    Thomas
    @lacrx
    ahh okay i see. it looks like the https requests from backend to frontend are being blocked because of a "CORS Missing Allow Origin" also.
    Loan Laux
    @loan-laux
    Well, there’s your real issue. :)
    Thomas
    @lacrx
    haha well that makes sense
    i was wondering if that might have something to do with an error i'm getting on the backend. i'm getting the warning on the backend telling me that my store url isn't set. i wonder if that's related to the cors issue on the frontend
    basically, would my backend reaction instance block requests from the frontend because the store url isn't set?
    Loan Laux
    @loan-laux
    Yep, that might be the case. Try and set it, see if it changes anything.
    Thomas
    @lacrx
    ah okay, it looks like my errors are originating from the issue i'm having with the backend service. i can authenticate, but the admin area is blank, except for a logout button and logo. i'm getting this error upon login:
    Exception while invoking method 'oauth/login' { Error: Match error: Expected string, got undefined
    at check (packages/check/match.js:36:17)
    at MethodInvocation.oauthLogin (imports/plugins/core/hydra-oauth/server/oauthMethods.js:18:3)
    at currentArgumentChecker.withValue (packages/check/match.js:118:15)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
    at Object._failIfArgumentsAreNotAllChecked (packages/check/match.js:116:43)
    at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1764:18)
    at DDP._CurrentMethodInvocation.withValue (packages/ddp-server/livedata_server.js:719:19)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
    at DDPServer._CurrentWriteFence.withValue (packages/ddp-server/livedata_server.js:717:46)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
    at Promise (packages/ddp-server/livedata_server.js:715:46)
    at new Promise (<anonymous>)
    at Session.method (packages/ddp-server/livedata_server.js:689:23)
    at packages/ddp-server/livedata_server.js:559:43
    message: 'Match error: Expected string, got undefined',
    path: '',
    sanitizedError: 
    { Error: Match failed [400]
    at errorClass.<anonymous> (packages/check/match.js:91:27)
    at new errorClass (packages/meteor.js:725:17)
    at check (packages/check/match.js:36:17)
    at MethodInvocation.oauthLogin (imports/plugins/core/hydra-oauth/server/oauthMethods.js:18:3)
    at currentArgumentChecker.withValue (packages/check/match.js:118:15)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
    at Object._failIfArgumentsAreNotAllChecked (packages/check/match.js:116:43)
    at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1764:18)
    at DDP._CurrentMethodInvocation.withValue (packages/ddp-server/livedata_server.js:719:19)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
    at DDPServer._CurrentWriteFence.withValue (packages/ddp-server/livedata_server.js:717:46)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
    at Promise (packages/ddp-server/livedata_server.js:715:46)
    at new Promise (<anonymous>)
    at Session.method (packages/ddp-server/livedata_server.js:689:23)
    at packages/ddp-server/livedata_server.js:559:43
    isClientSafe: true,
    error: 400,
    reason: 'Match failed',
    details: undefined,
    message: 'Match failed [400]',
    errorType: 'Meteor.Error' },
    so i'm not actually able to set my store url, because there's effectively no backend ui due to a meteor match error (i'm assuming it's trying to match my userid)
    Loan Laux
    @loan-laux
    Are you able to reach or Hydra public? What about the Hydra admin API from your private network? I’d test the connectivity to both as a first step.
    Juan Manuel Garcia
    @irpaglide1_gitlab

    Hello, first time using gitter, apologies for any noise that my unexperience might add to ongoing conversations.

    I'm deploying reactioncommerce on digitalocean kubernetes, using terraform.

    So far, I've been able to:

    1. Deploy mongodb
    2. Deploy postgres
    3. Deploy reactioncommerce
    4. Deploy Hydra
      I see succesful logs for everything I listed above, and all those pods are running properly and receiving connections.

    However, I'm having issues deploying the storefront. I am probably not porting the docker-compose to the kubernetes deployment properly. The error i'm getting is as follows:

    Updating Hydra client...
    OK: Hydra client updated
    warn - You have enabled experimental feature(s).
    warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use them at your own risk.

    Error: Could not find a valid build in the '/usr/local/src/app/.next' directory! Try building your app with 'next build' before starting the server.
    at Server.readBuildId (/usr/local/src/app/node_modules/next/dist/next-server/server/next-server.js:974:23)
    at new Server (/usr/local/src/app/node_modules/next/dist/next-server/server/next-server.js:64:29)
    at createServer (/usr/local/src/app/node_modules/next/dist/server/next.js:2:328)
    at start (/usr/local/src/app/node_modules/next/dist/server/lib/start-server.js:1:323)
    at nextStart (/usr/local/src/app/node_modules/next/dist/cli/next-start.js:20:125)
    at /usr/local/src/app/node_modules/next/dist/bin/next:28:339
    error Command failed with exit code 1.

    I've tried adding command: ["bin/start"] and adding, the "next build" inside, but it doesn't work either. I can provide those logs if someone is curious about it.

    Thank you and sorry for the long message.

    3 replies
    Thomas
    @lacrx
    @loan-laux that's a very good point. i'll take a look
    enzo - Eduardo Garcia
    @enzolutions
    Hello, folks, anyone has a guide to setup Reaction Commerce in Digital Ocean using Kubernetes ? or any other opcion in Digital Ocean? Thanks in advance.
    Loan Laux
    @loan-laux
    @enzolutions There’s a tutorial that covers deploying on DO with Traefik: https://github.com/reactioncommerce/proxy-traefik
    enzo - Eduardo Garcia
    @enzolutions
    Thank you @loan-laux
    kamaljaiswal
    @kamaljaiswal
    If I do any change in proxy-traefik/playbooks/reaction.yml get error {"before": "c2d8d21f20a0066e5c9c0fb7ed7273f0feadca8f", "changed": false, "msg": "Local modifications exist in repository (force=no)."}
    to retry, use: --limit @/root/workspace_reaction/proxy/playbooks/reaction.retry when I modify the same do_auth_token: "YOUR_DIGITALOCEAN_AUTH_TOKEN"
    domain: "YOUR_DOMAIN"
    email: "YOUR_EMAIL"
    kamaljaiswal
    @kamaljaiswal
    Any help how to set up hydra on digital ocean would be great .thanks
    kamaljaiswal
    @kamaljaiswal

    ASK [Create Docker network named web] *
    fatal: [reaction.server]: FAILED! => {"changed": true, "cmd": ["docker", "network", "create", "web"], "delta": "0:00:00.251724", "end": "2020-07-16 07:13:04.127788", "msg": "non-zero return code", "rc": 1, "start": "2020-07-16 07:13:03.876064", "stderr": "Error response from daemon: network with name web already exists", "stderr_lines": ["Error response from daemon: network with name web already exists"], "stdout": "", "stdout_lines": []}
    ...ignoring

    TASK [Create Docker network named internal] **
    fatal: [reaction.server]: FAILED! => {"changed": true, "cmd": ["docker", "network", "create", "internal"], "delta": "0:00:00.065765", "end": "2020-07-16 07:13:04.713790", "msg": "non-zero return code", "rc": 1, "start": "2020-07-16 07:13:04.648025", "stderr": "Error response from daemon: network with name internal already exists", "stderr_lines": ["Error response from daemon: network with name internal already exists"], "stdout": "", "stdout_lines": []}
    ...ignoring
    I added ignore_errors: yes to skip .

    not working
    Ankur Pata
    @ankurpata
    You need to delete networks web and internal.
    Remove all the code inside reaction/reaction-development-p
    And run ansible script again.
    Ansible throws error when it finds any modifications on deployed code. Although there is a python config setting you can google to disable this
    kamaljaiswal
    @kamaljaiswal
    thanks for response ..checking the same :)
    what is best way to deploy on Digital Ocean (Cloud) proxy-traefik or direct reaction-development-platform
    Any guidance how to configure home_url in reaction-development-platform as struggling same via make file
    Ankur Pata
    @ankurpata
    Its the best you have.
    you can customize it as per your needs
    home_url ?
    kamaljaiswal
    @kamaljaiswal
    will start fresh and check the same .thanks . do_auth_token: "YOUR_DIGITALOCEAN_AUTH_TOKEN" is token created in Digital Ocean Application & API section Token/Keys
    kamaljaiswal
    @kamaljaiswal
    TASK [git] Getting any error *
    fatal: [reaction.server]: FAILED! => {"before": "c2d8d21f20a0066e5c9c0fb7ed7273f0feadca8f", "changed": false, "msg": "Local modifications exist in repository (force=no)."}
    to retry, use: --limit @/root/wk_reaction/proxy-traefik/playbooks/reaction.retry.
    Loan Laux
    @loan-laux
    @kamaljaiswal Looks like you have local modifications made to your Reaction API repo. Try to manually git pull trunk and see if you’ve conflicts.
    kamaljaiswal
    @kamaljaiswal
    As I need to modify do_auth_token: "YOUR_DIGITALOCEAN_AUTH_TOKEN"
    domain: "YOUR_DOMAIN"
    email: "YOUR_EMAIL" @loan-laux thanks for response
    in reaction.yml
    again same error after git pull .. shall I force = yes TASK [git] *
    fatal: [reaction.server]: FAILED! => {"before": "c2d8d21f20a0066e5c9c0fb7ed7273f0feadca8f", "changed": false, "msg": "Local modifications exist in repository (force=no)."}
    to retry, use: --limit @/root/wk_reaction/proxy-traefik/playbooks/reaction.retry
    kamaljaiswal
    @kamaljaiswal

    TASK [git] *
    changed: [reaction.server]

    TASK [git] *
    changed: [reaction.server]
    force: yes it by passes

    TASK [Create Docker network named web] *
    fatal: [reaction.server]: FAILED! => {"changed": true, "cmd": ["docker", "network", "create", "web"], "delta": "0:00:00.296365", "end": "2020-07-16 07:48:03.436204", "msg": "non-zero return code", "rc": 1, "start": "2020-07-16 07:48:03.139839", "stderr": "Error response from daemon: network with name web already exists", "stderr_lines": ["Error response from daemon: network with name web already exists"], "stdout": "", "stdout_lines": []}
    to retry, use: --limit @/root/wk_reaction/proxy-traefik/playbooks/reaction.retry