Password reset native installation

Hello,

I have a couple years old native installation (using the server installer script) of WebODM and the password is lost. When I execute recommended password reset command in the terminal I get the error that docker command isn’t found and this is totally logical because my instance is not in the docker.

/webodm# ./webodm.sh resetadminpassword 12345678
./webodm.sh: line 288: docker: command not found

Could someone please help and suggest a solution to this?
Thank you.

1 Like

You’ll need to activate the Python virtual environment (source venv/bin/activate ?) and then execute:

echo "from django.contrib.auth.models import User;from django.contrib.auth.hashers import make_password;u=User.objects.filter(is_superuser=True)[0];u.password=make_password('pass');u.save();print('The following user was changed: {}'.format(u.username));" | python manage.py shell

The password will be set to pass.

1 Like

Thank you for your response.
Can you please be specific about this? (source venv/bin/activate ?) Is this the folder where the virtual environment should be activated?

1 Like

During the native installation, the installer script should have created a Python virtual environment. You need to activate it before typing the other command. (so yes?)

1 Like

Hmm, doesn’t look like I have that directory. Any suggestions?

1 Like

Maybe it’s .venv (so it’s hidden).

1 Like

ls -a /
. bin code etc initrd.img lib lost+found mnt proc run snap sys usr vmlinuz webodm
… boot dev home initrd.img.old lib64 media opt root sbin srv tmp var vmlinuz.old www

1 Like

While I am still unable to reset the password, this thread can be closed because I found where I saved my password.
Thank you @ [pierotofy] for your help!!!

3 Likes