Wanted to know whether this is a bug specific to gunicorn?

>
> pip show gunicorn
Name: gunicorn
Version: 20.0.2
Summary: WSGI HTTP Server for UNIX
Home-page: http://gunicorn.org


On Sun, Dec 15, 2019 at 9:58 PM Ram <ram.mullap...@gmail.com> wrote:

> I changed the files as follows but the error is the same.
>
>> cat /etc/systemd/system/gunicorn.socket
>> [Unit]
>> Description=gunicorn socket
>>
>> [Socket]
>> ListenStream=/run/gunicorn.sock
>> #ListenStream=/home/xx/myproject/myapp/myapp.sock
>>
>> [Install]
>> WantedBy=sockets.target
>>
>> $ cat /etc/systemd/system/gunicorn.service
>> [Unit]
>> Description=gunicorn daemon
>> Requires=gunicorn.socket
>> After=network.target
>>
>> [Service]
>> User=xx
>> Group=www-data
>> WorkingDirectory=/home/xx/myproject/myapp/myapp
>> WorkingDirectory=/home/xx/myproject/myapp
>> ExecStart=/home/xx/myproject/xxenv/bin/gunicorn \
>>           --access-logfile - \
>>           --workers 3 \
>>           --bind unix:/run/gunicorn.sock \
>>           myapp.wsgi:application
>>
>> [Install]
>> WantedBy=multi-user.target
>> $
>>
>>
> On Sun, Dec 15, 2019 at 3:28 PM Ram <ram.mullap...@gmail.com> wrote:
>
>> Hi Integr,
>>
>> Thank you for the answer but I don't see '--preload' option for the same
>> command. Am I missing anything?
>>
>>>
>>> $ sudo systemctl --preload gunicorn.service
>>>> systemctl: unrecognized option '--preload'
>>>>
>>> $ sudo systemctl status gunicorn.service --preload
>>> systemctl: unrecognized option '--preload'
>>> $ sudo systemctl --help | grep preload
>>>
>>
>> ~Ram
>>
>>
>>
>> On Sun, Dec 15, 2019 at 10:32 AM Integr@te System <
>> datacentral...@gmail.com> wrote:
>>
>>> Hi Issuer,
>>>
>>> Try to run command: --preload to whatsup with worker processes and app
>>> and server.
>>>
>>> On Sun, Dec 15, 2019, 13:32 Ram <ram.mullap...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I followed this document
>>>> <https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04>
>>>> and I’m hitting this error. Could you let me know what I’m missing? I tried
>>>> several things the whole day and nothing has worked? Please let me know if
>>>> you have any solution on this error?
>>>>
>>>> >>> $ sudo systemctl status gunicorn.socket
>>>> >>> Failed to dump process list, ignoring: No such file or directory
>>>> >>> ● gunicorn.socket - gunicorn socket
>>>> >>>    Loaded: loaded (/etc/systemd/system/gunicorn.socket; enabled;
>>>> vendor preset: enabled)
>>>> >>>    Active: active (listening) since Sun 2019-12-15 05:15:27 UTC;
>>>> 17s ago
>>>> >>>    Listen: /home/xx/myproject/myapp/myapp.sock (Stream)
>>>> >>>    CGroup: /system.slice/gunicorn.socket
>>>> >>>
>>>> >>> Dec 15 05:15:27 ubuntu-s-01 systemd[1]: Listening on gunicorn
>>>> socket.
>>>> >>>
>>>> >>>
>>>> >>> $ sudo systemctl status gunicorn.service
>>>> >>> ● gunicorn.service - gunicorn daemon
>>>> >>>    Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled;
>>>> vendor preset: enabled)
>>>> >>>    Active: failed (Result: exit-code) since Sun 2019-12-15 04:22:54
>>>> UTC; 53min ago
>>>> >>>  Main PID: 15788 (code=exited, status=1/FAILURE)
>>>> >>>
>>>> >>> Dec 15 04:22:54 ubuntu-s-01 gunicorn[15788]:     self.stop()
>>>> >>> Dec 15 04:22:54 ubuntu-s-01 gunicorn[15788]:   File
>>>> "/home/xx/myproject/xxenv/lib/python3.6/site-packages/gunicorn/arbi
>>>> >>> Dec 15 04:22:54 ubuntu-s-01 gunicorn[15788]:     time.sleep(0.1)
>>>> >>> Dec 15 04:22:54 ubuntu-s-01 gunicorn[15788]:   File
>>>> "/home/xx/myproject/xxkenv/lib/python3.6/site-packages/gunicorn/arbi
>>>> >>> Dec 15 04:22:54 ubuntu-s-01 gunicorn[15788]:     self.reap_workers()
>>>> >>> Dec 15 04:22:54 ubuntu-s-01 gunicorn[15788]:   File
>>>> "/home/xx/myproject/xxenv/lib/python3.6/site-packages/gunicorn/arbi
>>>> >>> Dec 15 04:22:54 ubuntu-s-01 gunicorn[15788]:     raise
>>>> HaltServer(reason, self.WORKER_BOOT_ERROR)
>>>> >>> Dec 15 04:22:54 ubuntu-s-01 gunicorn[15788]:
>>>> gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
>>>> >>> Dec 15 04:22:54 ubuntu-s-01 systemd[1]: gunicorn.service: Main
>>>> process exited, code=exited, status=1/FAILURE
>>>> >>> Dec 15 04:22:54 ubuntu-s-01 systemd[1]: gunicorn.service: Failed
>>>> with result 'exit-code'.
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to django-users+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CA%2BOi5F1FL%3D3eBo7KAu%3DsmSV%2BuCUnUHk7q32TdkkeVGMznUtp7Q%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CA%2BOi5F1FL%3D3eBo7KAu%3DsmSV%2BuCUnUHk7q32TdkkeVGMznUtp7Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAP5HUWrcFKT1y_Z0tkQ2qp5Gf-RJ9TPKu33Kmudka1sAu3rymw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAP5HUWrcFKT1y_Z0tkQ2qp5Gf-RJ9TPKu33Kmudka1sAu3rymw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BOi5F2kdDuAffZ%2B7fNnWjG3qhrCkAaOFF%3DA8qVFuGP_Kjo1MA%40mail.gmail.com.

Reply via email to