From f02902d099b721a833319c3d954eaf165b6290ff Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Mon, 3 Jun 2024 09:12:42 +0200 Subject: [PATCH] Split FAQ (#3746) Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com> --- docs/docs/20-usage/100-troubleshooting.md | 37 ++++++++++++ .../00-deployment/00-overview.md | 10 +++- docs/docs/50-about.md | 18 ++++++ docs/docusaurus.config.ts | 8 --- docs/src/pages/faq.md | 59 ------------------- .../version-1.0/30-administration/00-setup.md | 2 - .../version-1.0/80-downloads.md | 2 - .../00-deployment/00-overview.md | 2 - .../00-deployment/00-overview.md | 2 - .../00-deployment/00-overview.md | 2 - .../00-deployment/00-overview.md | 2 - .../00-deployment/00-overview.md | 2 - .../00-deployment/00-overview.md | 2 - 13 files changed, 63 insertions(+), 85 deletions(-) create mode 100644 docs/docs/20-usage/100-troubleshooting.md create mode 100644 docs/docs/50-about.md delete mode 100644 docs/src/pages/faq.md diff --git a/docs/docs/20-usage/100-troubleshooting.md b/docs/docs/20-usage/100-troubleshooting.md new file mode 100644 index 000000000..b961530f4 --- /dev/null +++ b/docs/docs/20-usage/100-troubleshooting.md @@ -0,0 +1,37 @@ +# Troubleshooting + +## How to debug clone issues + +(And what to do with an error message like `fatal: could not read Username for 'https://': No such device or address`) + +This error can have multiple causes. If you use internal repositories you might have to enable `WOODPECKER_AUTHENTICATE_PUBLIC_REPOS`: + +```ini +WOODPECKER_AUTHENTICATE_PUBLIC_REPOS=true +``` + +If that does not work, try to make sure the container can reach your git server. In order to do that disable git checkout and make the container "hang": + +```yaml +skip_clone: true + +steps: + build: + image: debian:stable-backports + commands: + - apt update + - apt install -y inetutils-ping wget + - ping -c 4 git.example.com + - wget git.example.com + - sleep 9999999 +``` + +Get the container id using `docker ps` and copy the id from the first column. Enter the container with: `docker exec -it 1234asdf bash` (replace `1234asdf` with the docker id). Then try to clone the git repository with the commands from the failing pipeline: + +```bash +git init +git remote add origin https://git.example.com/username/repo.git +git fetch --no-tags origin +refs/heads/branch: +``` + +(replace the url AND the branch with the correct values, use your username and password as log in values) diff --git a/docs/docs/30-administration/00-deployment/00-overview.md b/docs/docs/30-administration/00-deployment/00-overview.md index 232eb8694..d69c5c643 100644 --- a/docs/docs/30-administration/00-deployment/00-overview.md +++ b/docs/docs/30-administration/00-deployment/00-overview.md @@ -16,7 +16,11 @@ You can add more agents to increase the number of parallel workflows or set the Woodpecker is having two different kinds of releases: **stable** and **next**. -To find out more about the differences between the two releases, please read the [FAQ](/faq#which-version-of-woodpecker-should-i-use). +The **stable** releases are official versions following [semver](https://semver.org/). By default, only the latest stable release will receive bug fixes. Once a new major or minor release is available, previous minor versions might only receive security patches, but wont be updated with bug fixes anymore (so called backporting) by default. + +The **next** release contains all bugfixes and features from `main` branch. Normally it should be pretty stable, but as its frequently updated, it might contain some bugs from time to time. There are no binaries for this version. + +If you want all (new) features of Woodpecker and are willing to accept some possible bugs from time to time, you should use the next release, otherwise use the stable release. ### Stable releases @@ -87,6 +91,8 @@ In the case you need to use Woodpecker with a URL path prefix (like: ': No such device or address`) - -This error can have multiple causes. If you use internal repositories you might have to enable `WOODPECKER_AUTHENTICATE_PUBLIC_REPOS`: - -```ini -WOODPECKER_AUTHENTICATE_PUBLIC_REPOS=true -``` - -If that does not work, try to make sure the container can reach your git server. In order to do that disable git checkout and make the container "hang": - -```yaml -skip_clone: true - -steps: - build: - image: debian:stable-backports - commands: - - apt update - - apt install -y inetutils-ping wget - - ping -c 4 git.example.com - - wget git.example.com - - sleep 9999999 -``` - -Get the container id using `docker ps` and copy the id from the first column. Enter the container with: `docker exec -it 1234asdf bash` (replace `1234asdf` with the docker id). Then try to clone the git repository with the commands from the failing pipeline: - -```bash -git init -git remote add origin https://git.example.com/username/repo.git -git fetch --no-tags origin +refs/heads/branch: -``` - -(replace the url AND the branch with the correct values, use your username and password as log in values) diff --git a/docs/versioned_docs/version-1.0/30-administration/00-setup.md b/docs/versioned_docs/version-1.0/30-administration/00-setup.md index a5dbb1c8a..193153226 100644 --- a/docs/versioned_docs/version-1.0/30-administration/00-setup.md +++ b/docs/versioned_docs/version-1.0/30-administration/00-setup.md @@ -15,8 +15,6 @@ A Woodpecker deployment consists of two parts: Woodpecker is having two different kinds of releases: **stable** and **next**. -To find out more about the differences between the two releases, please read the [FAQ](/faq). - ## Hardware Requirements Below are resources requirements for Woodpecker components itself: diff --git a/docs/versioned_docs/version-1.0/80-downloads.md b/docs/versioned_docs/version-1.0/80-downloads.md index e18c00e42..662027354 100644 --- a/docs/versioned_docs/version-1.0/80-downloads.md +++ b/docs/versioned_docs/version-1.0/80-downloads.md @@ -4,8 +4,6 @@ Woodpecker is having two different kinds of releases: **stable** and **next**. -To find out more about the differences between the two releases, please read the [FAQ](/faq). - ## Binaries & DEB, RPM [Latest release](https://github.com/woodpecker-ci/woodpecker/releases/latest) diff --git a/docs/versioned_docs/version-2.0/30-administration/00-deployment/00-overview.md b/docs/versioned_docs/version-2.0/30-administration/00-deployment/00-overview.md index 762bfade9..1e952c102 100644 --- a/docs/versioned_docs/version-2.0/30-administration/00-deployment/00-overview.md +++ b/docs/versioned_docs/version-2.0/30-administration/00-deployment/00-overview.md @@ -16,8 +16,6 @@ You can add more agents to increase the number of parallel workflows or set the Woodpecker is having two different kinds of releases: **stable** and **next**. -To find out more about the differences between the two releases, please read the [FAQ](/faq#which-version-of-woodpecker-should-i-use). - ## Hardware Requirements Below are minimal resources requirements for Woodpecker components itself: diff --git a/docs/versioned_docs/version-2.1/30-administration/00-deployment/00-overview.md b/docs/versioned_docs/version-2.1/30-administration/00-deployment/00-overview.md index 8400ae8cc..cd34fcf42 100644 --- a/docs/versioned_docs/version-2.1/30-administration/00-deployment/00-overview.md +++ b/docs/versioned_docs/version-2.1/30-administration/00-deployment/00-overview.md @@ -16,8 +16,6 @@ You can add more agents to increase the number of parallel workflows or set the Woodpecker is having two different kinds of releases: **stable** and **next**. -To find out more about the differences between the two releases, please read the [FAQ](/faq#which-version-of-woodpecker-should-i-use). - ## Hardware Requirements Below are minimal resources requirements for Woodpecker components itself: diff --git a/docs/versioned_docs/version-2.2/30-administration/00-deployment/00-overview.md b/docs/versioned_docs/version-2.2/30-administration/00-deployment/00-overview.md index 8400ae8cc..cd34fcf42 100644 --- a/docs/versioned_docs/version-2.2/30-administration/00-deployment/00-overview.md +++ b/docs/versioned_docs/version-2.2/30-administration/00-deployment/00-overview.md @@ -16,8 +16,6 @@ You can add more agents to increase the number of parallel workflows or set the Woodpecker is having two different kinds of releases: **stable** and **next**. -To find out more about the differences between the two releases, please read the [FAQ](/faq#which-version-of-woodpecker-should-i-use). - ## Hardware Requirements Below are minimal resources requirements for Woodpecker components itself: diff --git a/docs/versioned_docs/version-2.3/30-administration/00-deployment/00-overview.md b/docs/versioned_docs/version-2.3/30-administration/00-deployment/00-overview.md index 758b76ad6..b2b6dadfd 100644 --- a/docs/versioned_docs/version-2.3/30-administration/00-deployment/00-overview.md +++ b/docs/versioned_docs/version-2.3/30-administration/00-deployment/00-overview.md @@ -16,8 +16,6 @@ You can add more agents to increase the number of parallel workflows or set the Woodpecker is having two different kinds of releases: **stable** and **next**. -To find out more about the differences between the two releases, please read the [FAQ](/faq#which-version-of-woodpecker-should-i-use). - ### Stable releases We release a new version every four weeks and will release the current state of the `main` branch. diff --git a/docs/versioned_docs/version-2.4/30-administration/00-deployment/00-overview.md b/docs/versioned_docs/version-2.4/30-administration/00-deployment/00-overview.md index 758b76ad6..b2b6dadfd 100644 --- a/docs/versioned_docs/version-2.4/30-administration/00-deployment/00-overview.md +++ b/docs/versioned_docs/version-2.4/30-administration/00-deployment/00-overview.md @@ -16,8 +16,6 @@ You can add more agents to increase the number of parallel workflows or set the Woodpecker is having two different kinds of releases: **stable** and **next**. -To find out more about the differences between the two releases, please read the [FAQ](/faq#which-version-of-woodpecker-should-i-use). - ### Stable releases We release a new version every four weeks and will release the current state of the `main` branch. diff --git a/docs/versioned_docs/version-2.5/30-administration/00-deployment/00-overview.md b/docs/versioned_docs/version-2.5/30-administration/00-deployment/00-overview.md index 232eb8694..bdb64a594 100644 --- a/docs/versioned_docs/version-2.5/30-administration/00-deployment/00-overview.md +++ b/docs/versioned_docs/version-2.5/30-administration/00-deployment/00-overview.md @@ -16,8 +16,6 @@ You can add more agents to increase the number of parallel workflows or set the Woodpecker is having two different kinds of releases: **stable** and **next**. -To find out more about the differences between the two releases, please read the [FAQ](/faq#which-version-of-woodpecker-should-i-use). - ### Stable releases We release a new version every four weeks and will release the current state of the `main` branch.