Advertisement
Guest User

CKAN Unable to upload

a guest
Dec 9th, 2013
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.25 KB | None | 0 0
  1.  
  2. Error - <type 'exceptions.IOError'>: [Errno 13] Permission denied: '/var/lib/ckan/default/pairtree_version0_1'
  3. URL: http://192.168.9.199:5000/api/storage/auth/form/2013-12-04T15%3A39%3A33.425Z/world-population-density.csv
  4. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/weberror/errormiddleware.py', line 162 in __call__
  5. app_iter = self.application(environ, sr_checker)
  6. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/dec.py', line 147 in __call__
  7. resp = self.call_func(req, *args, **self.kwargs)
  8. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/dec.py', line 208 in call_func
  9. return self.func(req, *args, **kwargs)
  10. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/fanstatic/publisher.py', line 234 in __call__
  11. return request.get_response(self.app)
  12. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/request.py', line 1053 in get_response
  13. application, catch_exc_info=False)
  14. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/request.py', line 1022 in call_application
  15. app_iter = application(self.environ, start_response)
  16. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/dec.py', line 147 in __call__
  17. resp = self.call_func(req, *args, **self.kwargs)
  18. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/dec.py', line 208 in call_func
  19. return self.func(req, *args, **kwargs)
  20. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/fanstatic/injector.py', line 54 in __call__
  21. response = request.get_response(self.app)
  22. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/request.py', line 1053 in get_response
  23. application, catch_exc_info=False)
  24. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/request.py', line 1022 in call_application
  25. app_iter = application(self.environ, start_response)
  26. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/beaker/middleware.py', line 73 in __call__
  27. return self.app(environ, start_response)
  28. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/beaker/middleware.py', line 155 in __call__
  29. return self.wrap_app(environ, session_start_response)
  30. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/routes/middleware.py', line 131 in __call__
  31. response = self.app(environ, start_response)
  32. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/wsgiapp.py', line 125 in __call__
  33. response = self.dispatch(controller, environ, start_response)
  34. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/wsgiapp.py', line 324 in dispatch
  35. return controller(environ, start_response)
  36. File '/home/assyst/ckan/lib/default/src/ckan/ckan/lib/base.py', line 346 in __call__
  37. res = WSGIController.__call__(self, environ, start_response)
  38. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 221 in __call__
  39. response = self._dispatch_call()
  40. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 172 in _dispatch_call
  41. response = self._inspect_call(func)
  42. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 107 in _inspect_call
  43. result = self._perform_call(func, args)
  44. File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 60 in _perform_call
  45. return func(**args)
  46. File '<string>', line 2 in auth_form
  47. File '/home/assyst/ckan/lib/default/src/ckan/ckan/lib/jsonp.py', line 24 in jsonpify
  48. data = func(*args, **kwargs)
  49. File '/home/assyst/ckan/lib/default/src/ckan/ckan/controllers/storage.py', line 410 in auth_form
  50. authorize(method, bucket, label, c.userobj, self.ofs)
  51. File '/home/assyst/ckan/lib/default/src/ckan/ckan/controllers/storage.py', line 199 in ofs
  52. StorageAPIController._ofs_impl = get_ofs()
  53. File '/home/assyst/ckan/lib/default/src/ckan/ckan/controllers/storage.py', line 80 in get_ofs
  54. create_pairtree_marker(kw['storage_dir'])
  55. File '/home/assyst/ckan/lib/default/src/ckan/ckan/controllers/storage.py', line 65 in create_pairtree_marker
  56. open(target, 'wb').close()
  57. IOError: [Errno 13] Permission denied: '/var/lib/ckan/default/pairtree_version0_1'
  58.  
  59.  
  60. CGI Variables
  61. -------------
  62. AUTH_TYPE: 'cookie'
  63. CKAN_CURRENT_URL: '/api/storage/auth/form/2013-12-04T15%3A39%3A33.425Z/world-population-density.csv'
  64. CKAN_LANG: 'en'
  65. CKAN_LANG_IS_DEFAULT: True
  66. CONTENT_LENGTH: '0'
  67. CONTENT_TYPE: '; charset=utf-8'
  68. HTTP_ACCEPT: '*/*'
  69. HTTP_ACCEPT_CHARSET: 'ISO-8859-1,utf-8;q=0.7,*;q=0.3'
  70. HTTP_ACCEPT_ENCODING: 'gzip,deflate,sdch'
  71. HTTP_ACCEPT_LANGUAGE: 'en-US,en;q=0.8'
  72. HTTP_CACHE_CONTROL: 'max-age=259200'
  73. HTTP_CONNECTION: 'keep-alive'
  74. HTTP_COOKIE: 'ckan=680767442005a9e3a43d5b2a432447ca468e27ab872797c3c3284ff9a54b25e53f799e59; auth_tkt="cf9a0452db1baeebf4ee0ed755ee6aed529f4be7admin!userid_type:unicode"'
  75. HTTP_HOST: '192.168.9.199:5000'
  76. HTTP_REFERER: 'http://192.168.9.199:5000/dataset/new_resource/fhjf'
  77. HTTP_USER_AGENT: 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11'
  78. HTTP_VIA: '1.1 localhost:8899 (squid/2.7.STABLE9)'
  79. HTTP_X_FORWARDED_FOR: '10.20.4.165'
  80. HTTP_X_REQUESTED_WITH: 'XMLHttpRequest'
  81. PATH_INFO: '/api/storage/auth/form/2013-12-04T15:39:33.425Z/world-population-density.csv'
  82. REMOTE_ADDR: '192.168.9.255'
  83. REMOTE_USER: u'admin'
  84. REMOTE_USER_DATA: 'userid_type:unicode'
  85. REMOTE_USER_TOKENS: ['']
  86. REQUEST_METHOD: 'GET'
  87. SERVER_NAME: '0.0.0.0'
  88. SERVER_PORT: '5000'
  89. SERVER_PROTOCOL: 'HTTP/1.0'
  90.  
  91.  
  92. WSGI Variables
  93. --------------
  94. application: <fanstatic.publisher.Delegator object at 0x503fcd0>
  95. beaker.cache: <beaker.cache.CacheManager object at 0x4c796d0>
  96. beaker.get_session: <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x4c79850>>
  97. beaker.session: {'_accessed_time': 1386171572.554658, '_creation_time': 1386168923.907857}
  98. fanstatic.needed: <fanstatic.core.NeededResources object at 0x5479a90>
  99. paste.cookies: (<SimpleCookie: auth_tkt='cf9a0452db1baeebf4ee0ed755ee6aed529f4be7admin!userid_type:unicode' ckan='680767442005a9e3a43d5b2a432447ca468e27ab872797c3c3284ff9a54b25e53f799e59'>, 'ckan=680767442005a9e3a43d5b2a432447ca468e27ab872797c3c3284ff9a54b25e53f799e59; auth_tkt="cf9a0452db1baeebf4ee0ed755ee6aed529f4be7admin!userid_type:unicode"')
  100. paste.httpserver.thread_pool: <paste.httpserver.ThreadPool object at 0x264ebd0>
  101. paste.registry: <paste.registry.Registry object at 0x5479650>
  102. paste.throw_errors: True
  103. pylons.action_method: <bound method StorageAPIController.auth_form of <ckan.controllers.storage.StorageAPIController object at 0x5479e10>>
  104. pylons.controller: <ckan.controllers.storage.StorageAPIController object at 0x5479e10>
  105. pylons.environ_config: {'session': 'beaker.session', 'cache': 'beaker.cache'}
  106. pylons.pylons: <pylons.util.PylonsContext object at 0x5479d50>
  107. pylons.routes_dict: {'action': u'auth_form', 'controller': u'ckan.controllers.storage:StorageAPIController', 'label': u'2013-12-04T15:39:33.425Z/world-population-density.csv'}
  108. repoze.who.identity: <repoze.who identity (hidden, dict-like) at 140238265745600>
  109. repoze.who.logger: <logging.Logger object at 0x5044350>
  110. repoze.who.plugins: {'openid': <OpenIdIdentificationPlugin 84166608>, 'friendlyform': <FriendlyFormPlugin 84144784>, 'ckan.lib.authenticator:UsernamePasswordAuthenticator': <ckan.lib.authenticator.UsernamePasswordAuthenticator object at 0x5434490>, 'auth_tkt': <AuthTktCookiePlugin 84144912>, 'ckan.lib.authenticator:OpenIDAuthenticator': <ckan.lib.authenticator.OpenIDAuthenticator object at 0x5434450>}
  111. routes.route: <routes.route.Route object at 0x5050390>
  112. routes.url: <routes.util.URLGenerator object at 0x5479c10>
  113. webob._parsed_query_vars: (GET([]), '')
  114. webob.adhoc_attrs: {'response': <Response at 0x5479b90 200 OK>, 'language': 'en-us'}
  115. wsgi process: 'Multithreaded'
  116. wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x5479c10>, {'action': u'auth_form', 'controller': u'ckan.controllers.storage:StorageAPIController', 'label': u'2013-12-04T15:39:33.425Z/world-population-density.csv'})
  117. ------------------------------------------------------------
  118.  
  119. <p>Additionally an error occurred while sending the &lt;weberror.reporter.EmailReporter object at 0x53d5dd0&gt; report:
  120.  
  121. <pre>Traceback (most recent call last):
  122. File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/weberror/errormiddleware.py", line 450, in send_report
  123. rep.report(exc_data)
  124. File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/weberror/reporter.py", line 45, in report
  125. server = smtplib.SMTP(self.smtp_server)
  126. File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
  127. (code, msg) = self.connect(host, port)
  128. File "/usr/lib/python2.7/smtplib.py", line 309, in connect
  129. self.sock = self._get_socket(host, port, self.timeout)
  130. File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
  131. return socket.create_connection((port, host), timeout)
  132. File "/usr/lib/python2.7/socket.py", line 571, in create_connection
  133. raise err
  134. error: [Errno 111] Connection refused
  135. </pre>
  136. </p>2013-12-04 21:09:32,645 INFO [ckan.lib.base] /api/storage/auth/form/2013-12-04T15%3A39%3A33.425Z/world-population-density.csv render time 0.005 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement