ADS lost all user data

User’s not found 404 :no_entry_sign:

ADS lost all the user data… no one can access AMP and manage things

The Bug :bug:

No one can log in because ADS can’t find the user name and password.
after looking in the UserData.json it appears to be empty completely

it happened before the update to the new version of AMP so it’s not related
staff and I were able to log in but now for some reason, we can’t :slightly_frowning_face:

Things Done To Fix The Bug :ballot_box_with_check:

  • Resting users manually
    ampinstmgr resetlogin but it can’t find users… because it lost them
  • Reloading
    reloading the AMP, ADS… full server restart
  • Updating drivers
    updating all drivers on the server and the windows server software
  • Checking targets
    while some targets had all the UserData.json in the right place, it didn’t work
    I speculate that this is because of security

What’s now :question:

If anyone has an idea on how to fix this issue :hand_with_index_finger_and_thumb_crossed:
All help is deeply appreciated :love_letter:

Do you have a backup of UserData.json? If not, the data is lost and you’ll need to re-create the users because the data no longer exist. This kind of thing can happen if you run out of disk space or if the system suffers a sudden power outage.

How can I recreate users?
Manually rewriting files?

By adding them in again via the web interface.

no one can access the panel…
dose ADS maks a defult user? when it loses the file?
we do have one file on a target that has UserData.json
but only one account is present and he can’t log in
when copying the files to the main controller

Next time I am going to have ups & a backup

Alto a power outage didn’t happen, and we have 40TB of space left

Run ampinstmgr resetlogin ADS01 to reset the main login details for your installation to gain access.

C:\WINDOWS\system32>ampinstmgr resetlogin ADS01
[Info] AMP Instance Manager v2.3.4 built 16/06/2022 16:35
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
Please enter value for Username

Please enter value for Password
> ****

Please confirm value for Password

[Error] No such instance matching name: 'ADS01'

It won’t reset the password, not matter what :slightly_frowning_face:

Your instance name for the ADS instance might be different, use ampinstmgr status to check.

I think I was doing it wrong from the beginning :rofl:
that’s why I had problems with changing passwords

Thanks as always @Mike

Also you put ADS01 as the username. admin is the default one.

@IceOfWraith Thanks for the help

Dear Future Visitors

You can read this wiki page on how to reset passwords
after you do a password reset you can log in and recreate all users/staff members


also remember to use the right instance name :smiley: