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]: When creating custom login on onboarding-setup page I get the error "System setup has already been completed - you cannot do this again." #136

Open
sfstw opened this issue Apr 24, 2024 · 1 comment
Assignees
Labels
possible bug unconfirmed bug report

Comments

@sfstw
Copy link

sfstw commented Apr 24, 2024

How are you running VectorAdmin?

Docker (local)

What happened?

I have used your fantastic tool before and it used to work. This is why it's even more frustrating.

When I use some random email and "password" as password to create a custom login I get this error message

Error creating login: [000] System setup has already been completed - you cannot do this again.

Are there known steps to reproduce?

This is my .env file:

JWT_SECRET="some-random-string"
INNGEST_SIGNING_KEY="some-random-string"
DATABASE_CONNECTION_STRING="postgresql://vectoradmin:[email protected]:5433/vdbms"

I run docker-compose up -d --build vector-admin and when its finished I open http://localhost:3001/ and I get redirected to http://localhost:3001/onboarding-setup.

The UI is new and it says "Create your custom login". When I use some random email and "password" as password to create a custom login I get this error message

Error creating login: [000] System setup has already been completed - you cannot do this again.

I tried deleting the container and the images, pulling everything new and spinning them up again. Nothing helped. I'm stuck.

@sfstw sfstw added the possible bug unconfirmed bug report label Apr 24, 2024
@timothycarambat timothycarambat self-assigned this Apr 24, 2024
@Parsa-Mir
Copy link

Hi @sfstw ,

The problem seems to be related to the persistence of the PostgreSQL data directory, which retains the initial system setup information even after recreating containers. Here's a step-by-step solution:

Quick Fix

  1. Change the PostgreSQL volume directory or remove it:
    Modify the volumes section in your docker-compose.yml for the postgres service as shown below:

    services:
      postgres:
        ...
        volumes:
          - ../postgres:/var/lib/postgresql/data
       ...

    Change ~apps/postgres to something like ../postgresa different directory path


    OR Remove the existing volume data by running the following command (if you used the default values, it would look like this):

    rm -rf ~/apps/postgres
  2. Rebuild and Restart the Services:
    Run the following commands ( in the docker compose directory):

    # remove the currently running containers
    docker-compose down  
    # Rebuild 
    docker-compose up -d --build 
  3. Bypass Initial Authentication:
    If the system setup persists and it directs you to the /auth/sign-in, you then need to bypass the initial authentication by using the root credentials defined in the backend boot script (vectordb/vector-admin/backend/utils/boot/index.js):

This should allow you to log in and proceed without encountering the "System setup has already been completed" error.

@timothycarambat please correct me if I was wrong.

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

No branches or pull requests

3 participants