You need to sign in to do that
Don't have an account?
Eclipse - Sporadic Lock-Outs - Please, please help
Hey guys,
Bit of an emergency here. My Eclipse IDE has suddenly sporadically stopped accepting my password and security token. If I try too often, I then get locked out of my Sandbox for half an hour.
The problem began on Thursday, and I have had the IDE sporadically locked out due to lack of security token, allowed access (mysteriously) and then locked out again without any obvious reason
I'm still able to access my sandbox via the browser (when not locked out) and the user logs indicates that the security token is required, even though I'm definately inputting it into Eclipse:
Partner Product | Failed: API security token required |
To make matters worse, I've just deployed some code, which has a bug that needs fixing and I can't re-deploy the code fix!
Salesforce support is telling me that Eclipse IDE isn't supported and are not being super helpful. My IT guys tell me that nothing has changed at our end to cause security lock-outs.
Does anybody know any issues with the new Eclipse IDE / APEX versions or know of anything that might be causing this?
Any help would be massively, massively appreciated. I'm completely at a loss.
Somesh,
Thank you for your help. The problem was at our end. Our IP address kept shifting, putting us briefly outside the trusted IP address network. Quite why the Security Token wasn't being stored/accepted in these situations is still unknown.
However, my immediate problem is solved. Thank you for your time.
With kind regards
Andy
All Answers
What version of the IDE are you using?
I am wondering if there is an issue with logging in through the Partner API which is what the IDE uses.
here's a way to test that.
go to https://tapp0.salesforce.com/?startURL=/soap/ajax/15.0/debugshell.html ( change tapp0 to cs1 or cs2 ) depending on where you sandbox org resides and login.
after that.
see if the following command works
sforce.connection.login("yourusername","yourpasswordyourtoken"); note. the password and securitytoken is 1 word.
Also, on an unsuccessful login from the IDE, you could check on the login history for your sandbox org through the browser and see why the login failed. ( if that's any different from what you mentioned as user logs)
Hope this helps
Somesh,
Thanks for your response. Using the direction you gave me, I am unable to log-in when using my password and Security Token.
Oddly, the Eclipse IDE has begun working this morning. On checking the Project properties, it looks like the security token isn't in there any more.
On checking my Login History for the application the failed log-ins display the following information:
Does this make sense to you? I'm using Eclipse SDK 3.3.2 and the Force.com version 15.0.0.200902181452
Is there anyway to further interogate the log-in attempts to get more data?
The only working theory I have at the moment is that it seems to work in the mornings, but not the afternoons, which can't be right!
Andy
hmm...that's wierd....you should be able to login from the ajax toolkit. If there's a problem there, the logins from the IDE will most certainly fail.
Quoting text from salesforce:
When accessing Salesforce either via a desktop client or the API from outside of your company's trusted networks:
If your password = "mypassword"
And your security token = "XXXXXXXXXX"
You must enter "mypasswordXXXXXXXXXX" in place of your password
Note that you do not enter a security token in place of your password when logging into Salesforce via a browser.
the only other problem could be that the security token isn't being stored in the IDE after you enter it. But i checked that and it seems to be working fine.
Maybe you can add your ip address to the trusted list of IP addresses in your org and see if that resolves the problem. that should be available in setup->security controls->network access.
are the sandboxes on 2 different instances?
if not which instance are your sandboxes on?
do you also use a security token to login?
Could you please try the steps i mentioned in the 2nd message of this thread. logging in from the debug shell.
Thanks
Somesh,
Thank you for your help. The problem was at our end. Our IP address kept shifting, putting us briefly outside the trusted IP address network. Quite why the Security Token wasn't being stored/accepted in these situations is still unknown.
However, my immediate problem is solved. Thank you for your time.
With kind regards
Andy
First you need to log out from any other system or browser you have logged in then
Right click on the project-->properties->update the credential in eclipse of your org.
This helps to me
Thanks