borgbackupserver icon indicating copy to clipboard operation
borgbackupserver copied to clipboard

Fatal error when adding a new client

Open bekaha opened this issue 7 months ago • 2 comments

Description

Good evening,

a few minutes ago i wanted to add a new client to BBS. After choosing an name an clickin on "Create Client" BBS throws the error:

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 1364 Field 'api_key' doesn't have a default value in /var/www/bbs/src/Core/Database.php:50 Stack trace: #0 /var/www/bbs/src/Core/Database.php(50): PDOStatement->execute(Array) #1 /var/www/bbs/src/Core/Database.php(69): BBS\Core\Database->query('INSERT INTO age...', Array) #2 /var/www/bbs/src/Controllers/ClientController.php(224): BBS\Core\Database->insert('agents', Array) #3 [internal function]: BBS\Controllers\ClientController->store() #4 /var/www/bbs/src/Core/App.php(66): call_user_func_array(Array, Array) #5 /var/www/bbs/public/index.php(46): BBS\Core\App->run() #6 {main} thrown in /var/www/bbs/src/Core/Database.php on line 50

Cheers

Steps to Reproduce

  1. Go to Clients > Add Client
  2. Add a new client and click "Create client" and BBS throws this error

Installation Type

Docker

BBS Version

v2.28.3

Agent Version (if applicable)

v2.25.0

Agent OS (if applicable)

Ubuntu / Debian

Relevant Logs


bekaha avatar Apr 19 '26 19:04 bekaha

Thanks for the report! Fixed in v2.28.4, just released. Please upgrade.

marcpope avatar Apr 19 '26 20:04 marcpope

Cool, thanks. It's working again.

bekaha avatar Apr 19 '26 20:04 bekaha