Notes-migration.bat failing syntax incorrect

I really am not having a great time with prepping the existing Sametime deployment. I am running the notes-migration.bat on my current windows domino community server and it fails as follows -

C:\HCL\notes-migration>notes-migration.bat
"HCL Sametime Premium 12.0"
"Sametime Notes -> Mongo Migration Utiltiy"
"LICENSED MATERIALS PROPERTY OF HCL. ┬®Copyright HCL Technologies Limited 2020,2
022"

"Copying values from notes-migration-user-input.txt"
"The NSF database file path taken from the input file: C:/HCL/Domino/Data/vpuser
info.nsf"
"The mongodb connection URL taken from the input file: mongodb://sametimeUser:xxxxx@st.xxx.com:27017"
"The user migration flag taken from input file: true"
"The privacy migration flag taken from input file: true"
The system cannot find the path specified.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.

I have tried to edit the input.txt file but can see nothing wrong with it. I tried changing the / in both directions but I have no idea which syntax is incorrect and also I didn't write this it automatically added all of this in the first time I ran it. The only questions it asked me was the 2 true or false ones. This was a brand new unzip of the notes-migration.zip taken from the st12 installation.

You need to unzip and run the migration.bat file from the Domino directory - same location as sametime.ini.

Let us know.

Thanks Anthony, after deleting the files and then extracting them straight to the HCL\Domino directory then running again it failed but still never asks me the questions just fills them in so I edited the values in the input.txt file and ran it again and got the following -

C:\HCL\Domino>notes-migration.bat
"HCL Sametime Premium 12.0"
"Sametime Notes -> Mongo Migration Utiltiy"
"LICENSED MATERIALS PROPERTY OF HCL. ┬®Copyright HCL Technologies Limited 2020,2
022"

"Copying values from notes-migration-user-input.txt"
"The NSF database file path taken from the input file: C:\HCL\Domino\Data\vpuser
info.nsf"
"The mongodb connection URL taken from the input file: mongodb://sametimeUser:xxxx@stcommunity.xxxx.com:27017"
"The user migration flag taken from input file: true"
"The privacy migration flag taken from input file: true"
Jun 01, 2022 2:17:52 PM com.mongodb.diagnostics.logging.JULLogger log
INFO: Cluster created with settings {hosts=[stcommunity.xxxx.com:27017], mod
e=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWai
tQueueSize=500}
Trace: Wed Jun 01 14:17:52 BST 2022 NotesUtils checkOS() - the OS is: Windows Se
rver 2012 R2
Trace: Wed Jun 01 14:17:52 BST 2022 NotesUtils checkOS() the byte order is Littl
eEndian (Windows, Linux)
Trace: Wed Jun 01 14:17:52 BST 2022 NotesUtils getSession()
Trace: Wed Jun 01 14:17:52 BST 2022 NotesUtils getSession() - session is null, c
reating a new session.
Trace: Wed Jun 01 14:17:52 BST 2022 NotesUtils initSession()
Trace: Wed Jun 01 14:17:52 BST 2022 NotesUtils initSession() - create session th
read
java.lang.Exception: Notes initialization failure - err 272
at lotus.domino.NotesThread.NnotesInitThread(Native Method)
at lotus.domino.NotesThread.sinitThread(Unknown Source)
at com.sametime.notesmigration.NotesUtils.initSession(NotesUtils.java:11
7)
Jun 01, 2022 2:17:52 PM com.mongodb.diagnostics.logging.JULLogger log
INFO: Opened connection [connectionId{localValue:1, serverValue:279}] to stcommu
nity.xxxx.com:27017
at com.sametime.notesmigration.NotesUtils.getSession(NotesUtils.java:143
)
at com.sametime.notesmigration.NotesMigration.main(NotesMigration.java:1
70)
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.

So got further but still failing. On another note as I am migrating the mongodb to another server can i point this migration tool at whatever mongo server I want the data added to?

Yes- you can point this to the whatever MongoDB server you want the data added to.

Make sure the user-input text file is correct before running the utility.

I usually run this utility with the server down.

On the 'error 272' - I found this

https://support.hcltechsw.com/csm?id=kb_article&sysparm_article=KB0091389

If that doesn't help - open a case.

With Tony pointing me in the right direction I have solved this now. First off yes you need to unzip the files into the same directory as the sametime.ini.

You then need to have the Domino server down

You then need to make sure the syntax in the notes-migration-user-input.txt file is correct or correct for the bat file anyway that means as follows -

# Mandatory configuration before running notes-migration script

# Path to NSF database file
NSF_PATH=C:/HCL/Domino/Data/vpuserinfo.nsf

# Mongo connection URL
MONGO_CONNECTION_URL=mongodb://sametimeUser:xxxx@st.xxxx.com:27017

# Value to enable/disable User Migration. true/false
USER_MIGRATION=true

# Value to enable/disable Privacy Migration. true/false
PRIVACY_MIGRATION=true

Obviously chaning to your correct path (notice the switches they have to be forward as above) and the correct mongo instance with correct username and password.

Even then I still got the errors at the end saying syntax is incorrect it has migrated the records.