Torizon Portainer admin login password not working, need to reset

I am running portainer with my production devices, one of my device’s portainer admin password is not working and I need to reset the password, any help would be appreciated.

Greetings @RayO,

For resetting the password in Portainer, have you tried the method described in Portainer’s official documentation?: https://docs.portainer.io/v/2.13/advanced/reset-admin

Best Regards,
Jeremias

Hi Jeremias,

I get the following when I do the first step in the link you sent.

torizon@colibri-imx8x-06900090:~$ docker stop “id-portainer-container”
Error response from daemon: No such container: id-portainer-container

Ray

You’re not meant to run that command literally. You’re suppose to stop the running Portainer container. You need to substitute the container ID, or name specific to your Portainer container into the docker stop command.

Best Regards,
Jeremias

Got it thanks!

So were you now able to reset the password login?

Software summary
------------------------------------------------------------
Bootloader:               U-Boot
Kernel version:           5.15.129-6.5.0+git.6f8fd49366db #1-TorizonCore SMP PREEMPT Fri Dec 22 11:15:52 UTC 2023
Kernel command line:      root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.1/torizon/fe091cbe7b665ff6d9d5d618cb20c42c90c242fffeaceccf204eacd186b2f597/0
Distro name:              NAME="TorizonCore"
Distro version:           VERSION_ID=6.5.0-build.8
Distro variant:           VARIANT="Docker"
Hostname:                 verdin-imx8mp-15230103
------------------------------------------------------------

Hardware info
------------------------------------------------------------
HW model:                 Toradex Verdin iMX8M Plus WB on Verdin Development Board
Toradex version:          0058 V1.1B
Serial number:            15230103
Processor arch:           aarch64
------------------------------------------------------------

Hi, Jeremia

I have followed your instructions:
I have stop the docker portainer with its ID that I have found issuing the command : docker stats.

but, when I launch the command specified in the document you’ve specified Reset Portainer Admin Password

I have the following error :face_with_head_bandage:

torizon@verdin-imx8mp-15230103:~$ docker run --rm -v portainer_data:/data portainer/helper-reset-password
Unable to find image 'portainer/helper-reset-password:latest' locally
latest: Pulling from portainer/helper-reset-password
6dcde7e3d378: Pull complete
a565240bcc59: Pull complete
Digest: sha256:2ce11ce356218a49420e2632e1b854c2aca9657f2412edb95ac60814f83635e6
Status: Downloaded newer image for portainer/helper-reset-password:latest
2024/03/29 10:19:43 Unable to locate /data/portainer.db on disk

Can you help me please on this topic ?

Thx.

@flepron,

Run this command:

docker run --rm -v torizon_portainer_data:/data portainer/helper-reset-password

Notice we’re targeting torizon_portainer_data instead of just portainer_data. You’ll then see something like this:

{"level":"info","filename":"portainer.db","time":"2024-03-29T17:59:12Z","message":"loading PortainerDB"}
2024/03/29 17:59:13 Password successfully updated for user: admin
2024/03/29 17:59:13 Use the following password to login: GYag+0Eb_=Uo14i%(D]}m92A53V\xh6l

Use the generated password to log-in to Portainer. Then via the Portainer UI you can change the password to something else.

Best Regards,
Jeremias

1 Like