pipe-cd / tutorial

Tutorial for the beginners in 30m-1h
Apache License 2.0
20 stars 0 forks source link

Got Permission denied from pipecd-gateway. #14

Closed k-ngs closed 3 months ago

k-ngs commented 3 months ago

First of all, I appriciate your efforts!

Bug Description

In Install Control Plane, when I execute docker-compose up , pipecd-gateway did not start and I could not access the console.

I got the following logs from pipecd-gateway

[pipecd-gateway] | chown: /dev/stdout: Permission denied
[pipecd-gateway] | chown: /dev/stderr: Permission denied

My local environment is below.

Workaround

The following workaround solved the problem for me.

Add environment variables to docker-compose.yaml.

services:
  # Proxy for connecting between the browser and the Control Plane via gRPC.
  pipecd-gateway:
    image: envoyproxy/envoy-alpine:v1.18.3
    command:
      - -c /etc/envoy/envoy-config.yaml
    ports:
      - 9095:9095
      - 8080:9090
    volumes:
      - ./volume/envoy:/etc/envoy
      - ./volume/pipecd-secret:/etc/pipecd-secret
    # Add environment variable here
    environment:
      ENVOY_UID: 0

This workaround is based on this Issue. https://github.com/envoyproxy/envoy/issues/11551

t-kikuc commented 3 months ago

@k-ngs Thank you so much for using the Tutorial and reporting an issue πŸ™ πŸ™ I fixed it as you mentioned!