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

Dataspace Connector UI connection ERROR #313

Open
itachiliu opened this issue Aug 25, 2023 · 3 comments
Open

Dataspace Connector UI connection ERROR #313

itachiliu opened this issue Aug 25, 2023 · 3 comments

Comments

@itachiliu
Copy link

Hello, I installed the dataspace connector and the dataspace connectorUI as instructed. Here's how:

dataspace connector:
docker run -p 8080:8080 --name connector ghcr.io/international-data-spaces-association/dataspace-connector:latest

dataspace connectorUI:

sudo docker build -t dataspace-connector-ui .
sudo docker-compose up

and the docker build hint:
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

but it build and execute successfully.

image

Next step, I access the localhost:8083, there are some error int the website:
image

the log show :
image

Then I access 'https://admin:password@localhost:8080/api/configurations' by website, it succeed.
image

Error: connect ECONNREFUSED 127.0.0.1:8080

So, what's wrong with my option and how to solve it,can you help me?

Thanks.

@jdortega
Copy link

jdortega commented Sep 27, 2023

I have the same issue. I have configured a DSC and its UI using docker. I can access the connector API Swagger UI and try many of the request that the UI is giving error.

In the UI I get the same error: Error: connect ECONNREFUSED 127.0.0.1:8080

I have checked the port of the connector is correct.

I will also appreciate if anyone can provide some help to solve this issue

@mitsos-tsali
Copy link

heya fellas, anyone managed to solve this error?

i tried changing "username" to "key" and "password" to "value" in the authentication headers, as an old issue suggested, but still no improvement.

thanks again!

@jungyitsai
Copy link

I used this docker-compose.yml to solve this problem.

Change CONNECTOR_URL=https://localhost:8080 to CONNECTOR_URL=https://dc:8080

Because CONNECTOR_URL=https://localhost:8080 will access to dataspace-connector-ui self.

version: '3.5'

services:
    dataspace-connector:
        container_name: "dc"
        image: ghcr.io/international-data-spaces-association/dataspace-connector:latest
        ports:
            - "8080:8080"
    dataspace-connector-ui:
        container_name: "dci"
        image: ghcr.io/international-data-spaces-association/dataspace-connector-ui:sha-1d4426a
        environment:
            - CONNECTOR_URL=https://dc:8080
            - CONNECTOR_USER=admin
            - CONNECTOR_PASSWORD=password
        ports:
            - "8083:8083"

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

4 participants