813
questions
0
votes
1
answer
49
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
37
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
15
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
20
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
35
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
29
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
21
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
19
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
48
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
28
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
109
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
26
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
40
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
49
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
23
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
61
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
56
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
34
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
134
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
0
answers
55
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
44
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
140
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
72
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
0
answers
63
views
Ckan 2.10 how to redirect url from www.example.com to /dataset?
I would like to redirect user to /dataset by default how can I do that ??
I tried toolkit return it dint worked I have my old url redirect on ckan2.8 with iroutes but currently in 2.10 is deprecated ...
0
votes
0
answers
47
views
Save CKAN dataset / package extra fields in different tables other than package_extra
I am using CKAN 2.10.1 version and I would like to have the following relation tables as the picture below and also I've created an extension that implements the: IPackageController
plugins.implements(...
0
votes
0
answers
44
views
Line breaks in CKAN markdown with HTML
We are seeing differences in the markdown rendering between two versions of CKAN.
Using the following content in a description field. Note we have allow_html = True for the markdown renderer.
##Header
...
0
votes
1
answer
47
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 ...
0
votes
0
answers
39
views
Ckan 2.10, Create_Package Failing with Bad Request Error
Experiencing an issue calling Ckan RPC API using the simple urlopen approach. I receive an HTTPError 400 - Bad Request. I expect the headers are not formatted correctly. I also can't find the log file ...
0
votes
0
answers
82
views
How to install extension for ckan-docker (saml2auth)
I am trying to install saml2auth in my ckan docker 2.10 instance. I am quite new to the docker world, so I don't know if I am doing it correctly. I usually entered the bash console in the running ...
1
vote
0
answers
28
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
0
votes
0
answers
36
views
How to replace date picker in ckan?
I’m currently working with ckan 2.10 and also I install ckanext-scheming extension. When we add a metadata field with date preset, it shows a date picker which is not a part of scheming extension and ...
0
votes
0
answers
77
views
Creating a CKAN extension to display Page_View tracking summary for each dataset
def get_dataset_tracking_summary(self, dataset_id):
context = {'ignore_auth': True, 'use_cache': False}
result = get_action('package_show')(context, {'id': dataset_id})
tracking_summary = ...
1
vote
1
answer
304
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
223
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
437
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
134
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
131
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
39
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
450
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
583
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
538
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
187
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
164
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
342
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 ...
0
votes
1
answer
192
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
97
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
184
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
469
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
175
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 ...