amundsen-io / amundsen

Amundsen is a metadata driven application for improving the productivity of data analysts, data scientists and engineers when interacting with data.
https://www.amundsen.io/amundsen/
Apache License 2.0
4.34k stars 950 forks source link

neo4j_amundsen couldn't open temporary file #2215

Open we1she2 opened 7 months ago

we1she2 commented 7 months ago

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

boring-cyborg[bot] commented 7 months ago

Thanks for opening your first issue here!

koumi15cancer commented 7 months ago

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

mikekutzma commented 7 months ago

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