Reputation: 71
I'm unable to start MarkLogic 11.3.1 after upgrading from MarkLogic 10.0-9.5 in AWS, and I'm encountering the following error. But Marklogic 10.0-9.5 run perfectly in the same AWS instance.
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Set configuration: JAVA_HOME="/usr/lib/jvm/java-11"
Set configuration: MARKLOGIC_MDB_TYPE=""
Set configuration: AWS_REGION="us-east-1"
Set configuration: AWS_DEFAULT_REGION="us-east-1"
Set configuration: MARKLOGIC_ZONE="us-east-1b"
Set configuration: MARKLOGIC_HOSTNAME="xx.xx.xx.xxx"
Initialize Configuration. AWS Region: us-east-1, ZONE: us-east-1b. INSTANCE: xxxxxxxxxx
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Instance is not managed
Waiting for device mounted to come online : /dev/xvdf
Volume /dev/sdf has failed to attach - aborting
Warning: ec2-startup did not complete successfully
Check the error logs for details
this script is giving message and aborted ML startup:
Steps taken to upgrade:
/etc/init.d/MarkLogic start
.+++++++++++++++++++++++++++++++++
Also we are trying to upgrade another system but getting same issue.
Set configuration: JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.382.b05-2.el8.x86_64"
Set configuration: MARKLOGIC_MDB_TYPE=""
Set configuration: AWS_REGION="us-east-1"
Set configuration: AWS_DEFAULT_REGION="us-east-1"
Set configuration: MARKLOGIC_ZONE="us-east-1a"
Set configuration: MARKLOGIC_HOSTNAME="ip-10-97-21-232.ec2.internal"
Initialize Configuration.
AWS Region: us-east-1, ZONE: us-east-1a. INSTANCE: i-00b57d0c9c5216bb4
Instance is not managed
Waiting for device mounted to come online : /dev/nvme1n1
UUID dev mapping:
Final dev mapping: /dev/nvme1n1
Attempting to mount EBS device /dev/sdf OS device /dev/nvme1n1 on
mountpoint /var/opt/MarkLogic
Directory /var/opt/MarkLogic has contents - skipping
Failed to mount EBS volume - aborting Warning: ec2-startup did not complete successfully
Check the error logs for details
Upvotes: 3
Views: 218
Reputation: 66781
There is logic in the startup scripts that look to determine whether a host is running in EC2 and is part of a managed cluster.
In older versions of MarkLogic, it was only setting the EC2 flag if you were running Amazon Linux.
In order to prevent some of the managed node startup logic from firing, you can explicitly configure the host as NOT being a managed node.
Create a /etc/marklogic.conf file and set to false
export MARKLOGIC_MANAGED_NODE=0
That should get you past this startup issue. Although, when EC2 integration is enabled it will expect Java to be installed and will fail to start if it can't find Java. So, it could then hit on that startup issue. You can define JAVA_HOME in /etc/marklogic.conf:
export JAVA_HOME=/usr/lib/jvm/jre
Or you could disable EC2 integration by setting:
export MARKLOGIC_EC2_HOST=0
Upvotes: 1