Skip to content

The apoc.metrics.get throws an URLAccessChecker error #4355

@vga91

Description

@vga91

The apoc.metrics.get throws an error.

Steps to replicate the bug

  1. Create the following docker-compose.yml
version: "2"
services:
  neo4j:
    container_name: test
    hostname: test
    image: "neo4j:2025.01.0-enterprise"
    volumes:
      - $HOME/neo4j/plugins:/plugins
      - $HOME/neo4j/import:/import
    ports:
      - "7475:7474"
      - "7688:7687"
    environment:
      NEO4J_apoc_export_file_enabled: true
      NEO4J_apoc_import_file_enabled: true
      NEO4J_AUTH: neo4j/apoc1234
      metrics.enabled: true
      metrics.csv.interval: "1s"
      metrics.namespaces.enabled: true
  1. Execute this query
CALL apoc.metrics.get("neo4j.system.check_point.total_time")
  1. This error will be thrown
Failed to invoke procedure `apoc.metrics.get`: Caused by: org.neo4j.graphdb.security.URLAccessValidationError: Unable to verify access to . Cause: LOAD on URL 'file:////var/lib/neo4j/metrics/test.csv' is not allowed for user '' with FULL overridden by ACCESS.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions