Skip to content

[BUG] Local docker-compose up - philter unable to connect to ph-eye #16

@nicholasburka

Description

@nicholasburka

What is the bug?

Unable to curl example request locally with docker-compose up running. Get "an unknown error" to client, with error in philter Docker container: "philter-ph-eye-1: Name or service not known."

How can one reproduce the bug?

  • Clone repo - main
  • Build with mvn clean install
  • (X Docker build build doesn't work, skipped)
  • Docker-compose up
  • Open other terminal, run
    curl -k -X POST http://localhost:8080/api/filter -d "George Washington has the flu at 12 Harvard Yard" -H "Content-Type: text/plain"

What is the expected behavior?

Should show filtered text.

What is your host/environment?

MacOS Monterey 12.7.1

Do you have any screenshots?

curl -k -X POST http://localhost:8080/api/filter -d "George Washington has the flu at 12 Harvard Yard" -H "Content-Type: text/plain"

produces:
"Unknown error" and

philter | [INFO ] 2024-12-14 22:15:32.858 [http-nio-8080-exec-1] [/] - Initializing Spring DispatcherServlet 'dispatcherServlet' philter | [INFO ] 2024-12-14 22:15:32.858 [http-nio-8080-exec-1] DispatcherServlet - Initializing Servlet 'dispatcherServlet' philter | [INFO ] 2024-12-14 22:15:32.860 [http-nio-8080-exec-1] DispatcherServlet - Completed initialization in 2 ms philter | [ERROR] 2024-12-14 22:15:33.722 [http-nio-8080-exec-1] RestApiExceptions - An unknown error has occurred. philter | java.net.UnknownHostException: philter-ph-eye-1: Name or service not known philter | at java.base/java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) ~[?:?] philter | at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:934) ~[?:?] philter | at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1543) ~[?:?] ... at ai.philterd.phileas.services.filters.ai.pheye.PhEyeFilter.filter(PhEyeFilter.java:127) ~[phileas-core-2.10.0-SNAPSHOT.jar!/:?] philter | at ai.philterd.phileas.processors.unstructured.UnstructuredDocumentProcessor.process(UnstructuredDocumentProcessor.java:65) ~[phileas-processors-unstructured-2.10.0-SNAPSHOT.jar!/:?] philter | at ai.philterd.phileas.services.PhileasFilterService.filter(PhileasFilterService.java:234) ~[phileas-core-2.10.0-SNAPSHOT.jar!/:?] philter | at ai.philterd.phileas.services.PhileasFilterService.filter(PhileasFilterService.java:255) ~[phileas-core-2.10.0-SNAPSHOT.jar!/:?] philter | at ai.philterd.philter.services.PhilterService.filter(PhilterService.java:77) ~[philter-services-3.1.0-SNAPSHOT.jar!/:?] philter | at ai.philterd.philter.api.controllers.FilterApiController.filterTextPlainAsTextPlain(FilterApiController.java:95) ~[philter-api-3.1.0-SNAPSHOT.jar!/:?]

Do you have any additional context?

Pinging localhost:18080 to talk to ph-eye directly works, so it's seemingly a Docker networking issue. I've tried a few Docker-y tricks suggested by Claude like adding container name and host name to the docker-compose.yaml. I've also run from a clean clone, cleaned out old containers, etc.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions