finos / legend

The Legend project
https://legend.finos.org
Apache License 2.0
1.28k stars 202 forks source link

Get "500 org.pac4j.core.exception.TechnicalException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target" when launching legend-sdlc #646

Closed mishagavron closed 1 year ago

mishagavron commented 1 year ago

Bug Report

After I launch legend-sdlc server using "java -cp legend-sdlc-server/target/*-shaded.jar org.finos.legend.sdlc.server.LegendSDLCServer server config.yaml" command I get the error message below when I go to chrome browser page http://localhost:6100

http://localhost:6101 works

Error message

500 org.pac4j.core.exception.TechnicalException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target org.eclipse.jetty.servlet.ServletHandler$Default404Servlet-13d19930 org.pac4j.core.exception.TechnicalException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Environment:

fully recompiled legend-sdlc server

Additional Context:

Here is my config.yaml file content

applicationName: Legend SDLC

sessionCookie: LEGEND_SDLC_JSESSIONID

server: applicationConnectors:

features:

canCreateProject: true

canCreateVersion: true

filterPriorities: GitLab: 1 org.pac4j.j2e.filter.CallbackFilter: 2 org.pac4j.j2e.filter.SecurityFilter: 3 CORS: 4

pac4j: callbackPrefix: /api/pac4j/login clients:

gitLab: newProjectVisibility: public projectIdPrefix: SAMPLE projectTag: legend server: scheme: http host: localhost:6100 app: id: 32530efdd9c32fa73f419c1358bfe3aa7f37f9f659f80d8614e2e19140f23f3f secret: 39d606d2819804f8523300dac1daa4a8cc0f532001dfb65d03fee2c9cde93d60 redirectURI: http://localhost:6100/api/auth/callback

projectStructure: extensionProvider: org.finos.legend.sdlc.server.gitlab.finos.FinosGitlabProjectStructureExtensionProvider: {} platforms: legend-engine: groupId: org.finos.legend.engine platformVersion:

version: 3.3.1

    fromPackage: legend-engine-protocol-pure
legend-sdlc:
  groupId: org.finos.legend.sdlc
  platformVersion:
    #version: 0.77.1
    fromPackage: legend-sdlc-server

logging:

Change this to affect library class logging

level: INFO loggers:

Change this to affect application class logging

org.finos.legend.sdlc: INFO

appenders:

swagger: resourcePackage: org.finos.legend.sdlc.server.resources title: Legend SDLC schemes: []

finos-admin commented 1 year ago

This issue is stale because it has been open for 30 days with no activity. Please remove stale label or add any comment to keep this open. Otherwise this will be closed in 5 days.

finos-admin commented 1 year ago

This issue was closed because it has been inactive for 35 days. Please re-open if this issue is still relevant.