Repository navigation
Self hosted runner - FATAL: No custom config file found on disk #793
Copy link
Copy link
Closed
Description
Hi,
I'm trying to run a fairly simple case on a self hosted runner environment
name: Renovate
on:
# For testing purposes
pull_request:
jobs:
renovate:
runs-on: self-hosted
container:
image: ubuntu:latest
env:
RENOVATE_VERSION: 37.31.3-full # renovate: datasource=docker depName=renovate packageName=ghcr.io/renovatebot/renovate
steps:
- name: Checkout
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
- name: Install Docker
run: |
apt-get -y update
apt-get install -y ca-certificates curl gnupg
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg
# Add the repository to Apt sources:
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get -y update
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
- name: Get token
id: get_token
uses: ./.github/actions/github-app-token
with:
private_key: ${{ secrets.GHA_PRIVATE_KEY }}
app_id: ${{ secrets.GHA_APP_ID }}
- name: Self-hosted Renovate
uses: renovatebot/github-action@89c8a9b60f5bc8395658abab8f40f96e4b490ebf # v39.1.0
env:
RENOVATE_REPOSITORIES: ${{ github.repository }}
RENOVATE_ONBOARDING: false
RENOVATE_REQUIRE_CONFIG: false
LOG_LEVEL: 'debug'
with:
renovate-version: ${{ env.RENOVATE_VERSION }}
configurationFile: "parallel-run/proxyapp/renovate.json"
token: ${{ steps.get_token.outputs.token }}
But I'm getting this error, which I couldn't figure out
/usr/bin/docker run --env RENOVATE_VERSION --env RENOVATE_REPOSITORIES --env RENOVATE_ONBOARDING --env RENOVATE_REQUIRE_CONFIG --env LOG_LEVEL --env RENOVATE_TOKEN=*** --env RENOVATE_CONFIG_FILE=/github-action/renovate.json --volume /__w/parallel-run/proxyapp/renovate.json:/github-action/renovate.json --volume /tmp:/tmp --rm ghcr.io/renovatebot/renovate:37.31.3-full
DEBUG: Using RE2 as regex engine
DEBUG: Parsing configs
DEBUG: Checking for config file in /github-action/renovate.json
FATAL: No custom config file found on disk
/__w/parallel-run/proxyapp/renovate.json does exists, I can print it
If I put a wrong file, the action does throw the expected error configuration file '${configurationFile.value}' MUST be an existing file
It does work if I replace my own runner with Github's one
- runs-on: self-hosted
- container:
- image: <ubuntu with docker>
+ runs-on: ubuntu-latestAny idea?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Priority
None yet
Datasource
None yet
Activity
rarkins commentedon Oct 24, 2023
Renovate cannot access
/github-action/renovate.jsonviceice commentedon Oct 24, 2023
how do you run your self-hosted runner? maybe the config file is not readable by the renovate docker user.
davidfrickert commentedon Nov 26, 2023
For self hosted you can try running the renovate docker image directly, e.g.:
(YMMV, this is using Gitea actions)