Skip to content

WSL2: Volume permission errors for Grafana, Prometheus, and Blockscout on startup #32

@izzetcakmak

Description

@izzetcakmak

Environment

  • OS: Windows 11 + WSL2 (Ubuntu 24.04)
  • Arc node version: v0.6.0

Problem

When running make testnet on WSL2, three services fail to
start due to file permission errors on their data directories.

Grafana:

GF_PATHS_DATA='/var/lib/grafana' is not writable.
mkdir: can't create directory '/var/lib/grafana/plugins': Permission denied

Prometheus:

panic: Unable to create mmap-ed active query log
open /prometheus/queries.active: permission denied

Blockscout backend:

{badmatch,{error,{file_error,"./dets/queue_storage",eacces}}}

Steps to reproduce

  1. Clone arc-node on a Windows machine with WSL2
  2. Run make testnet
  3. Grafana, Prometheus, and Blockscout backend containers
    fail with permission denied errors

Workaround

Manually fix permissions on the mounted directories:

sudo chmod 777 ~/arc-node/.quake/monitoring/data/grafana
sudo chmod 777 ~/arc-node/.quake/monitoring/data/prometheus
sudo chmod 777 ~/arc-node/.quake/localdev/blockscout/dets

Suggestion

Pre-create these directories with correct permissions during
make testnet setup, or add a make testnet-fix-permissions
helper command for WSL2 users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions