By nabeinz
Having Issue with Service that i Created.
gunicorn --bind 0.0.0.0:5000 wsgi:application
This works well no issue at all.
But with the Service, I get an error.
[Unit]
Description=Gunicorn instance to serve lolf
Wants = network-online.target
After = network.target network-online.target
[Service]
User=lolfbwu1
Group=www-data
WorkingDirectory=/home/lolfbw/lolf
Environment="PATH=/home/lolfbw/lolf/lolfenv/bin"
ExecStart=/home/lolfbw/lolf/lolfenv/bin/gunicorn --workers 3 --bind unix:lolf.sock -m 007 wsgi
[Install]
WantedBy=multi-user.target
Error i am getting:
gunicorn[27945]: final_start = datetime.fromisoformat(formated_start).timestamp()
gunicorn[27945]: ValueError: Invalid isoformat string: ' 00:00:00'
But I don’t get this error when running it as
>> gunicorn --bind 0.0.0.0:5000 wsgi:application
Any Idea why is that?
I am using Python3.9.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
I believe that it might be a problem with the Socket, I could suggest giving the full path to the socket.
Also have you tried using the Unit file from this tutorial here:
Let me know how it goes. Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.