You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Aerospike EE启动报错:feature-key-version值2无效

问题概述

启动Aerospike Enterprise Edition build 4.9.0.37(CentOS 7)时遭遇启动失败,核心报错为feature-key-version值2无效,服务无法正常启动。

Aerospike版本

Aerospike Enterprise Edition build 4.9.0.37 os el7

功能密钥文件(features.conf)

# generated 2023-04-25 19:57:16

feature-key-version              2

serial-number                    <ommited>

account-name                     Aerospike_TRIAL_8node

account-ID                       Aerospike_20230418

valid-until-date                 2023-07-31

asdb-change-notification         true
asdb-cluster-nodes-limit         8
asdb-compression                 true
asdb-encryption-at-rest          true
asdb-flash-index                 true
asdb-ldap                        true
asdb-pmem                        true
asdb-rack-aware                  true
asdb-strong-consistency          true
asdb-vault                       true
asdb-xdr                         true
elasticsearch-connector          true
mesg-jms-connector               true
mesg-kafka-connector             true
presto-connector                 true
pulsar-connector                 true
raf-realtime-analysis-framework  true
spark-connector                  true

----- SIGNATURE ------------------------------------------------
<ommited>
----- END OF SIGNATURE -----------------------------------------

aerospike.conf配置文件

# Aerospike database configuration file for use with systemd.

service {
    paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
    proto-fd-max 15000
    feature-key-file /etc/aerospike/features.conf
}

logging {
    #console {
    #   context any info
    #}
    # Log file must be an absolute path.
        file /var/log/aerospike/aerospike.log {
                context any info
        }
}

network {
    service {
        address any
        port 3000
    }

    heartbeat {
        mode mesh
        address 0.0.0.0
        port 3002 # Heartbeat port for this node.

        #mode multicast
        #multicast-group 239.1.99.222
        #port 9918

        mesh-seed-address-port centos-7-0  3002
        mesh-seed-address-port centos-7-1  3002
        mesh-seed-address-port centos-7-2  3002

        # To use unicast-mesh heartbeats, remove the 3 lines above, and see
        # aerospike_mesh.conf for alternative.

        interval 150
        timeout 10
    }

    fabric {
        port 3001
    }

    info {
        port 3003
    }
}

namespace demo {
    replication-factor 2
    memory-size 1G

    storage-engine memory

    # To use file storage backing, comment out the line above and use the
    # following lines instead.
    storage-engine device {
        device /dev/sdb1
        write-block-size 128K
    }
}

错误日志

Jun 04 2023 23:40:26 GMT: CRITICAL (config): (features_ee.c:391) invalid value 2 for feature feature-key-version in /etc/aerospike/features.conf, line 3
Jun 04 2023 23:40:26 GMT: WARNING (as): (signal.c:166) SIGINT received, shutting down Aerospike Enterprise Edition build 4.9.0.37 os el7
Jun 04 2023 23:40:26 GMT: WARNING (as): (signal.c:169) startup was not complete, exiting immediately

原因分析与解决方法

  • 原因:Aerospike 4.9.0.37版本仅兼容版本1的功能密钥格式,不支持feature-key-version值为2。当前使用的功能密钥文件是新版本生成的,格式版本过高导致服务无法识别。
  • 解决方法:
    1. 联系Aerospike官方,针对4.9.0.37版本重新生成版本1的功能密钥文件。
    2. 将新生成的版本1密钥文件替换现有/etc/aerospike/features.conf文件。
    3. 执行systemctl restart aerospike命令重新启动Aerospike服务。

内容的提问来源于stack exchange,提问作者Edcel Cabrera Vista

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.19 13:13:08