[ckan-dev] Internal Server Error while adding dataset

Library IT libraryit at iimahd.ernet.in
Fri Jul 11 05:58:58 UTC 2014


Dear Hayden,

We have follow the steps to install CKAN :
http://docs.ckan.org/en/1197-rtd-fix/install-from-source.html

I think we are not using CKAN through apache it's through Jetty & apache
solr.

Thanks,
Bhavesh


On Fri, Jul 11, 2014 at 11:25 AM, Hayden Waring <hayden at opengovgear.com>
wrote:

> Hi Bhavesh,
>
> Are you serving CKAN through apache?
>
> Hayden Waring
> OpenGovGear
> www.opengovgear.com
>
>
> On Thu, Jul 10, 2014 at 10:53 PM, Library IT <libraryit at iimahd.ernet.in>
> wrote:
>
>> Dear Hayden Waring,
>>
>> thanks for your mail..
>>
>> we have set the permission of filestore folder.. to 777 as well as the
>> ownership to www-data.
>> but still it's showing the internal server error while click on
>> Next:Additional Info button.
>>
>> Bhavesh
>>
>>
>> On Fri, Jul 11, 2014 at 10:55 AM, Hayden Waring <hayden at opengovgear.com>
>> wrote:
>>
>>> HI Bhavesh,
>>>
>>> I am going to guess you don't have the permissions set properly for your
>>> filestore.
>>>
>>> When you go to upload the file ckan tries to access the filestore
>>> directory and fails which gives you the error when hit the add button.
>>>
>>> The documentation tells you to change the ownership of the filestore to
>>> www-data. If you are only serving the instance from your local machine you
>>> need to change the owner of the directory to ubuntu or whatever the name of
>>> your user is.
>>>
>>> Best of luck,
>>>
>>> Hayden Waring
>>> CTO OpenGovGear
>>> www.opengovgear.com
>>>
>>>
>>> On Thu, Jul 10, 2014 at 10:09 PM, Jason Tan <jason.tan at ersa.edu.au>
>>> wrote:
>>>
>>>> HI Bhavesh,
>>>>
>>>> I'm' just taking a a guess here based on the limited info we've got and
>>>> my very limited experience
>>>>
>>>> The most common problems I have noticed with CKAN in my very limited
>>>> experience are CKAN not being able to talk to the database (e.g. database
>>>> server has been rebooted but the db did not come up or a firewall rule was
>>>> reloaded or a network interface somewhere is broken) or permissions on a
>>>> directory on the ckan server.
>>>> E.g. the ofs.storage_dir not being writable by the web server user
>>>>
>>>> If you're getting webserver errors, it would be really useful to
>>>> include web server error log output.
>>>> Often the error is fairly easy to decipher from log output.
>>>>
>>>> Not sure how experienced you are in this space i.e running apps on unix
>>>> hosts, but I'd be looking at my system log e.g. /var/log/messages, the
>>>> webserver error logs e.g. /var/log/apache/error_log
>>>>  /var/log/apache/ssl_error_log  (the paths will vary from distro to
>>>> distro - I'ma redhat guy so those are centos/redhat paths) and running the dmesg
>>>> command.
>>>>
>>>> Also if you are running a distro with selinux  (most redhat based
>>>> distros have it) try typing: getenforce which will tell you if selinux
>>>> is enforcing its policy or not.
>>>>
>>>> If it says enforcing then try temporarily turning it off by running the
>>>> following as root:
>>>> setenforce 0
>>>>
>>>> Usually when something goes wrong there are hints in these kinds of
>>>> places and it is useufl for you to chceck them and if you ask for help to
>>>> inlcude any possibly related messages in your help request.
>>>>
>>>> I believe you can also add logging to CKAN itself while it is running
>>>> under paster, though I can't recall how to do it.
>>>>
>>>> Regards
>>>> Jason Tan
>>>>
>>>>
>>>>
>>>>
>>>> On 11 July 2014 14:20, Library IT <libraryit at iimahd.ernet.in> wrote:
>>>>
>>>>> Dear All,
>>>>>
>>>>> We are facing one issue while adding Dataset .. It's give us Internal
>>>>> server Error (plx see the screen sort).
>>>>>
>>>>> Also Suppose We have some local files and we want to upload on that
>>>>> dataset then there is no browse option for uploading files from local
>>>>> machine (see the add resource form.png).
>>>>>
>>>>> for that we have try :
>>>>> http://docs.ckan.org/en/1117-start-new-test-suite/filestore.html
>>>>> We have add
>>>>> [app:main]
>>>>> ofs.impl = pairtree
>>>>> ofs.storage_dir = /var/lib/ckan/default
>>>>>
>>>>> as well as
>>>>> ckan.site_url = http://192.168.251.89:5000
>>>>>
>>>>> but it's not working...
>>>>>
>>>>> NOTE : suppose we have change ckan config file then is there any
>>>>> service we have to restart ?
>>>>>
>>>>> Plz help me on this
>>>>>
>>>>> Bhavesh Patel
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Jason Tan
>>>> Data Infrastructure Specialist, eResearch SA
>>>>
>>>> phone: +61 8 8313 2184
>>>> Mob: +61 407 268 270
>>>> email: jason.tan at ersa.edu.au
>>>> web: http://www.ersa.edu.au
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140711/7954a970/attachment-0003.html>


More information about the ckan-dev mailing list