[Ovmsdev] What causes factory reset?

Michael Balzer dexter at expeedo.de
Thu Jun 21 23:02:18 HKT 2018


Steve,

I guess your browser then received about half of the responses from the old module, so it continuosly switched authentication between the two modules.

Regards,
Michael


Am 20.06.2018 um 22:45 schrieb Stephen Casner:
> Michael,
>
> Thanks for reviewing the log.  Did you notice the part in the second
> session (second time doing the wizard) where there were multiple
> instances of this message:
>
> W (38852769) webserver: HandleLogin: auth failure for username 'admin'
>
> This was while I was successfully logged into the webserver and in one
> of the wizard steps where the wizard is repeatedly querying for
> progress.  I was able to go to the status page after that without
> having to authenticate again.  This seems strange.
>
> Oh, I have an idea: I plugged in my v3.0 module so I could get the ssh
> key from its config, and it may have brought up AP with the same
> SSID.  I don't know what happens to the client if there are two APs
> competing in that way.
>
>                                                         -- Steve
>
> On Wed, 20 Jun 2018, Michael Balzer wrote:
>
>> It's always the missing log... your logs look perfectly normal, no hint of anything going wrong on the first setup.
>>
>> Option 2 can be excluded if you had the SD inserted all the time, as the button status is only checked when no SD is inserted.
>>
>> Regards,
>> Michael
>>
>>
>> Am 20.06.2018 um 21:37 schrieb Stephen Casner:
>>> Mark,
>>>
>>> Thanks for the prompt reply.
>>>
>>>>  1. SDCARD factoryreset.txt
>>>>  2. Hold the program button down for several seconds
>>>>  3. Command-line
>>> I certainly didn't intentionally do 1 or 3.  I do have the module
>>> installed in the 3D-printed case for the v3.0 module that I have
>>> modified with a plastic button extension that allows me to push the
>>> reset button with the module enclosed in the case.  (I mentioned this
>>> a while back; the extension is the plastic part that performed the
>>> same role in a defunct GFCI plug on a hair dryer.)  It is conceivable
>>> that this extension pushed on the program button instead of the reset
>>> button, but that is not likely because of the physical geometry and
>>> the button is still working properly as a reset.
>>>
>>>> Maybe not a factory reset but a corrupt config partition? Can you
>>>> try to change config. Then reboot. Then check config is still there?
>>> We don't have any "shutdown" operation to stop the module cleanly, so
>>> after the configuration I just unplugged it from the USB cable thereby
>>> removing power.  Is there some likelihood that /store would not have
>>> been stable?
>>>
>>> As I mentioned, when I brought the module back to my desk after it did
>>> not come up in the car, I saw this:
>>>
>>> W (550) esp32wifi: AutoInit: factory reset detected, starting public AP net 'OVMS' with password 'OVMSinit'
>>>
>>> A full log via USB is attached in case there might be anything
>>> interesting in it.  It shows the session where I did the wizard setup
>>> initially, then the session where I brought it back and found it back
>>> to factory reset, then a third session where I disconnected from power
>>> and plugged back in without loss of the config.
>>>
>>>                                                         -- Steve
>>>
>>>
>>> _______________________________________________
>>> OvmsDev mailing list
>>> OvmsDev at lists.openvehicles.com
>>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>> --
>> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
>> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
>>
>>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev

-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26




More information about the OvmsDev mailing list