Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetSuite Authentication Failure #6195

Open
ryan-gillies opened this issue Jul 11, 2024 · 8 comments
Open

NetSuite Authentication Failure #6195

ryan-gillies opened this issue Jul 11, 2024 · 8 comments

Comments

@ryan-gillies
Copy link

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 ef83e12

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
Copy link
Contributor

omrilit commented Jul 11, 2024

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
Copy link
Author

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 Use salto 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
Copy link
Contributor

omrilit commented Jul 14, 2024

@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
Copy link
Author

@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
Copy link
Contributor

omrilit commented Jul 16, 2024

@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
Copy link
Author

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
Copy link
Author

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

@omrilit
Copy link
Contributor

omrilit commented Jul 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants