Skip to content

DB Credentials incorrect when within main pod #56

@huang-jy

Description

@huang-jy

After fixing the start up issue, I've now tried to create the test user using the example provided in the docs, but tweaked a bit to represent my local setup:

$ kubectl exec -n pixelfed -it pixelfed-bd8cb75b9-f6jcj -- /bin/bash -c "php artisan user:create --name=myname --
username=myusername [email protected] --password=password --is_admin=false --confirm_email=true"
Creating a new user...

   Illuminate\Database\QueryException 

  SQLSTATE[08006] [7] connection to server at "postgresql" (10.108.150.21), port 5432 failed: FATAL:  password authentication failed for user "postgres" (Connection: pgsql, SQL: insert into "users" ("username", "name", "email", "password", "is_admin", "email_verified_at", "updated_at", "created_at") values (myusername, myname, [email protected], $2y$10$.nOUNAJHdVaCbMuGfiX3JuyZH/rGOtII3Lfrr6UZDL4hH/xIwKeE6, 0, 2025-01-24 19:00:34, 2025-01-24 19:00:34, 2025-01-24 19:00:34) returning "id")

  at vendor/laravel/framework/src/Illuminate/Database/Connection.php:825
    821▕                     $this->getName(), $query, $this->prepareBindings($bindings), $e
    822▕                 );
    823▕             }
    824▕ 
  ➜ 825▕             throw new QueryException(
    826▕                 $this->getName(), $query, $this->prepareBindings($bindings), $e
    827▕             );
    828▕         }
    829▕     }

      +19 vendor frames 

  20  app/Console/Commands/UserCreate.php:57
      Illuminate\Database\Eloquent\Model::save()
      +12 vendor frames 

  33  artisan:35
      Illuminate\Foundation\Console\Kernel::handle()

command terminated with exit code 1

It appears to be able to connect to the database, but not able to authenticate with it.

I suspect this may also be the reason why I see this on the homepage:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions