SalesforceCommerceCloud / b2c-crm-sync

... a contemporary perspective on how to integrate B2C Commerce and the Salesforce Customer 360 Platform to power frictionless customer experiences in the B2C domain.
https://salesforcecommercecloud.github.io/b2c-crm-sync/
BSD 3-Clause "New" or "Revised" License
65 stars 46 forks source link

[BUG] ...Authenticate against my Salesforce Org #182

Closed RyyanB closed 2 years ago

RyyanB commented 2 years ago

I am trying to run the step "sfdx auth:web:login -r https://login.salesforce.com" to connect to the production but when it redirects me to login I enter my credentials and try to login it then throws me an error EPERM: operation not permitted, open 'C:\Users\ryyan.sf\sf.json'

I ran this step before when connecting staging to my lower sandbox and it worked. I went to the path that it mentioned in the error and the configurations were still for the lower sandbox. This was automatically generated for the lower sandbox but I did manually changed the configuration to match those of production and I still get the same error.

Expected behavior The expected behavior is that I am logged in to my production. Screenshot image

image

Environment details:

jbachelet commented 2 years ago

Running an SFDX command and getting an error means you are having an issue with you setup. This has nothing related to b2c-crm-sync on its own.

Please, please don't deploy to production from your local machine, you should have setup a proper CI/CD and release management process to deploy to production safely...