Skip to content

cannot perform ota update after ota credentials changed #2230

Closed
@roblatour

Description

@roblatour

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:

Authenticating...FAIL
16:33:39 [ERROR]: Authentication Failed
Failed uploading: uploading error: exit status 1

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

... 192.168.1.195 -p 3232 --auth=Password ...

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

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions