[ckan-dev] Enabling File Upload - ckan_version: "2.4.0"

Natalia Queiroz queiroz.nati at gmail.com
Thu Sep 10 19:56:26 UTC 2015


Hello Denis,

looking in /var/log/apache/ckan-error.log I found this

[error] 2015-09-10 16:49:03,246 CRITI [ckan.lib.uploader] Please specify a
ckan.storage_path in your config
[Thu Sep 10 16:49:03 2015] [error]                          for your uploads
[Thu Sep 10 16:49:04 2015] [error] 2015-09-10 16:49:04,651 INFO
[ckan.lib.base]  /dataset render time 1.265 seconds
[Thu Sep 10 16:49:06 2015] [error] 2015-09-10 16:49:06,019 CRITI
[ckan.lib.uploader] Please specify a ckan.storage_path in your config
[Thu Sep 10 16:49:06 2015] [error]                          for your uploads

The documentation says to add the following line to your *CKAN config file*,
after the [app:main] line:
ckan.storage_path = /var/lib/ckan/default

is the CKAN config file /etc/ckan/default/development.ini or
/etc/ckan/default/production.ini
?

On Thu, Sep 10, 2015 at 2:06 PM, Denis Zgonjanin <deniszgonjanin at gmail.com>
wrote:

> It sounds like you're doing everything correctly, but since it's a silent
> error it's hard to know exactly what is going wrong. :(
>
> Perhaps check the apache/nginx logs (whichever one you use ckan with) for
> clues?
>
> On Wed, Sep 9, 2015 at 3:11 PM, Natalia Queiroz <queiroz.nati at gmail.com>
> wrote:
>
>> Hello Denis,
>>
>> I'm able to inform just the url to the image. No upload option is
>> avaiblable.
>>
>> I made the steps described on the ckan documentation, but is not working
>>
>> http://docs.ckan.org/en/ckan-2.4.0/maintaining/filestore.html
>>
>> Am I doing right?
>>
>>
>> On Tue, Sep 8, 2015 at 9:16 PM, Denis Zgonjanin <deniszgonjanin at gmail.com
>> > wrote:
>>
>>> Hi Natalia,
>>>
>>> Are you able to upload images when creating a group or organization?
>>>
>>> - Denis
>>>
>>> On Tue, Sep 8, 2015 at 7:02 PM, Natalia Queiroz <queiroz.nati at gmail.com>
>>> wrote:
>>>
>>>> Anyone?
>>>>
>>>> On Thu, Sep 3, 2015 at 3:48 PM, Natalia Queiroz <queiroz.nati at gmail.com
>>>> > wrote:
>>>>
>>>>> Hello group,
>>>>>
>>>>> I'm trying to enable the file upload option and I followed the instructions according to the documentation
>>>>> http://docs.ckan.org/en/ckan-2.4.0/maintaining/filestore.html
>>>>>
>>>>> I'm using ckan_version: "2.4.0"
>>>>>
>>>>> Those were the steps:
>>>>>
>>>>> 1. Create the directory where CKAN will store uploaded files:
>>>>>       sudo mkdir -p /var/lib/ckan/default
>>>>> 2. Add the following line to your CKAN config file (/etc/ckan/default/development.ini), after the [app:main]line:
>>>>>       ckan.storage_path = /var/lib/ckan/default
>>>>>
>>>>> [app:main]
>>>>> ckan.storage_path = /var/lib/ckan/default
>>>>> use = egg:ckan
>>>>> full_stack = true
>>>>> cache_dir = /tmp/%(ckan.site_id)s/
>>>>> beaker.session.key = ckan
>>>>>
>>>>>
>>>>>
>>>>> 3.Set the permissions of your ckan.storage_path<directory
>>>>>  sudo chown www-data /var/lib/ckan/default
>>>>>  sudo chmod u+rwx /var/lib/ckan/default
>>>>>
>>>>> 4. Restart Apache
>>>>>
>>>>>   sudo service apache2 reload
>>>>>
>>>>>
>>>>> I still don't see the file upload option when trying to create a dataset. Is there somewhere else I should enable this setting?
>>>>>
>>>>> Thanks,
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>>
>>>>> Natália Oliveira
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>> Natália Oliveira
>>>>
>>>> _______________________________________________
>>>> ckan-dev mailing list
>>>> ckan-dev at lists.okfn.org
>>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>>>
>>>>
>>>
>>> _______________________________________________
>>> ckan-dev mailing list
>>> ckan-dev at lists.okfn.org
>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>>
>>>
>>
>>
>> --
>>
>>
>> Natália Oliveira
>>
>
>


-- 


Natália Oliveira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150910/21788d21/attachment-0003.html>


More information about the ckan-dev mailing list