Skip to content

[Fix] "Unable to determine database syntax" on DBInit#3

Open
eduardomozart wants to merge 1 commit into
netxms:masterfrom
eduardomozart:patch-2
Open

[Fix] "Unable to determine database syntax" on DBInit#3
eduardomozart wants to merge 1 commit into
netxms:masterfrom
eduardomozart:patch-2

Conversation

@eduardomozart
Copy link
Copy Markdown

@eduardomozart eduardomozart commented May 5, 2026

Suppress "Unable to determine database syntax" when initializing the database, which could lead sysadmins to think that something is wrong when installing NetXMS (Docker) for the first time. On Error <> 5 it shows the nxdbmgr output as before.

Before:

root@419739ee72ee:/# ./dbinit.sh 
Unable to determine database syntax
NetXMS Database Manager Version 6.1.1 Build 6.1-452-gc20a8a4247

Initializing database...

IMPORTANT: Generated admin password
   Login:    admin
   Password: YnoablTzN24bDXYZ

Please save this password - it will not be shown again.
You will be required to change it on first login.

Database initialized successfully

After:

root@419739ee72ee:/# ./dbinit.sh 
NetXMS Database Manager Version 6.1.1 Build 6.1-452-gc20a8a4247

Initializing database...

IMPORTANT: Generated admin password
   Login:    admin
   Password: 7JZEy6m0oBG2h91i

Please save this password - it will not be shown again.
You will be required to change it on first login.

Database initialized successfully

Capture output and exit code from DBLockStatus command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant