open-webui / docs

https://docs.openwebui.com
https://docs.openwebui.com
120 stars 129 forks source link

Update "Resetting Your Admin Password" doc #233

Open zanagraf opened 3 weeks ago

zanagraf commented 3 weeks ago

Is your feature request related to a problem? Please describe. Update "Resetting Your Admin Password" as docker command isn't actualise

Describe the solution you'd like have the good command or a documented one of : docker run --rm -v open-webui:/data alpine/socat EXEC:"bash -c 'apk add sqlite && echo UPDATE auth SET password='\''HASH'\'' WHERE email='\''admin@example.com'\''; | sqlite3 /data/webui.db'", STDIO

Describe alternatives you've considered I tried to replace 'alpine/socat' by my image name 'ghcr.io/open-webui/open-webui' but i got this error : 'docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "EXEC:bash -c 'apk add sqlite && echo UPDATE auth SET password='\''y0$/LKFe9pfPXCzioOrGGru4ulRoSsfIkJVhiobfvJbH9WO2LAGehpLG'\'' WHERE email='\''e@mail.com'\''; | sqlite3 /data/webui.db',": stat EXEC:bash -c 'apk add sqlite && echo UPDATE auth SET password='\''y0$/LKFe9pfPXCzioOrGGru4ulRoSsfIkJVhiobfvJbH9WO2LAGehpLG'\'' WHERE email='\''e@mail.com'\''; | sqlite3 /data/webui.db',: no such file or directory: unknown.' I let the hash as it is because i'll change them after.

Additional context Local docker compose with searXNG, try to reset my password after an docker update.

stumblebot commented 3 weeks ago

I also ran into this. I ended up just deleting the volume and starting over.

zanagraf commented 1 week ago

I'll try that. I'm yet on a new system then no cache or local files will change something ^^