wangzip
wangzip
RRailway
Created by wangzip on 2/4/2024 in #✋|help
Unable to connect to Database because disk is full
Can I just click "Wipe volume" in the settings tab, does it delete my table struct? Is there other way I can clear unused data
9 replies
RRailway
Created by wangzip on 12/16/2022 in #✋|help
build failed with 'ValueError does not contain any element'
I am deploying a python project, but I am stuck in the build step. I have no idea what's wrong with my operation here are build error log
#11 16.57 • Installing sanic (22.9.1)
#11 17.61
#11 17.61 ValueError
#11 17.61
#11 17.61 /app/test_railway does not contain any element
#11 17.61
#11 17.61 at /opt/venv/lib/python3.8/site-packages/poetry/core/masonry/utils/package_include.py:60 in check_elements

#11 17.62 56│ return any(element.suffix == ".py" for element in self.elements)
#11 17.62 57│
#11 17.62 58│ def check_elements(self): # type: () -> PackageInclude
#11 17.62 59│ if not self._elements:
#11 17.62 → 60│ raise ValueError(
#11 17.62 61│ "{} does not contain any element".format(self._base / self._include)
#11 17.62 62│ )
#11 17.62 63│
#11 17.62 64│ root = self._elements[0]

#11 ERROR: executor failed running [/bin/bash -ol pipefail -c python -m venv /opt/venv && . /opt/venv/bin/activate && pip install poetry==$NIXPACKS_POETRY_VERSION && poetry install --no-dev --no-interaction --no-ansi]: exit code: 1
-----
> [stage-0 7/10] RUN --mount=type=cache,id=s/b3383cbf-1f8d-4803-a412-f89d57c9c997-/root/cache/pip,target=/root/.cache/pip python -m venv /opt/venv && . /opt/venv/bin/activate && pip install poetry==1.1.13 && poetry install --no-dev --no-interaction --no-ansi:
-----
executor failed running [/bin/bash -ol pipefail -c python -m venv /opt/venv && . /opt/venv/bin/activate && pip install poetry==$NIXPACKS_POETRY_VERSION && poetry install --no-dev --no-interaction --no-ansi]: exit code: 1

Error: Docker build failed
#11 16.57 • Installing sanic (22.9.1)
#11 17.61
#11 17.61 ValueError
#11 17.61
#11 17.61 /app/test_railway does not contain any element
#11 17.61
#11 17.61 at /opt/venv/lib/python3.8/site-packages/poetry/core/masonry/utils/package_include.py:60 in check_elements

#11 17.62 56│ return any(element.suffix == ".py" for element in self.elements)
#11 17.62 57│
#11 17.62 58│ def check_elements(self): # type: () -> PackageInclude
#11 17.62 59│ if not self._elements:
#11 17.62 → 60│ raise ValueError(
#11 17.62 61│ "{} does not contain any element".format(self._base / self._include)
#11 17.62 62│ )
#11 17.62 63│
#11 17.62 64│ root = self._elements[0]

#11 ERROR: executor failed running [/bin/bash -ol pipefail -c python -m venv /opt/venv && . /opt/venv/bin/activate && pip install poetry==$NIXPACKS_POETRY_VERSION && poetry install --no-dev --no-interaction --no-ansi]: exit code: 1
-----
> [stage-0 7/10] RUN --mount=type=cache,id=s/b3383cbf-1f8d-4803-a412-f89d57c9c997-/root/cache/pip,target=/root/.cache/pip python -m venv /opt/venv && . /opt/venv/bin/activate && pip install poetry==1.1.13 && poetry install --no-dev --no-interaction --no-ansi:
-----
executor failed running [/bin/bash -ol pipefail -c python -m venv /opt/venv && . /opt/venv/bin/activate && pip install poetry==$NIXPACKS_POETRY_VERSION && poetry install --no-dev --no-interaction --no-ansi]: exit code: 1

Error: Docker build failed
here are my setting
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"buildCommand": "poetry install --no-root"
},
"deploy": {
"startCommand": "python src/main.py",
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"buildCommand": "poetry install --no-root"
},
"deploy": {
"startCommand": "python src/main.py",
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
3 replies