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

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

Open
givemetarte opened this issue May 17, 2024 · 7 comments

Comments

@givemetarte
Copy link

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

  • Ubuntu v20.04.6
  • Docker v24.0.2
  • Docker Compose v2.27.0

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=**
  1. run ./scripts/setup.sh .env ssl password password 3650
  2. run docker-compose up --build
  3. 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
Copy link
Member

@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
Copy link
Author

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
Copy link
Member

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

@givemetarte
Copy link
Author

givemetarte commented May 23, 2024

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

@givemetarte givemetarte reopened this May 23, 2024
@namedgraph
Copy link
Member

namedgraph commented May 30, 2024

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

@namedgraph
Copy link
Member

@givemetarte can you provide more info/

@givemetarte
Copy link
Author

givemetarte commented Jun 4, 2024

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

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

No branches or pull requests

2 participants