You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few more error codes from cypher operations for scenarios around
security graph initialization and seeding backups with metadata.
---------
Co-authored-by: Lasse Heemann <[email protected]>
Co-authored-by: Reneta Popova <[email protected]>
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`.
6
+
7
+
== Explanation
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.
10
+
If the metadata script is missing this statement or contains an invalid statement, the `CREATE DATABASE` operation will fail with this error.
11
+
12
+
== Example scenario
13
+
For example, try to create a database using the following command:
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.
6
+
7
+
== Explanation
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.
11
+
12
+
== Example scenario
13
+
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:
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/index.adoc
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1518,6 +1518,11 @@ Status description:: error: syntax error or access rule violation - incorrectly
1518
1518
1519
1519
Status description:: error: syntax error or access rule violation - not supported standalone call. `WHERE` is not supported in a standalone call. Use `CALL ... YIELD ... WHERE ... RETURN ...` instead.
1520
1520
1521
+
[role=label--new-2025.11]
1522
+
=== xref:errors/gql-errors/42NAC.adoc[42NAC]
1523
+
1524
+
Status description:: 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`.
1525
+
1521
1526
=== xref:errors/gql-errors/42NFC.adoc[42NFC]
1522
1527
1523
1528
Status description:: error: syntax error or access rule violation - auth info validation error. Authentication and/or authorization could not be validated. See security logs for details.
@@ -1622,6 +1627,11 @@ Status description:: error: general processing exception - sharded properties tr
1622
1627
1623
1628
Status description:: error: general processing exception - sharded properties transaction handling client error. Unexpected exception while getting transaction state.
1624
1629
1630
+
[role=label--new-2025.11]
1631
+
=== xref:errors/gql-errors/50N26.adoc[50N26]
1632
+
1633
+
Status description:: error: general processing exception - invalid backup metadata script. The backup metadata script contains invalid syntax.
1634
+
1625
1635
=== xref:errors/gql-errors/50N42.adoc[50N42]
1626
1636
1627
1637
Status description:: error: general processing exception - unexpected error. Unexpected error has occurred. See debug log for details.
@@ -1938,6 +1948,11 @@ Status description:: error: system configuration or operation exception - upgrad
1938
1948
1939
1949
Status description:: error: system configuration or operation exception - not supported in this store format. `{ <<feat>> }` is not supported in `{ <<storeFormat>> }` store format.
1940
1950
1951
+
[role=label--new-2025.11]
1952
+
=== xref:errors/gql-errors/51N7A.adoc[51N7A]
1953
+
1954
+
Status description:: 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.
1955
+
1941
1956
1942
1957
[[procedure-exceptions]]
1943
1958
== Procedure exceptions
@@ -1982,7 +1997,7 @@ Status description:: error: procedure exception - invalid address key. An addres
1982
1997
1983
1998
=== xref:errors/gql-errors/52N11.adoc[52N11]
1984
1999
1985
-
Status description:: error: procedure exception - generic topology procedure error. An unexpected error has occurred: `{ <<msg>> }`
2000
+
Status description:: error: procedure exception - generic topology procedure error. An unexpected error has occurred: `{ <<msg>> }`.
0 commit comments