0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

コミュニティ版のDifyを入れているUbuntuサーバーに入ってパスワードリセットをしようという情シスタスクです。

パスワードリセット

うちのスクールの資料問い合わせでDifyのチャットフローを置いてみてますが、パスワードリセット用のメール送信でSMTP設定をしてないのでメールが送られてきません。

Difyの

  • ホストからSSHでVPSへ
$ ssh ubuntu@xx.xx.xx.xx
  • docker-apiのコンテナを見つける
$ docker ps

CONTAINER ID   IMAGE                                       COMMAND                  CREATED        STATUS                  PORTS                                                                          NAMES
(省略)

0a16127d6254   langgenius/dify-api:1.7.1                   "/bin/bash /entrypoi…"   2 months ago   Up 10 hours             xxxx/tcp                                                                       docker-api-1

(省略)

docker-api-1となってました。たぶんデフォですね。

パスワードリセットのコマンド

コンテナ内に入らずVPSのターミナルで以下を実行

$ docker exec -it docker-api-1 flask reset-password
2025-11-05 15:24:15.365 INFO [MainThread] [utils.py:164] - NumExpr defaulting to 4 threads.
Email: (パスワードリセットしたいアカウントのメールアドレス)
New password: (パスワード)
Password confirm: (パスワード確認)

これでパスワードリセットができて無事にログインできました。

CleanShot 2025-11-06 at 00.27.42.png

最初ChatGPTに聞いてPostgreSQLのコマンドで直接っぽいやり方を指示されてうまくいかない。。。となったので同じミスしないように記録しておきます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?