Skip to content

Conversation

@ronibhakta1
Copy link
Collaborator

currently, its not working as the v2 is configued with GROM. but, lcp-server which yet not support the dsn: with postgresql inside its lcpserver.yaml as mentioned in the edrlab's lcp-server v2, yet to find a solution to get it connected to lenny_db to solve the issue

Error log's:

lenny_lcp      | 2025/06/24 21:14:25 /app/pkg/stor/store.go:131
lenny_lcp      | [error] failed to initialize database, got error failed to connect to `user=root database=`: /tmp/.s.PGSQL.5432 (/tmp): dial error: dial unix /tmp/.s.PGSQL.5432: connect: no such file or directory
lenny_lcp      | 2025/06/24 21:14:25 Failed connecting to the database: failed to connect to `user=root database=`: /tmp/.s.PGSQL.5432 (/tmp): dial error: dial unix /tmp/.s.PGSQL.5432: connect: no such file or directory
lenny_lcp      | 2025/06/24 21:14:25 Database setup failed: failed to connect to `user=root database=`: /tmp/.s.PGSQL.5432 (/tmp): dial error: dial unix /tmp/.s.PGSQL.5432: connect: no such file or directory
lenny_lcp      | Failed with direct config
lenny_lcp      | All options failed, falling back to environment variables only...
lenny_lcp      | 
  • This pull request introduces support for integrating an LCP (Licensed Content Protection) server into the lenny project. The changes include updates to the Docker configuration, environment variables, and project setup scripts to enable the LCP server functionality.

LCP Server Integration

  • Docker configuration: Added a new lcp service to compose.yaml, including its build context, environment variables, and volume mappings. Defined a new lcp_data volume for persistent data storage. [1] [2]
  • Dockerfile for LCP server: Created a new docker/lcp-server/Dockerfile to build and run the LCP server using Go. The Dockerfile includes certificate generation and a startup script for the server.
  • Configuration generation script: Added docker/lcpserverconfig.sh to generate the lcpserver.yaml configuration file dynamically using environment variables.

Environment Variable Updates

  • Environment variables for LCP server: Updated docker/configure.sh to define new environment variables for LCP server configuration, including port, URL, admin credentials, and database connection details. [1] [2]

Project Configuration Updates

  • Python configuration: Updated lenny/configs/__init__.py to include LCP server settings (LCP_SERVER) and expose them in __all__. [1] [2]
  • Setup script updates: Modified README.md and run.sh to include the new docker/lcpserverconfig.sh script and indicate the generation of LCP server configuration files. [1] [2] [3]

Configuration Template

  • LCP server configuration template: Added lcpserver.yaml.template to define the structure of the LCP server configuration file, including database connection, license settings, and certificate paths.

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

Successfully merging this pull request may close these issues.

1 participant