serputko / performance-testing-framework

Framework allows to perform load testing with Apache Jmeter, view application/server metrics in real-time with Grafana, analyze errors cause with detailed traces for failed requests, compare different test runs in scripted dashboard and perform frontend performance testing with sitespeed.io+webpagetest
Apache License 2.0
404 stars 209 forks source link

Error when running Influxdb container from docker-compose file #2

Closed moataznabil closed 6 years ago

moataznabil commented 6 years ago

I got this error when I run docker-compose up -d , all the containers are running but there is an error with Influxdb .

I also run docker-compose up --build to build the images but the same issue

Error: Recreating 1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_influxdb ... error

ERROR: for 1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_influxdb Cannot start service influxdb: OCI runtime create failed: container_linux.go:296: starting container process caused "exec: \"/entrypoint1.sh\": permission denied": unknown

ERROR: for influxdb Cannot start service influxdb: OCI runtime create failed: container_linux.go:296: starting container process caused "exec: \"/entrypoint1.sh\": permission denied": unknown ERROR: Encountered errors while bringing up the project.

I'm using mac OS with High sierra version and latest docker version

serputko commented 6 years ago

Hi @moataznabil, thanks for your question. Seems that /entrypoint1.sh doesn't have some permissions. Make next steps:

  1. remove ENTRYPOINT ["/entrypoint1.sh"] line from influxdb/Dockerfile
  2. go to project root
  3. run docker-compose build --no-cache
  4. docker-compose up -d
  5. docker exec -ti influxdb bash
  6. ls -la /

And see what are the permissions for entrypoint1.sh file

moataznabil commented 6 years ago

@serputko still the same issue when I run docker-compose up -d

ERROR: for 1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_1ca2f34b1ced_influxdb Cannot start service influxdb: OCI runtRecreating wptserver ... done Recreating jenkins ... done

ERROR: for influxdb Cannot start service influxdb: OCI runtime create failed: container_linux.go:296: starting container process caused "exec: \"/entrypoint1.sh\": permission denied": unknown ERROR: Encountered errors while bringing up the project.

the influxdb.Dockerfile is:

FROM influxdb:latest

COPY entrypoint1.sh /entrypoint1.sh

serputko commented 6 years ago

@moataznabil hmmm, after you removed line from dockerfile and made docker-compose build entrypoint1.sh should not be executed. lets try to remove even copying line (COPY entrypoint1.sh /entrypoint1.sh)

moataznabil commented 6 years ago

@serputko yeah , I removed also the (COPY entrypoint1.sh /entrypoint1.sh) and still I have the same error

serputko commented 6 years ago

@moataznabil Did you do docker-compose build?

moataznabil commented 6 years ago

@serputko yes , actually I tried it with windows machine and it's working fine , So I guess there is an issue with macOS

serputko commented 6 years ago

Hi @moataznabil I've pushed changes that should fix MacOS compatibility, could you check that please?

Thanks