Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
348 views
in Technique[技术] by (71.8m points)

alibaba cloud - Failed to start gunicorn.service: Unit gunicorn.service is masked

I am trying to deploy django web application on alibabacloud everything seems to be working perfectly(running gunicorn --bind 0.0.0.0:8000 project_name.wsgi on virtual environment)

Then after deactivating the virtual environment and setting up

[Unit]
Description=gunicorn daemon
After=network.target

[Service]
User=admin
Group=www-data
WorkingDirectory=/home/admin/project_name
ExecStart=/home/admin/project_name/myprojectenv/bin/gunicorn --access-logfile - --workers 3 --bind 
unix:/home/admin/project_name/project_name.sock project_name.wsgi:application

in /etc/systemd/system/gunicorn.service then running sudo systemctl start gunicorn I keep getting the error

Failed to start gunicorn.service: Unit gunicorn.service is masked.

Please how can I fix this?

I have tried systemctl unmask gunicorn.socket but it keeps showing me the error

Unit gunicorn.socket does not exist, proceeding anyway.
Failed to unmask unit: The name org.freedesktop.PolicyKit1 was not provided 
by any .service files
question from:https://stackoverflow.com/questions/66046658/failed-to-start-gunicorn-service-unit-gunicorn-service-is-masked

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...