Skip to content

[Bug]: Non-root user breaks proxy #4255

Open
@Bilge

Description

@Bilge

Error Message and Logs

When changing proxy type:

Error: bash: line 2: cd: /data/coolify/proxy/caddy: Permission denied

Steps to Reproduce

  1. Install Coolify as non-root user with sudo access.
  2. Try to change proxy.

Example Repository URL

No response

Coolify Version

v4.0.0-beta.367

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 22.04.3 LTS

Additional Information

Initially these directories are provisioned with the correct 9999:0 permissions, but it seems Coolify (ab)uses its sudo access to set the wrong permissions when provisioning the proxy.

/data/coolify# ll

total 40
drwx------ 10    9999 root    4096 Nov 12 14:12 ./
drwx------  3    9999 root    4096 Nov 12 14:12 ../
drwx------  2    9999 root    4096 Nov 12 14:12 applications/
drwx------  2    9999 root    4096 Nov 12 14:12 backups/
drwx------  2    9999 root    4096 Nov 12 14:12 databases/
drwx------  4 coolify coolify 4096 Nov 12 14:17 proxy/
drwx------  2    9999 root    4096 Nov 12 14:12 services/
drwx------  2    9999 root    4096 Nov 12 14:12 source/
drwx------  4    9999 root    4096 Nov 12 14:13 ssh/
drwx------  2    9999 root    4096 Nov 12 14:12 webhooks-during-maintenance/

Even manually resetting the permissions for this directory has no effect, since Coolify is constantly overwriting them with incorrect ownership, to such an extent that it is actually impossible to start the Caddy proxy at all with a non-root user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 BugReported issues that need to be reproduced by the team.🔍 TriageIssues that need assessment and prioritization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions