Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 部署Django、supervisorctl异常终止_Python_Django_Nginx_Gunicorn_Supervisord - Fatal编程技术网

Python 部署Django、supervisorctl异常终止

Python 部署Django、supervisorctl异常终止,python,django,nginx,gunicorn,supervisord,Python,Django,Nginx,Gunicorn,Supervisord,我正试图部署django。因此,在一个干净的VPS中安装了所有内容。我可以使用unicorn运行服务器,但我尝试使用supervisord。所以我像过去一样遵循了教程,但现在当我使用sudo-supervisorctl start-uniprogress启动应用程序时,我收到一个错误,说uniprogress:error(异常终止)。您可以在下面找到日志文件 文件:/opt/myapps/logs/gunicorn\u supervisor.log Starting uniprogress as

我正试图部署django。因此,在一个干净的VPS中安装了所有内容。我可以使用unicorn运行服务器,但我尝试使用supervisord。所以我像过去一样遵循了教程,但现在当我使用
sudo-supervisorctl start-uniprogress
启动应用程序时,我收到一个错误,说
uniprogress:error(异常终止)
。您可以在下面找到日志文件

文件:/opt/myapps/logs/gunicorn\u supervisor.log

Starting uniprogress as uniusr
2014-04-24 04:54:30 [18053] [INFO] Starting gunicorn 18.0
Traceback (most recent call last):
  File "/opt/myapps/uniprogress/../bin/gunicorn", line 9, in <module>
    load_entry_point('gunicorn==18.0', 'console_scripts', 'gunicorn')()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 71, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 143, in run
    Arbiter(self).run()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 172, in run
    self.start()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 134, in start
    self.LISTENERS = create_sockets(self.cfg, self.log)
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/sock.py", line 198, in create_sockets
    sock = sock_type(addr, conf, log)
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/sock.py", line 99, in __init__
    os.remove(addr)
OSError: [Errno 13] Permission denied: '/opt/myapps/run/gunicorn.sock'
Starting uniprogress as uniusr
2014-04-24 04:54:31 [18064] [INFO] Starting gunicorn 18.0
Traceback (most recent call last):
  File "/opt/myapps/uniprogress/../bin/gunicorn", line 9, in <module>
    load_entry_point('gunicorn==18.0', 'console_scripts', 'gunicorn')()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 71, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 143, in run
    Arbiter(self).run()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 172, in run
    self.start()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 134, in start
    self.LISTENERS = create_sockets(self.cfg, self.log)
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/sock.py", line 198, in create_sockets
    sock = sock_type(addr, conf, log)
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/sock.py", line 99, in __init__
    os.remove(addr)
OSError: [Errno 13] Permission denied: '/opt/myapps/run/gunicorn.sock'
Starting uniprogress as uniusr
2014-04-24 04:54:31 [18064] [INFO] Starting gunicorn 18.0
Traceback (most recent call last):
  File "/opt/myapps/uniprogress/../bin/gunicorn", line 9, in <module>
    load_entry_point('gunicorn==18.0', 'console_scripts', 'gunicorn')()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 71, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 143, in run
    Arbiter(self).run()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 172, in run
    self.start()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 134, in start
    self.LISTENERS = create_sockets(self.cfg, self.log)
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/sock.py", line 198, in create_sockets
    sock = sock_type(addr, conf, log)
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/sock.py", line 99, in __init__
    os.remove(addr)
OSError: [Errno 13] Permission denied: '/opt/myapps/run/gunicorn.sock'
Starting uniprogress as uniusr
2014-04-24 04:54:34 [18075] [INFO] Starting gunicorn 18.0
Traceback (most recent call last):
  File "/opt/myapps/uniprogress/../bin/gunicorn", line 9, in <module>
    load_entry_point('gunicorn==18.0', 'console_scripts', 'gunicorn')()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 71, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 143, in run
    Arbiter(self).run()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 172, in run
    self.start()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 134, in start
    self.LISTENERS = create_sockets(self.cfg, self.log)
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/sock.py", line 198, in create_sockets
    sock = sock_type(addr, conf, log)
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/sock.py", line 99, in __init__
    os.remove(addr)
OSError: [Errno 13] Permission denied: '/opt/myapps/run/gunicorn.sock'
Starting uniprogress as uniusr
2014-04-24 04:54:37 [18086] [INFO] Starting gunicorn 18.0
Traceback (most recent call last):
  File "/opt/myapps/uniprogress/../bin/gunicorn", line 9, in <module>
    load_entry_point('gunicorn==18.0', 'console_scripts', 'gunicorn')()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 71, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 143, in run
    Arbiter(self).run()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 172, in run
    self.start()
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 134, in start
    self.LISTENERS = create_sockets(self.cfg, self.log)
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/sock.py", line 198, in create_sockets
    sock = sock_type(addr, conf, log)
  File "/opt/myapps/local/lib/python2.7/site-packages/gunicorn/sock.py", line 99, in __init__
    os.remove(addr)
