Sorry, I meant sudo chown -R apache: /mnt/upload
.
It now worked. Thanks so much.
Hi, I’m experiencing again uploading a shapefile for L4 processing.
I’ve tried setting /mnt/upload/
to 777
and giving ownership to apache
.
But I’m still getting this error message:
Unable to open the shape file (Your .zip file was uploaded and unpacked successfully)
I also ran check_shp.py
:
The first try it ran a bit an then resulted in this error:
Traceback (most recent call last):
File “/var/www/html/scripts/check_shp.py”, line 135, in
sys.exit(main())
File “/var/www/html/scripts/check_shp.py”, line 91, in main
if g0.Overlaps(g1) and g0.Intersection(g1).Area() > 0:
File “/usr/lib64/python2.7/site-packages/osgeo/ogr.py”, line 4809, in Overlaps
return _ogr.Geometry_Overlaps(self, *args)
ValueError: Received a NULL pointer.
Re-launching it gave me this error:
Traceback (most recent call last):
File “/var/www/html/scripts/check_shp.py”, line 135, in
sys.exit(main())
File “/var/www/html/scripts/check_shp.py”, line 50, in main
if not geometry.IsValid():
AttributeError: ‘NoneType’ object has no attribute ‘IsValid’
Here’s the output for ls -la /mnt/upload
:
drwxrwxrwx. 22 wfp wfp 4096 Apr 19 18:32 .
drwxrwsr-x. 4 wfp wfp 4096 Dec 19 14:57 ..
drwxr-xr-x. 3 apache apache 4096 Jan 29 09:31 Aut
drwxr-xr-x. 3 apache apache 4096 Jan 30 16:02 LSPTH170
drwxr-xr-x. 3 apache apache 4096 Jan 30 16:02 LSPTH171
drwxr-xr-x. 3 apache apache 4096 Jan 30 16:01 LSPTH172
drwxr-xr-x. 3 apache apache 4096 Jan 30 16:01 LSPTH173
drwxr-xr-x. 5 apache apache 4096 Jan 30 16:01 LSPTH174
drwxr-xr-x. 4 apache apache 4096 Jan 30 16:01 LSPTH175
drwxr-xr-x. 4 apache apache 4096 Jan 30 16:01 LSPTH176
drwxr-xr-x. 4 apache apache 4096 Jan 30 16:00 LSPTH178177
drwxr-xr-x. 3 apache apache 4096 Mar 13 13:27 Ls171_test
drwxr-xr-x. 3 apache apache 4096 Mar 13 11:44 SSD_COUNTRY_FULL_TEST
drwxr-xr-x. 4 apache apache 4096 Apr 20 15:58 SSD_JANNUARY_FULL
drwxr-xr-x. 5 apache apache 4096 Dec 27 10:30 SouthSudan
drwxr-xr-x. 11 apache apache 4096 Jan 15 09:10 SouthSudan_NorthBahreGhazal_Warrap
drwxr-xr-x. 3 apache apache 4096 Dec 29 15:08 SouthSudan_cntrySimple
drwxr-xr-x. 15 apache apache 4096 Apr 20 16:26 South_Sudan
drwxr-xr-x. 3 apache apache 4096 Dec 28 16:25 Southsudan_full
drwxr-xr-x. 3 apache apache 4096 Dec 19 15:45 T35PNK
drwxr-xr-x. 3 apache apache 4096 Jan 29 09:26 Test_karam
drwxr-xr-x. 4 apache apache 4096 Dec 22 09:36 Testsite
Thanks
@val Are you on an older version of the system? There was a bug where that crash could occur when a feature has no associated geometry, but it was fixed in the meanwhile, as far as I know.