Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Posthog web container error "exec: /compose/start: Permission denied" #3257

Closed
1 of 2 tasks
tconroy opened this issue Aug 30, 2024 · 3 comments
Closed
1 of 2 tasks

Comments

@tconroy
Copy link

tconroy commented Aug 30, 2024

Description

When setting up a fresh Posthog resource using the preconfigured services, the web container appears to be caught in an infinite restart loop with a permissions error:

2024-08-30T02:12:26.015995111Z /usr/local/bin/docker-entrypoint.sh: 101: exec: /compose/start: Permission denied

Minimal Reproduction (if possible, example repository)

create project -> prod environment -> +new resource -> Posthog -> start. All containers except web start successfully. Web throws error repeatedly.

Exception or Error

2024-08-30T02:12:26.015995111Z /usr/local/bin/docker-entrypoint.sh: 101: exec: /compose/start: Permission denied

Version

v4.0.0-beta.323

Cloud?

  • Yes
  • No
@tconroy
Copy link
Author

tconroy commented Aug 30, 2024

Seem to have found a workaround.

Edit the docker-compose to change:

web:
  image: 'posthog/posthog:latest'
  command: /compose/start

to be

web:
  image: 'posthog/posthog:latest'
  command: sh -c "chmod +x /compose/start && /compose/start"

@Yoda-Soda
Copy link

Seem to have found a workaround.

Edit the docker-compose to change:

web:
  image: 'posthog/posthog:latest'
  command: /compose/start

to be

web:
  image: 'posthog/posthog:latest'
  command: sh -c "chmod +x /compose/start && /compose/start"

Thank you this sorted it out for me.

@peaklabs-dev peaklabs-dev self-assigned this Oct 3, 2024
@peaklabs-dev
Copy link
Member

I just tried the template again and I can not find this error in the logs for the web container anymore, so I believe this new command is not necessary anymore and I will close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants