Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the Migrate configs page #2070

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions modules/ROOT/pages/tools/neo4j-admin/migrate-configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
You can use the `migrate-configuration` command to migrate a legacy Neo4j configuration file to the current format.
The new version will be written in a target configuration directory.
The default location for both the source and target configuration directory is the configuration directory specified by `NEO_CONF` or the default configuration directory for this installation.
Starting with Neo4j 2025.01, the root location of the configuration directory is xref:configuration/configuration-settings.adoc#_server_directories_settings.adoc#config_server.directories.configuration[`server.directories.configuration=conf`].
If the source and target directories are the same, the original configuration files will be renamed.
A configuration provided using `--additional-config` option will not be migrated.

Expand Down Expand Up @@ -57,16 +58,16 @@ The following example shows how to migrate a legacy configuration file to the cu

[source, shell, subs="attributes+"]
----
bin/neo4j-admin server migrate-configuration --from-path=/path/to/legacy/neo4j-enterprise-4.4.10/conf/ --to-path=/path/to/new/neo4j-enterprise-{neo4j-version-exact}/conf/
bin/neo4j-admin server migrate-configuration --from-path=/path/to/legacy/neo4j-enterprise-4.4.39/conf/ --to-path=/path/to/new/neo4j-enterprise-{neo4j-version-exact}/conf/
renetapopova marked this conversation as resolved.
Show resolved Hide resolved
----

.Example output
[result]
----
Keeping original user-logs.xml file at: /neo4j-enterprise-5.1.0/conf/user-logs.xml.old
User logging configuration xml file generated: /neo4j-enterprise-5.1.0/conf/user-logs.xml
Keeping original server-logs.xml file at: /neo4j-enterprise-5.1.0/conf/server-logs.xml.old
Server logging configuration xml file generated: /neo4j-enterprise-5.1.0/conf/server-logs.xml
Keeping original user-logs.xml file at: /neo4j-enterprise-2025.1.0/conf/user-logs.xml.old
renetapopova marked this conversation as resolved.
Show resolved Hide resolved
User logging configuration xml file generated: /neo4j-enterprise-2025.1.0/conf/user-logs.xml
Keeping original server-logs.xml file at: /neo4j-enterprise-2025.1.0/conf/server-logs.xml.old
Server logging configuration xml file generated: /neo4j-enterprise-2025.1.0/conf/server-logs.xml
dbms.directories.import=import MIGRATED -> server.directories.import=import
dbms.connector.bolt.enabled=true MIGRATED -> server.bolt.enabled=true
dbms.connector.http.enabled=true MIGRATED -> server.http.enabled=true
Expand All @@ -89,12 +90,12 @@ dbms.jvm.additional=-XX:+UnlockDiagnosticVMOptions MIGRATED -> server.jvm.additi
dbms.jvm.additional=-XX:+DebugNonSafepoints MIGRATED -> server.jvm.additional=-XX:+DebugNonSafepoints
dbms.jvm.additional=-Dlog4j2.disable.jmx=true MIGRATED -> server.jvm.additional=-Dlog4j2.disable.jmx=true
dbms.windows_service_name=neo4j MIGRATED -> server.windows_service_name=neo4j
Keeping original configuration file at: /neo4j-enterprise-5.1.0/conf/neo4j.conf.old
Keeping original configuration file at: /neo4j-enterprise-2025.1.0/conf/neo4j.conf.old
----

[NOTE]
====
The example output is not to be used to populate a new Neo4j 5 _neo4j.conf_ file.
The example output is not to be used to populate a new Neo4j 2025.01 _neo4j.conf_ file.

The 5.x syntactically correct configuration file can be found at _/path/to/new/neo4j-enterprise-{neo4j-version-exact}/conf/_, where `/path/to/new/neo4j-enterprise-{neo4j-version-exact}/conf/` is the value of `--to-path=`.
The 2025.01 syntactically correct configuration file can be found at _/path/to/new/neo4j-enterprise-{neo4j-version-exact}/conf/_, where `/path/to/new/neo4j-enterprise-{neo4j-version-exact}/conf/` is the value of `--to-path=`.
====
Loading