[GeoNode-users] Failed Upload Dataset

Abdul Hamid ahamidplg at gmail.com
Mon Sep 23 22:33:51 PDT 2024


Hi Giovanni

Sorry for late respon your answer,

Here log taken from access.log on nginx internal proxy :

10.10.1.225 - - [24/Sep/2024:12:29:06 +0700] "GET 
/api/v2/executionrequest?filter%7Baction%7D=import&filter%7Bsource%7D=upload&page=1&page_size=99999 
HTTP/1.1" 200 38236 "https://geoportal.lahatkab.go.id/catalogue/" 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/129.0.0.0 Safari/537.36"
10.10.1.225 - - [24/Sep/2024:12:29:16 +0700] "GET 
/api/v2/executionrequest?filter%7Baction%7D=import&filter%7Bsource%7D=upload&page=1&page_size=99999 
HTTP/1.1" 200 38236 "https://geoportal.lahatkab.go.id/catalogue/" 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
10.10.1.225 - - [24/Sep/2024:12:29:16 +0700] "GET 
/api/v2/executionrequest?filter%7Baction%7D=import&filter%7Bsource%7D=upload&page=1&page_size=99999 
HTTP/1.1" 200 38236 "https://geoportal.lahatkab.go.id/catalogue/" 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
10.10.1.225 - - [24/Sep/2024:12:29:18 +0700] "POST 
/proxy/?url=http%3A%2F%2Fgeoportal.lahatkab.go.id%2Fapi%2Fv2%2Fuploads%2Fupload 
HTTP/1.1" 500 180699 "https://geoportal.lahatkab.go.id/catalogue/" 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
10.10.1.1 - - [24/Sep/2024:12:29:19 +0700] "HEAD / HTTP/1.0" 200 0 "-" "-"
10.10.1.225 - - [24/Sep/2024:12:29:19 +0700] "GET 
/api/v2/executionrequest?filter%7Baction%7D=import&filter%7Bsource%7D=upload&page=1&page_size=99999 
HTTP/1.1" 200 38236 "https://geoportal.lahatkab.go.id/catalogue/" 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
10.10.1.225 - - [24/Sep/2024:12:29:22 +0700] "GET 
/api/v2/executionrequest?filter%7Baction%7D=import&filter%7Bsource%7D=upload&page=1&page_size=99999 
HTTP/1.1" 200 38236 "https://geoportal.lahatkab.go.id/catalogue/" 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
10.10.1.225 - - [24/Sep/2024:12:29:26 +0700] "GET 
/api/v2/executionrequest?filter%7Baction%7D=import&filter%7Bsource%7D=upload&page=1&page_size=99999 
HTTP/1.1" 200 38236 "https://geoportal.lahatkab.go.id/catalogue/" 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
10.10.1.225 - - [24/Sep/2024:12:29:29 +0700] "GET 
/api/v2/executionrequest?filter%7Baction%7D=import&filter%7Bsource%7D=upload&page=1&page_size=99999 
HTTP/1.1" 200 38236 "https://geoportal.lahatkab.go.id/catalogue/" 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
10.10.1.225 - - [24/Sep/2024:12:29:32 +0700] "GET 
/api/v2/executionrequest?filter%7Baction%7D=import&filter%7Bsource%7D=upload&page=1&page_size=99999 
HTTP/1.1" 200 38236 "https://geoportal.lahatkab.go.id/catalogue/" 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"
10.10.1.225 - - [24/Sep/2024:12:29:35 +0700] "GET 
/api/v2/executionrequest?filter%7Baction%7D=import&filter%7Bsource%7D=upload&page=1&page_size=99999 
HTTP/1.1" 200 38236 "https://geoportal.lahatkab.go.id/catalogue/" 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0"

this log taken when I uploaded the dataset like : .shp file, after 
submited error warning appear. as information this geonode on behind nat 
( geononde server ip 10.10.1.222 and ip 10.10.1.255 reverse proxy 
(external proxy)


Br

Hamid

Pada 27/08/2024 15:48, Giovanni Allegri menulis:
> Take a look at the network requests performed during the upload. You 
> will probably see a few requests against the /proxy URL.
> If you report here those requests I might help you figuring out the 
> misconfiguration.
>
> Giovanni
>
> On Mon, Aug 26, 2024 at 3:37 PM Abdul Hamid <ahamidplg at gmail.com> wrote:
>
>     I'am running on ubuntu 22.04 via nginx its not running on docker,
>     site url using hostname, this is configuration : geonode with
>     nginx ---> reverse proxy (public ip), on SITEURL it's hostname self.
>
>     Br
>
>     Hamid
>
>     Pada 26/08/2024 17:24, Giovanni Allegri menulis:
>>     From logs, I suspect the upload is routed to the internal GeoNode
>>     proxy, which is unexpected.
>>     I think you have something wrong with your configs. Double-check
>>     the settings related to SITEURL.
>>     Is it a Docker?
>>
>>     Giovanni
>>
>>     On Mon, Aug 26, 2024 at 9:23 AM Abdul Hamid via geonode-users
>>     <geonode-users at lists.osgeo.org> wrote:
>>
>>         Hi all
>>
>>         I tried to upload ESRI data into geonode (using geonode
>>         4.2.5) but after selecting the file and clicking upload there
>>         was a failure, as shown in the image below
>>
>>         Geonode
>>
>>
>>         this is log taken from /var/log/geonode.log
>>
>>         Internal Server Error: /proxy/
>>         Traceback (most recent call last):
>>           File
>>         "/home/admina/.virtualenvs/geonode/lib/python3.10/site-packages/django/core/handlers/exception.py",
>>         line 47, in inner
>>             response = get_response(request)
>>           File
>>         "/home/adminkominfo/.virtualenvs/geonode/lib/python3.10/site-packages/django/core/handlers/base.py",
>>         line 181, in _get_response
>>             response = wrapped_callback(request, *callback_args,
>>         **callback_kwargs)
>>           File
>>         "/home/admina/.virtualenvs/geonode/lib/python3.10/site-packages/django/utils/decorators.py",
>>         line 130, in _wrapped_view
>>             response = view_func(request, *args, **kwargs)
>>           File "/opt/geonode/./geonode/proxy/views.py", line 185, in
>>         proxy
>>             _data = request.body.decode("utf-8")
>>           File
>>         "/home/admina/.virtualenvs/geonode/lib/python3.10/site-packages/django/http/request.py",
>>         line 330, in body
>>             raise RawPostDataException("You cannot access body after
>>         reading from request's data stream")
>>         django.http.request.RawPostDataException: You cannot access
>>         body after reading from request's data stream
>>
>>
>>         Thank You
>>
>>         Br
>>
>>         Hamid
>>
>>
>>         _______________________________________________
>>         geonode-users mailing list
>>         geonode-users at lists.osgeo.org
>>         https://lists.osgeo.org/mailman/listinfo/geonode-users
>>
>>
>>
>>     -- 
>>
>>     ==
>>
>>     GeoServer Professional Services from the experts!
>>
>>     Visit http://bit.ly/gs-services-us
>>     <http://bit.ly/gs-services-us>for more information.==Dott.
>>     Giovanni Allegri
>>
>>     Technical Lead / Project Manager
>>
>>     GeoSolutions Groupphone: +39 0584 962313cell:     +39 345 2815774
>>
>>     fax:      +39 0584 1660272 https://www.geosolutionsgroup.com/
>>     <https://www.geosolutionsgroup.com/>http://twitter.com/geosolutions_it
>>     <http://twitter.com/geosolutions_it>-------------------------------------------------------
>>
>>     Con riferimento alla normativa sul trattamento dei dati personali
>>     (Reg. UE 2016/679 - Regolamento generale sulla protezione dei
>>     dati “GDPR”), si precisa che ogni circostanza inerente alla
>>     presente email (il suo contenuto, gli eventuali allegati, etc.) è
>>     un dato la cui conoscenza è riservata al/i solo/i destinatario/i
>>     indicati dallo scrivente. Se il messaggio Le è giunto per errore,
>>     è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
>>     sarei comunque grato se potesse darmene notizia.This email is
>>     intended only for the person or entity to which it is addressed
>>     and may contain information that is privileged, confidential or
>>     otherwise protected from disclosure. We remind that - as provided
>>     by European Regulation 2016/679 “GDPR” - copying, dissemination
>>     or use of this e-mail or the information herein by anyone other
>>     than the intended recipient is prohibited. If you have received
>>     this email by mistake, please notify us immediately by telephone
>>     or e-mail.
>
>
>
> -- 
>
> ==
>
> GeoServer Professional Services from the experts!
>
> Visit http://bit.ly/gs-services-us <http://bit.ly/gs-services-us>for 
> more information.==Dott. Giovanni Allegri
>
> Technical Lead / Project Manager
>
> GeoSolutions Groupphone: +39 0584 962313cell:     +39 345 2815774
>
> fax:      +39 0584 1660272 https://www.geosolutionsgroup.com/ 
> <https://www.geosolutionsgroup.com/>http://twitter.com/geosolutions_it 
> <http://twitter.com/geosolutions_it>-------------------------------------------------------
>
> Con riferimento alla normativa sul trattamento dei dati personali 
> (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati 
> “GDPR”), si precisa che ogni circostanza inerente alla presente email 
> (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui 
> conoscenza è riservata al/i solo/i destinatario/i indicati dallo 
> scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a 
> cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato 
> se potesse darmene notizia.This email is intended only for the person 
> or entity to which it is addressed and may contain information that is 
> privileged, confidential or otherwise protected from disclosure. We 
> remind that - as provided by European Regulation 2016/679 “GDPR” - 
> copying, dissemination or use of this e-mail or the information herein 
> by anyone other than the intended recipient is prohibited. If you have 
> received this email by mistake, please notify us immediately by 
> telephone or e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20240924/59d49352/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WW09LlWwtzSWHytn.png
Type: image/png
Size: 26182 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20240924/59d49352/attachment-0001.png>


More information about the geonode-users mailing list