Author Topic: LFMT command line argument error  (Read 595 times)

Offline Django

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
LFMT command line argument error
« on: June 19, 2020, 10:15:39 PM »
Hi Folks,

I am facing an issue when starting LFMT indexer.
Command line argument in Application object- "java -jar indexer.jar -app LFMT Indexer -host ip-xxx-xx-xx-xx -port 2020"
Initially it was "-host ip-xxx-xx-xx-xx -port 2020  -app LFMT Indexer" after installation.
For any command lines i am facing same issue. In below lines I have pasted indexer log. Please help.


2020-06-19 12:16:57.630/UTC INFO  [runner.Indexer] - -----------------------------------------
2020-06-19 12:16:57.630/UTC INFO  [runner.Indexer] - Initialization Log - Before Reading Config Server Log Properties
2020-06-19 12:16:57.630/UTC INFO  [runner.Indexer] - Using Indexer Version: 8.5.102.00
2020-06-19 12:16:57.630/UTC INFO  [runner.Indexer] - Developed: Feb 28, 2020
2020-06-19 12:16:57.630/UTC INFO  [runner.Indexer] - -----------------------------------------
2020-06-19 12:16:57.630/UTC INFO  [runner.Arguments] - Raw Command Line Args:
2020-06-19 12:16:57.630/UTC ERROR [runner.Arguments] - Error starting Indexer. Incorrect command line arguments.
Usage: java -jar indexer.jar -app [] -host [] -port [] ...
Options:
   (req)-app      The LFMT Indexer application name.
   (req)-host      The Configuration Server hostname or IP.
   (req)-port      The Configuration Server listening port.
   -backuphost   (Optional) The backup Configuration Server hostname or IP.
   -backupport   (Optional) The backup Configuration Server listening port.

Example 1: java -jar indexer.jar -app LFMT_IND -host cs.genesys.com -port 2020 
Example 2: java -jar indexer.jar -app LFMT_IND -host cs.genesys.com -port 2021 -backuphost cs.genesys.ca -backupport 2031

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2656
  • Karma: 42
Re: LFMT command line argument error
« Reply #1 on: June 19, 2020, 10:28:00 PM »
Quote
-host ip-xxx-xx-xx-xx

It does not make sense as it needs to be set to a host or an IP address - ie. -host 1.2.3.4 or -host host.domain.com
Genesys certified professional consultant (GVP, SIP, GIR and Troubleshooting)

Offline Django

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
Re: LFMT command line argument error
« Reply #2 on: June 19, 2020, 10:35:22 PM »
Hi, Kubig,

Thanks for the quick response. It is an AWS server having host name ip-xxx-xx-xx-xx

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2656
  • Karma: 42
Re: LFMT command line argument error
« Reply #3 on: June 19, 2020, 11:09:30 PM »
Do not use AWS private domain for inter-server communication
Genesys certified professional consultant (GVP, SIP, GIR and Troubleshooting)

Offline Django

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
Re: LFMT command line argument error
« Reply #4 on: June 20, 2020, 01:55:37 AM »
I don't think it will be an issue an issue as it was already filled after installing indexer.
Also I tried with IP address in place of ip-xxx-xx-xx-xx, still same error.
I have CME in that server from that I am easily able to connect configserv installed in  ip-xxx-xx-xx-xx.

Offline BST

  • Newbie
  • *
  • Posts: 2
  • Karma: -1
Re: LFMT command line argument error
« Reply #5 on: July 16, 2020, 09:10:54 PM »
Command Line should be ./indexer_startup.sh (which will contain java -jar indexer.jar "$@")

Command Line Arguments should just be -app -host -port

Offline Django

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
Re: LFMT command line argument error
« Reply #6 on: July 21, 2020, 03:10:30 PM »
Thanks BST. I had already updated the startup file and it had worked for me some days back.