fossology / fossology/FOSSology.REST.shell

Using the provided Docker image we get a Fatal Error when connecting to external database

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
13
Forks
4
PR merge metrics
No merged PRs in 30d

Description

When starting fossology with a external database a fatal error prevents the application to start up:

`
fossology-fossology-1 | Removed 0 rows from tables with new constraints

fossology-fossology-1 | PHP Warning: pg_query(): Query failed: FEHLER: Spalte »fossdashconfig_pk« von Relation »fossdashconfig« existiert bereits in /usr/local/share/fossology/lib/php/Db/Driver/Postgres.php on line 68
fossology-fossology-1 | [2025-11-18T04:12:57.171439+00:00] /usr/local/share/fossology/lib/php/libschema.php.CRITICAL: FEHLER: Spalte »fossdashconfig_pk« von Relation »fossdashconfig« existiert bereits [] []
fossology-fossology-1 | PHP Fatal error: Uncaught Fossology\Lib\Exception: error executing: ALTER TABLE "fossdashconfig" ADD COLUMN "fossdashconfig_pk" int4 DEFAULT nextval('fossdashconfig_fossdashconfig_pk_seq'::regclass)
fossology-fossology-1 |
fossology-fossology-1 | FEHLER: Spalte »fossdashconfig_pk« von Relation »fossdashconfig« existiert bereits in /usr/local/share/fossology/lib/php/Db/DbManager.php:133
fossology-fossology-1 | Stack trace:
fossology-fossology-1 | #0 /usr/local/share/fossology/lib/php/Db/DbManager.php(192): Fossology\Lib\Db\DbManager->checkResult()
fossology-fossology-1 | #1 /usr/local/share/fossology/lib/php/libschema.php(320): Fossology\Lib\Db\DbManager->queryOnce()
fossology-fossology-1 | #2 /usr/local/share/fossology/lib/php/libschema.php(170): fo_libschema->applyTables()
fossology-fossology-1 | #3 /usr/local/lib/fossology/fossinit.php(189): fo_libschema->applySchema()
fossology-fossology-1 | #4 {main}
fossology-fossology-1 | thrown in /usr/local/share/fossology/lib/php/Db/DbManager.php on line 133
fossology-fossology-1 exited with code 255
`

... the same image runs well with the internal database. The problem is indeed that the column already exists. Unfortunately the application exits despite the database looking well.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.