OHDSI / Atlas

ATLAS is an open source software tool for researchers to conduct scientific analyses on standardized observational data
http://atlas-demo.ohdsi.org/
Apache License 2.0
266 stars 136 forks source link

err:connection_refused #2742

Closed nzurawski closed 1 year ago

nzurawski commented 2 years ago

Expected behavior

WebAPI to initialize without SSL and Atlas to load

Actual behavior

Atlas can't connect to WebAPI with console errors of connection refused

Steps to reproduce behavior

I've been trying to configure the security settings to enable SSL. After getting fully frustrated with it I went back to default security settings with security and SSL disabled. I have rebuilt the .WAR file and redeployed the WebAPI in Tomcat but when I load Atlas I get this error. I've attached screen shots of the error and my settings.xml file

Any help would be greatly appreciated

conrefused settings

chrisknoll commented 2 years ago

what is your config-local.js file configured to point at? An example is:

define([], function () {
    var config = {};

    config.api =
        {
            name: 'Local',
            url: 'http://localhost:8080/WebAPI/'
        };
        config.userAuthenticationEnabled = false;
}

SSL configuration is different than security configuration in that in order to have SSL, you need certificates set up to receive encrypted HTTP requests. There are a number of people who have set this up (I haven't done it recently) @anthonysena do you have any guidance on this or @alex-odysseus ?

nzurawski commented 1 year ago

Closing as I've already figured this out with Anthony's help.