Skip to content
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

Datapusher: 500 Server Error #166

Closed
Thekings2468 opened this issue May 11, 2018 · 8 comments
Closed

Datapusher: 500 Server Error #166

Thekings2468 opened this issue May 11, 2018 · 8 comments

Comments

@Thekings2468
Copy link

Thekings2468 commented May 11, 2018

Hello, so it's my first time using CKAN and I followed the CKAN doc (package installation) to install it on a VPS over SSH (Ubuntu 14.04 LTS). I did all the steps but when I was to use datapusher in the CKAN site it gave me an error
Upload error: An Error occurred while sending the job: 500 Server Error: Internal Server Error for url: http://127.0.0.1:8800/job
I search for a solution but I can't find anyone with the same problem as mine. DataStore API worked so I think the problem resides in Datapusher itself.
Another thing is that curl 0.0.0.0:8800 gives me this error aswell (500 Internal Error in html).

Stacktrace:

[Fri May 11 17:00:44.668900 2018] [:error] [pid 25904:tid 139861721458432] [remote 127.0.0.1:28704] mod_wsgi (pid=25904): Target WSGI script '/etc/c$
[Fri May 11 17:00:44.669061 2018] [:error] [pid 25904:tid 139861721458432] [remote 127.0.0.1:28704] mod_wsgi (pid=25904): Exception occurred process$
[Fri May 11 17:00:44.669204 2018] [:error] [pid 25904:tid 139861721458432] [remote 127.0.0.1:28704] Traceback (most recent call last):
[Fri May 11 17:00:44.669283 2018] [:error] [pid 25904:tid 139861721458432] [remote 127.0.0.1:28704]   File "/etc/ckan/datapusher.wsgi", line 8, in <$
[Fri May 11 17:00:44.669416 2018] [:error] [pid 25904:tid 139861721458432] [remote 127.0.0.1:28704]     import ckanserviceprovider.web as web
[Fri May 11 17:00:44.669439 2018] [:error] [pid 25904:tid 139861721458432] [remote 127.0.0.1:28704]   File "/usr/lib/ckan/datapusher/lib/python2.7/s$
[Fri May 11 17:00:44.669491 2018] [:error] [pid 25904:tid 139861721458432] [remote 127.0.0.1:28704]     import flask.ext.login as flogin
[Fri May 11 17:00:44.669632 2018] [:error] [pid 25904:tid 139861721458432] [remote 127.0.0.1:28704] ImportError: No module named ext.login

I have followed the steps here as the error is the same, but it didn't work (even by restarting apache2 and nginx).

@krzpam
Copy link

krzpam commented May 15, 2018

@Thekings2468, how did you solve this problem?

@francescoVenuto
Copy link

@Thekings2468, @krzpam,

Hi, I'm Francesco Venuto, I work for Corvallis SPA at Caltagirone, Italy.
During one of the many installations of CKAN I had the same problem.
The error:


Target WSGI script '/etc/ckan/datapusher.wsgi' can not be loaded as Python module.
Exception occurred processing WSGI script '/etc/ckan/datapusher.wsgi'.
Traceback (most recent call last):
File "/etc/ckan/datapusher.wsgi", line 8, in
import ckanserviceprovider.web as web
File "/usr/lib/ckan/datapusher/lib/python2.7/site-packages/ckanserviceprovider/web.py", line 13, in <mod $
import flask.ext.login as flogin
ImportError: No module named ext.login


You have to check if the modules Flask and Flask_login are installed and if necessary install them:

pip uninstall flask (if is installed in other version)
pip install flask == 0.12

pip install flask-login

then you have to check the file /ckanserviceprovider/web.py (possible path):
/usr/lib/ckan/datapusher/lib/python2.7/site-packages/ckanserviceprovider/web.py

and replace: import flask.ext.login as flogin

with: import flask_login as flogin

because flask.ext.login is obsolete

finally restart datastore and ckan

sudo a2ensite datapusher
sudo service apache2 restart

I hope you have been helpful
Greetings and best wishes

Francesco Venuto

@krzpam
Copy link

krzpam commented May 27, 2018

It works! Thank you :)

@Thekings2468
Copy link
Author

I got through the steps @francescoVenuto suggested while googling, but you have to enter datapusher's own virtualenv and execute the pip commands for it to work.

@josdeosan
Copy link

Thank you very much Franchesco!! I have been crazy wontted a solution.

@JudyMor
Copy link

JudyMor commented May 24, 2019

Hi I running CKAN 2.8.2 and flask 0.12.4 and am getting the same error. Any ideas of what else could cause the issue.

@davidread
Copy link
Contributor

@JudyMor have you considered switching to ckanext-xloader? datapusher is not being maintained afaict.

@ckan ckan deleted a comment from JudyMor May 31, 2019
@ckan ckan deleted a comment from JudyMor May 31, 2019
@dilip400590
Copy link

Hi when i trying to use datastore im getting this error, any resolution ?
Upload error: An Error occurred while sending the job: 500 Server Error: Internal Server Error for url: http://localhost:8800/job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants