Issue with Service that i Created

Having Issue with Service that i Created.

 gunicorn --bind wsgi:application  

This works well no issue at all.

But with the Service, I get an error.

Description=Gunicorn instance to serve lolf
Wants =
After =

ExecStart=/home/lolfbw/lolf/lolfenv/bin/gunicorn --workers 3 --bind unix:lolf.sock -m 007 wsgi


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 wsgi:application  

Any Idea why is that?

I am using Python3.9.


Submit an 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:

Let me know how it goes. Regards, Bobby