-
-
Notifications
You must be signed in to change notification settings - Fork 391
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
cannot perform ota update after ota credentials changed #2230
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
2nd Update: I found a second, more acceptable, work around. I moved the program folder for my project to a newly created folder. for example, my old project folder was: I moved the whole myprogram folder to: D:/Arduino_Programs/Folder_B/myprogram and with that I ran an OTA update, the Arduino IDE prompted me for a password, I entered my new password, and it worked fine. |
This comment was marked as outdated.
This comment was marked as outdated.
I had a breakthrough in the investigation thanks to some information provided in a report of the same problem on the forum (I guess that is also you @roblatour???):
The essential condition that was not mentioned here is that the upload is made to the associated board+port that was automatically selected by Arduino IDE when the sketch is restored on Arduino IDE startup. To reproduceEquipment
Steps
Arduino IDE version2.2.1 Operating system
Additional contextI bisected the regression to 69ae38e / #2165 (does not occur when using the build from the previous commit 9a6a457) Workaround
After doing that, when you start an upload Arduino IDE will present you with a "Configure and Upload" dialog that will allow you to set the password. |
@per1234 I cannot take credit for the post from by @robgw as that is someone else. Regardless, I'm glad you have identified more of what lays at the heart of this, as well as an easier work around (as noted in the post above).
Well done. Hope a code fix to address this will be possible. Cheers |
thank you |
Describe the problem
I have a program for which ota updates were working fine.
device name was A
password was A
In my code, I then changed these to
device name B
password B
I did an over the air update, selecting the old device (A) from the port list, and providing the old password (A).
The upload worked fine.
Now, the program is showing as:
device name B in the ports list (as expected).
However, the Arduino IDE is not prompting me for a password when I try and do a OTA update, rather it is failing with:
I tried exiting and restarting the Arduino IDE.
I tried rebooting my computer.
I tried the nightly build of the Arduino IDE.
The same error re-appears.
To reproduce
As described above
Expected behavior
If the authentication fails on an OTA update attempt, on the next OTA update attempt the IDE should prompt the user for the password (rather than, I assume, continuing to use a bad cached password).
Arduino IDE version
2.2.1
Operating system
Windows
Operating system version
11
Additional context
this issue seems to be some what similar to #1443
However, in this case restarting the IDE does not resolve the issue.
I have checked show verbose in the settings, and the output from the upload process shows
the IP address for the device is correct, but the password is just the word Password (i.e. the letters 'P' 'a' 's' 's' 'w' 'o' 'r' 'd'; it is neither the old or new password).
Issue checklist
The text was updated successfully, but these errors were encountered: