salto-io / salto

Salto enables you to manage your business applications' configuration in code
https://salto.io
Other
151 stars 89 forks source link

NetSuite Authentication Failure #6195

Open ryan-gillies opened 1 month ago

ryan-gillies commented 1 month ago

Hi Team -

I am having issues adding my NetSuite account to my Salto env. See below.

I've successfully added this same account in my Salto UI free account, so I've confirmed that the credentials are valid.

`ryan.gillies@RGillie-M-RG65N netsuite % salto -V
version 0.3.59, branch main, hash ef83e129d

ryan.gillies@RGillie-M-RG65N netsuite % salto account add netsuite
Please enter your Netsuite credentials:

? Account ID: 3971751_SB1 ? SDF Token ID: **** ? SDF Token Secret: **** ? Salto SuiteApp Token ID (optional): ? Salto SuiteApp Token Secret (optional): ? Salto SuiteApp Activation Key (optional): Error: Could not login to netsuite: SDF Authentication failed. There was an error while loading configuration file /var/folders/w5/l6gkkxgd48d_yyj3wcylrmyc0000gq/T/sdf-2cd655f6-d9f2-418f-8e1a-fc2ab80dca31/suitecloud.config.js. Review the file and try again. Details: Error: Cannot find module '/var/folders/w5/l6gkkxgd48d_yyj3wcylrmyc0000gq/T/sdf-2cd655f6-d9f2-418f-8e1a-fc2ab80dca31/suitecloud.config.js' To try again run: salto account add netsuite

ryan.gillies@RGillie-M-RG65N netsuite % `

I ``

omrilit commented 1 month ago

Hey Ryan, thanks for reaching out! In order to resolve the authentication failure, please follow the guidelines as written in the latest version's release notes:

For existing Salto Workspaces, you should reinstall the NetSuite account by creating a temporary Salto Workspace and calling salto service add netsuite --no-login. This will download the new SDF version that will be used globally for all WSs. The temporary Salto Workspace can be deleted. In addition, for existing Salto Workspaces, you should delete the ~/.suitecloud-sdk/credentials file.

Please update us if the problem is resolved 🙏

ryan-gillies commented 1 month ago

Hey @omrilit - thanks for the quick response. Looks like I am still getting the same error. ☹️

ryan.gillies@RGillie-M-RG65N netsuite % cd temp ryan.gillies@RGillie-M-RG65N temp % salto init ? Enter a name for the first environment in the workspace temp Initiated empty workspace Usesalto account add ` to add accounts to the environment

ryan.gillies@RGillie-M-RG65N temp % salto service add netsuite --no-login The 'service' command is deprecated. Use 'account' instead. ✔ netsuite was added to the environment

ryan.gillies@RGillie-M-RG65N temp % cd .. ryan.gillies@RGillie-M-RG65N netsuite % salto init ? Enter a name for the first environment in the workspace dev Initiated empty workspace Use salto account add <service-name> to add accounts to the environment

ryan.gillies@RGillie-M-RG65N netsuite % salto account add netsuite Please enter your Netsuite credentials:

? Account ID: 3971751_SB1 ? SDF Token ID: **** ? SDF Token Secret: **** ? Salto SuiteApp Token ID (optional): ? Salto SuiteApp Token Secret (optional): ? Salto SuiteApp Activation Key (optional): Error: Could not login to netsuite: SDF Authentication failed. There was an error while loading configuration file /var/folders/w5/l6gkkxgd48d_yyj3wcylrmyc0000gq/T/sdf-49206adf-e11f-4cad-8b95-089d83b7b7e1/suitecloud.config.js. Review the file and try again. Details: Error: Cannot find module '/var/folders/w5/l6gkkxgd48d_yyj3wcylrmyc0000gq/T/sdf-49206adf-e11f-4cad-8b95-089d83b7b7e1/suitecloud.config.js' To try again run: salto account add netsuite `

omrilit commented 1 month ago

@ryan-gillies could you please remove the /var/folders/w5/l6gkkxgd48d_yyj3wcylrmyc0000gq/T/sdf-49206adf-e11f-4cad-8b95-089d83b7b7e1/suitecloud.config.js configuration file? next SDF authentication try supposes to recreate it.

ryan-gillies commented 1 month ago

@omrilit I removed the temp file but receive the same error on the next login attempt:

Error: Could not login to netsuite: SDF Authentication failed. There was an error while loading configuration file /var/folders/w5/l6gkkxgd48d_yyj3wcylrmyc0000gq/T/sdf-ba99f281-d567-44c9-99b3-42bce2731fa8/suitecloud.config.js. Review the file and try again. Details:
Error: Cannot find module '/var/folders/w5/l6gkkxgd48d_yyj3wcylrmyc0000gq/T/sdf-ba99f281-d567-44c9-99b3-42bce2731fa8/suitecloud.config.js'
To try again run: `salto account login netsuite`

ryan.gillies@RGillie-M-RG65N quickstart % rm /var/folders/w5/l6gkkxgd48d_yyj3wcylrmyc0000gq/T/sdf-ba99f281-d567-44c9-99b3-42bce2731fa8/suitecloud.config.js
ryan.gillies@RGillie-M-RG65N quickstart % rm /var/folders/w5/l6gkkxgd48d_yyj3wcylrmyc0000gq/T/sdf-ba99f281-d567-44c9-99b3-42bce2731fa8/suitecloud.config.js
rm: /var/folders/w5/l6gkkxgd48d_yyj3wcylrmyc0000gq/T/sdf-ba99f281-d567-44c9-99b3-42bce2731fa8/suitecloud.config.js: No such file or directory
ryan.gillies@RGillie-M-RG65N quickstart % salto account login netsuite                                                                                     
Please enter your Netsuite credentials:

? Account ID: 3971751_SB1
? SDF Token ID: ****************************************************************
? SDF Token Secret: ****************************************************************
? Salto SuiteApp Token ID (optional): 
? Salto SuiteApp Token Secret (optional): 
? Salto SuiteApp Activation Key (optional): 
Error: Could not login to netsuite: SDF Authentication failed. There was an error while loading configuration file /var/folders/w5/l6gkkxgd48d_yyj3wcylrmyc0000gq/T/sdf-17546462-b401-4cfd-b9c2-911818aa219f/suitecloud.config.js. Review the file and try again. Details:
Error: Cannot find module '/var/folders/w5/l6gkkxgd48d_yyj3wcylrmyc0000gq/T/sdf-17546462-b401-4cfd-b9c2-911818aa219f/suitecloud.config.js'
To try again run: `salto account login netsuite`
omrilit commented 1 month ago

@ryan-gillies did you also remove the ~/.suitecloud-sdk/credentials file? If you did and the issue wasn't solved for you we can try to get on a zoom call to find the issue and fix it live.

ryan-gillies commented 1 month ago

Hi @omrilit - yes I removed everything in that temp folder to start fresh. Happy to jump on a zoom call. I am on ET, so let me know a time that works for you

ryan-gillies commented 1 month ago

Hi @omrilit - just checking in if you have any availability this week for a Zoom troubleshoot?

omrilit commented 1 month ago

Hi @ryan-gillies, I am available now. My email is omri.litvak@salto.io, please email me and I will send you a Zoom link