Skip to content

Commit e6392b3

Browse files
mnd999renetapopova
andauthored
Apply suggestions from code review
Co-authored-by: Reneta Popova <[email protected]>
1 parent b3024a5 commit e6392b3

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

modules/ROOT/pages/errors/gql-errors/42NAC.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
:page-role: new-2025.11
12
= 42NAC
23

34
== Status description
45
error: syntax error or access rule violation - invalid CREATE DATABASE statement. The backup metadata script contains an invalid or missing CREATE DATABASE statement. The metadata script must contain exactly one CREATE DATABASE statement and it must use the parameter $database.
56

67
== Explanation
7-
When using the `existingMetadata: use` option to restore a database from a backup, the backup metadata script must contain exactly one CREATE DATABASE statement. This statement must use the parameter `$database` to specify the name of the database being restored. If the metadata script is missing this statement or contains an invalid statement, the CREATE DATABASE operation will fail with this error.
8+
When using the `existingMetadata: use` option to restore a database from a backup, the backup metadata script must contain exactly one `CREATE DATABASE` statement.
9+
This statement must use the parameter `$database` to specify the name of the database being restored. If the metadata script is missing this statement or contains an invalid statement, the `CREATE DATABASE` operation will fail with this error.
810

911
== Example scenario
1012
For example, try to create a database with using the following command:
@@ -14,7 +16,7 @@ For example, try to create a database with using the following command:
1416
CREATE DATABASE `$databaseString` OPTIONS {existingMetadata:'use', seedUri:'$uri', existingData:'use'}
1517
----
1618

17-
If the backup at `$uri` is missing the required CREATE DATABASE statement, an error will be thrown with GQLSTATUS 42NAC.
19+
If the backup at `$uri` is missing the required `CREATE DATABASE` statement, an error will be thrown with GQLSTATUS 42NAC.
1820

1921
== Possible solutions
2022

modules/ROOT/pages/errors/gql-errors/50N26.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
:page-role: new-2025.11
12
= 50N26
23

34
== Status description
45
error: general processing exception - invalid backup metadata script. The backup metadata script contains invalid syntax.
56

67
== Explanation
7-
When using the `existingMetadata: true` option to restore a database from a backup, the backup metadata script must contain valid Cypher statements. If the metadata script contains invalid syntax, the restore operation will fail with this error.
8+
When using the `existingMetadata: true` option to restore a database from a backup, the backup metadata script must contain valid Cypher statements.
9+
If the metadata script contains invalid syntax, the restore operation will fail with this error.
810

911
== Example scenario
1012
For example, try to create a database with using the following command:

modules/ROOT/pages/errors/gql-errors/51N7A.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
:page-role: new-2025.11
12
= 51N7A
23

34
== Status description
4-
error: system configuration or operation exception - no admin user candidate. No admin user candidate could be found. Please use `neo4j-admin dbms set-default-admin` to select a valid admin.
5+
error: system configuration or operation exception - no admin user candidate. No admin user candidate is found. Use `neo4j-admin dbms set-default-admin` to select a valid admin.
56

67
== Explanation
7-
When initialsing the Neo4j DBMS for the first time, the system will attempt to determine a default admin user. This user is required to perform administrative tasks on the database. If no valid admin user candidate can be found, the system will throw this error.
8+
When initializing the Neo4j DBMS for the first time, the system attempts to determine a default admin user.
9+
This user is responsible for performing administrative tasks on the database.
10+
If no valid admin user candidate can be found, the system will throw this error.
811

912
== Example scenario
1013
For example, before the database starts up for the first time, execute the following command to set a default admin user that does not exist:

0 commit comments

Comments
 (0)