Hello all,
I am attempting to self host piefed on a vps server running Debian 13 in docker with nginx proxy manager. I am at the step where I build it from source, and whenever I do it I get a ton of permission denied errors. I know the instructions said to chown 1000 the previous step, which I did but it still doesnt work. Thanks for the help.

  • MuttMutt@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    13 hours ago

    When you are running chown what is the exact command you are running and from what directory? Where are you getting your instructions? What error are you getting exactly? Did you verify that the directory has the correct owner before continuing? What are the directory permissions? What are the directory permissions supposed to be?

    It’s impossible to troubleshoot without the information.

      • kumi@feddit.online
        link
        fedilink
        English
        arrow-up
        3
        ·
        12 hours ago

        Just to rule it out (wouldn’t be the case on default debian):

        Is SELinux enabled? sudo getenforce (if command missing or false, it’s not your problem here)

        You are not running with podman as compose backend? sudo systemctl status podman shouldn’t show an active service unless you use it.

        • a_person@piefed.socialOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          12 hours ago

          Sorry, chown not chmod. And yes, in this section.

          BUILD PIEFED

          export DOCKER_BUILDKIT=1 sudo docker compose up --build

          Wait until text in terminal stops scrolling. Ignore the configuration check errors at this point.
          If you see many permission-related errors, try repeating the previous step **(with the chown command using 1000 instead of your username)**
          Test external access from browser (On port 8030). Watch for movement in terminal window. Browser will show "Internal Server Error" message. Proceed to initialize database to address this error message.
          
          • Rimu@piefed.social
            link
            fedilink
            English
            arrow-up
            2
            ·
            12 hours ago

            Ah ok.

            That docker-dirs.sh script is trying to set the right permissions onto these directories:

            “pgdata”, “media”, “logs”, “tmp”.

            The owner of those directories needs to be the same user as the one running docker.