Skip to content

[Bug][Grafana] Bug title #8695

Closed
Closed

Description

@LunaticMuch

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

After the upgrade from 1.0.3-beta8 to 1.0.3-beta9, grafana fails to start.

The log reports

logger=plugin.backgroundinstaller t=2026-02-03T18:24:11.866581503Z level=error msg="Failed to install plugin" pluginId=grafana-pyroscope-app version= error="failed to extract plugin archive: unlinkat /var/lib/grafana/plugins/grafana-pyroscope-app/72.js: permission denied"

Error: ✗ *provisioning.ProvisioningServiceImpl run error: Datasource provisioning error: attempt to write a readonly database

What do you expect to happen

Grafana should start fine

How to reproduce

Use the new beta9 docker compose file

Anything else

No response

Version

1.0.3-beta9

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    component/extThis issue or PR relates to external components, such as Grafana
    priority/highThis issue is very important
    severity/p0This bug blocks key user journey and function
    on Feb 3, 2026
  2. LunaticMuch commented on Feb 3, 2026

    @LunaticMuch
    Author

    I found a way to workaround, but I believe it requires more info.
    When grafana container starts, I observe this

    Error checking server process execution privilege. error: could not get current OS user to detect process privileges
    

    Looking around, I found a reference grafana/grafana#63599 which suggests some stuff, and then in the manual I found a note on bind mounts which suggest to use user: '0'

    Adding this seems to fix the problem. Unclear, though, why this is needed only now.

    My setup is a MacOS Tahoe with Docker Desktop 4.59.1 (217750)

  3. dosubot commented on Feb 3, 2026

    @dosubot

    The need to run the Grafana container as root (user: '0') on macOS with bind mounts started after changes in the DevLake Grafana Dockerfile for beta9. These changes, made for OpenShift compatibility, switched some operations to root and altered group ownership and permissions on key directories before switching back to a non-root user. This setup works well for OpenShift, but on macOS with Docker Desktop, bind mounts can cause permission issues if the container user (now UID 101) doesn't exist on the host, leading to errors like "Error checking server process execution privilege" and "attempt to write a readonly database" source.

    Setting user: '0' in your Docker configuration bypasses these permission problems by running Grafana as root, which matches the workaround recommended in upstream Grafana documentation for macOS bind mounts. There aren't any migration notes or troubleshooting docs in DevLake about this, but the timing and nature of the Dockerfile changes explain why this is needed now.

    If you or others encounter this, using user: '0' is the recommended fix for macOS with bind mounts. For more details, see the upstream Grafana docs on bind mounts and the related issue. If this becomes a common problem, it may be worth sharing your findings with the community.

    To reply, just mention @dosu.


    Docs are dead. Just use Dosu.

    Leave Feedback Ask Dosu about incubator-devlake Share Dosu with your team

  4. klesh commented on Feb 9, 2026

    @klesh
    Contributor

    Thanks for reporting the issue!
    DoSubot summarized it perfectly—let’s jot it down somewhere so the next person doesn’t stumble into the same hole.

    @LunaticMuch, how did you do the upgrade? Any thoughts on the best spot to park the warning?

  5. github-actions commented on Apr 11, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.

  6. github-actions commented on Apr 18, 2026

    @github-actions
    Contributor

    This issue has been closed because it has been inactive for a long time. You can reopen it if you encounter the similar problem in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalecomponent/extThis issue or PR relates to external components, such as Grafanapriority/highThis issue is very importantseverity/p0This bug blocks key user journey and functiontype/bugThis issue is a bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions