[GeoNode-users] Help 500 INTERNAL SERVER ERROR when upload PDF Document

Ariel Cabezas gerardoarielc at gmail.com
Wed Nov 16 06:11:28 PST 2016


Hi Simone,
This is error.log when upload document,
Just as data, the documents are uploaded to the server in
/var/www/geonode/uploaded/documents/

By typing the url of the document, I can reach and download it
Example http://200.5.71.75:9000/documents/19 and download

thanks

2016-11-16 5:05 GMT-03:00 Simone Dalmasso <simone.dalmasso at gmail.com>:

> Hi, the apache logs should tell you more, they are in
> /var/logs/apache/error.log
>
> 2016-11-15 18:42 GMT+01:00 Ariel Cabezas <gerardoarielc at gmail.com>:
>
>> Please, I need some help with this:
>>
>> Error: 500 INTERNAL SERVER ERROR
>> Internal Server Error
>>
>> The server encountered an internal error or misconfiguration and was
>> unable to complete your request.
>> Please contact the server administrator ....... .
>> ------------------------------------------------------------
>> -------------------------------------------------------------
>> Apache/2.4.7 (Ubuntu) Server at 200.5.71.75 *Port 9000*
>> ------------------------------------------------------------
>> --------------------------------------------------------------
>>
>> UBUNTU 14.04.5 LTS
>> GEONODE 2.4.1
>>
>> INSTALLATION with
>> $ sudo add-apt-repository ppa:geonode/stable
>> $ sudo apt-get update
>> $ sudo apt-get install geonode
>>
>> $ sudo geonode-updateip 200.5.71.75
>> ------------------------------------------------------------------
>>
>> Then I was informed (by TIC Area) that they redirect port 8080 to port
>> 9000
>> So I modified in "local_settings.py" file,  SITEURL = 'http: //
>> 200.5.71.75:9000'
>> And the portal works well for Layers (upload, preview and downloads) but
>> not Upload Documents (PDF)
>> Could the port redirect be the problem?
>> Thanks
>>
>>
>> Ariel
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geonode-users
>>
>>
>
>
> --
> Simone
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20161116/a5602ba8/attachment.html>
-------------- next part --------------
GIS:/$ tail -90f /var/log/apache2/error.log

[Wed Nov 16 01:06:18.694287 2016] [:error] [pid 10924:tid 139872284714752] Invalid HTTP_HOST header: 'www.baidu.com'.You may need to add u'www.baidu.com' to ALLOWED_HOSTS.
[Wed Nov 16 02:27:26.298648 2016] [:error] [pid 10924:tid 139872184002304] Internal Server Error: /documents/upload
[Wed Nov 16 02:27:26.298685 2016] [:error] [pid 10924:tid 139872184002304] Traceback (most recent call last):
[Wed Nov 16 02:27:26.298693 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
[Wed Nov 16 02:27:26.298699 2016] [:error] [pid 10924:tid 139872184002304]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Wed Nov 16 02:27:26.298716 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
[Wed Nov 16 02:27:26.298724 2016] [:error] [pid 10924:tid 139872184002304]     return view_func(request, *args, **kwargs)
[Wed Nov 16 02:27:26.298730 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view
[Wed Nov 16 02:27:26.298736 2016] [:error] [pid 10924:tid 139872184002304]     return self.dispatch(request, *args, **kwargs)
[Wed Nov 16 02:27:26.298741 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
[Wed Nov 16 02:27:26.298747 2016] [:error] [pid 10924:tid 139872184002304]     return handler(request, *args, **kwargs)
[Wed Nov 16 02:27:26.298755 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/lib/python2.7/dist-packages/django/views/generic/edit.py", line 205, in post
[Wed Nov 16 02:27:26.298761 2016] [:error] [pid 10924:tid 139872184002304]     return super(BaseCreateView, self).post(request, *args, **kwargs)
[Wed Nov 16 02:27:26.298766 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/lib/python2.7/dist-packages/django/views/generic/edit.py", line 171, in post
[Wed Nov 16 02:27:26.298782 2016] [:error] [pid 10924:tid 139872184002304]     return self.form_valid(form)
[Wed Nov 16 02:27:26.298787 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/local/lib/python2.7/dist-packages/geonode/documents/views.py", line 158, in form_valid
[Wed Nov 16 02:27:26.298795 2016] [:error] [pid 10924:tid 139872184002304]     self.object.save()
[Wed Nov 16 02:27:26.298801 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/lib/python2.7/dist-packages/polymorphic/polymorphic_model.py", line 90, in save
[Wed Nov 16 02:27:26.298812 2016] [:error] [pid 10924:tid 139872184002304]     return super(PolymorphicModel, self).save(*args, **kwargs)
[Wed Nov 16 02:27:26.298834 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 545, in save
[Wed Nov 16 02:27:26.298852 2016] [:error] [pid 10924:tid 139872184002304]     force_update=force_update, update_fields=update_fields)
[Wed Nov 16 02:27:26.298860 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 582, in save_base
[Wed Nov 16 02:27:26.298867 2016] [:error] [pid 10924:tid 139872184002304]     update_fields=update_fields, raw=raw, using=using)
[Wed Nov 16 02:27:26.298888 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 185, in send
[Wed Nov 16 02:27:26.298906 2016] [:error] [pid 10924:tid 139872184002304]     response = receiver(signal=self, sender=sender, **named)
[Wed Nov 16 02:27:26.298913 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/local/lib/python2.7/dist-packages/geonode/documents/models.py", line 206, in create_thumbnail
[Wed Nov 16 02:27:26.298920 2016] [:error] [pid 10924:tid 139872184002304]     create_document_thumbnail.delay(object_id=instance.id)
[Wed Nov 16 02:27:26.298928 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/lib/python2.7/dist-packages/celery/app/task.py", line 452, in delay
[Wed Nov 16 02:27:26.298935 2016] [:error] [pid 10924:tid 139872184002304]     return self.apply_async(args, kwargs)
[Wed Nov 16 02:27:26.298942 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/lib/python2.7/dist-packages/celery/app/task.py", line 546, in apply_async
[Wed Nov 16 02:27:26.298959 2016] [:error] [pid 10924:tid 139872184002304]     link=link, link_error=link_error, **options)
[Wed Nov 16 02:27:26.298966 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/lib/python2.7/dist-packages/celery/app/task.py", line 727, in apply
[Wed Nov 16 02:27:26.298973 2016] [:error] [pid 10924:tid 139872184002304]     request=request, propagate=throw)
[Wed Nov 16 02:27:26.298980 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/lib/python2.7/dist-packages/celery/app/trace.py", line 315, in eager_trace_task
[Wed Nov 16 02:27:26.298987 2016] [:error] [pid 10924:tid 139872184002304]     uuid, args, kwargs, request)
[Wed Nov 16 02:27:26.298994 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/lib/python2.7/dist-packages/celery/app/trace.py", line 218, in trace_task
[Wed Nov 16 02:27:26.299001 2016] [:error] [pid 10924:tid 139872184002304]     R = retval = fun(*args, **kwargs)
[Wed Nov 16 02:27:26.299008 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/local/lib/python2.7/dist-packages/geonode/tasks/update.py", line 26, in create_document_thumbnail
[Wed Nov 16 02:27:26.299016 2016] [:error] [pid 10924:tid 139872184002304]     image = document._render_thumbnail()
[Wed Nov 16 02:27:26.299023 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/local/lib/python2.7/dist-packages/geonode/documents/models.py", line 109, in _render_thumbnail
[Wed Nov 16 02:27:26.299030 2016] [:error] [pid 10924:tid 139872184002304]     img = Image.open(filename)
[Wed Nov 16 02:27:26.299037 2016] [:error] [pid 10924:tid 139872184002304]   File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2028, in open
[Wed Nov 16 02:27:26.299044 2016] [:error] [pid 10924:tid 139872184002304]     raise IOError("cannot identify image file")
[Wed Nov 16 02:27:26.299052 2016] [:error] [pid 10924:tid 139872184002304] IOError: cannot identify image file
[Wed Nov 16 02:27:26.305144 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975] mod_wsgi (pid=10924): Exception occurred processing WSGI script '/var/www/geonode/wsgi/geonode.wsgi'.
[Wed Nov 16 02:27:26.305198 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975] Traceback (most recent call last):
[Wed Nov 16 02:27:26.305214 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 206, in __call__
[Wed Nov 16 02:27:26.305236 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     response = self.get_response(request)
[Wed Nov 16 02:27:26.305250 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 194, in get_response
[Wed Nov 16 02:27:26.305266 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
[Wed Nov 16 02:27:26.305285 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 236, in handle_uncaught_exception
[Wed Nov 16 02:27:26.305302 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     return callback(request, **param_dict)
[Wed Nov 16 02:27:26.305316 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 99, in _wrapped_view
[Wed Nov 16 02:27:26.305332 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     response = view_func(request, *args, **kwargs)
[Wed Nov 16 02:27:26.305345 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/views/defaults.py", line 46, in server_error
[Wed Nov 16 02:27:26.305358 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     return http.HttpResponseServerError(template.render(Context({})))
[Wed Nov 16 02:27:26.305372 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Wed Nov 16 02:27:26.305389 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     return self._render(context)
[Wed Nov 16 02:27:26.305401 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Wed Nov 16 02:27:26.305414 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     return self.nodelist.render(context)
[Wed Nov 16 02:27:26.305428 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Nov 16 02:27:26.305443 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     bit = self.render_node(node, context)
[Wed Nov 16 02:27:26.305454 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Wed Nov 16 02:27:26.305470 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     return node.render(context)
[Wed Nov 16 02:27:26.305484 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 53, in render
[Wed Nov 16 02:27:26.305498 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     result = self.nodelist.render(context)
[Wed Nov 16 02:27:26.305511 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Nov 16 02:27:26.305526 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     bit = self.render_node(node, context)
[Wed Nov 16 02:27:26.305538 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Wed Nov 16 02:27:26.305554 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     return node.render(context)
[Wed Nov 16 02:27:26.305567 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 155, in render
[Wed Nov 16 02:27:26.305581 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     return self.render_template(self.template, context)
[Wed Nov 16 02:27:26.305594 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 137, in render_template
[Wed Nov 16 02:27:26.305608 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     output = template.render(context)
[Wed Nov 16 02:27:26.305624 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Wed Nov 16 02:27:26.305641 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     return self._render(context)
[Wed Nov 16 02:27:26.305654 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Wed Nov 16 02:27:26.305668 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     return self.nodelist.render(context)
[Wed Nov 16 02:27:26.305681 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Nov 16 02:27:26.305694 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     bit = self.render_node(node, context)
[Wed Nov 16 02:27:26.305707 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Wed Nov 16 02:27:26.305721 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     return node.render(context)
[Wed Nov 16 02:27:26.305734 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/announcements/templatetags/announcements_tags.py", line 24, in render
[Wed Nov 16 02:27:26.305748 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     request = context["request"]
[Wed Nov 16 02:27:26.305761 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]   File "/usr/lib/python2.7/dist-packages/django/template/context.py", line 56, in __getitem__
[Wed Nov 16 02:27:26.305775 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975]     raise KeyError(key)
[Wed Nov 16 02:27:26.305792 2016] [:error] [pid 10924:tid 139872184002304] [remote 181.111.203.252:24975] KeyError: 'request'



More information about the geonode-users mailing list