[ckan-dev] Cannot kill ckan process
Stefan Oderbolz
stefan.oderbolz at liip.ch
Mon Aug 29 12:22:38 UTC 2016
This is actually a feature: if you kill a daemon ungracefully (i.e. using
kill -9 or the like), your system (e.g. systemd) detects that and
automatically restarts the daemon. So the clean way is to start/and stop
the services and not just kill the processes.
On Mon, Aug 29, 2016 at 12:25 PM, Alan Tygel <alantygel at gmail.com> wrote:
> Hi Stefan,
>
> Thanks for the answer!
>
> Indeed, restarting Apache is a "shortcut" to restart CKAN (and thus make
> my changes effective).
>
> However, I'm still wondering why I cannot just kill the process...
>
> thanks again, best,
> alan
>
> On Mon, Aug 29, 2016 at 4:17 AM, Stefan Oderbolz <stefan.oderbolz at liip.ch>
> wrote:
>
>> Hi Alan,
>>
>> if CKAN runs under Apache and nginx, then you need to stop the apache and
>> nginx daemons (depending on your OS, the apache daemon might also be called
>> "httpd").
>>
>> Best regards, Stefan
>>
>> On Sun, Aug 28, 2016 at 10:49 PM, Alan Tygel <alantygel at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> For some reason, I'm not able to stop my ckan process in order to
>>> restart it.
>>>
>>> I've already try:
>>>
>>> 1) paster serve --stop-daemon /etc/ckan/default/production.ini
>>>
>>> but
>>>
>>> No PID file exists in paster.pid
>>>
>>> 2) ps -aux1 | grep ckan
>>>
>>> i get 2 processes like this:
>>>
>>> www-data 22661 0.6 4.3 990936 183828 ? Sl 17:29 0:05
>>> ckan_default -k start
>>> www-data 22662 0.8 4.3 990940 184060 ? Sl 17:29 0:06
>>> ckan_default -k start
>>>
>>> and 9 other related to postgres. However, when I kill -9 these
>>> processes, they automatically restart with other PIDs .
>>>
>>> 3) look into /var/log/apache2/ckan_default.error.log
>>> In this cases, I get messages like:
>>> [Sun Aug 28 17:42:55.559648 2016] [:error] [pid 22661] /dataset render
>>> time 0.098 seconds
>>> [Sun Aug 28 17:42:57.666688 2016] [:error] [pid 22662] /dataset render
>>> time 0.086 seconds
>>>
>>> which refer to the same PID as above.
>>>
>>> So please: how can I stop this process?
>>>
>>> My CKAN runs under nginx and apache server.
>>>
>>> best,
>>> alan
>>>
>>> --
>>> Programa de Pós-Graduação em Informática - PPGI/UFRJ
>>> EITA - Educação, Informação e Tecnologias para Autogestão
>>> Núcleo de Solidariedade Técnica - Soltec/UFRJ
>>> <http://www.soltec.ufrj.br>
>>> http://www.cirandas.net/alantygel
>>> http://www.contraosagrotoxicos.org
>>>
>>> _______________________________________________
>>> ckan-dev mailing list
>>> ckan-dev at lists.okfn.org
>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>>
>>>
>>
>>
>> --
>> Liip AG // Limmatstrasse 183 // CH-8005 Zürich
>> Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>
>>
>
>
> --
> Programa de Pós-Graduação em Informática - PPGI/UFRJ
> EITA - Educação, Informação e Tecnologias para Autogestão
> Núcleo de Solidariedade Técnica - Soltec/UFRJ <http://www.soltec.ufrj.br>
> http://www.cirandas.net/alantygel
> http://www.contraosagrotoxicos.org
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
--
Liip AG // Limmatstrasse 183 // CH-8005 Zürich
Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160829/9ce4a845/attachment-0003.html>
More information about the ckan-dev
mailing list