-
Notifications
You must be signed in to change notification settings - Fork 54
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
xloader still always pending #240
Comments
Hello @riccardoricciagid can you provide some information about how you're running ckan? Is there any additional information in your logs? If you have a reverse proxy or other more complicated networking environment you might need something like the |
What version of CKAN and what other plugins are installed. Is the background jobs enabled? |
I have the same or a very similar issue, I think. I have a fresh install of CKAN 2.11.1 from source with the activity, scheming_datasets, xloader plugins and my custom plugin that adds a couple of dataset types with scheming. I checked that the datastore is working properly using the API to read and write. My instance is running with NGINX as a proxy from http://127.0.0.1:8080/ to my VPS IP address(for now). The service is running using wsgi and supervisor according to the default instructions. I have background workers running simply as So my issue is, as originally described in this thread when I upload a new CSV file or click on Upload to Datastore via the UI, it just says pending and it is stuck there. Using debug mode in my
When I try to force the process using ckan -c $CKAN_INI xloader submit --sync <PACKAGE_ID> I originally would get: When I added what @wardi suggested (
Still throws the Cannot decode JWT token error but it uploads the data to the datastore. In the UI it still appears as pending, and it still doesn't work naturally when uploading a file or clicking the Upload to Datastore button. |
Hmm, I seems 2.11 now needs extra 'secrets' can you give this a go on both the ckan primary node and ensure that worker node has the same ckan.ini config (if on different instances)
https://github.com/duttonw/ckan-docker-base/blob/main/ckan-2.11/setup/start_ckan.sh#L16 |
I tried updating the
I'm also running the worker in the same instance using the same |
My CKAN run in a custom docker container. Actually the URL is here: Datasets not in CSV are uploaded via a CURL script (every dataset has >100 datasets). The datasets in CSV format are uploaded manually from the UI. These datasets was converted and written to DB by xloader correctly. No errors in logs only INFO about Chunks and ANALYZE table at end. Strange warnng about the webassets.yml on ckanext-xloader... but this seems not be an important error. CKAN Version: 2.11.1 |
CKAN version
Describe the bug
After loading CSV file, tables built and populated correctly, in the ckan log appear 403 /api/3/action/xloader_hook and resources appear in "datastore pending" state.
Steps to reproduce
Try to upload a CSV file
The text was updated successfully, but these errors were encountered: