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.

Supervisorのバージョン確認コマンドで若干詰まった

Last updated at Posted at 2022-01-22

概要

  • Supervisorのバージョン確認コマンドで若干詰まったので簡単にまとめる。

詰まった内容

  • とあるサーバーで動作中のSupervisorのバージョン確認をしようとして下記コマンドを実行した。

    $ supervisorctl version
    
  • 下記の様にエラーが返された。どうやら当該のユーザーには実行権限がないそうだ。supervisorctlコマンドはrootユーザーじゃないといけないらしい。

    $ error: <class 'PermissionError'>, [Errno 13] Permission denied: file: /usr/local/lib/pythonX.X/site-packages/supervisor/xmlrpc.py line: 560
    
  • 下記コマンドを実行したがcommand not foundが帰ってくる。

    $ sudo supervisorctl version
    
  • 念の為当該のサーバーにrootユーザーでログインして下記コマンドを実行してもcommand not foundが帰ってくる(そりゃそうだ。)

    $ supervisorctl version
    

解決内容

  • rootユーザーにはsupervisorctlコマンドのパスが通ってないだけだった。下記の2通りで解決できる。
    1. rootユーザー以外で下記コマンドを実行する。

      $ sudo /usr/local/bin/supervisorctl version
      
    2. rootユーザーでログインして下記コマンドを実行する。

      $ /usr/local/bin/supervisorctl version
      
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?