No, no, no - this is not the way to do it. You don't need to manually kill processes.

You need proper startup scripts to properly solve this. Did you follow the advice from https://docs.qgis.org/3.16/en/docs/server_manual/getting_started.html#nginx-http-server with spawn-fcgi or ?

In case of Apache FCGI is started from within the Web server, in case of NGINX they run independently. You need to use something like spawn-fcgi or fcgiwrap.

How does your complete .service file or startup script look like?

Greetings,

Andreas

On 2021-04-30 16:10, [email protected] wrote:

Dear All,
I have found a workaround. Killing all working QGIS Server processes works. Nginx will recreate new ones with refreshed resources.

sudo pkill qgis_mapserv

Regards,

EnviroSolutions Sp. z o. o.
Michał Włoga
tel: +48 607 059 157
[email protected]
www.envirosolutions.pl [1]

Pobieracz Danych GUGiK [2] - laureat nagrody GUGiK na najlepsze wykorzystanie danych i usług GUGiK w 2020 r.

From: QGIS-Developer [mailto:[email protected]] On Behalf Of [email protected]
Sent: Friday, April 30, 2021 3:31 PM
To: 'Andreas Neumann' <[email protected]>
Cc: 'qgis-developer' <[email protected]>
Subject: Re: [QGIS-Developer] reload QGIS Server plugin

Neither. Restarting/realoading nginx does not terminate active qgis server processes. At least with my nginx configuration:

upstream qgis-server_backend {

server unix:/var/run/qgis-server-1.sock;

server unix:/var/run/qgis-server-2.sock;

server unix:/var/run/qgis-server-3.sock;

server unix:/var/run/qgis-server-4.sock;

}

Regards,

EnviroSolutions Sp. z o. o.
Michał Włoga
tel: +48 607 059 157
[email protected]
www.envirosolutions.pl [1]

Pobieracz Danych GUGiK [2] - laureat nagrody GUGiK na najlepsze wykorzystanie danych i usług GUGiK w 2020 r.

From: Andreas Neumann [mailto:[email protected]]
Sent: Friday, April 30, 2021 3:11 PM
To: [email protected]
Cc: Andreas Neumann <[email protected]>; qgis-developer <[email protected]>
Subject: Re: [QGIS-Developer] reload QGIS Server plugin

Hi Michał,

Which one does not work? The "reload" or the "restart" command?

The latter should definitely work - otherwise I am really puzzled ...

Greetings,

Andreas

On Fri, 30 Apr 2021 at 14:54, <[email protected]> wrote:

Hi Andreas,

Unfortunately your approach does not work (mine also).

Some threads of QGIS Server have not updated a plugin so that I'm receiving different responses from QGIS Server when using different sockets.

Regards,

EnviroSolutions Sp. z o. o.
Michał Włoga
tel: +48 607 059 157
[email protected]
www.envirosolutions.pl [1]

Pobieracz Danych GUGiK [2] - laureat nagrody GUGiK na najlepsze wykorzystanie danych i usług GUGiK w 2020 r.

From: Andreas Neumann [mailto:[email protected]]
Sent: Wednesday, April 28, 2021 9:11 AM
To: [email protected]
Cc: [email protected]
Subject: Re: [QGIS-Developer] reload QGIS Server plugin

Hi,

No - "_systemctl daemon-reload_" is only useful and recommended if you change something in your daemon/service configuration, which is not the case when you want to reload a QGIS server plugin.

It should be enough to reload or restart your webserver:

systemctl reload nginx

or

systemctl restart nginx

or whatever the nginx webserver daemon is called on your system.

Greetings,

Andreas

On 2021-04-28 08:43, [email protected] wrote:

Regarding to my question I found an answer:

The following command seems to be sufficient:

_systemctl daemon-reload_

Regards,

EnviroSolutions Sp. z o. o.
Michał Włoga
tel: +48 607 059 157
[email protected]
www.envirosolutions.pl [1]

Pobieracz Danych GUGiK [2] - laureat nagrody GUGiK na najlepsze wykorzystanie danych i usług GUGiK w 2020 r.

From: QGIS-Developer [mailto:[email protected]] On Behalf Of [email protected]
Sent: Wednesday, April 28, 2021 8:12 AM
To: [email protected]
Subject: [QGIS-Developer] reload QGIS Server plugin

Hello,

I have QGIS Server installed on ubuntu 20 with nginx + sockets. Is there a way to reload a server plugin other than restarting the host?

Regards,

EnviroSolutions Sp. z o. o.
Michał Włoga
tel: +48 607 059 157
[email protected]
www.envirosolutions.pl [1]

Pobieracz Danych GUGiK [2] - laureat nagrody GUGiK na najlepsze wykorzystanie danych i usług GUGiK w 2020 r.

_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

--

--
Andreas Neumann

QGIS.ORG [3] board member (treasurer)



Links:
------
[1] http://www.envirosolutions.pl/szkolenia
[2] https://www.envirosolutions.pl/news/118/129/Wtyczka-QGIS---Pobieracz-Danych-GUGiK.html
[3] http://QGIS.ORG
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to