Git Product home page Git Product logo

Comments (9)

jensl avatar jensl commented on August 29, 2024

What files exist in the directory /etc/apache2/sites-enabled/?

from critic.

garyx avatar garyx commented on August 29, 2024

critic-main.conf is there from the installation

from critic.

jensl avatar jensl commented on August 29, 2024

And what's the result of loading http://the-system/?

from critic.

garyx avatar garyx commented on August 29, 2024

It was redirected to a login page and that page did not load.

from critic.

jensl avatar jensl commented on August 29, 2024

(Assuming here that you configured Critic to handle authentication, but not allow anonymous users. It sounds like it.)

Oh, but then at least Critic is called correctly from Apache, or it wouldn't have been able to emit such a redirect. So Apache configuration seems reasonably working.

Does "did not load" mean "produced some sort of error" or "never finished loading"? If the latter, can you use your browser's development tools to investigate what's going on, i.e. if any particular request is getting stuck or something? Or try loading the login page using a command-line tool like wget or curl, and see if that's more enlightening?

from critic.

garyx avatar garyx commented on August 29, 2024

Well let's see, the redirect to the https://host/login?target=/ finishes but at that target I get connection refused. So the redirect works from http to https within apache is correct but I don't seem to get anything loaded from critic at the login page.

from critic.

garyx avatar garyx commented on August 29, 2024

I can see apache start the wsgi and there are no errors in the critic logs or in the apache.

Critic logs
x.x.x.x - - [03/Jun/2015:17:50:22 +0000] "GET / HTTP/1.1" 307 271 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.105 Safari/537.36 Vivaldi/1.0.190.2"
x.x.x.x - - [03/Jun/2015:17:50:23 +0000] "GET /login?target=/ HTTP/1.1" 307 293 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.105 Safari/537.36 Vivaldi/1.0.190.2"

No activity in the apache logs when I try to access so I am a bit stumped where it is failing as the only thing I see in the dev tools is connection refused in the browser.

Have you installed critic on Ubuntu 14.04 before and did it just work right away with no fiddling?

from critic.

jensl avatar jensl commented on August 29, 2024

One thing that could produce those symptoms is if you told Critic to run in mixed HTTP/HTTPS mode during installation, but haven't actually configured Apache to support HTTPS, which Critic's installation script doesn't do for you. By default, Apache wouldn't listen to HTTPS (port 443) at all, which would give you a connection refused error.

If this is your problem, then you need to either make the necessary Apache configuration, or tell Critic that you're only using HTTP by setting the ACCESS_SCHEME variable in /etc/critic/main/configuration/base.py to "http". (I don't recommend using authentication over HTTP unless you know what you're doing, of course.)

Ubuntu 14.04 is one of the OS versions that we run automatic testing on, so it shouldn't be a problem.

from critic.

garyx avatar garyx commented on August 29, 2024

Yeah see it now, thanks that's what I needed. Just didn't realize it when I didn't see any failures when accessing.

from critic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.