[ckan-discuss] Some problems installing ckan

Ruben Martin ruben.martin at fundacionctic.org
Wed Feb 22 15:27:58 GMT 2012


Thanks for the response Rufus

We followed the current package installation instructions in the web
manual, so version is 1.5.1 (and so appears below in the footer of the
pages)

Yes, I am logged in when i try to upload a file. But after the selection of
a file and before i click on the Add button, this message appears:
"Failed to get credentials for storage upload. Upload cannot proceed"
Maybe it is trying to connect with Webstore ?

I have just deny visitors the create-user permission:
sudo -u ckanstd paster --plugin=ckan roles deny reader create-user -c
/etc/ckan/std/std.ini
sudo -u ckanstd paster --plugin=ckan roles deny anon_editor create-user -c
/etc/ckan/std/std.ini

and after restarting, the register link is *not* hidden, but now when you
access the register page, it shows you this message "Unauthorized to create
a user" (when not logged in). But anyway that is an improvement.


2012/2/20 Rufus Pollock <rufus.pollock at okfn.org>

> On 19 February 2012 13:42, Ruben Martin <ruben.martin at fundacionctic.org>
> wrote:
> > Hello from CTIC, Spain
>
> Welcome!
>
> > We are assessing now the use of ckan for a spanish council
> administration,
> > our first production deployment. We have two questions, maybe you can
> help
>
> Great to hear!
>
> > us here because we cant solve them through the documentation.
> >
> > - Is there an easy way of preventing non logged users from registering.
> CKAN
> > would operate in ‘publisher mode’, but they would like admin to be the
> only
> > role allowed to make new users/registrations (via web). The register link
> > can be hidden changing the template, but not the register page itself.
>
> Yes, there is an easy way to hide this (which should also hide
> register link ...). Just do:
>
> paster --plugin=ckan roles -c my.ini deny reader create-user
> paster --plugin=ckan roles -c my.ini deny anon_editor create-user
>
> To explain: there exists a create-user action which allows creation of
> users. Anonymous users are called 'visitor' and roles assigned can be
> seen by doing:
>
> paster --plugin=ckan rights visitor
>
> We're interested in role on the System rather than individual objects
> and at least on my system visitor is assigned anon_editor role. Thus
> removing the create-user action from the anon_editor role will do what
> you want -- deny non-logged in the users the ability to sign up.
>
> > - We have a problem with the uploading of files. It seems the extension
> is
> > functioning correctly but when we select a file a click on "Add" button,
> the
> > circle
> > just keeps spinning with no result. File name does not have any spaces.
> May
> > some we lack some configuration:
>
> Are you logged in? There is a known UX bug whereby non-logged in users
> hang for upload because they are not allowed (but this auth failure
> does not show up). See <http://trac.ckan.org/ticket/1553>. In general
> this shouldn't be an issue because most sites do not allow editing by
> anonymous users.
>
> > # Add any CKAN plugins here. Note: This line is required to be here for
> > # packaging, even if it is empty.
> > ckan.plugins = storage
> >
> > ## OFS configuration
> > ckanext.storage.bucket = ckan
> > ofs.impl = pairtree
> > ofs.storage_dir = /home/ruben/ckan/storage
>
> Which version of CKAN are you running?
>
> Rufus
>



-- 

Rubén Martín Calderero

CTIC-Centro Tecnológico
Parque Científico y Tecnológico de Gijón
c/ Ada Byron, 39 Edificio Centros Tecnológicos
33203 Gijón - Asturias - España
Tel.: +34 984 29 12 12
Fax: +34 984 39 06 12
E-mail: ruben.martin at fundacionctic.org
http://www.fundacionctic.org
Política de Privacidad: http://www.fundacionctic.org/privacidad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20120222/e1e1472e/attachment.htm>


More information about the ckan-discuss mailing list