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?

More than 3 years have passed since last update.

【docker + vsftpd】複数ネットワークから連続でアップロードを行うと失敗する

Posted at

dockerとかよく分からなくて、他社が構築したサーバだったのでダダハマリしたorz

事象

複数ネットワークから連続でアップロードを行うと失敗する。
再現性はあるけど絶対起こるわけでもない。

原因

・dockerはフォアグラウンドのプロセスのみを維持し、それ以外はexitしてリソースを解放する
・vsftpdは転送作業が正常に終了するとバックグラウンドになる
→ configで「background=NO」としても駄目だった
・vsftpdのコンテナに「restart: always」が設定されていたので、exitした後、新しいプロセスでvsftpdは再起動される
→ この再起動中にアップロードが失敗する

解決方法

dockerがexitしないようにコンテナに別のフォアグラウンドプロセスを常駐させる。

参考

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?