-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
geo tif upload via API results in "failed to create coverage/layer" error #11518
Comments
Could you please add some GeoServer Logs? The logs can be found in its data dir: |
Geonode and Geoserver should be able to access the default upload folder (MEDIA_ROOT). FILE_UPLOAD_DIRECTORY_PERMISSIONS Information about how to set it up are here: |
I'm facing the same problem on 4.1.x. How do I solve this? On closer inspection, the data doesn't actually get saved on disc "uploaded/tempcnn/data.tif" and Geoserver can't access it. Vector files works, only raster (tif) images doesn't. |
Hi @Raji-Ahmad |
Thanks for your reply @mattiagiupponi Setting the FILE_UPLOAD_DIRECTORY_PERMISSIONS and FILE_UPLOAD_PERMISSIONS to 0o777 doesn't fix it. All Vector files work perfectly. Only ."tif" raster images have this issue. Vector files were saved in /opt/geonode/geonode/uploaded/ and accessed successfully. This is geoserver log:
|
For the Vector data geoserver does not need to access directly the file while for raster it needs. Are you running the system in docker? From what i see, the path where your file are saved is not the default one that the The defaults one are the following
Because are mounted in a volume and shared between the containers, while Can you please do the following:
Please change ps: please use the create-envfile.py script available to generate the appropiate env file (doc) |
I'm not running on Docker. While debugging, I discovered that the file dets were created in the correct path, the same as a vector file. The reason I thought it wasn't created was that the Geonode importer deletes the file automatically when an exception happens. See this: I was able to track the problem to importer/handlers/common/raster.py Then final call to geoserver catalog gives error code 500: |
I'm probably not setting the FILE_UPLOAD_DIRECTORY_PERMISSIONS and FILE_UPLOAD_PERMISSIONS well. This was what I used in settings.py; FILE_UPLOAD_DIRECTORY_PERMISSIONS = "0o777" |
Try by setting them as a number instead of a string
|
Setting them as a number worked. Thanks for the support. I couldn't find this in the documentation here. [https://docs.geonode.org/en/master/install/advanced/core/index.html](geonode installation ) Maybe it can be included. |
Hi @Raji-Ahmad In Django the values are mentioned here and here. But it might be worth to mention it, if you would like to contribute, please open a PR on the geonode-documentation repository. Meanwhile i'm going to close this issue |
FILE_UPLOAD_DIRECTORY_PERMISSIONS = 0o777 update which file ? |
sudo systemctl restart geonode-uwsgi.service not work |
Expected Behavior
I upload via command line curl call to API (with correct oauth application/token). I expect the execution job to say "status: running" or "status: finished".
Actual Behavior
I get
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: