Report this

What is the reason for this report?

Issue with Service that i Created

Posted on March 4, 2021

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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:

https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04

Let me know how it goes. Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.