[ckan-dev] How to run CKAN through Apache ?
Jason Tan
jason.tan at ersa.edu.au
Wed Aug 13 05:19:46 UTC 2014
Ok, so you've identified that there is a problem with SOLR.
The message says "connection refused".
The message is is the apache log.
That's the information you know.
What can you infer from that, what does that imply?
You need to take the info you have and think about it and experiment.
What can't connect?
What is it trying to connect to?
Are both those things running on the same server?
What are all of the things that could cause that?
Which ones can you test?
Which one is most likely?
Have you read every line of every configuration file that you have edited
and thought about how that might relate to the errors you have seen and the
information you know?
There's an etiquette to these kinds of list: Eric Raymond has compiled some
thoughts here:
http://www.catb.org/esr/faqs/smart-questions.html
When you are asking a question within 10 minutes of the last answer
someone gave you, it makes it look like you are not making an honest effort
at fixing it yourself.
I'd suggest you spend a few hours trying to debug and research each issues
before posting to a list.
Regards
Jason Tan
On 13 August 2014 14:22, Library IT <libraryit at iimahd.ernet.in> wrote:
> Dear Nigel,
>
> Please see the Apache error log - it's showing the connection issue with
> Solr (/var/log/apache2/ckan_default.error.log)
>
> [image: Inline image 1]
>
> See the error.log on apache (/var/log/apache2/error.log)
> [image: Inline image 2]
>
>
> On Wed, Aug 13, 2014 at 10:05 AM, Nigel Babu <nigel.babu at okfn.org> wrote:
>
>> You should probably look at apache error logs and see what's going on. I
>> would also recommend having someone who knows Apache configuration take a
>> look.
>>
>> Nigel Babu
>> Developer, Open Knowledge
>>
>>
>> On 13 August 2014 09:58, Library IT <libraryit at iimahd.ernet.in> wrote:
>>
>>> Dear Jason/Nigel,
>>>
>>> As per the document Troubleshooting for *403 Forbidden and 500
>>> Internal Server Error *see the following permission.
>>>
>>> [image: Inline image 1]
>>>
>>> where i have made the mistake ?
>>>
>>> Thanks,
>>> Bhavesh
>>>
>>>
>>> On Wed, Aug 13, 2014 at 9:52 AM, Jason Tan <jason.tan at ersa.edu.au>
>>> wrote:
>>>
>>>> No it's not compulsory to use nginx.
>>>>
>>>> You can shut it down and connect to apache directly if you want.
>>>>
>>>> Jason
>>>>
>>>>
>>>> On 13 August 2014 13:32, Library IT <libraryit at iimahd.ernet.in> wrote:
>>>>
>>>>> Dear Jason/Nigel,
>>>>>
>>>>> I think CKAN is load but it's give me following error
>>>>> Server Error An internal server error occurred
>>>>>
>>>>> I am bit confused about nginx .. Is there compulsory to use nginx for
>>>>> CKAN to run CKAN application through Apache ?
>>>>>
>>>>> see the attached screen sort for error
>>>>>
>>>>> Please guide me on this..
>>>>>
>>>>> Bhavesh Patel
>>>>>
>>>>>
>>>>> On Wed, Aug 13, 2014 at 5:38 AM, Jason Tan <jason.tan at ersa.edu.au>
>>>>> wrote:
>>>>>
>>>>>>
>>>>>> You probably need to edit the nginx config file and change the port
>>>>>> number in the listen directive.
>>>>>> If we pretend you IP is 10.0.0.2 then you might having something in
>>>>>> yout nginx config file that looks something like:
>>>>>> listen 10.0.0.2:80;
>>>>>>
>>>>>> You need to change it to be
>>>>>> listen 10.0.0.2:90 ;
>>>>>>
>>>>>> Jason
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 12 August 2014 19:22, Library IT <libraryit at iimahd.ernet.in>
>>>>>> wrote:
>>>>>>
>>>>>>> Dear Nigel Babu,
>>>>>>>
>>>>>>> Thanks for your mail.
>>>>>>>
>>>>>>> I have follow the steps given
>>>>>>> http://docs.ckan.org/en/latest/maintaining/installing/deployment.html
>>>>>>>
>>>>>>> Now I am able to run CKAN through Apache.
>>>>>>>
>>>>>>> I have already installed koha (80 for OPAC & 8080 for staff) so I
>>>>>>> have set port 9090 for CKAN.
>>>>>>>
>>>>>>> see the attached screen. It's show Internal server error.
>>>>>>>
>>>>>>> When I start the nginx service then it's show me following...
>>>>>>> ------------------------------------------------------
>>>>>>> root at bhavesh:/etc/apache2# /etc/init.d/nginx start
>>>>>>>
>>>>>>> Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98:
>>>>>>> Address already in use)
>>>>>>> nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in
>>>>>>> use)
>>>>>>> nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in
>>>>>>> use)
>>>>>>> nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in
>>>>>>> use)
>>>>>>> nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in
>>>>>>> use)
>>>>>>> nginx: [emerg] still could not bind()
>>>>>>> nginx.
>>>>>>> root at bhavesh:/etc/apache2#
>>>>>>> ------------------------------------------------------
>>>>>>> Please let me know what may be the issue ?
>>>>>>>
>>>>>>> Bhavesh
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Aug 12, 2014 at 12:27 PM, Nigel Babu <nigel.babu at okfn.org>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> You should look at the Deployment documentation:
>>>>>>>> http://docs.ckan.org/en/latest/maintaining/installing/deployment.html
>>>>>>>>
>>>>>>>> This configuration runs CKAN on :8080 on Apache by default. You
>>>>>>>> probably don't need the Nginx bits.
>>>>>>>>
>>>>>>>> Nigel Babu
>>>>>>>> Developer, Open Knowledge
>>>>>>>>
>>>>>>>>
>>>>>>>> On 12 August 2014 12:02, Library IT <libraryit at iimahd.ernet.in>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Dear Tech team,
>>>>>>>>>
>>>>>>>>> I have installed CKAN through Source :
>>>>>>>>> http://docs.ckan.org/en/ckan-2.2/install-from-source.html
>>>>>>>>>
>>>>>>>>> I am able to run the CKAN through Paster (see the attached screen
>>>>>>>>> sort) but suppose I want to run that CKAN through Apache then how I can do
>>>>>>>>> that ?
>>>>>>>>>
>>>>>>>>> Currently, We have installa KOHA on the same server So while
>>>>>>>>> writing http://[ip-address] it will show the OPAC page
>>>>>>>>>
>>>>>>>>> So i have want to set port no 90 http://[ip-address]:90 for CKAN
>>>>>>>>> so what configuration i have to do into apache configuration file ?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Bhavesh Patel
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> 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
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> 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
>>>>
>>>
>>>
>>
>
--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140813/a28bd753/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 51884 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140813/a28bd753/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 156784 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140813/a28bd753/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 146274 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140813/a28bd753/attachment-0011.png>
More information about the ckan-dev
mailing list