809 questions
0
votes
0
answers
27
views
solr admin ui not loading
enter image description here
Although the Solr service is running, I am unable to access the Admin UI. We confirmed that Solr is active and listening on port 8983, but attempts to reach the Admin ...
0
votes
0
answers
34
views
CKAN 2.11 Installation - ImportError: cannot import name '_request_ctx_stack' from 'flask'
I tried to install CKAN v2.11 from the source and stumbled on to the below error.
ImportError: cannot import name '_request_ctx_stack' from 'flask'. Is
anyone else facing the same issue?
I am using ...
0
votes
0
answers
42
views
The additional fields in the Additional Information section of the Resource screen are displayed duplicated
I am currently working on ckan version 2.10.3 and deployed to a docker.
I am building an extension plugin and adding fields to the additional information on the resource screen.
When translating the ...
0
votes
1
answer
64
views
ckan sharing same cookie in 2 different machine's browser
I am currently working on ckan version 2.10 and deployed to a docker.
I have 2 machine with google chrome installed and both machine visited the same ckan's website. Let's called it PC1's browser and ...
0
votes
1
answer
76
views
Dataset Approval/Rejection in Ckan
I'm running a CKAN 2.10.3 on my ubuntu 22.04 server.
I need to configure my application such that the datasets created by an editor of an organization should be in "pending"/"waiting ...
0
votes
1
answer
22
views
Cannot parse json in ckanapi
Im trying to use ckanapi but i have an error everytime i tried to use this command:
**ckanapi action package_create_default_resource_views {"create_datastore_views":true} **
KEY:JSON ...
0
votes
0
answers
34
views
ckan 2.10 update cookies to secure
I am using ckan version 2.10.3 and had updated the REMEMBER_COOKIE_SECURE=true and beaker.session.secure=true.
After updated the cookies secure to TRUE, I have encountered error
400 Bad Request
The ...
0
votes
1
answer
45
views
Cannot use CKAN API for my Localhost installation
I've installed a CKAN in my laptop and I can access it via browser with the localhost address, but I cannot access via API.
Is there some configuration I didn't do?
If I make a Google App Script API ...
0
votes
0
answers
41
views
Ckan PluginNotFoundException: scheming_datasets
I am trying to include ckan-next scheming extension, however when I run container on docker I receive an exception:
PluginNotFoundException: scheming_datasets
Installed the extension via the the ...
0
votes
0
answers
31
views
Logout a user in ckan2.10
How can I redirect logged-in user to the logout page using Ckan 2.10?
I tried to use Flask's make_response, and render_template, but the render_template, it managed to redirect to that page, but how ...
0
votes
0
answers
24
views
ckan session variable to monitor activity
I am currently working on ckan and would like to monitor the upload progress and refresh the access_token whenever needed. I have implemented some login and session management in ckan and would need ...
0
votes
0
answers
76
views
CKAN package install does not see datapusher - Internal Server Error for url: http://127.0.0.1:8800/job
I installed CKAN on Ubuntu 22.04 using the package install instructions at https://docs.ckan.org/en/2.10/maintaining/installing/install-from-package.html - including setting up API tokens, adding the ...
0
votes
0
answers
36
views
How to create a download files button in ckan?
Hi I am currently using Ckan2.10 and would like to create a Download button in the ckan webpage. After clicked on the Download button, it will call the plugin.py to generate an excel file, but how can ...
0
votes
1
answer
162
views
CKAN 2.10 source installation fails, missing folders
I tried to install CKAN 2.10 on Ubuntu 22.04 following the instruction in the guide but runing CKAN fails, I receive python error message "PermissionError: [Errno 13] Permission denied: '/var/lib/...
0
votes
0
answers
34
views
custom IAuthenticator in ckan
I am trying to implement the IAuthenticator in my ckan, here is the documentation link
https://docs.ckan.org/en/2.10/extensions/plugin-interfaces.html?highlight=authenti#ckan.plugins.interfaces....
0
votes
1
answer
47
views
Can I prevent users from creating new organizations in CKAN?
We are using a CKAN deployment to host a data Catalogue and we started by creating an organization to host all of our datasets. I'd like all users of my company to create datasets under that same ...
0
votes
0
answers
63
views
I can't add datapusher-plus to my CKAN in docker
I cannot have a CKAN with datapusher-plus I would like my CKAN to recover the data from the xlsx files as in the csv and thus have the data tables on the CKAN interface
what I want in my CKAN the xlsx ...
0
votes
0
answers
24
views
ckanext-security error while installing dependencies
Tried to load the ckanext-security into ckan2.10 and used Dockerfile to install the .whl files for the following
pyotp==2.6.0
python-magic==0.4.24
redis==3.5.3
WebOb==1.8.7
repoze.who==2.4
six==1.16....
1
vote
1
answer
82
views
How to update CKAN metadata_created field for a dataset?
I would like to update the metadata_created field for a number of datasets (that were migrated from a previous system and so have incorrect creation times in CKAN).
I tried using the ckanapi to do ...
0
votes
0
answers
75
views
Is CKAN able to connect to self-signed certificate of solr and redis?
I would like to check if it is possible for CKAN to connect to SSL/TLS solr and redis?
I have created CA and certificate (signed by CA) using openssl, then I imported the certificates into the ...
0
votes
0
answers
39
views
CKAN Data Extraction via API
Goal: Extract Berlin Crime Data via CKAN.
Can you anyone help me write a basic api request to validate that you can return the data documented here via CKAN? I am having trouble understanding how to ...
0
votes
1
answer
172
views
ckan 2.9.10 installation failed with docker compose (ckan docker not running)
I followed the CKAN official installation documentation here which installs ckan 2.9.10 with docker compose. But it fails to run the ckan container which is one of the containers built.
The building ...
0
votes
1
answer
67
views
No module named 'oauth2' when using ckanext-oauth2
I'm going to use ckan-docker repository in my Mac to explore CKAN's functionalities. I am trying to use ckanext-oauth2 extension to see how it would work with my own OAuth2 Provider application.
I ...
0
votes
1
answer
48
views
using ckan web content how can I sum values from numeric column using sql with group by
Getting error message: Conflict as result from this connection using Power BI Power Query
let Fonte = Json.Document(Web.Contents("https://dadosabertos.aneel.gov.br/api/3/action/...
0
votes
0
answers
153
views
How can I install CKAN with Flask 3.0.0?
I'm new to CKAN and I cannot get it working. For instance, I've got errors related to missing _request_ctx_stack module as well as other errors like this:
ImportError: cannot import name 'abort' from ...
0
votes
1
answer
91
views
CKAN fail to create sysadmin
I managed to install ckan by follwing this steps Here
Everything is working fine until here ckan -c /etc/ckan/default/ckan.ini db init I also get this message Initialising DB: SUCCESS suggesting that ...
0
votes
2
answers
70
views
CKAN UI to consume CKAN API
I'm new to CKAN.
There are two different CKAN with 2 different domain/IPs, CKAN-A and CKAN-B.
I know there are CKAN-API for create/update package/ekstras.
With postman, it's solved, just need to hit ...
1
vote
0
answers
31
views
Python ckan get packages for organization
Using CKAN in Python, how can I get all packages for a given organization?
I am not seeing this functionality here: https://docs.ckan.org/en/2.9/api/index.html
1
vote
1
answer
343
views
How to enable ckanext-scheming extension in CKAN
I am trying to have a custom form for Datasets in CKAN.
I have installed ckanext-scheming extension and added the scheming plugin to the plugins like this:
ckan.plugins = activity scheming_datasets
I ...
0
votes
1
answer
291
views
Error uploading data to the DataStore in CKAN
I installed CKAN version 2.10 using package install and also installed the DataStore. According to the documentation, the DataPusher is already included in the installation, and it just needs ...
1
vote
1
answer
494
views
CKAN DataPusher "cannot import name 'Mapping' from 'collections'"
I want to run DataPusher with
sudo python3 datapusher/main.py deployment/datapusher_settings.py
I've been trying to change virtualenv with my own virtualenv, is still same, I do 'from collections ...
0
votes
1
answer
151
views
CKAN: How can I have public metadata on a private dataset?
I have created a ckan plugin that adds some extra functionality according to my team's needs. I would also like to do the following: Allow logged in users to view the metadata of private datasets, but ...
0
votes
0
answers
140
views
Hide empty metadata field from display in CKAN
I want fields that are empty to be hidden from the metadata displayed in the frontend. How can I achieve this?
I tried setting
'validator':if_empty 'display_property':null
But it did not work.
Please ...
0
votes
1
answer
43
views
Querying API for every unique resource in a package using R
I'm writing a script to download all unique excel files in a package from an open data site using CKAN. I'm currently trying to write a function that cycles through a list of the unique dataset IDs, ...
1
vote
0
answers
494
views
Uploading files >2GB to CKAN results in Nginx 502 Bad Gateway
Using a CKAN production source install, I try to upload files via API or Web interface. The performance is good, and I successfully uploaded files up to around 2.5 GB. Now I need to upload a file that ...
0
votes
1
answer
645
views
Search API in CKAN using a specific field
I want to use CKAN API to select a specific dataset using a specific field in my schema. The package search API does not work on specific dataset. Does anyone have a solution to this?
0
votes
1
answer
599
views
CKAN create API Token via CURL
Is it possible to create an API token via curl? I tried running something like this:
curl -X POST -u username:password -H 'accept: application/json' -H 'cache-control: no-cache' -H 'content-type: ...
0
votes
1
answer
205
views
How can additional visibility options be added to the CKAN form for data records?
I'm wondering if there is a straightforward way to change the CKAN dataset form. I would be interested in adding extra visibility options than public and private:
that is to say;
Public
Private
Sub ...
0
votes
1
answer
185
views
How to remove registering and make only sysadmin add users in ckan?
I am trying to do some changes in my ckan plugin but I cant seem to get a hold of the signed in user sysadmin role, I am trying to do it with Jinja2 using:
{% if user and if user_roles == "admin&...
1
vote
1
answer
378
views
CKAN not starting from Docker Desktop
I am trying to deploy CKAN from Docker (using Docker Desktop). I run the docker setup file and all the containers get created (ckan, solr, redis, datapusher and db). All the containers are able to ...
1
vote
1
answer
214
views
How create an organization in CKAN with an image through the API lik it's possible with web interface
In CKAN when creating an organization with the web interface, it's possible to provide an image_url or select a image on our local disk.
With this 2nd choice, the image is uploaded and the ...
0
votes
1
answer
110
views
What are other options available to generate DOIs without using extensions in CKAN?
Well, I would like to know if there is any other options that I can use to generate DOIs for all or newly created datasets in CKAN if I am not using ckanext-doi extension. Can someone try to explain ...
1
vote
1
answer
1k
views
TrieIntField, TrieDateField deprecated to?
Clear Solr warnings and errors resulting from the deprecated classes below:
TrieIntField
Solr loaded a deprecated plugin/analysis class [solr.TrieIntField]. Please consult documentation how to ...
0
votes
1
answer
198
views
CKAN: Get user object or id when a context object is not available in extension
When writing a CKAN extension, I can create a custom GET-able method, which automatically receives the context.
e.g.
@side_effect_free
def custom_method(context, data_dict):
# Do something with ...
1
vote
1
answer
512
views
Solr: Setting defaultSearchField in schema not supported since Solr 7
Describe the bug
When trying to add a Solr core with the CKAN schema.xml on Solr I get an error:
Error CREATEing SolrCore 'new_core': Unable to create core [new_core] Caused by: Setting ...
1
vote
0
answers
191
views
solr-6.5.1 org.apache.solr.common.SolrException: can not sort on a PointField without doc values: metadata_modified
I am a bit stuck with error org.apache.solr.common.SolrException: can not sort on a PointField without doc values: metadata_modified.
org.apache.solr.common.SolrException: can not sort on a PointField ...
0
votes
0
answers
36
views
Solr: stop words entirely stop the search, should just be disregarded
I have datasets in CKAN that have Titles like "Application for funding". If a search on "Application for funding" is entered, the results are returned. But if "Application for&...
1
vote
0
answers
63
views
Upgrade PostGIS when not used as extension
I am trying to update a server containing CKAN software from Ubuntu 18 to Ubuntu 20. Due to this upgrade, Postgres is updated from version 10 with PostGIS 2.4 to version 12 with PostGIS 3.
I read ...
0
votes
2
answers
151
views
Is there a way to exclude datasets in CKAN plugin ckanext-datajson output?
We have installed ckanext-datajson to export our datasets into U.S. Project Open Data metadata specification v.1.1 compatible format. However, there are data we do not want to appear in the output ...
0
votes
1
answer
231
views
What causes the Ckan 2.8 DataStore Not Authorized error?
I get error NotAuthorized when I upload file to DataStore. Anyone have any thoughts on the problem?
Error: File "/usr/lib/ckan/default/src/ckan/ckan/logic/__init__.py", line 306, in ...