AtomGraph / LinkedDataHub

The low-code Knowledge Graph application platform. Apache license.
https://atomgraph.github.io/LinkedDataHub/
Apache License 2.0
483 stars 120 forks source link

Failed to install LinkedDataHub (static net::ERR_CONNECTION_REFUSED error) #190

Open givemetarte opened 1 month ago

givemetarte commented 1 month ago

Hi, I got an error while installing LinkedDataHub. I can access LinkedDataHub through http://localhost:4443/, but the problem is that static files are not loaded.

Screenshot 2024-05-17 at 7 15 23 PM

Machine info

Installation info

  1. add .env file
    
    COMPOSE_CONVERT_WINDOWS_PATHS=1
    COMPOSE_PROJECT_NAME=linkeddatahub

PROTOCOL=https HTTP_PORT=81 HTTPS_PORT=4443 HOST=localhost ABS_PATH=/

OWNER_MBOX=@gmail.com OWNER_GIVEN_NAME= OWNER_FAMILY_NAME= OWNER_ORG_UNIT= OWNER_ORGANIZATION= OWNER_LOCALITY= OWNER_STATE_OR_PROVINCE=** OWNER_COUNTRY_NAME=



2. run `./scripts/setup.sh .env ssl password password 3650`
3. run `docker-compose up --build`
4. `localhost:4443` in the browser 

I don't know what the problem is..🥲 

Also, HTTPS is not authenticated, and as shown in the above image, an error saying 'Access not authorized for require URI' appears.'
namedgraph commented 1 month ago

@givemetarte it looks like you're not accessing LDH on localhost? Reset the environment (see README) and try to specify the actual host (or IP address) in the .env config.

givemetarte commented 1 month ago

Thanks for your help! Your directions worked, but another error comes up... I thinks the issue is related to certificates. I followed "get an account" direction and copy keystore.p12 to my local(using SCP).

But, as below image, the popup (an error has occurred) comes out and said "invalid password." (I double-checked my password..🥲)

Screenshot 2024-05-20 at 5 31 11 PM Screenshot 2024-05-20 at 5 36 37 PM

I've tried installing both cert.pem and public.pem locally, but only public.pem was successfully installed. However, even after relaunching Chrome, I still receive the "Accessed not authorized" error. How can I do?

namedgraph commented 1 month ago

@givemetarte did you solve this? What was the problem?

givemetarte commented 1 month ago

The error is not completely solved. My chrome browser still comes up the error in my Mac. However, in Window, I can access LinkedDataHub with no error.

The guides in README setup worked well in Window, not Mac.

  1. Install ssl/owner/keystore.p12 into a web browser of your choice (password is the $owner_cert_pwd value supplied to setup.sh) Google Chrome: Settings > Advanced > Manage Certificates > Import... Mozilla Firefox: Options > Privacy > Security > View Certificates... > Import... Apple Safari: The file is installed directly into the operating system. Open the file and import it using the Keychain Access tool (drag it to the local section). Microsoft Edge: Does not support certificate management, you need to install the file into Windows. Read more here.

The public.pem certificate is in my local, but nothing happens when I access to LinkedDataHub. Screenshot 2024-05-23 at 1 46 53 PM

namedgraph commented 1 month ago

@givemetarte you have to import the .p12 keystore file (ssl/owner/keystore.p12), not the .pem certificate file.

namedgraph commented 1 month ago

@givemetarte can you provide more info/

givemetarte commented 1 month ago

The keystore.p12 does not work well in MacOS. I copied keystore.p12 in my MacOS laptop and Window desktop. The settings below in README.md worked well in Window chrome browser.

Install ssl/owner/keystore.p12 into a web browser of your choice (password is the $owner_cert_pwd value supplied to setup.sh) Google Chrome: Settings > Advanced > Manage Certificates > Import... Mozilla Firefox: Options > Privacy > Security > View Certificates... > Import... Apple Safari: The file is installed directly into the operating system. Open the file and import it using the Keychain Access tool (drag it to the local section). Microsoft Edge: Does not support certificate management, you need to install the file into Windows. Read more here.

However, when I clicked the keystore.p12 file in MacOS, the popup said the password is invalid. I set up the certificate well with the changed password in Window, and I don't know why the certificate is not recognized in macos.

Screenshot 2024-06-04 In Windows, I set up the certificate well with the changed password.at 1 50 57 PM