Skip to content
This repository was archived by the owner on Aug 27, 2023. It is now read-only.

Compose sh: 1: /wait-for: not found #35

Open
KerberosMorphy opened this issue Oct 13, 2021 · 1 comment
Open

Compose sh: 1: /wait-for: not found #35

KerberosMorphy opened this issue Oct 13, 2021 · 1 comment

Comments

@KerberosMorphy
Copy link

For an unknow reason, if I clone this repo, and execute the following command without any change:

> cd /compose
> docker-compose -f mysql.yml up

I got the following error:

pypicloud_1  | sh: 1: /wait-for: not found
pypicloud_1 exited with code 127

I've try a lot of things to make it works, I end up using restart: on-failure to skip the wait-for.

Here my final setup:

services:
  pypicloud:
    command: uwsgi --die-on-term /etc/pypicloud/config.ini
    restart: on-failure
    depends_on:
      - mysql
    image: stevearc/pypicloud:1.3.1
    ports:
      - "8080:8080"
    env_file:
      - base_config.env
      - file_storage_config.env
      - sql_cache_config.env
      - sql_auth_config.env
      - beaker_config.env
  mysql:
    image: mysql
    environment:
      MYSQL_DATABASE: pypi
      MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'

Did someone know why the wait-for isn't working and how to make it works?

The weirdest part is while using:

services:
  pypicloud:
    command: ls -lah /wait-for

It did found it:

compose-pypicloud-1  | -rwxrwxrwx 1 root root 2.8K Oct 13 14:42 /wait-for
@stevearc
Copy link
Owner

Unfortunately I have no idea why this would be failing. I just tried it again and those exact commands work fine on my machine (Ubuntu 20.04, Docker version 20.10.9, docker-compose version 1.29.2). I would recommend trying to get a minimal repro, perhaps with a base ubuntu image or without using docker-compose at all. Then you can report the issue to docker or docker-compose, depending on where the problem seems to originate.

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

No branches or pull requests

2 participants