amundsen-io/amundsen

neo4j_amundsen couldn't open temporary file

Opened this issue · 3 comments

Hi guys~

This is the bug I encountered

Expected Behavior

docker container neo4j_amundsen works fine

Current Behavior

docker container neo4j_amundsen sed: couldn't open temporary file /var/lib/neo4j/conf/sedP9fspC: Permission denied, and exited with code 4

Possible Solution

Dockerfile add chown&chmod ?

Steps to Reproduce

1.git clone --recursive https://github.com/amundsen-io/amundsen.git
2.cd amundsen
3.docker-compose -f docker-amundsen-local.yml up

Screenshots (if appropriate)

image

Context

neo4j_amundsen exited with code 4

Your Environment

  • Amunsen version used: main branch
  • Docker Compose version: v2.23.0-desktop.1
  • macOS: 14.0

Thanks for opening your first issue here!

Hi, I've tried to resolve and suggest the solution on my comment here in #2181.

You can set the mount volume to
- ./example/docker/neo4j/conf:/conf instead of

- ./example/docker/neo4j/conf:/var/lib/neo4j/conf

I've solved similar issues by adding user and group_add arguments to my docker compose file, under the neo4j service

services:
    neo4j:
        ...
        user: '1000'
        group_add:
            - '1000'
        ...

Basically the issue is with mounted volumes, and the permissions docker has, more info here
https://stackoverflow.com/a/75219043