[ckan-dev] Unable to upload file on CKAN

Library IT libraryit at iimahd.ernet.in
Tue Oct 14 07:12:22 UTC 2014


Dear Tech team,

We are not able to upload file on Dataset.

It's giving some error
[ckan.model.modification] (ProgrammingError) permission denied for relation
_table_metadata

Please check the attached log file for more detail.

While checking log it's seems to be some permission issue on postgresql so
I try following operations (plz see the below image). but into that the
role attribute is not shown on ckan_default as well as datastore_default.


[image: Inline image 1]

I have confusion on this.

I have also set 777 persmission on datastore folder

/mnt/ckandata

[image: Inline image 2]

Please help me on this.

Thanks,
Bhavesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20141014/63d55585/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 71368 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20141014/63d55585/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 78024 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20141014/63d55585/attachment-0005.png>
-------------- next part --------------

---------------------------
[Tue Oct 14 12:03:44 2014] [error] 2014-10-14 12:03:44,451 INFO  [ckan.lib.base]  /dataset/new_resource/from-ubuntu render time 0.077 seconds
[Tue Oct 14 12:04:05 2014] [error] 2014-10-14 12:04:05,115 ERROR [ckan.model.modification] (ProgrammingError) permission denied for relation _table_metadata
[Tue Oct 14 12:04:05 2014] [error]  'SELECT 1 FROM "_table_metadata" WHERE name = %s AND alias_of IS NULL' (u'393d7c4c-bad3-4143-972d-eafa446b6647',)
[Tue Oct 14 12:04:05 2014] [error] Traceback (most recent call last):
[Tue Oct 14 12:04:05 2014] [error]   File "/home/bhavesh/ckan/lib/default/src/ckan/ckan/model/modification.py", line 79, in notify
[Tue Oct 14 12:04:05 2014] [error]     observer.notify(entity, operation)
[Tue Oct 14 12:04:05 2014] [error]   File "/home/bhavesh/ckan/lib/default/src/ckan/ckan/lib/search/__init__.py", line 128, in notify
[Tue Oct 14 12:04:05 2014] [error]     {'id': entity.id}),
[Tue Oct 14 12:04:05 2014] [error]   File "/home/bhavesh/ckan/lib/default/src/ckan/ckan/logic/__init__.py", line 419, in wrapped
[Tue Oct 14 12:04:05 2014] [error]     result = _action(context, data_dict, **kw)
[Tue Oct 14 12:04:05 2014] [error]   File "/home/bhavesh/ckan/lib/default/src/ckan/ckan/logic/action/get.py", line 856, in package_show
[Tue Oct 14 12:04:05 2014] [error]     resource_dict = item.before_show(resource_dict)
[Tue Oct 14 12:04:05 2014] [error]   File "/home/bhavesh/ckan/lib/default/src/ckan/ckanext/datastore/plugin.py", line 245, in before_show
[Tue Oct 14 12:04:05 2014] [error]     resource_dict['id']
[Tue Oct 14 12:04:05 2014] [error]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1449, in execute
[Tue Oct 14 12:04:05 2014] [error]     params)
[Tue Oct 14 12:04:05 2014] [error]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1628, in _execute_text
[Tue Oct 14 12:04:05 2014] [error]     statement, parameters
[Tue Oct 14 12:04:05 2014] [error]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1698, in _execute_context
[Tue Oct 14 12:04:05 2014] [error]     context)
[Tue Oct 14 12:04:05 2014] [error]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1691, in _execute_context
[Tue Oct 14 12:04:05 2014] [error]     context)
[Tue Oct 14 12:04:05 2014] [error]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 331, in do_execute
[Tue Oct 14 12:04:05 2014] [error]     cursor.execute(statement, parameters)
[Tue Oct 14 12:04:05 2014] [error] ProgrammingError: (ProgrammingError) permission denied for relation _table_metadata
[Tue Oct 14 12:04:05 2014] [error]  'SELECT 1 FROM "_table_metadata" WHERE name = %s AND alias_of IS NULL' (u'393d7c4c-bad3-4143-972d-eafa446b6647',)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] Error - <class 'sqlalchemy.exc.ProgrammingError'>: (ProgrammingError) permission denied for relation _table_metadata
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]  'SELECT 1 FROM "_table_metadata" WHERE name = %s AND alias_of IS NULL' (u'393d7c4c-bad3-4143-972d-eafa446b6647',)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] URL: http://127.0.0.1:8080/dataset/new_resource/from-ubuntu
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/weberror/errormiddleware.py', line 162 in __call__
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   app_iter = self.application(environ, sr_checker)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/webob/dec.py', line 147 in __call__
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   resp = self.call_func(req, *args, **self.kwargs)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/webob/dec.py', line 208 in call_func
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   return self.func(req, *args, **kwargs)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/fanstatic/publisher.py', line 234 in __call__
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   return request.get_response(self.app)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/webob/request.py', line 1053 in get_response
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   application, catch_exc_info=False)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/webob/request.py', line 1022 in call_application
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   app_iter = application(self.environ, start_response)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/webob/dec.py', line 147 in __call__
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   resp = self.call_func(req, *args, **self.kwargs)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/webob/dec.py', line 208 in call_func
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   return self.func(req, *args, **kwargs)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/fanstatic/injector.py', line 54 in __call__
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   response = request.get_response(self.app)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/webob/request.py', line 1053 in get_response
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   application, catch_exc_info=False)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/webob/request.py', line 1022 in call_application
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   app_iter = application(self.environ, start_response)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/beaker/middleware.py', line 73 in __call__
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   return self.app(environ, start_response)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/beaker/middleware.py', line 155 in __call__
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   return self.wrap_app(environ, session_start_response)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/routes/middleware.py', line 131 in __call__
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   response = self.app(environ, start_response)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/pylons/wsgiapp.py', line 125 in __call__
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   response = self.dispatch(controller, environ, start_response)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/pylons/wsgiapp.py', line 324 in dispatch
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   return controller(environ, start_response)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/home/bhavesh/ckan/lib/default/src/ckan/ckan/lib/base.py', line 346 in __call__
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   res = WSGIController.__call__(self, environ, start_response)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/pylons/controllers/core.py', line 221 in __call__
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   response = self._dispatch_call()
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/pylons/controllers/core.py', line 172 in _dispatch_call
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   response = self._inspect_call(func)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/pylons/controllers/core.py', line 107 in _inspect_call
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   result = self._perform_call(func, args)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/pylons/controllers/core.py', line 60 in _perform_call
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   return func(**args)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/home/bhavesh/ckan/lib/default/src/ckan/ckan/controllers/package.py', line 669 in new_resource
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   get_action('resource_create')(context, data)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/home/bhavesh/ckan/lib/default/src/ckan/ckan/logic/__init__.py', line 419 in wrapped
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   result = _action(context, data_dict, **kw)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/home/bhavesh/ckan/lib/default/src/ckan/ckan/logic/action/create.py', line 279 in resource_create
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   model.repo.commit()
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/vdm/sqlalchemy/tools.py', line 102 in commit
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   self.session.commit()
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/sqlalchemy/orm/scoping.py', line 114 in do
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   return getattr(self.registry(), name)(*args, **kwargs)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/sqlalchemy/orm/session.py', line 656 in commit
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   self.transaction.commit()
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/sqlalchemy/orm/session.py', line 314 in commit
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   self._prepare_impl()
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/sqlalchemy/orm/session.py', line 290 in _prepare_impl
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   self.session.dispatch.before_commit(self.session)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/sqlalchemy/event.py', line 291 in __call__
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   fn(*args, **kw)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/home/bhavesh/ckan/lib/default/src/ckan/ckan/model/extension.py', line 112 in before_commit
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   methodcaller('before_commit', session)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/home/bhavesh/ckan/lib/default/src/ckan/ckan/model/extension.py', line 92 in notify_observers
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   func(observer)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/home/bhavesh/ckan/lib/default/src/ckan/ckan/model/modification.py', line 72 in before_commit
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   self.notify(obj, domain_object.DomainObjectOperation.changed)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/home/bhavesh/ckan/lib/default/src/ckan/ckan/model/modification.py', line 79 in notify
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   observer.notify(entity, operation)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/home/bhavesh/ckan/lib/default/src/ckan/ckan/lib/search/__init__.py', line 128 in notify
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   {'id': entity.id}),
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/home/bhavesh/ckan/lib/default/src/ckan/ckan/logic/__init__.py', line 419 in wrapped
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   result = _action(context, data_dict, **kw)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/home/bhavesh/ckan/lib/default/src/ckan/ckan/logic/action/get.py', line 856 in package_show
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   resource_dict = item.before_show(resource_dict)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/home/bhavesh/ckan/lib/default/src/ckan/ckanext/datastore/plugin.py', line 245 in before_show
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   resource_dict['id']
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/sqlalchemy/engine/base.py', line 1449 in execute
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   params)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/sqlalchemy/engine/base.py', line 1628 in _execute_text
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   statement, parameters
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/sqlalchemy/engine/base.py', line 1698 in _execute_context
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   context)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/sqlalchemy/engine/base.py', line 1691 in _execute_context
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   context)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/sqlalchemy/engine/default.py', line 331 in do_execute
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   cursor.execute(statement, parameters)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] ProgrammingError: (ProgrammingError) permission denied for relation _table_metadata
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]  'SELECT 1 FROM "_table_metadata" WHERE name = %s AND alias_of IS NULL' (u'393d7c4c-bad3-4143-972d-eafa446b6647',)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] CGI Variables
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] -------------
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   AUTH_TYPE: 'cookie'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   CKAN_CURRENT_URL: '/dataset/new_resource/from-ubuntu'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   CKAN_LANG: 'en'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   CKAN_LANG_IS_DEFAULT: True
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   CONTENT_TYPE: 'multipart/form-data; boundary=---------------------------9708216491520608294546514705; charset=utf-8'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   DOCUMENT_ROOT: '/etc/apache2/htdocs'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   GATEWAY_INTERFACE: 'CGI/1.1'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   HTTP_ACCEPT_ENCODING: 'gzip, deflate'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   HTTP_ACCEPT_LANGUAGE: 'en-US,en;q=0.5'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   HTTP_CONNECTION: 'keep-alive'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   HTTP_COOKIE: 'auth_tkt="73cf4971b8f9f609fa0f0ae7d2f950a5543cc2b4bhavesh!userid_type:unicode"; ckan=606c14f023f8c8ba0d28130f7ab1ed7b0f37aa364a77e95da30148e0a9882beea8e6854f'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   HTTP_HOST: '127.0.0.1:8080'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   HTTP_REFERER: 'http://127.0.0.1:8080/dataset/new_resource/from-ubuntu'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   HTTP_USER_AGENT: 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   PATH_INFO: '/dataset/new_resource/from-ubuntu'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   PATH_TRANSLATED: '/etc/ckan/default/apache.wsgi/dataset/new_resource/from-ubuntu'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   REMOTE_ADDR: '127.0.0.1'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   REMOTE_PORT: '35080'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   REMOTE_USER: u'bhavesh'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   REMOTE_USER_DATA: 'userid_type:unicode'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   REMOTE_USER_TOKENS: ['']
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   REQUEST_METHOD: 'POST'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   REQUEST_URI: '/dataset/new_resource/from-ubuntu'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   SCRIPT_FILENAME: '/etc/ckan/default/apache.wsgi'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   SERVER_ADDR: '127.0.0.1'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   SERVER_ADMIN: '[no address given]'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   SERVER_NAME: '127.0.0.1'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   SERVER_PORT: '8080'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   SERVER_PROTOCOL: 'HTTP/1.1'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   SERVER_SIGNATURE: '<address>Apache/2.2.22 (Ubuntu) Server at 127.0.0.1 Port 8080</address>\\n'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   SERVER_SOFTWARE: 'Apache/2.2.22 (Ubuntu)'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] WSGI Variables
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] --------------
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   application: <fanstatic.publisher.Delegator object at 0x7f0b5ab3be50>
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   beaker.cache: <beaker.cache.CacheManager object at 0x7f0b5ab3bfd0>
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   beaker.get_session: <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x7f0b5ab3ba50>>
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   beaker.session: {'_accessed_time': 1413268445.12062, '_creation_time': 1413268149.797908}
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   fanstatic.needed: <fanstatic.core.NeededResources object at 0x7f0b6cfc8e10>
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   mod_wsgi.application_group: '192.168.251.87:8080|'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   mod_wsgi.callable_object: 'application'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   mod_wsgi.handler_script: ''
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   mod_wsgi.input_chunked: '0'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   mod_wsgi.listener_host: ''
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   mod_wsgi.listener_port: '8080'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   mod_wsgi.process_group: 'ckan_default'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   mod_wsgi.request_handler: 'wsgi-script'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   mod_wsgi.script_reloading: '1'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   mod_wsgi.version: (3, 3)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   paste.cookies: (<SimpleCookie: auth_tkt='73cf4971b8f9f609fa0f0ae7d2f950a5543cc2b4bhavesh!userid_type:unicode' ckan='606c14f023f8c8ba0d28130f7ab1ed7b0f37aa364a77e95da30148e0a9882beea8e6854f'>, 'auth_tkt="73cf4971b8f9f609fa0f0ae7d2f950a5543cc2b4bhavesh!userid_type:unicode"; ckan=606c14f023f8c8ba0d28130f7ab1ed7b0f37aa364a77e95da30148e0a9882beea8e6854f')
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   paste.registry: <paste.registry.Registry object at 0x7f0b3c374dd0>
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   paste.throw_errors: True
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   pylons.action_method: <bound method PackageController.new_resource of <ckan.controllers.package.PackageController object at 0x7f0b6cfc89d0>>
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   pylons.controller: <ckan.controllers.package.PackageController object at 0x7f0b6cfc89d0>
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   pylons.environ_config: {'session': 'beaker.session', 'cache': 'beaker.cache'}
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   pylons.pylons: <pylons.util.PylonsContext object at 0x7f0b6cfc8250>
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   pylons.routes_dict: {'action': u'new_resource', 'controller': u'package', 'id': u'from-ubuntu'}
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   repoze.who.identity: <repoze.who identity (hidden, dict-like) at 139686161549296>
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   repoze.who.logger: <logging.Logger object at 0x7f0b5ab3b410>
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   repoze.who.plugins: {'openid': <OpenIdIdentificationPlugin 139686743094224>, 'friendlyform': <FriendlyFormPlugin 139686743095312>, 'ckan.lib.authenticator:UsernamePasswordAuthenticator': <ckan.lib.authenticator.UsernamePasswordAuthenticator object at 0x7f0b5b230950>, 'auth_tkt': <AuthTktCookiePlugin 139686743094864>, 'ckan.lib.authenticator:OpenIDAuthenticator': <ckan.lib.authenticator.OpenIDAuthenticator object at 0x7f0b5b230910>}
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   routes.route: <routes.route.Route object at 0x7f0b5add7910>
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   routes.url: <routes.util.URLGenerator object at 0x7f0b6cfc8490>
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   webob._parsed_post_vars: (MultiDict([('id', ''), ('url', ''), ('upload', FieldStorage('upload', 'worldbank data on india.csv')), ('clear_upload', ''), ('name', 'from-ubuntu'), ('description', 'from-ubuntu'), ('format', 'csv'), ('save', 'go-metadata')]), <FakeCGIBody at 0x7f0b6cfc8190 viewing MultiDict([('id...a')])>)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   webob._parsed_query_vars: (GET([]), '')
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   webob.adhoc_attrs: {'errors': 'ignore', 'response': <Response at 0x7f0b6cfc8550 200 OK>, 'language': 'en-us'}
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   webob.is_body_readable: True
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   webob.is_body_seekable: False
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   wsgi process: 'Multi process AND threads (?)'
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   wsgi.file_wrapper: <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f0b3838af30>
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   wsgi.version: (1, 1)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x7f0b6cfc8490>, {'action': u'new_resource', 'controller': u'package', 'id': u'from-ubuntu'})
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] ------------------------------------------------------------
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]             <p>Additionally an error occurred while sending the <weberror.reporter.EmailReporter object at 0x7f0b3c28a050> report:
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]             <pre>Traceback (most recent call last):
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/weberror/errormiddleware.py", line 450, in send_report
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]     rep.report(exc_data)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/weberror/reporter.py", line 45, in report
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]     server = smtplib.SMTP(self.smtp_server)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]     (code, msg) = self.connect(host, port)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   File "/usr/lib/python2.7/smtplib.py", line 309, in connect
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]     self.sock = self._get_socket(host, port, self.timeout)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]     return socket.create_connection((port, host), timeout)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   File "/usr/lib/python2.7/socket.py", line 571, in create_connection
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]     raise err
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] error: [Errno 111] Connection refused
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] </pre>
[Tue Oct 14 12:04:05 2014] [error] 2014-10-14 12:04:05,266 INFO  [ckan.lib.base]  /dataset/new_resource/from-ubuntu render time 0.044 seconds
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]             </p>
[Tue Oct 14 12:04:05 2014] [error] 2014-10-14 12:04:05,484 INFO  [ckan.lib.base]  /api/i18n/en render time 0.002 seconds
^C
bhavesh at bhavesh:~$ tail -f  /var/log/apache2/ckan_default.error.log
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]     self.sock = self._get_socket(host, port, self.timeout)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]     return socket.create_connection((port, host), timeout)
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]   File "/usr/lib/python2.7/socket.py", line 571, in create_connection
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]     raise err
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] error: [Errno 111] Connection refused
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1] </pre>
[Tue Oct 14 12:04:05 2014] [error] 2014-10-14 12:04:05,266 INFO  [ckan.lib.base]  /dataset/new_resource/from-ubuntu render time 0.044 seconds
[Tue Oct 14 12:04:05 2014] [error] [client 127.0.0.1]             </p>
[Tue Oct 14 12:04:05 2014] [error] 2014-10-14 12:04:05,484 INFO  [ckan.lib.base]  /api/i18n/en render time 0.002 seconds


More information about the ckan-dev mailing list