知识库

错误解释:由于权限受限,存储过程不可用,请检查配置

从 Neo4j 3.2 开始,当运行存储过程时,例如

call apoc.warmup.run();

这可能会出现错误:

apoc.warmup.run is not available due to having restricted access rights, check configuration.

出现此错误的原因是未配置安全扩展。要让所有用户都能使用所有APOC过程,请将 conf/neo4j.conf 定义为

dbms.security.procedures.unrestricted=apoc.*

如果您已将 Neo4j 安装为 Docker 容器,则要实现相同的效果,您需要通过运行以下命令来启动 Neo4j:

$ docker run \
    -e NEO4J_dbms_security_procedures_unrestricted=apoc.\\\* \
    -v $PWD/plugins:/plugins \
    --publish=7474:7474 --publish=7687:7687 \
    --volume=$HOME/neo4j/data:/data \
    --volume=$HOME/neo4j/logs:/logs \
    neo4j:3.2.0-enterprise
© . This site is unofficial and not affiliated with Neo4j, Inc.