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

bug: LANGFUSE_DEFAULT_PROJECT_ID not working #2016

Open
scieneer-jonas opened this issue May 8, 2024 · 3 comments
Open

bug: LANGFUSE_DEFAULT_PROJECT_ID not working #2016

scieneer-jonas opened this issue May 8, 2024 · 3 comments

Comments

@scieneer-jonas
Copy link

Describe the bug

The LANGFUSE_DEFAULT_PROJECT_ID does not seem to work. I tried a couple of names, but a new user account is always greeted with the "Get started - Create new project" page. Also tried to set LANGFUSE_DEFAULT_PROJECT_ROLE to 'ADMIN' at the same time, but without success. The default project defined in LANGFUSE_DEFAULT_PROJECT_ID does also not appear in the postgres projects table, like the other langfuse projects.

I also tried starting with a fresh DB without any Langfuse projects and created the LANGFUSE_DEFAULT_PROJECT_ID manually, but new users also would not be added to this project.

See the docker compose file for recreation:

To reproduce

version: "0.1"
name: langfuseexample
services:
  langfuse:
    image: langfuse/langfuse:2.38.0
    depends_on:
      - postgres
    ports:
      - "3000:3000"
    environment:
      DATABASE_HOST: 'postgres:5432'
      DATABASE_NAME: 'langfuse'
      DATABASE_USERNAME: 'postgres'
      DATABASE_PASSWORD: 'tempP@ssw0rd'
      NEXTAUTH_SECRET: 'mysecret'
      SALT: 'mysalt'
      NEXTAUTH_URL: 'http://localhost:3000'
      LANGFUSE_DEFAULT_PROJECT_ID: test
      LANGFUSE_DEFAULT_PROJECT_ROLE: 'ADMIN'

  postgres:
    image: postgres:16-alpine
    ports:
      - 5432:5432
    volumes:
      - ./db/postgres:/var/lib/postgresql/data
    environment:
      POSTGRES_PASSWORD: 'tempP@ssw0rd'
      POSTGRES_USER: 'postgres'
      # default db name
      POSTGRES_DB: 'postgres'

SDK and container versions

langfuse/langfuse:2.38.0

Additional information

No response

Are you interested to contribute a fix for this bug?

No

@marcklingen
Copy link
Member

does a project with this model id exist in your instance?

@scieneer-jonas
Copy link
Author

Did you mean project id with "model id"? I believe the project id never gets created, as I can not find the set default project in the database.
I also tried creating the same default project in the UI, but new users are also not added to this project per default.

@marcklingen
Copy link
Member

thanks for the reporting and sorry for the confusion (I meant projectId).

current behavior

  • no project gets created via this setting
  • new users should be added to a project with the chosen id if it exists -- this does not seem to work correctly, we'll have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants