Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Server Error(code 500) returned by apache #6

Closed
oguya opened this issue Aug 13, 2015 · 4 comments
Closed

Internal Server Error(code 500) returned by apache #6

oguya opened this issue Aug 13, 2015 · 4 comments

Comments

@oguya
Copy link
Owner

oguya commented Aug 13, 2015

Deploying ckan with vanilla configs on Ubuntu 12.04 installs & configures all the components successfully.
But when you access the default ckan URL - http://hostname/ you get a HTTP code 500 error from Apache.

500 internal server error - google chrome_001

  • apache version

    root@ubuntu-VirtualBox:~# apachectl -v
    Server version: Apache/2.2.22 (Ubuntu)
    Server built:   Jul 24 2015 17:25:52
    
  • OS type & version

    root@ubuntu-VirtualBox:~# lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 12.04.5 LTS
    Release:        12.04
    Codename:       precise
    root@ubuntu-VirtualBox:~# 
    
  • apache error logs

    root@ubuntu-VirtualBox:~# cat /var/log/apache2/ckan.localhost.localdomain.error.log 
    [Thu Aug 13 09:39:47 2015] [crit] [client 172.26.23.23] configuration error:  couldn't perform authentication. AuthType not set!: /
    [Thu Aug 13 09:39:47 2015] [crit] [client 172.26.23.23] configuration error:  couldn't perform authentication. AuthType not set!: /favicon.ico, referer: http://172.26.23.225/
    [Thu Aug 13 09:41:33 2015] [crit] [client 172.26.23.225] configuration error:  couldn't perform authentication. AuthType not set!: /
    [Thu Aug 13 09:42:11 2015] [crit] [client 172.26.23.23] configuration error:  couldn't perform authentication. AuthType not set!: /
    [Thu Aug 13 09:42:11 2015] [crit] [client 172.26.23.23] configuration error:  couldn't perform authentication. AuthType not set!: /favicon.ico, referer: http://172.26.23.225/
    [Thu Aug 13 09:42:11 2015] [crit] [client 172.26.23.23] configuration error:  couldn't perform authentication. AuthType not set!: /
    [Thu Aug 13 09:42:11 2015] [crit] [client 172.26.23.23] configuration error:  couldn't perform authentication. AuthType not set!: /favicon.ico, referer: http://172.26.23.225/
    
@oguya oguya changed the title Internal Server Error returned by 500 Internal Server Error(code 500) returned by apache Aug 13, 2015
@oguya oguya added the bug label Aug 26, 2015
@scuerda
Copy link

scuerda commented Oct 28, 2015

Not sure if you've solved this, but I came up on the exact problem while writing a similar playbook for deploying ckan.

For me, the solution was (so far) changing the following lines in my .conf file

<Directory {{ ckan_settings_path }}>
        Order allow,deny
        Allow from all
        Require all granted
</Directory>

to

<Directory {{ ckan_settings_path }}>
        Order allow,deny
        Allow from all
        Require all granted
        Satisfy Any
</Directory>

The addition of Satisfy Any seems to be the key.

@oguya
Copy link
Owner Author

oguya commented Oct 29, 2015

Basically the config file 000-ckan-default.conf.j2 works on Apache 2.4 & above.

@scuerda
By default, Apache 2.2 uses Satisfy All[1] which ensures all specified criteria must be satisfied before a user is allowed in. On the hand using Satisfy Any works but it's less secure.

  1. https://httpd.apache.org/docs/2.2/howto/auth.html#satisfy

@oguya oguya added the wontfix label Mar 11, 2016
@oguya
Copy link
Owner Author

oguya commented Mar 11, 2016

This is issue occurs on only Apache 2.2 & below which is available on Ubuntu 12.04. I don't see why I should create a fix for this, yet Ubuntu 12.04 is almost approaching its EOL & most people use Ubuntu 14.04 anyways ¯_(ツ)_/¯

@oguya oguya closed this as completed Mar 11, 2016
@scuerda
Copy link

scuerda commented Mar 11, 2016

Works for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants