DependencyTrack / dependency-track

Dependency-Track is an intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain.
https://dependencytrack.org/
Apache License 2.0
2.7k stars 578 forks source link

Server error (0) #2938

Open GurdipS5 opened 1 year ago

GurdipS5 commented 1 year ago

Current Behavior

Hi, I am using the DTrack docker compose file on Ubuntu 22. I download it using the curl command and change the API server url from localhost to the IP of my server.

However, I can browse to the login ui but get server error (0).

I saw the other threads on this but still no luck.

Steps to Reproduce

  1. Download docker compose file
  2. Change API server url to the IP of your local server
  3. Attemp to login via UI

Expected Behavior

Login should succeed.

Dependency-Track Version

4.7.x

Dependency-Track Distribution

Container Image

Database Server

H2

Database Server Version

No response

Browser

Mozilla Firefox

Checklist

valentijnscholten commented 1 year ago

Can you provide your settings / environment variables? The API URL must be reacheable from the browser.

ravindercodes commented 1 year ago

Please use the below configurations in docker-compose.yml. If you want to use a local docker image. You can change the image URL.

name: "dependency-track"

services:
  apiserver:
    image: dependencytrack/apiserver:snapshot #if you want to use local image use local image name with tag.
    ports:
    - "127.0.0.1:8080:8080"
    volumes:
    - "apiserver-data:/data"
    restart: unless-stopped

  frontend:
    image: dependencytrack/frontend:snapshot #if you want to use local image use local image name with tag.
    environment:
      API_BASE_URL: "http://localhost:8080" 
    ports:
    - "127.0.0.1:8081:8080"
    restart: unless-stopped

volumes:
  apiserver-data: { }
cpfeiffer commented 1 year ago

Have a look at the browser dev-tools console. Some privacy browser plugins (e.g. ghostery) prevent access to /api/v1/metrics leading to "Server error (0)".

ebagjones commented 11 months ago

Check the logs, you may find that you do not have sufficient RAM (4GB) available for Java.