OSError: [Errno 13] Permission denied: '/opt/myapps/run/gunicorn.sock'
作为uniusr启动uniprogress
2014-04-24 04:54:30[18053][INFO]启动gunicorn 18.0
回溯(最近一次呼叫最后一次):
文件“/opt/myapps/uniprogress/。/bin/gunicorn”,第9行,在
加载入口点('gunicorn==18.0','console\u scripts','gunicorn')()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/app/wsgiapp.py”,第71行,运行中
WSGIApplication(“%(程序)s[选项][应用程序模块]”)。运行()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/app/base.py”,第143行,运行中
仲裁者(self.run)()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/arbiter.py”,第172行,运行中
self.start()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/arbiter.py”,第134行,开始
self.LISTENERS=创建_套接字(self.cfg、self.log)
文件“/opt/myapps/local/lib/python2.7/site-packages/gunicorn/sock.py”,第198行,在create_-sockets中
sock=sock\u类型(地址、配置、日志)
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/sock.py”,第99行,在__
删除操作系统(添加)
OSError:[Errno 13]权限被拒绝:'/opt/myapps/run/gunicorn.sock'
作为uniusr启动uniprogress
2014-04-24 04:54:31[18064][INFO]启动gunicorn 18.0
回溯(最近一次呼叫最后一次):
文件“/opt/myapps/uniprogress/。/bin/gunicorn”,第9行,在
加载入口点('gunicorn==18.0','console\u scripts','gunicorn')()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/app/wsgiapp.py”,第71行,运行中
WSGIApplication(“%(程序)s[选项][应用程序模块]”)。运行()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/app/base.py”,第143行,运行中
仲裁者(self.run)()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/arbiter.py”,第172行,运行中
self.start()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/arbiter.py”,第134行,开始
self.LISTENERS=创建_套接字(self.cfg、self.log)
文件“/opt/myapps/local/lib/python2.7/site-packages/gunicorn/sock.py”,第198行,在create_-sockets中
sock=sock\u类型(地址、配置、日志)
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/sock.py”,第99行,在__
删除操作系统(添加)
OSError:[Errno 13]权限被拒绝:'/opt/myapps/run/gunicorn.sock'
作为uniusr启动uniprogress
2014-04-24 04:54:31[18064][INFO]启动gunicorn 18.0
回溯(最近一次呼叫最后一次):
文件“/opt/myapps/uniprogress/。/bin/gunicorn”,第9行,在
加载入口点('gunicorn==18.0','console\u scripts','gunicorn')()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/app/wsgiapp.py”,第71行,运行中
WSGIApplication(“%(程序)s[选项][应用程序模块]”)。运行()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/app/base.py”,第143行,运行中
仲裁者(self.run)()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/arbiter.py”,第172行,运行中
self.start()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/arbiter.py”,第134行,开始
self.LISTENERS=创建_套接字(self.cfg、self.log)
文件“/opt/myapps/local/lib/python2.7/site-packages/gunicorn/sock.py”,第198行,在create_-sockets中
sock=sock\u类型(地址、配置、日志)
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/sock.py”,第99行,在__
删除操作系统(添加)
OSError:[Errno 13]权限被拒绝:'/opt/myapps/run/gunicorn.sock'
作为uniusr启动uniprogress
2014-04-24 04:54:34[18075][INFO]启动gunicorn 18.0
回溯(最近一次呼叫最后一次):
文件“/opt/myapps/uniprogress/。/bin/gunicorn”,第9行,在
加载入口点('gunicorn==18.0','console\u scripts','gunicorn')()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/app/wsgiapp.py”,第71行,运行中
WSGIApplication(“%(程序)s[选项][应用程序模块]”)。运行()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/app/base.py”,第143行,运行中
仲裁者(self.run)()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/arbiter.py”,第172行,运行中
self.start()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/arbiter.py”,第134行,开始
self.LISTENERS=创建_套接字(self.cfg、self.log)
文件“/opt/myapps/local/lib/python2.7/site-packages/gunicorn/sock.py”,第198行,在create_-sockets中
sock=sock\u类型(地址、配置、日志)
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/sock.py”,第99行,在__
删除操作系统(添加)
OSError:[Errno 13]权限被拒绝:'/opt/myapps/run/gunicorn.sock'
作为uniusr启动uniprogress
2014-04-24 04:54:37[18086][INFO]启动gunicorn 18.0
回溯(最近一次呼叫最后一次):
文件“/opt/myapps/uniprogress/。/bin/gunicorn”,第9行,在
加载入口点('gunicorn==18.0','console\u scripts','gunicorn')()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/app/wsgiapp.py”,第71行,运行中
WSGIApplication(“%(程序)s[选项][应用程序模块]”)。运行()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/app/base.py”,第143行,运行中
仲裁者(self.run)()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/arbiter.py”,第172行,运行中
self.start()
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/arbiter.py”,第134行,开始
self.LISTENERS=创建_套接字(self.cfg、self.log)
文件“/opt/myapps/local/lib/python2.7/site-packages/gunicorn/sock.py”,第198行,在create_-sockets中
sock=sock\u类型(地址、配置、日志)
文件“/opt/myapps/local/lib/python2.7/site packages/gunicorn/sock.py”,林
sudo chown -R uniusr:users /opt/myapps
sudo chmod -R g+w /opt/myapps