Opened 12 months ago
Closed 10 months ago
#2371 closed defect (fixed)
QGIS Server demo problems
|Reported by:||darkblueb||Owned by:|
build93 test shows
warning: Non-existing plugin: IdentifyRegion
[Wed Jun 22 22:16:15.753009 2022] [mpm_prefork:notice] [pid 1239] AH00163: Apache/2.4.52 (Ubuntu) mod_fcgid/2.3.9 mod-mapcache/1.12.0 mod_wsgi/4.9.0 Python/3.10 configured -- resuming normal operations [Wed Jun 22 22:16:15.753082 2022] [core:notice] [pid 1239] AH00094: Command line: '/usr/sbin/apache2' Application path not initialized Application path not initialized Application path not initialized Application path not initialized QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-www-data' QFSFileEngine::open: No file name specified Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. ERROR: Auth db directory path could not be created "Loading native module /usr/lib/qgis/server/libdummy.so" "Loading native module /usr/lib/qgis/server/liblandingpage.so" "Loading native module /usr/lib/qgis/server/libwcs.so" "Loading native module /usr/lib/qgis/server/libwfs.so" "Loading native module /usr/lib/qgis/server/libwfs3.so" "Loading native module /usr/lib/qgis/server/libwms.so" "Loading native module /usr/lib/qgis/server/libwmts.so" <string>:1: DeprecationWarning: setapi() is deprecated
Change history (8)
comment:1 by , 11 months ago
comment:3 by , 11 months ago
I am not sure if home user folder permissions are related to this issue. Does QGIS Server read anything from the user home folder?
follow-up: 5 comment:4 by , 11 months ago
This is definitely a HUGE bug, QGIS Server should NOT force a user make his home folder public.
I have changed the permissions on /usr/local/share/qgis to be more relaxed, but setting 755 on /home/user is definitely not acceptable.
We need some help to configure QGIS Server in a way to not read anything from /home/
comment:5 by , 11 months ago
Okay, then changing QGIS project file's shape file paths from
/usr/local/share/data/natural_earth2/*.shp may make sense.
Well, the following QGIS project file reads shape files from
I will try to change those, later.
By the way, the following English article describes Ubuntu 22.04 home user folder permission change (755=>750).
And it also mentions that my suggestion way is "less secure" one. :)
comment:6 by , 11 months ago
I changed QGIS project file's shape path in the following PR.
comment:7 by , 10 months ago
Thank you, I have merged and going to test in the next nightly build.
comment:8 by , 10 months ago
|Status:||new → closed|
Fixed in build148
warning: Non-existing plugin: IdentifyRegionissue is still remaining, but to show natural earth map on the browser client, just the following permission setting seems to be enough.
I found it from the following Japanese article.
By the way, during the investigation, I modified
/etc/apache2/conf-available/qgis-fcgid.confas follows, then run
sudo service apache2 --full-restart.
Just additional information.