new deploy: 2022-09-06T13:34:25+00:00

pages
Loïc Dachary 2022-09-06 13:34:25 +00:00 committed by dachary
commit 81bd905aa5
113 changed files with 16520 additions and 0 deletions

3
404.html Normal file
View File

@ -0,0 +1,3 @@
<!doctype html>
<title>404 Not Found</title>
<h1>404 Not Found</h1>

285
about/index.html Normal file
View File

@ -0,0 +1,285 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>About | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="About" />
<meta property="og:title" content="About | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="About" />
<meta
property="og:site_name"
content="About | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">About</h1>
<div class="page__group-content">
<p>Gna! provides <a href="https://hosteadashboard.gna.org/dash/instance/new/">dedicated managed Gitea hosting</a>, including <a href="https://woodpecker-ci.org/">Woodpecker CI</a>. Security updates are applied as soon as they are available and carefully tested. Each Gitea instance is monitored 24/7 and has backups.</p>
<video width="600" controls>
<source src="https://cloud.forgefriends.org/s/xXLcYpsE469tJEj/download?path=&files=hostea-screencast-vm-create.mp4" type="video/mp4" />
</video>
<p>You can rely on Gna! if you are an individual software developer who need their own Gitea instance with CI but can't be bothered with installation and maintenance. You want the freedom to download a backup and seamlessly self-host it whenever you decide: no strings attached.</p>
<p>If you are into trouble and need assistance with a Gitea instance not hosted at Gna!, you <a href="/gitea-clinic/">can ask for help at the Gna! clinic</a>. The doctors have developped a unique expertise and are well equiped to help you recover and upgrade.</p>
<hr />
<p>Do you already have an expertise running Gitea? You are welcome to join the <a href="https://forum.gna.org/t/57">Gna! collective</a>, get in touch <a href="https://forum.hostea.org/c/site-feedback/2">in the forum</a> or <a href="https://matrix.to/#/#hostea:matrix.batsense.net">the chat</a>.</p>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

BIN
android-icon-144x144.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
android-icon-192x192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
android-icon-36x36.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 838 B

BIN
android-icon-48x48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 912 B

BIN
android-icon-72x72.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1003 B

BIN
android-icon-96x96.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
apple-icon-114x114.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
apple-icon-120x120.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
apple-icon-144x144.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
apple-icon-152x152.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
apple-icon-180x180.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
apple-icon-57x57.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 941 B

BIN
apple-icon-60x60.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 961 B

BIN
apple-icon-72x72.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1003 B

BIN
apple-icon-76x76.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
apple-icon-precomposed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
apple-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -0,0 +1,338 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>1.17 breaking changes episode 1: preserving a custom gitconfig | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="The location of the gitconfig file used by Gitea moved and custom modifications must be manually moved as well." />
<meta property="og:title" content="1.17 breaking changes episode 1: preserving a custom gitconfig | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="The location of the gitconfig file used by Gitea moved and custom modifications must be manually moved as well." />
<meta
property="og:site_name"
content="1.17 breaking changes episode 1: preserving a custom gitconfig | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">1.17 breaking changes episode 1: preserving a custom gitconfig</h1>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 22
June
,
2022 &middot; <b>2 min read</b>
</p>
<div class="blog__content">
<p>Before version 1.17, when Gitea needed to change the <a href="https://git-scm.com/docs/git-config">git configuration</a>, it modified the <code>$HOME/.gitconfig</code> file. For instance it would <a href="https://github.com/go-gitea/gitea/blob/release/v1.16/modules/git/git.go#L174-L177">set core.quotePath to false</a>:</p>
<pre data-lang="ini" style="background-color:#2b303b;color:#c0c5ce;" class="language-ini "><code class="language-ini" data-lang="ini"><span style="color:#b48ead;">[core]
</span><span> </span><span style="color:#bf616a;">quotePath </span><span>= </span><span style="color:#d08770;">false
</span></code></pre>
<p>When installing Gitea <a href="https://docs.gitea.io/en-us/install-with-docker/">from docker</a> or <a href="https://docs.gitea.io/en-us/install-with-docker-rootless/">rootless</a> or even <a href="https://docs.gitea.io/en-us/install-from-binary/">from binary</a> this <code>$HOME/.gitconfig</code> file belongs to a user that is <a href="https://docs.gitea.io/en-us/install-from-binary/#prepare-environment">dedicated to Gitea</a> and not used by anyone else.</p>
<p>However, if an Gitea installation was done differently and <code>$HOME/.gitconfig</code> has been customized because it is shared by a user or another application, there is a good chance that manual modifications were done such as:</p>
<pre data-lang="ini" style="background-color:#2b303b;color:#c0c5ce;" class="language-ini "><code class="language-ini" data-lang="ini"><span style="color:#b48ead;">[user]
</span><span> </span><span style="color:#bf616a;">name </span><span>= Jane Doe
</span><span> </span><span style="color:#bf616a;">email </span><span>= jane</span><span style="color:#b48ead;">@doe</span><span>.com
</span></code></pre>
<p>It is also possible that the file was modified manually by the Gitea admin for other reasons. In both there is a <strong>potential for breakage when upgrading to Gitea &gt;= 1.17 because the location of the file changed</strong>. It must be moved manually to the new location as follows:</p>
<ul>
<li>Figure out the directory where <code>$HOME/.gitconfig</code> must be moved by <a href="https://gna.org/blog/gentle-introduction-to-the-doctor/">running the doctor</a>:</li>
</ul>
<pre data-lang="shell" style="background-color:#2b303b;color:#c0c5ce;" class="language-shell "><code class="language-shell" data-lang="shell"><span>$ gitea --work-path /app/gitea -c /data/gitea/conf/app.ini doctor
</span><span>[1] Check paths and basic configuration
</span><span> - [I] Configuration File Path: &quot;/data/gitea/conf/app.ini&quot;
</span><span> - [I] Repository Root Path: &quot;/data/git/repositories&quot;
</span><span> - [I] Data Root Path: &quot;/data/gitea&quot;
</span><span> - [I] Custom File Root Path: &quot;/data/gitea&quot;
</span><span> - [I] Work directory: &quot;/app/gitea&quot;
</span><span> - [I] Log Root Path: &quot;/data/gitea/log&quot;
</span><span>OK
</span></code></pre>
<ul>
<li>Copy the <code>$HOME/.gitconfig</code> file to the <strong>Repository Root Path</strong> (which is <code>/data/git/repositories</code> in the example above).</li>
</ul>
<p>The reason why this breaking change was introduced is to workaround <a href="https://gna.org/blog/unsafe-repository-is-owned-by-someone-else/">a rare problem</a> impacting Gitea installations relying on networked volumes.</p>
</div>
<br>
<br>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
<a class="blog__post-tag" href="/tags/tutorial">#tutorial</a>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

View File

@ -0,0 +1,330 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>1.17 breaking changes episode 2: preserving a custom gitconfig | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="The location of the gitconfig file used by Gitea moved twice, here is a guide to sort out why and how to deal with it." />
<meta property="og:title" content="1.17 breaking changes episode 2: preserving a custom gitconfig | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="The location of the gitconfig file used by Gitea moved twice, here is a guide to sort out why and how to deal with it." />
<meta
property="og:site_name"
content="1.17 breaking changes episode 2: preserving a custom gitconfig | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">1.17 breaking changes episode 2: preserving a custom gitconfig</h1>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 20
July
,
2022 &middot; <b>2 min read</b>
</p>
<div class="blog__content">
<p>On June 21st, 2022 1.17.0-rc1 was published and the location of the gitconfig file moved to a new location, <a href="2022-06-23-1.17-breaking-episode-1">which required manual intervention</a>. This change impacted a large number of Gitea installations because the docker image tag <strong>latest</strong> <a href="https://mastodon.online/@hostea/108514134565401798">was set to 1.17.0-rc1</a> by accident. As a result, about 10,000 pulls per hour from the docker hub got the release candidate instead of the expected stable version.</p>
<p>Unfortunately moving the git home directory in 1.17.0-rc1 was implemented in way that created a security problem. The <a href="https://github.com/go-gitea/gitea/pull/20114">fix that was merged in Gitea</a> to fix it requires moving the gitconfig file and was released July 19th, 2022 in 1.17.0-rc2.</p>
<p>This would have been a minor inconvenience if it only has an impact on adventurous people trying the release candidate in a test environment. But since all Gitea production installations based on the <strong>latest</strong> tag were inadvertently upgraded to 1.17.0-rc1, the admins who moved their custom .gitconfig will need to move it one more time when upgrading to 1.17.0-rc2.</p>
<p>In 1.17.0-rc2, a custom .gitconfig must be moved manually to the <a href="https://docs.gitea.io/en-us/config-cheat-sheet/#git-git">new git home directory</a> as follows:</p>
<ul>
<li>Figure out the directory where <code>$HOME/.gitconfig</code> must be moved by <a href="https://gna.org/blog/gentle-introduction-to-the-doctor/">running the doctor</a>:</li>
</ul>
<pre data-lang="shell" style="background-color:#2b303b;color:#c0c5ce;" class="language-shell "><code class="language-shell" data-lang="shell"><span>$ gitea --work-path /app/gitea -c /data/gitea/conf/app.ini doctor
</span><span>[1] Check paths and basic configuration
</span><span> - [I] Configuration File Path: &quot;/data/gitea/conf/app.ini&quot;
</span><span> - [I] Repository Root Path: &quot;/data/git/repositories&quot;
</span><span> - [I] Data Root Path: &quot;/data/gitea&quot;
</span><span> - [I] Custom File Root Path: &quot;/data/gitea&quot;
</span><span> - [I] Work directory: &quot;/app/gitea&quot;
</span><span> - [I] Log Root Path: &quot;/data/gitea/log&quot;
</span><span>OK
</span></code></pre>
<ul>
<li>Copy the <code>$HOME/.gitconfig</code> file to the <strong>Data Root Path</strong>/home (which is <code>/data/gitea/home</code> in the example above).</li>
</ul>
</div>
<br>
<br>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
<a class="blog__post-tag" href="/tags/tutorial">#tutorial</a>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

View File

@ -0,0 +1,334 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Introducing Gna! | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Introducing Hostea, a project Loïc Dachary and Aravinth Manivannan are working on to create a 100% Free software development suite, complete with CI&#x2F;CD, static pages and gists" />
<meta property="og:title" content="Introducing Gna! | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="Introducing Hostea, a project Loïc Dachary and Aravinth Manivannan are working on to create a 100% Free software development suite, complete with CI&#x2F;CD, static pages and gists" />
<meta
property="og:site_name"
content="Introducing Gna! | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">Introducing Gna!</h1>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;batsense.net" class="post__author">Aravinth Manivannan</a>
&middot; 22
April
,
2022 &middot; <b>1 min read</b>
</p>
<div class="blog__content">
<p>Introducing <a href="https://gna.org">Hostea</a>, a project <a href="https://dachary.org">Loïc
Dachary</a> and <a href="https://batsense.net">Aravinth
Manivannan</a> are working on to create a full Free
software development suite based on
<a href="https://gitea.io">Gitea</a> for the forge, <a href="https://woodpecker-ci.org">Woodpecker
CI</a> for CI/CD,
<a href="https://github.com/realaravinth/pages">Pages</a> for static sites and
<a href="https://gitpad.org">GitPad</a> for gists.</p>
<p>This talk introduces the projects goals and philosophy behind the
project.</p>
<p>Please see
<a href="https://forum.forgefriends.org/t/forgefriends-monthly-update-april-22st-2022-5pm-6pm-utc-2/673">here</a>
to learn more about the event.</p>
<h2 id="details">Details<a class="zola-anchor" href="#details" aria-label="Anchor link for: details"
><span class="anchor-icon">#</span></a
>
</h2>
<ul>
<li><strong>organised by:</strong> <a href="https://forgefriends.org">forgefriends.org</a></li>
<li><strong>date:</strong> 2022<sup>th</sup> April, 2022</li>
<li><strong>venue:</strong> Online</li>
</ul>
<h2 id="resources">Resources<a class="zola-anchor" href="#resources" aria-label="Anchor link for: resources"
><span class="anchor-icon">#</span></a
>
</h2>
<ul>
<li><a href="./slides/2022-04-22-forgefriends-introducing-hostea.odp">slides(ODP)</a></li>
<li><a href="./slides/2022-04-22-forgefriends-introducing-hostea.pdf">slides(PDF)</a></li>
</ul>
</div>
<br>
<br>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/hostea">#hostea</a>
<a class="blog__post-tag" href="/tags/forgefriends">#forgefriends</a>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

758
blog/atom.xml Normal file
View File

@ -0,0 +1,758 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title> - Posts</title>
<link href="https://gna.org/blog/atom.xml" rel="self" type="application/atom+xml"/>
<link href="https://gna.org/blog/"/>
<generator uri="https://www.getzola.org/">Zola</generator>
<updated>2022-07-20T00:00:00+00:00</updated>
<id>https://gna.org/blog/atom.xml</id>
<entry xml:lang="en">
<title>1.17 breaking changes episode 2: preserving a custom gitconfig</title>
<published>2022-07-20T00:00:00+00:00</published>
<updated>2022-07-20T00:00:00+00:00</updated>
<link href="https://gna.org/blog/1-17-breaking-episode-2/" type="text/html"/>
<id>https://gna.org/blog/1-17-breaking-episode-2/</id>
<content type="html">&lt;p&gt;On June 21st, 2022 1.17.0-rc1 was published and the location of the gitconfig file moved to a new location, &lt;a href=&quot;2022-06-23-1.17-breaking-episode-1&quot;&gt;which required manual intervention&lt;&#x2F;a&gt;. This change impacted a large number of Gitea installations because the docker image tag &lt;strong&gt;latest&lt;&#x2F;strong&gt; &lt;a href=&quot;https:&#x2F;&#x2F;mastodon.online&#x2F;@hostea&#x2F;108514134565401798&quot;&gt;was set to 1.17.0-rc1&lt;&#x2F;a&gt; by accident. As a result, about 10,000 pulls per hour from the docker hub got the release candidate instead of the expected stable version.&lt;&#x2F;p&gt;
&lt;p&gt;Unfortunately moving the git home directory in 1.17.0-rc1 was implemented in way that created a security problem. The &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;20114&quot;&gt;fix that was merged in Gitea&lt;&#x2F;a&gt; to fix it requires moving the gitconfig file and was released July 19th, 2022 in 1.17.0-rc2.&lt;&#x2F;p&gt;
&lt;p&gt;This would have been a minor inconvenience if it only has an impact on adventurous people trying the release candidate in a test environment. But since all Gitea production installations based on the &lt;strong&gt;latest&lt;&#x2F;strong&gt; tag were inadvertently upgraded to 1.17.0-rc1, the admins who moved their custom .gitconfig will need to move it one more time when upgrading to 1.17.0-rc2.&lt;&#x2F;p&gt;
&lt;p&gt;In 1.17.0-rc2, a custom .gitconfig must be moved manually to the &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;config-cheat-sheet&#x2F;#git-git&quot;&gt;new git home directory&lt;&#x2F;a&gt; as follows:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Figure out the directory where &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; must be moved by &lt;a href=&quot;https:&#x2F;&#x2F;gna.org&#x2F;blog&#x2F;gentle-introduction-to-the-doctor&#x2F;&quot;&gt;running the doctor&lt;&#x2F;a&gt;:&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;pre data-lang=&quot;shell&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-shell &quot;&gt;&lt;code class=&quot;language-shell&quot; data-lang=&quot;shell&quot;&gt;&lt;span&gt;$ gitea --work-path &#x2F;app&#x2F;gitea -c &#x2F;data&#x2F;gitea&#x2F;conf&#x2F;app.ini doctor
&lt;&#x2F;span&gt;&lt;span&gt;[1] Check paths and basic configuration
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Configuration File Path: &amp;quot;&#x2F;data&#x2F;gitea&#x2F;conf&#x2F;app.ini&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Repository Root Path: &amp;quot;&#x2F;data&#x2F;git&#x2F;repositories&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Data Root Path: &amp;quot;&#x2F;data&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Custom File Root Path: &amp;quot;&#x2F;data&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Work directory: &amp;quot;&#x2F;app&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Log Root Path: &amp;quot;&#x2F;data&#x2F;gitea&#x2F;log&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt;OK
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;ul&gt;
&lt;li&gt;Copy the &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; file to the &lt;strong&gt;Data Root Path&lt;&#x2F;strong&gt;&#x2F;home (which is &lt;code&gt;&#x2F;data&#x2F;gitea&#x2F;home&lt;&#x2F;code&gt; in the example above).&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
</content>
</entry>
<entry xml:lang="en">
<title>Get a Gitea instance with CI at Gna!</title>
<published>2022-07-10T00:00:00+00:00</published>
<updated>2022-07-10T00:00:00+00:00</updated>
<link href="https://gna.org/blog/experimental/" type="text/html"/>
<id>https://gna.org/blog/experimental/</id>
<content type="html">&lt;p&gt;Hosting a Gitea instance on Gna! is now possible (but still experimental). It is meant to be a minimum viable product: anyone can &lt;a href=&quot;https:&#x2F;&#x2F;hosteadashboard.gna.org&quot;&gt;create a new dedicated Gitea instance&lt;&#x2F;a&gt; within minutes and pay for it on a monthly basis with a credit card. It includes a dedicated CI based on &lt;a href=&quot;https:&#x2F;&#x2F;woodpecker-ci.org&#x2F;&quot;&gt;Woodpecker&lt;&#x2F;a&gt;. The smallest instance costs 10€ per month (2GB RAM, 10GB disk, 1CPU) and will be a good fit for a freelance up to a team of five people but bigger instances are also available if more RAM, CPU or disk is required.&lt;&#x2F;p&gt;
&lt;video width=&quot;600&quot; controls&gt;
&lt;source src=&quot;https:&#x2F;&#x2F;cloud.forgefriends.org&#x2F;s&#x2F;xXLcYpsE469tJEj&#x2F;download?path=&amp;files=hostea-screencast-vm-create.mp4&quot; type=&quot;video&#x2F;mp4&quot; &#x2F;&gt;
&lt;&#x2F;video&gt;
&lt;p&gt;The service is 100% infrastructure as code, published as &lt;a href=&quot;https:&#x2F;&#x2F;lab.enough.community&#x2F;main&#x2F;infrastructure&#x2F;-&#x2F;tree&#x2F;9e18ebbf675c8a65d1585d20b4cf6295af6e52ed&#x2F;playbooks&#x2F;hosteadashboard&quot;&gt;Ansible playbooks within Enough&lt;&#x2F;a&gt;. It can be self-hosted on bare metal (with &lt;a href=&quot;https:&#x2F;&#x2F;libvirt.org&#x2F;&quot;&gt;libvirt&lt;&#x2F;a&gt;) or in the cloud (with &lt;a href=&quot;https:&#x2F;&#x2F;www.openstack.org&#x2F;&quot;&gt;OpenStack&lt;&#x2F;a&gt;): follow the &lt;a href=&quot;https:&#x2F;&#x2F;enough-community.readthedocs.io&#x2F;en&#x2F;latest&#x2F;introduction.html#quick-start&quot;&gt;quick start&lt;&#x2F;a&gt;, configure playbooks for &lt;a href=&quot;https:&#x2F;&#x2F;enough-community.readthedocs.io&#x2F;en&#x2F;latest&#x2F;services&#x2F;hostea.html&quot;&gt;hostea&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;enough-community.readthedocs.io&#x2F;en&#x2F;latest&#x2F;services&#x2F;hosteadashboard.html&quot;&gt;the dashboard&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;The organization supporting Gna! is a &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;c&#x2F;governance-and-decisions&#x2F;7&quot;&gt;horizontal collective&lt;&#x2F;a&gt; of individuals and organizations. The &lt;a href=&quot;https:&#x2F;&#x2F;forum.hostea.org&#x2F;t&#x2F;decision-revenue-sharing-model&#x2F;92&quot;&gt;revenue sharing model&lt;&#x2F;a&gt; is set to dedicate 25% of the income (more than the profits) to help the Free Software projects Hostea depends on such as Gitea, Enough, Django etc.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;the-origin&quot;&gt;The origin&lt;a class=&quot;zola-anchor&quot; href=&quot;#the-origin&quot; aria-label=&quot;Anchor link for: the-origin&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;In February 2022 the project of running a dedicated Gitea hosting service was &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;a-gitea-hosting-service-under-the-umbrella-of-the-gitea-project&#x2F;4692&quot;&gt;proposed to the Gitea project&lt;&#x2F;a&gt; and other organizations and &lt;a href=&quot;https:&#x2F;&#x2F;blog.dachary.org&#x2F;2022&#x2F;02&#x2F;16&#x2F;project-plans-for-a-hosted-gitea-online-service&#x2F;&quot;&gt;plans were drafted&lt;&#x2F;a&gt;. After a month of discussions it turned out to not be a &lt;a href=&quot;https:&#x2F;&#x2F;blog.dachary.org&#x2F;2022&#x2F;03&#x2F;11&#x2F;the-inconclusive-story-of-four-failed-project-offers&#x2F;&quot;&gt;good match for any of them&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;It was suggested to create a new project from scratch instead of joining an existing organization. However, in order to be sustainable, a hosting service needs customers willing to pay for the service. And nobody had that kind of skill. It was therefore decided that to terminate the project: there is no point is creating a technical stack that&#x27;s not going to be used by anyone.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;a-technical-stack-with-no-users&quot;&gt;A technical stack with no users&lt;a class=&quot;zola-anchor&quot; href=&quot;#a-technical-stack-with-no-users&quot; aria-label=&quot;Anchor link for: a-technical-stack-with-no-users&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;The most common mistake technical people do when creating a new piece of software is to overlook the fact that they have absolutely no idea how to let their intended user base know about it. Maybe the reason it happens so often is because it is very difficult to resist the urge of creating something. Because that&#x27;s what technical people love to do: create things, even when they have no clue if it can be used.&lt;&#x2F;p&gt;
&lt;p&gt;It took no longer than two weeks for the people involved in Gna! to decide to build the technical stack to run hostea instead of being reasonable and give up. It was just too tempting.&lt;&#x2F;p&gt;
&lt;p&gt;To keep the madness contained and enjoyable, it was decided to set a deadline to July 1st and to &lt;a href=&quot;https:&#x2F;&#x2F;gitea.gna.org&#x2F;Hostea&#x2F;july-mvp&#x2F;issues&quot;&gt;define precise and realistic technical goals&lt;&#x2F;a&gt;. It turned out to be an enjoyable experience: everyone learned a lot in the process and the outcome is something that can be reproduced. Most MVPs are a brittle pile of hacks designed to last a few weeks and be thrown away. But since a primary goal of the project was to create something self-hostable, it had to implement that feature and therefore be reproducible.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;a-horizontal-collective-with-a-revenue-sharing-model&quot;&gt;A horizontal collective with a revenue sharing model&lt;a class=&quot;zola-anchor&quot; href=&quot;#a-horizontal-collective-with-a-revenue-sharing-model&quot; aria-label=&quot;Anchor link for: a-horizontal-collective-with-a-revenue-sharing-model&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Another goal of Gna! is to deploy federated forges, even at an experimental stage. Instead of creating a centralized organization to support Hostea, it was decided to create &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;c&#x2F;governance-and-decisions&#x2F;7&quot;&gt;horizontal collective&lt;&#x2F;a&gt;. It feels like a contradiction for a project committed to decentralization to be governed by a centralized organization.&lt;&#x2F;p&gt;
&lt;p&gt;The collective is composed of individuals and organizations but, unlike exclusively volunteer based Free Software projects, it is for profit. Customers rent Gitea instances by the month and the income is used to pay for expenses. There is however a difficulty: by nature a horizontal collective cannot be incorporated as it would create a level of hierarchy. The &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;t&#x2F;decision-revenue-sharing-model&#x2F;92&quot;&gt;revenue sharing model&lt;&#x2F;a&gt; had to be set as an informal agreement between members where one of them receives the income and distributes it to the others, depending on their Gna! related expenses.&lt;&#x2F;p&gt;
&lt;p&gt;It also requires that 25% of the income (not the profits) is dedicated to help the Free Software projects that Gna! depends on such as Gitea, Enough, Django etc. It can be via a donation, by upstreaming a bug fix or any kind of work that is beneficial to the dependency.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;dedicated-to-forge-federation&quot;&gt;Dedicated to forge federation&lt;a class=&quot;zola-anchor&quot; href=&quot;#dedicated-to-forge-federation&quot; aria-label=&quot;Anchor link for: dedicated-to-forge-federation&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;In the spirit of dogfooding, the people who created the technical stack of Gna! will use it for themselves on a daily basis. Since the focus of the authors is on &lt;a href=&quot;https:&#x2F;&#x2F;forgefriends.org&#x2F;blog&#x2F;2022&#x2F;06&#x2F;30&#x2F;2022-06-state-forge-federation&#x2F;&quot;&gt;forge federation&lt;&#x2F;a&gt;, they will add federation support in Hostea. This will be their primary motivation to improve and maintain Hostea: it is the only hosting platform where this can happen.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>1.17 breaking changes episode 1: preserving a custom gitconfig</title>
<published>2022-06-22T00:00:00+00:00</published>
<updated>2022-06-22T00:00:00+00:00</updated>
<link href="https://gna.org/blog/1-17-breaking-episode-1/" type="text/html"/>
<id>https://gna.org/blog/1-17-breaking-episode-1/</id>
<content type="html">&lt;p&gt;Before version 1.17, when Gitea needed to change the &lt;a href=&quot;https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;git-config&quot;&gt;git configuration&lt;&#x2F;a&gt;, it modified the &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; file. For instance it would &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;release&#x2F;v1.16&#x2F;modules&#x2F;git&#x2F;git.go#L174-L177&quot;&gt;set core.quotePath to false&lt;&#x2F;a&gt;:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;ini&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-ini &quot;&gt;&lt;code class=&quot;language-ini&quot; data-lang=&quot;ini&quot;&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[core]
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;quotePath &lt;&#x2F;span&gt;&lt;span&gt;= &lt;&#x2F;span&gt;&lt;span style=&quot;color:#d08770;&quot;&gt;false
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;When installing Gitea &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-with-docker&#x2F;&quot;&gt;from docker&lt;&#x2F;a&gt; or &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-with-docker-rootless&#x2F;&quot;&gt;rootless&lt;&#x2F;a&gt; or even &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-from-binary&#x2F;&quot;&gt;from binary&lt;&#x2F;a&gt; this &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; file belongs to a user that is &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-from-binary&#x2F;#prepare-environment&quot;&gt;dedicated to Gitea&lt;&#x2F;a&gt; and not used by anyone else.&lt;&#x2F;p&gt;
&lt;p&gt;However, if an Gitea installation was done differently and &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; has been customized because it is shared by a user or another application, there is a good chance that manual modifications were done such as:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;ini&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-ini &quot;&gt;&lt;code class=&quot;language-ini&quot; data-lang=&quot;ini&quot;&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[user]
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;name &lt;&#x2F;span&gt;&lt;span&gt;= Jane Doe
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;email &lt;&#x2F;span&gt;&lt;span&gt;= jane&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;@doe&lt;&#x2F;span&gt;&lt;span&gt;.com
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;It is also possible that the file was modified manually by the Gitea admin for other reasons. In both there is a &lt;strong&gt;potential for breakage when upgrading to Gitea &amp;gt;= 1.17 because the location of the file changed&lt;&#x2F;strong&gt;. It must be moved manually to the new location as follows:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Figure out the directory where &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; must be moved by &lt;a href=&quot;https:&#x2F;&#x2F;gna.org&#x2F;blog&#x2F;gentle-introduction-to-the-doctor&#x2F;&quot;&gt;running the doctor&lt;&#x2F;a&gt;:&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;pre data-lang=&quot;shell&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-shell &quot;&gt;&lt;code class=&quot;language-shell&quot; data-lang=&quot;shell&quot;&gt;&lt;span&gt;$ gitea --work-path &#x2F;app&#x2F;gitea -c &#x2F;data&#x2F;gitea&#x2F;conf&#x2F;app.ini doctor
&lt;&#x2F;span&gt;&lt;span&gt;[1] Check paths and basic configuration
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Configuration File Path: &amp;quot;&#x2F;data&#x2F;gitea&#x2F;conf&#x2F;app.ini&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Repository Root Path: &amp;quot;&#x2F;data&#x2F;git&#x2F;repositories&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Data Root Path: &amp;quot;&#x2F;data&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Custom File Root Path: &amp;quot;&#x2F;data&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Work directory: &amp;quot;&#x2F;app&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Log Root Path: &amp;quot;&#x2F;data&#x2F;gitea&#x2F;log&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt;OK
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;ul&gt;
&lt;li&gt;Copy the &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; file to the &lt;strong&gt;Repository Root Path&lt;&#x2F;strong&gt; (which is &lt;code&gt;&#x2F;data&#x2F;git&#x2F;repositories&lt;&#x2F;code&gt; in the example above).&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The reason why this breaking change was introduced is to workaround &lt;a href=&quot;https:&#x2F;&#x2F;gna.org&#x2F;blog&#x2F;unsafe-repository-is-owned-by-someone-else&#x2F;&quot;&gt;a rare problem&lt;&#x2F;a&gt; impacting Gitea installations relying on networked volumes.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[tutorial] A gentle introduction to the gitea doctor</title>
<published>2022-06-14T00:00:00+00:00</published>
<updated>2022-06-14T00:00:00+00:00</updated>
<link href="https://gna.org/blog/gentle-introduction-to-the-doctor/" type="text/html"/>
<id>https://gna.org/blog/gentle-introduction-to-the-doctor/</id>
<content type="html">&lt;p&gt;While helping people with their upgrades &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;migration-from-1-2-to-1-16-8&#x2F;5309&quot;&gt;in the Gitea forum&lt;&#x2F;a&gt; or &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;t&#x2F;gitea-upgrade-from-1-14-1-to-1-16-8&#x2F;90&quot;&gt;at the Gna! clinic&lt;&#x2F;a&gt;, I realized that few Gitea admins know about the &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;command-line&#x2F;#doctor&quot;&gt;&lt;code&gt;gitea doctor&lt;&#x2F;code&gt;&lt;&#x2F;a&gt; command and decided to write this blog post as a gentle introduction.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;an-apple-a-day-keeps-the-doctor-away&quot;&gt;An apple a day keeps the doctor away&lt;a class=&quot;zola-anchor&quot; href=&quot;#an-apple-a-day-keeps-the-doctor-away&quot; aria-label=&quot;Anchor link for: an-apple-a-day-keeps-the-doctor-away&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Or in our case, Gitea versions &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;v1.11.5&#x2F;cmd&#x2F;doctor.go&quot;&gt;below 1.11.5&lt;&#x2F;a&gt;. Since then, the &lt;code&gt;gitea doctor&lt;&#x2F;code&gt; is available and is designed to run against a specific Gitea version. It would not be a good idea to try to run the doctor from Gitea 1.16 to verify the sanity of a Gitea 1.2 instance: it will be confused by how the database is organized and a number of other details. Historical fun fact: the &lt;code&gt;gitea doctor&lt;&#x2F;code&gt; was backported to &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;v1.10.5&#x2F;cmd&#x2F;doctor.go&quot;&gt;Gitea 1.10.5&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;v1.10.6&#x2F;cmd&#x2F;doctor.go&quot;&gt;Gitea 1.10.6&lt;&#x2F;a&gt; and may be of help if you run this particular version and are facing the problem that motivated the backport.&lt;&#x2F;p&gt;
&lt;p&gt;With each version &lt;code&gt;gitea doctor&lt;&#x2F;code&gt; improves and gains new capabilities. For instance, in Gitea 1.17 it becomes aware of &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19731&quot;&gt;orphaned pull requests&lt;&#x2F;a&gt; and is able to fix them. If such a problem exists in Gitea 1.16, it does not know about it.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;calling-the-doctor&quot;&gt;Calling the doctor&lt;a class=&quot;zola-anchor&quot; href=&quot;#calling-the-doctor&quot; aria-label=&quot;Anchor link for: calling-the-doctor&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;In the following, examples are based on a Gitea 1.16.8 instance you can run as follows:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker run&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --name&lt;&#x2F;span&gt;&lt;span&gt; gitea&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; -p&lt;&#x2F;span&gt;&lt;span&gt; 3000:3000&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; -e&lt;&#x2F;span&gt;&lt;span&gt; GITEA__security__INSTALL_LOCK=true&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; -d&lt;&#x2F;span&gt;&lt;span&gt; gitea&#x2F;gitea:1.16.8-rootless
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea admin user create&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --admin --username&lt;&#x2F;span&gt;&lt;span&gt; root&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --password&lt;&#x2F;span&gt;&lt;span&gt; admin1234&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --email&lt;&#x2F;span&gt;&lt;span&gt; root@example.com
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea mkdir &#x2F;var&#x2F;lib&#x2F;gitea&#x2F;data&#x2F;log
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;And then you can go to the &lt;a href=&quot;https:&#x2F;&#x2F;127.0.0.1:3000&#x2F;&quot;&gt;web interface&lt;&#x2F;a&gt; to create a &lt;code&gt;test&lt;&#x2F;code&gt; repository, with an initial &lt;code&gt;README.md&lt;&#x2F;code&gt; file. When this is done the doctor can be called as follows:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --all
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[1]&lt;&#x2F;span&gt;&lt;span&gt; Check paths and basic configuration
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Configuration File Path: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;etc&#x2F;gitea&#x2F;app.ini&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Repository Root Path: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;var&#x2F;lib&#x2F;gitea&#x2F;git&#x2F;repositories&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Data Root Path: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;var&#x2F;lib&#x2F;gitea&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Custom File Root Path: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;var&#x2F;lib&#x2F;gitea&#x2F;custom&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Work directory: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;var&#x2F;lib&#x2F;gitea&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Log Root Path: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;var&#x2F;lib&#x2F;gitea&#x2F;data&#x2F;log&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[2]&lt;&#x2F;span&gt;&lt;span&gt; Check if there is garbage storage files
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[3]&lt;&#x2F;span&gt;&lt;span&gt; Check Database Version
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[4]&lt;&#x2F;span&gt;&lt;span&gt; Check consistency of database
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[5]&lt;&#x2F;span&gt;&lt;span&gt; Check if user with wrong type exist
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[6]&lt;&#x2F;span&gt;&lt;span&gt; Check if OpenSSH authorized_keys file is up-to-date
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[7]&lt;&#x2F;span&gt;&lt;span&gt; Check if SCRIPT_TYPE is available
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; ScriptType bash is on the current PATH at &#x2F;bin&#x2F;bash
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[8]&lt;&#x2F;span&gt;&lt;span&gt; Check if hook files are up-to-date and executable
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[9]&lt;&#x2F;span&gt;&lt;span&gt; Recalculate Stars number for all user
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[10]&lt;&#x2F;span&gt;&lt;span&gt; Check old archives
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; 0 old archives in repository need to be deleted
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[11]&lt;&#x2F;span&gt;&lt;span&gt; Enable push options
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Checked 1 repositories, 0 need updates.
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[12]&lt;&#x2F;span&gt;&lt;span&gt; Check for incorrectly dumped repo_units (See &lt;&#x2F;span&gt;&lt;span style=&quot;color:#65737e;&quot;&gt;#16961)
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;W&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Found 0 broken repo_units
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[13]&lt;&#x2F;span&gt;&lt;span&gt; Recalculate merge bases
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;W&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; 0 PRs with incorrect mergebases of 0 PRs total in 1 repos
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[14]&lt;&#x2F;span&gt;&lt;span&gt; Check git-daemon-export-ok files
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Checked 1 repositories, 0 need updates.
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h3 id=&quot;what-does-the-doctor-know&quot;&gt;What does the doctor know?&lt;a class=&quot;zola-anchor&quot; href=&quot;#what-does-the-doctor-know&quot; aria-label=&quot;Anchor link for: what-does-the-doctor-know&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Although the &lt;code&gt;doctor&lt;&#x2F;code&gt; can be compared to &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Fsck&quot;&gt;fsck(8)&lt;&#x2F;a&gt;, it does not know everything. It took decades for &lt;code&gt;fsck&lt;&#x2F;code&gt; to become the ultimate authority on finding problems on file systems and reliably fixing them without losing data. Nowadays, only a handful of people in the world are brave enough to manually attempt a file system recovery when &lt;code&gt;fsck&lt;&#x2F;code&gt; cannot recover from a data loss.&lt;&#x2F;p&gt;
&lt;p&gt;The first &lt;code&gt;doctor&lt;&#x2F;code&gt; version is two years old and Gitea admins are still routinely running SQL queries against the database or moving files around when trying to figure out why a Gitea instance is not behaving as it should. It is however worth checking if the doctor does not already have a solution by listing all it can do:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --list
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;Default&lt;&#x2F;span&gt;&lt;span&gt; Name Title
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;*&lt;&#x2F;span&gt;&lt;span&gt; paths Check paths and basic configuration
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;storages&lt;&#x2F;span&gt;&lt;span&gt; Check if there is garbage storage files
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;*&lt;&#x2F;span&gt;&lt;span&gt; check-db-version Check Database Version
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;check-db-consistency&lt;&#x2F;span&gt;&lt;span&gt; Check consistency of database
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;*&lt;&#x2F;span&gt;&lt;span&gt; check-user-type Check if user with wrong type exist
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;*&lt;&#x2F;span&gt;&lt;span&gt; authorized-keys Check if OpenSSH authorized_keys file is up-to-date
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;script-type&lt;&#x2F;span&gt;&lt;span&gt; Check if SCRIPT_TYPE is available
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;hooks&lt;&#x2F;span&gt;&lt;span&gt; Check if hook files are up-to-date and executable
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;recalculate-stars-number&lt;&#x2F;span&gt;&lt;span&gt; Recalculate Stars number for all user
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;check-old-archives&lt;&#x2F;span&gt;&lt;span&gt; Check old archives
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;enable-push-options&lt;&#x2F;span&gt;&lt;span&gt; Enable push options
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;fix-broken-repo-units&lt;&#x2F;span&gt;&lt;span&gt; Check for incorrectly dumped repo_units (See &lt;&#x2F;span&gt;&lt;span style=&quot;color:#65737e;&quot;&gt;#16961)
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;recalculate-merge-bases&lt;&#x2F;span&gt;&lt;span&gt; Recalculate merge bases
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;check-git-daemon-export-ok&lt;&#x2F;span&gt;&lt;span&gt; Check git-daemon-export-ok files
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;And then call the &lt;code&gt;check&lt;&#x2F;code&gt; that looks interesting:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --run&lt;&#x2F;span&gt;&lt;span&gt; authorized-keys
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[1]&lt;&#x2F;span&gt;&lt;span&gt; Check if OpenSSH authorized_keys file is up-to-date
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;The challenge is to figure out which &lt;code&gt;check&lt;&#x2F;code&gt; does what and at the moment the best source of information is ... &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;tree&#x2F;v1.16.8&quot;&gt;the sources&lt;&#x2F;a&gt; themselves. The &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;v1.16.8&#x2F;cmd&#x2F;doctor.go&quot;&gt;doctor.go&lt;&#x2F;a&gt; command is the entry point and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;tree&#x2F;v1.16.8&#x2F;modules&#x2F;doctor&quot;&gt;the doctor directory&lt;&#x2F;a&gt; contains the rest.&lt;&#x2F;p&gt;
&lt;p&gt;Some &lt;code&gt;checks&lt;&#x2F;code&gt; are straightforward to understand, even if you do not know Go, such as &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;v1.16.8&#x2F;modules&#x2F;doctor&#x2F;authorizedkeys.go&quot;&gt;the authorized-keys check&lt;&#x2F;a&gt;. Others are much more involved and your best chance is to &lt;a href=&quot;https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gitea:matrix.org&quot;&gt;ask the Gitea chatroom&lt;&#x2F;a&gt; for help.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;is-it-going-to-hurt&quot;&gt;Is it going to hurt?&lt;a class=&quot;zola-anchor&quot; href=&quot;#is-it-going-to-hurt&quot; aria-label=&quot;Anchor link for: is-it-going-to-hurt&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;By default the doctor (very much like &lt;code&gt;fsck -N&lt;&#x2F;code&gt;) only performs non destructive checks and displays diagnostics, with an indication of how serious the problem is. In the example above, there only are lines with &lt;strong&gt;[I]&lt;&#x2F;strong&gt; (which indicates an information) and &lt;strong&gt;[W]&lt;&#x2F;strong&gt; which indicates a warning that can be ignored but may be worth looking into. Those two warnings are actually just informational and should be labelled as &lt;strong&gt;[I]&lt;&#x2F;strong&gt;, &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19836&quot;&gt;which has been fixed&lt;&#x2F;a&gt; in a more recent version of the doctor.&lt;&#x2F;p&gt;
&lt;p&gt;Now let&#x27;s do something bad: remove the permissions from a hook in our repository:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea chmod&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; -x&lt;&#x2F;span&gt;&lt;span&gt; &#x2F;var&#x2F;lib&#x2F;gitea&#x2F;git&#x2F;repositories&#x2F;root&#x2F;test.git&#x2F;hooks&#x2F;post-receive
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Run the doctor with the &lt;code&gt;check&lt;&#x2F;code&gt; supposed to find that out:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --run&lt;&#x2F;span&gt;&lt;span&gt; hooks
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[1]&lt;&#x2F;span&gt;&lt;span&gt; Check if hook files are up-to-date and executable
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;W&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; old hook file &#x2F;var&#x2F;lib&#x2F;gitea&#x2F;git&#x2F;repositories&#x2F;root&#x2F;test.git&#x2F;hooks&#x2F;post-receive is not executable
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Ask it to fix this with the &lt;code&gt;--fix&lt;&#x2F;code&gt; flag:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --run&lt;&#x2F;span&gt;&lt;span&gt; hooks&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --fix
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[1]&lt;&#x2F;span&gt;&lt;span&gt; Check if hook files are up-to-date and executable
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;W&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Regenerated hooks for root&#x2F;test
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;W&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; old hook file &#x2F;var&#x2F;lib&#x2F;gitea&#x2F;git&#x2F;repositories&#x2F;root&#x2F;test.git&#x2F;hooks&#x2F;post-receive is not executable
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;And run it one last time to check all is well:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --run&lt;&#x2F;span&gt;&lt;span&gt; hooks
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[1]&lt;&#x2F;span&gt;&lt;span&gt; Check if hook files are up-to-date and executable
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Even when the doctor is unable to fix a problem, it can help by showing extensive debug output which can be found, by default, in the &lt;code&gt;doctor.log&lt;&#x2F;code&gt; file in the directory from which it runs. Or it can be displayed on the standard output with &lt;code&gt;--log-file -&lt;&#x2F;code&gt;, which is most convenient when running in docker.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;going-further&quot;&gt;Going further&lt;a class=&quot;zola-anchor&quot; href=&quot;#going-further&quot; aria-label=&quot;Anchor link for: going-further&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;If that was helpful to you, I would very much appreciate if you &lt;a href=&quot;https:&#x2F;&#x2F;mastodon.online&#x2F;@dachary&quot;&gt;send me a message on Mastodon&lt;&#x2F;a&gt;. It will encourage me to write more blog posts to share what I learn about Gitea. Even better: you could &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pulls&quot;&gt;send a pull request&lt;&#x2F;a&gt; to improve the doctor and help it mature.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[solved] Zombies created by Gitea</title>
<published>2022-06-04T00:00:00+00:00</published>
<updated>2022-06-04T00:00:00+00:00</updated>
<link href="https://gna.org/blog/zombies-part-2/" type="text/html"/>
<id>https://gna.org/blog/zombies-part-2/</id>
<content type="html">&lt;p&gt;Gitea can &lt;a href=&quot;&#x2F;blog&#x2F;zombies&quot;&gt;create zombies&lt;&#x2F;a&gt;, for instance if a Git mirror takes too long. When updating a mirror, Gitea relies on the &lt;code&gt;git remote update&lt;&#x2F;code&gt; command which creates a child process, &lt;code&gt;git-remote-https&lt;&#x2F;code&gt;, to fetch data from the remote repository. Gitea has an internal timeout that will kill the child process (e.g. &lt;code&gt;git remote update&lt;&#x2F;code&gt;) when it takes too long but will not kill the grandchild. This grandchild will become an orphan and run forever or until its own timeout expires, which is about two minutes on git version 2.25.&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ time git clone https:&#x2F;&#x2F;4.4.4.4
&lt;&#x2F;span&gt;&lt;span&gt;Clonage dans &amp;#39;4.4.4.4&amp;#39;...
&lt;&#x2F;span&gt;&lt;span&gt;fatal: impossible d&amp;#39;accéder à &amp;#39;https:&#x2F;&#x2F;4.4.4.4&#x2F;&amp;#39;: Failed to connect to 4.4.4.4 port 443: Connexion terminée par expiration du délai d&amp;#39;attente
&lt;&#x2F;span&gt;&lt;span&gt;
&lt;&#x2F;span&gt;&lt;span&gt;real 2m9,753s
&lt;&#x2F;span&gt;&lt;span&gt;user 0m0,001s
&lt;&#x2F;span&gt;&lt;span&gt;sys 0m0,009s
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;As explained in the &lt;a href=&quot;&#x2F;blog&#x2F;zombies&#x2F;#killing-a-child-process-and-all-its-children&quot;&gt;diagnostic blog post regarding Gitea zombies&lt;&#x2F;a&gt; there fortunately is a very simple way to avoid this by making sure each Gitea child is a &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Process_group&quot;&gt;process group leader&lt;&#x2F;a&gt;. That first step was &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19865&quot;&gt;introduced in Gitea 1.17&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19865&quot;&gt;backported to Gitea 1.16.9&lt;&#x2F;a&gt;. The actual bug fix can now be implemented.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;using-negative-process-id-to-kill-children&quot;&gt;Using negative process id to kill children&lt;a class=&quot;zola-anchor&quot; href=&quot;#using-negative-process-id-to-kill-children&quot; aria-label=&quot;Anchor link for: using-negative-process-id-to-kill-children&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;When Gitea timeout on a child, it relies on &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;blob&#x2F;f8a53df314e4af8cd350eedb0dae77d4c4fc30d0&#x2F;src&#x2F;os&#x2F;exec&#x2F;exec.go#L650&quot;&gt;os.Process.Kill&lt;&#x2F;a&gt; which translates into a using the kill(2) system call to send a SIGKILL signal to unconditionally terminate it: &lt;code&gt;kill(pid, SIGKILL)&lt;&#x2F;code&gt;. Using a negative pid with &lt;code&gt;kill(-pid, SIGKILL)&lt;&#x2F;code&gt; will also terminate all processes created by Gitea&#x27;s child, without Gitea knowing when or why they were created. From the kill(2) manual page:&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;If pid is less than -1, then sig is sent to every process in the process group whose ID is -pid.&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;Which is implemented as follows in the &lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec.go#L130&quot;&gt;Friendly Forge Format library&lt;&#x2F;a&gt;:&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;syscall.Kill(-cmd.Process.Pid, syscall.SIGKILL)&lt;&#x2F;code&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;h3 id=&quot;not-using-the-default-go-commandcontext&quot;&gt;Not using the default Go CommandContext&lt;a class=&quot;zola-anchor&quot; href=&quot;#not-using-the-default-go-commandcontext&quot; aria-label=&quot;Anchor link for: not-using-the-default-go-commandcontext&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Since &lt;a href=&quot;https:&#x2F;&#x2F;pkg.go.dev&#x2F;os&#x2F;exec#CommandContext&quot;&gt;CommandContext&lt;&#x2F;a&gt; does not allow to send a signal to the negative pid of the child process, it has to be implemented by Gitea itself, in a way that is similar to how the &lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec.go#L75-82&quot;&gt;Friendly Forge Format library&lt;&#x2F;a&gt; does it:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt; ctxErr := watchCtx(ctx, cmd.Process.Pid)
&lt;&#x2F;span&gt;&lt;span&gt; err = cmd.Wait()
&lt;&#x2F;span&gt;&lt;span&gt; interruptErr := &amp;lt;-ctxErr
&lt;&#x2F;span&gt;&lt;span&gt; &#x2F;&#x2F; If cmd.Wait returned an error, prefer that.
&lt;&#x2F;span&gt;&lt;span&gt; &#x2F;&#x2F; Otherwise, report any error from the interrupt goroutine.
&lt;&#x2F;span&gt;&lt;span&gt; if interruptErr != nil &amp;amp;&amp;amp; err == nil {
&lt;&#x2F;span&gt;&lt;span&gt; err = interruptErr
&lt;&#x2F;span&gt;&lt;span&gt; }
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h3 id=&quot;testing-the-bug-is-fixed-and-stays-fixed&quot;&gt;Testing the bug is fixed and stays fixed&lt;a class=&quot;zola-anchor&quot; href=&quot;#testing-the-bug-is-fixed-and-stays-fixed&quot; aria-label=&quot;Anchor link for: testing-the-bug-is-fixed-and-stays-fixed&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Long standing bugs that are difficult to reproduce manually such as this one require robust testing to ensure that:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;the diagnostic identifying the root cause is correct&lt;&#x2F;li&gt;
&lt;li&gt;the bug fix works&lt;&#x2F;li&gt;
&lt;li&gt;it does not resurface insidiously because of a subtle regression introduce years later&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;It is easy to implement as can be seen in the &lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec_test.go#L44-76&quot;&gt;Friendly Forge Format library&lt;&#x2F;a&gt;. In a nutshell:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec_test.go#L53&quot;&gt;git clone https:&#x2F;&#x2F;4.4.4.4&lt;&#x2F;a&gt; which will hang because of firewall rules&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec_test.go#L60-65&quot;&gt;wait for the git-remote-https&lt;&#x2F;a&gt; grandchild process to be spawned&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec_test.go#L67-68&quot;&gt;cancel the context and wait for the goroutine to terminate&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec_test.go#L70-75&quot;&gt;verify the git-remote-https is killed&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;And with that... no more zombies!&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[diagnostic] Zombies created by Gitea</title>
<published>2022-06-02T00:00:00+00:00</published>
<updated>2022-06-02T00:00:00+00:00</updated>
<link href="https://gna.org/blog/zombies/" type="text/html"/>
<id>https://gna.org/blog/zombies/</id>
<content type="html">&lt;p&gt;The first &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;3242&quot;&gt;issue about zombie processes&lt;&#x2F;a&gt; created by Gitea was reported in 2017 and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;13987&quot;&gt;resurfaced&lt;&#x2F;a&gt; on a &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19077&quot;&gt;regular basis&lt;&#x2F;a&gt;. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Gitea updates a mirror by spawning the process &lt;code&gt;git remote update&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git remote update&lt;&#x2F;code&gt; spawns yet another process, &lt;code&gt;git fetch&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git fetch&lt;&#x2F;code&gt; is stuck, for instance because of network problems, and Gitea eventually times out&lt;&#x2F;li&gt;
&lt;li&gt;Gitea kill the process &lt;code&gt;git remote update&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;li&gt;When killed &lt;code&gt;git remote update&lt;&#x2F;code&gt; does not kill its own child and &lt;code&gt;git fetch&lt;&#x2F;code&gt; becomes an orphaned process which keeps running&lt;&#x2F;li&gt;
&lt;li&gt;When &lt;code&gt;git fetch&lt;&#x2F;code&gt; eventually completes it becomes a zombie because its original parent is no longer around to wait on it&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;pid-1-process-and-waiting-on-orphans&quot;&gt;PID 1 process and waiting on orphans&lt;a class=&quot;zola-anchor&quot; href=&quot;#pid-1-process-and-waiting-on-orphans&quot; aria-label=&quot;Anchor link for: pid-1-process-and-waiting-on-orphans&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;This scenario is not unique to Gitea and it is such a common pattern that safeguards have been implemented to mitigate the proliferation of zombies. Orphaned process are automatically attached to the process with PID 1, which is expected to wait on every process, whether it created them or not. When Gitea is installed from binary on GNU&#x2F;Linux this is &lt;code&gt;&#x2F;bin&#x2F;init&lt;&#x2F;code&gt; and when Gitea runs from the &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;6171ea7d318c0ca8714bc6efd6a97ea4b495eb6d&#x2F;Dockerfile&quot;&gt;default docker image&lt;&#x2F;a&gt; this is &lt;code&gt;s6&lt;&#x2F;code&gt;: they will both wait on orphaned processes and there won&#x27;t be any zombies.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-if-gitea-is-the-only-running-process&quot;&gt;What if Gitea is the only running process?&lt;a class=&quot;zola-anchor&quot; href=&quot;#what-if-gitea-is-the-only-running-process&quot; aria-label=&quot;Anchor link for: what-if-gitea-is-the-only-running-process&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;But when Gitea runs from the &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;6171ea7d318c0ca8714bc6efd6a97ea4b495eb6d&#x2F;Dockerfile.rootless&quot;&gt;rootless docker image&lt;&#x2F;a&gt;, Gitea is the only process running in the container. Orphaned processes will have Gitea as a parent but will not wait on them and they will stay in a zombie state forever. To reproduce this problem in a minimal way:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ docker run --name gitea -p 8080:3000 -e GITEA__security__INSTALL_LOCK=true -d gitea&#x2F;gitea:1.16.8-rootless
&lt;&#x2F;span&gt;&lt;span&gt;$ docker exec --user 1000 gitea gitea admin user create --admin --username root --password admin1234 --email root@example.com
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;The &lt;code&gt;git&lt;&#x2F;code&gt; command can then be replaced with a script that waits forever:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ ( echo -e &amp;#39;#!&#x2F;bin&#x2F;bash\nsleep infinity&amp;#39; ) | docker exec -i --user root gitea tee &#x2F;usr&#x2F;bin&#x2F;git
&lt;&#x2F;span&gt;&lt;span&gt;$ docker exec --user root gitea chmod +x &#x2F;usr&#x2F;bin&#x2F;git
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Trying to create a repository from the web interface will create the conditions for a zombie to show:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ docker exec gitea ps -o ppid,pid,comm,args
&lt;&#x2F;span&gt;&lt;span&gt;PPID PID COMMAND COMMAND
&lt;&#x2F;span&gt;&lt;span&gt; 0 1 gitea &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gitea -c &#x2F;etc&#x2F;gitea&#x2F;app.ini web
&lt;&#x2F;span&gt;&lt;span&gt; 1 94 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 99 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 111 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 164 git {git} &#x2F;bin&#x2F;bash &#x2F;usr&#x2F;bin&#x2F;git -c credential.helper= -c protocol.version=2 -c uploadpack.allowfilter=true -c uploadpack.allowAnySHA1InWant=true init --bare
&lt;&#x2F;span&gt;&lt;span&gt; 164 165 sleep sleep infinity
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;When the &lt;code&gt;git&lt;&#x2F;code&gt; process is killed by Gitea, the &lt;code&gt;sleep&lt;&#x2F;code&gt; child will be orphaned:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ docker exec gitea ps -o ppid,pid,comm,args
&lt;&#x2F;span&gt;&lt;span&gt;PPID PID COMMAND COMMAND
&lt;&#x2F;span&gt;&lt;span&gt; 0 1 gitea &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gitea -c &#x2F;etc&#x2F;gitea&#x2F;app.ini web
&lt;&#x2F;span&gt;&lt;span&gt; 1 94 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 99 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 111 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 165 sleep sleep infinity
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Killing it will turn it into a zombie:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ docker exec gitea kill 165
&lt;&#x2F;span&gt;&lt;span&gt;$ docker exec gitea ps -o ppid,pid,comm,args
&lt;&#x2F;span&gt;&lt;span&gt;PPID PID COMMAND COMMAND
&lt;&#x2F;span&gt;&lt;span&gt; 0 1 gitea &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gitea -c &#x2F;etc&#x2F;gitea&#x2F;app.ini web
&lt;&#x2F;span&gt;&lt;span&gt; 1 94 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 99 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 111 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 165 sleep [sleep]
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h3 id=&quot;killing-a-child-process-and-all-its-children&quot;&gt;Killing a child process and all its children&lt;a class=&quot;zola-anchor&quot; href=&quot;#killing-a-child-process-and-all-its-children&quot; aria-label=&quot;Anchor link for: killing-a-child-process-and-all-its-children&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Process_group&quot;&gt;process group leaders&lt;&#x2F;a&gt;. In a nutshell it means that when the child is killed all its children and grand children are also killed.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[solved] Gitea 1.15 and up: path not found or permission denied</title>
<published>2022-05-28T00:00:00+00:00</published>
<updated>2022-05-28T00:00:00+00:00</updated>
<link href="https://gna.org/blog/path-not-found/" type="text/html"/>
<id>https://gna.org/blog/path-not-found/</id>
<content type="html">&lt;p&gt;In Gitea 1.15 the &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;cfb4c23a5009b9c236d48ac0bc156577c7d70741&#x2F;custom&#x2F;conf&#x2F;app.example.ini&quot;&gt;app.example.ini&lt;&#x2F;a&gt; file was changed to &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;commit&#x2F;4a84022d2559ccfc99960c7c654ee8b9b38664f7&quot;&gt;comment out most of the values&lt;&#x2F;a&gt;. The assumption was that all values exactly matched the defaults &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;main&#x2F;modules&#x2F;setting&#x2F;setting.go&quot;&gt;in the source code&lt;&#x2F;a&gt;. However, there are differences, for instance for &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;cfb4c23a5009b9c236d48ac0bc156577c7d70741&#x2F;modules&#x2F;setting&#x2F;setting.go#L771&quot;&gt;APP_DATA_PATH&lt;&#x2F;a&gt;. Before Gitea 1.15, &lt;code&gt;app.example.ini&lt;&#x2F;code&gt; contained:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;APP_DATA_PATH = data
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;and the path was relative to the &lt;strong&gt;directory from which the Gitea server was running&lt;&#x2F;strong&gt;. In Gitea 1.15 up to 1.16, it was commented out:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;; APP_DATA_PATH = data
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;and the path was relative to the &lt;strong&gt;work path directory&lt;&#x2F;strong&gt;, as provided either via the --work-path argument or the &lt;code&gt;GITEA_WORK_DIR&lt;&#x2F;code&gt; environment variable. &lt;&#x2F;p&gt;
&lt;p&gt;When a distribution such as voidlinux &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;void-linux&#x2F;void-packages&#x2F;blob&#x2F;master&#x2F;srcpkgs&#x2F;gitea&#x2F;patches&#x2F;config.patch&quot;&gt;uses app.example.ini&lt;&#x2F;a&gt; as a base for the Gitea package, this change indirectly creates a regression and an upgrade of Gitea &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19367&quot;&gt;fails with errors&lt;&#x2F;a&gt; such as &lt;code&gt;unable to open level db at data&#x2F;data&#x2F;queues&#x2F;common: mkdir data: permission denied&lt;&#x2F;code&gt;. The regression did not show as soon as Gitea 1.15 became available in voidlinux because the package &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;void-linux&#x2F;void-packages&#x2F;blob&#x2F;7fc9190f0e0d557dd5031e68df4e183892d4315b&#x2F;srcpkgs&#x2F;gitea&#x2F;patches&#x2F;config.patch#L62&quot;&gt;explicitly set &lt;code&gt;APP_DATA_PATH&lt;&#x2F;code&gt;&lt;&#x2F;a&gt;. But this &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;void-linux&#x2F;void-packages&#x2F;commit&#x2F;19d986a2cae9ce73d32552ddb62443b5e7fa13e2&quot;&gt;changed when Gitea 1.15.6 was packaged&lt;&#x2F;a&gt; and once the value was commented out, upgrading triggered the problem. This was worked around six month later with the &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;void-linux&#x2F;void-packages&#x2F;commit&#x2F;44b6c96fa12ce9d993c7a2ac9486d892735b7e3a&quot;&gt;Gitea 1.16.8&lt;&#x2F;a&gt; package.&lt;&#x2F;p&gt;
&lt;p&gt;The &lt;code&gt;APP_DATA_PATH&lt;&#x2F;code&gt; directory is not the only one, the &lt;code&gt;[log] ROOT_PATH&lt;&#x2F;code&gt; is another example. There is an &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19815&quot;&gt;ongoing effort&lt;&#x2F;a&gt; to improve the situation in Gitea 1.17. With the downside of introducing breaking changes that will have an impact on all Gitea installations because the content of the &lt;code&gt;app.ini&lt;&#x2F;code&gt; file will be interpreted differently. In the case of &lt;code&gt;APP_DATA_PATH&lt;&#x2F;code&gt;, both:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;APP_DATA_PATH = data
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;and:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;; APP_DATA_PATH = data
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;will be interpreted to be relative to the &lt;strong&gt;work path directory&lt;&#x2F;strong&gt;, as provided either via the --work-path argument or the &lt;code&gt;GITEA_WORK_DIR&lt;&#x2F;code&gt; environment variable. Every Gitea installation using &lt;strong&gt;APP_DATA_PATH = data&lt;&#x2F;strong&gt; will need to update the value to be an absolute path such as &lt;strong&gt;&#x2F;var&#x2F;lib&#x2F;gitea&#x2F;data&lt;&#x2F;strong&gt; so that it keeps pointing to the expected directory.&lt;&#x2F;p&gt;
&lt;p&gt;In order to prepare for the change or ensure the consistency of all path, there fortunately is a very simple &lt;strong&gt;solution: always use absolute paths in the &lt;code&gt;app.ini&lt;&#x2F;code&gt; configuration file&lt;&#x2F;strong&gt;.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[solved] Gitea 1.16.[678] error: fatal: unsafe repository is owned by someone else</title>
<published>2022-05-15T00:00:00+00:00</published>
<updated>2022-05-15T00:00:00+00:00</updated>
<link href="https://gna.org/blog/unsafe-repository-is-owned-by-someone-else/" type="text/html"/>
<id>https://gna.org/blog/unsafe-repository-is-owned-by-someone-else/</id>
<content type="html">&lt;p&gt;April 12, 2022 version &lt;a href=&quot;https:&#x2F;&#x2F;lore.kernel.org&#x2F;git&#x2F;xmqqv8veb5i6.fsf@gitster.g&#x2F;&quot;&gt;git v2.35.2&lt;&#x2F;a&gt; was released and addresses a security issue &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;git-for-windows&#x2F;git&#x2F;security&#x2F;advisories&#x2F;GHSA-vw2c-22j4-2fh2&quot;&gt;CVE-2022-24765&lt;&#x2F;a&gt;. It was backported to 2.30.3, v2.31.2, v2.32.1, v2.33.2, and v2.34.2 and published by distributions such as &lt;a href=&quot;https:&#x2F;&#x2F;security-tracker.debian.org&#x2F;tracker&#x2F;CVE-2022-24765&quot;&gt;Debian GNU&#x2F;Linux&lt;&#x2F;a&gt;, &lt;a href=&quot;https:&#x2F;&#x2F;www.alpinelinux.org&#x2F;releases&#x2F;&quot;&gt;Alpine&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;If Gitea runs as user &lt;code&gt;foo&lt;&#x2F;code&gt;, calls a patched Git version and a parent directory of the git repositories is owned by a user other than &lt;code&gt;foo&lt;&#x2F;code&gt;, it will fail&lt;&#x2F;strong&gt; with a message such as:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;Failed to open repository: Git&#x2F;Data Error: exit status 128 - fatal: unsafe repository (&amp;#39;&#x2F;data&#x2F;git&#x2F;repositories&#x2F;git&#x2F;data.git&amp;#39; is owned by someone else)
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This started to show in the past few weeks to &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19455&quot;&gt;users running the Gitea binary on Windows&lt;&#x2F;a&gt; who also independently installed git v2.36. And then to people running &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19455#issuecomment-1106331149&quot;&gt;Gitea from snap&lt;&#x2F;a&gt;, on &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19455#issuecomment-1106312061&quot;&gt;a Synology NAS&lt;&#x2F;a&gt; and then people running from &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;main&#x2F;Dockerfile#L2&quot;&gt;Gitea docker images&lt;&#x2F;a&gt; which is based on &lt;a href=&quot;https:&#x2F;&#x2F;www.alpinelinux.org&#x2F;releases&#x2F;&quot;&gt;Alpine&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;workarounds&quot;&gt;Workarounds&lt;a class=&quot;zola-anchor&quot; href=&quot;#workarounds&quot; aria-label=&quot;Anchor link for: workarounds&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;If using &lt;a href=&quot;https:&#x2F;&#x2F;hub.docker.com&#x2F;r&#x2F;gitea&#x2F;gitea&quot;&gt;Gitea docker images&lt;&#x2F;a&gt;:
&lt;ul&gt;
&lt;li&gt;upgrade to &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19876&quot;&gt;Gitea &amp;gt;=1.16.9&lt;&#x2F;a&gt; or 1.17, both have git &amp;gt;=2.36&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git config --global --replace-all safe.directory &#x27;*&#x27;&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;If the Gitea binary was installed independently of git, upgrade git to a version that is &lt;a href=&quot;https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;git-config#Documentation&#x2F;git-config.txt-safedirectory&quot;&gt;greater or equal to 2.36&lt;&#x2F;a&gt; and disable the security check entirely with:
&lt;ul&gt;
&lt;li&gt;impersonate the &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-from-binary&#x2F;#recommended-server-configuration&quot;&gt;user dedicated to Gitea&lt;&#x2F;a&gt; (usually git)&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git config --global --replace-all safe.directory &#x27;*&#x27;&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;bug-fix&quot;&gt;Bug fix&lt;a class=&quot;zola-anchor&quot; href=&quot;#bug-fix&quot; aria-label=&quot;Anchor link for: bug-fix&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;The &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19870&quot;&gt;bug fix&lt;&#x2F;a&gt; is for Gitea to ensure &lt;code&gt;git config --global --replace-all safe.directory &#x27;*&#x27;&lt;&#x2F;code&gt; is set on its &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-from-binary&#x2F;#recommended-server-configuration&quot;&gt;dedicated user&lt;&#x2F;a&gt; when it initializes. It is effective on the condition that the git CLI version is &lt;a href=&quot;https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;git-config#Documentation&#x2F;git-config.txt-safedirectory&quot;&gt;greater or equal to 2.36&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;bug-fix-rationale&quot;&gt;Bug fix rationale&lt;a class=&quot;zola-anchor&quot; href=&quot;#bug-fix-rationale&quot; aria-label=&quot;Anchor link for: bug-fix-rationale&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;It is safe to &lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;forgefriends&#x2F;forgefriends&#x2F;-&#x2F;merge_requests&#x2F;50&#x2F;diffs&quot;&gt;disable the security check in Gitea&lt;&#x2F;a&gt;. It is not vulnerable to &lt;strong&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;git-for-windows&#x2F;git&#x2F;security&#x2F;advisories&#x2F;GHSA-vw2c-22j4-2fh2&quot;&gt;CVE-2022-24765&lt;&#x2F;a&gt;&lt;&#x2F;strong&gt; because it calls the git CLI &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;main&#x2F;modules&#x2F;git&#x2F;command.go#L160&quot;&gt;after changing its working directory&lt;&#x2F;a&gt; to be the git repository targeted by the command (for instance &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;main&#x2F;modules&#x2F;git&#x2F;diff.go#L38-L45&quot;&gt;diff&lt;&#x2F;a&gt;) or a temporary directory. Therefore &lt;strong&gt;it will not explore the parent directories looking for a git configuration file&lt;&#x2F;strong&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;The security check is triggered because the repository is owned by an unexpected user (root instead of git typically) and &lt;strong&gt;not because a parent directory is owned by an unexpected user&lt;&#x2F;strong&gt;. This, in itself, is a problem worth investigating but it is unrelated and was revealed by the newer security check of git even though it does not match the threat described in &lt;strong&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;git-for-windows&#x2F;git&#x2F;security&#x2F;advisories&#x2F;GHSA-vw2c-22j4-2fh2&quot;&gt;CVE-2022-24765&lt;&#x2F;a&gt;&lt;&#x2F;strong&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;It appears non trivial to enforce a consistent ownership of files and directories, either within docker or outside docker when networked file systems are involved. The Gitea server was not troubled by this inconsistency so far because the permissions allow it to write and read where expected, regardless of the owner. It is not worth looking into but it is ancient and unrelated.&lt;&#x2F;p&gt;
&lt;p&gt;Gitea runs under a dedicated user, either when installed &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-from-binary&#x2F;#recommended-server-configuration&quot;&gt;from binary&lt;&#x2F;a&gt; or from &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-with-docker&#x2F;&quot;&gt;docker&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;main&#x2F;modules&#x2F;git&#x2F;git.go#L196-L207&quot;&gt;modifies the global git configuration&lt;&#x2F;a&gt; depending on the git version at initialization time. Fixing the problem can therefore be done by &lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;forgefriends&#x2F;forgefriends&#x2F;-&#x2F;merge_requests&#x2F;50&#x2F;diffs#bcd72ff867cbd1ddd5b6518c3a05b5f1a6021286_209_209&quot;&gt;disabling the security check in the global git config file at initialization time&lt;&#x2F;a&gt;. It also requires a minimum version of git 2.36 to be installed, which is the case for Gitea docker images with &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19876&quot;&gt;versions &amp;gt;= 1.16.9&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[solved] blank or error 500 page after login</title>
<published>2022-05-08T00:00:00+00:00</published>
<updated>2022-05-08T00:00:00+00:00</updated>
<link href="https://gna.org/blog/blank-or-error-500-page-after-login/" type="text/html"/>
<id>https://gna.org/blog/blank-or-error-500-page-after-login/</id>
<content type="html">&lt;p&gt;The &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;upgrade-from-gitea&#x2F;#upgrade-from-binary&quot;&gt;instructions to upgrade a Gitea instance&lt;&#x2F;a&gt; only require three to four steps. They work fine most of the time but the documentation is lacking a &amp;quot;Troubleshooting&amp;quot; section to help out when something goes wrong. Maintaining instructions on how to diagnose and fix upgrade problems is an ambitious undertaking and requires updates every time a new case is discovered.&lt;&#x2F;p&gt;
&lt;p&gt;An &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;t&#x2F;things-to-know-about-gitea-upgrades&#x2F;39&quot;&gt;inventory of the known upgrade issues&lt;&#x2F;a&gt; was started to figure out how to structure such a section in the documentation. The &lt;a href=&quot;https:&#x2F;&#x2F;blog.gitea.io&#x2F;&quot;&gt;release notes&lt;&#x2F;a&gt; were analyzed all the way back to &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;releases&#x2F;tag&#x2F;v1.9.6&quot;&gt;Gitea 1.9.6&lt;&#x2F;a&gt; and the work is still in progress. Here is a sample of the tips that will be included:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Upgrade directly to the latest Gitea version, there is no need to upgrade to intermediate versions.&lt;&#x2F;li&gt;
&lt;li&gt;If the upgrade from version x.y to version x.y+2 fails and there is a need to narrow down the problem, try upgrading to the latest minor version of each major version and verify it works.&lt;&#x2F;li&gt;
&lt;li&gt;etc.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;However, even with the best documentation, someone will eventually &lt;strong&gt;run into an new problem&lt;&#x2F;strong&gt; and fixing it without compromising the integrity of the data will be challenging. This is best demonstrated by a real world example that was concluded a few days ago.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;getting-help-from-the-community&quot;&gt;Getting help from the community&lt;a class=&quot;zola-anchor&quot; href=&quot;#getting-help-from-the-community&quot; aria-label=&quot;Anchor link for: getting-help-from-the-community&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;After &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&quot;&gt;upgrading a Gitea intsance from 1.9.6 to 1.16.5&lt;&#x2F;a&gt; the tests conducted manually did not uncover any problem. However, after going to production, some users saw a blank page after login and had to manually type the URL of the project they wanted to see in the browser. The person in charge of the upgrade never had to diagnose Gitea problem and &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&quot;&gt;reached out in the Gitea forum&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip: explain the problem in a public forum as early as possible to get help from the community&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;In their post in the forum they explained how they attempted to diagnose the problem and how why they thought that only users created a few years ago were impacted. It was a detailed analysis that was concluded with a partial copy of the logs. It was unfortunately missing &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;12&quot;&gt;key information&lt;&#x2F;a&gt; that was provided only three days later. In the meantime, as they could not figure out the source of the problem, they were on the &lt;strong&gt;verge of &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;11&quot;&gt;accepting the loss of all the Gitea database&lt;&#x2F;a&gt; and start over from the repositories&lt;&#x2F;strong&gt;. However, once all the details were available, &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;13&quot;&gt;a workaround&lt;&#x2F;a&gt; was suggested in the forum.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip: focus more on providing detailed facts than exposing the attempted diagnostic&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;There was hope to fix Gitea and in the following days they applied the workaround. They also tried to improve it but without success and eventually accepted a &lt;strong&gt;partial data loss&lt;&#x2F;strong&gt; as inevitable and &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;14&quot;&gt;reported their success back to the forum&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip: when getting support from the community, providing feedback is the best token of appreciation&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;h1 id=&quot;getting-professional-help&quot;&gt;Getting professional help&lt;a class=&quot;zola-anchor&quot; href=&quot;#getting-professional-help&quot; aria-label=&quot;Anchor link for: getting-professional-help&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;The &lt;a href=&quot;https:&#x2F;&#x2F;gna.org&#x2F;gitea-clinic&#x2F;&quot;&gt;Gna! Clinic&lt;&#x2F;a&gt; is a collective of individual and companies that provides professional services to Gitea admins. They are active members of the Gitea community who &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;u&#x2F;dachary&#x2F;activity&quot;&gt;help out&lt;&#x2F;a&gt; as volunteers. They can also be hired to resolve the more complicated cases.&lt;&#x2F;p&gt;
&lt;p&gt;The Gitea instance that was in trouble required more than a few minutes of work and access to the database content for a proper diagnostic. They &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;13&quot;&gt;proposed their assistance&lt;&#x2F;a&gt; but although &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;user-research-about-gitea-upgrade-experiences-call-for-volunteers&#x2F;5063&#x2F;2&quot;&gt;well received&lt;&#x2F;a&gt;, it was not accepted.&lt;&#x2F;p&gt;
&lt;p&gt;When the Gitea admin explained how they chose to resolve the problem &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;14&quot;&gt;on the forum&lt;&#x2F;a&gt;, it confirmed the workaround was viable and the root problem was identified. That was enough to figure out a fix for the underlying bug with &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;17&quot;&gt;a rather simple patch&lt;&#x2F;a&gt; that was merged &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19629&quot;&gt;and backported&lt;&#x2F;a&gt; in the following days. But it happened too late to avoid the data loss.&lt;&#x2F;p&gt;
&lt;p&gt;To summarize with a timeline, here is what happened:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;J+1: The &lt;strong&gt;problem is discovered&lt;&#x2F;strong&gt; by users who see a blank page after login and a the Gitea admin tries to diagnose the problem&lt;&#x2F;li&gt;
&lt;li&gt;J+2: A message is sent &lt;strong&gt;to ask for help in the community&lt;&#x2F;strong&gt;&lt;&#x2F;li&gt;
&lt;li&gt;J+2 to J+6: Three people in the community suggest ideas but &lt;strong&gt;the Gitea admin cannot figure out the root cause and is on the verge of accepting the loss of all Gitea data&lt;&#x2F;strong&gt; and restart from the git repositories&lt;&#x2F;li&gt;
&lt;li&gt;J+6: A &lt;strong&gt;workaround is suggested by the community&lt;&#x2F;strong&gt;&lt;&#x2F;li&gt;
&lt;li&gt;J+7 to J+17: The Gitea admin applies the &lt;strong&gt;workaround and only looses part of the Gitea data&lt;&#x2F;strong&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;And in retrospect, here is what could have happened instead:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;J+1: The &lt;strong&gt;problem is discovered&lt;&#x2F;strong&gt; by users who see a blank page after login&lt;&#x2F;li&gt;
&lt;li&gt;J+1: The Gitea admin &lt;strong&gt;&lt;a href=&quot;https:&#x2F;&#x2F;gna.org&#x2F;gitea-clinic&#x2F;&quot;&gt;reaches out to someone at the Gna! Clinic&lt;&#x2F;a&gt;&lt;&#x2F;strong&gt;&lt;&#x2F;li&gt;
&lt;li&gt;J+2: The &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;12&quot;&gt;logs of the Gitea instance&lt;&#x2F;a&gt; are analyzed, &lt;strong&gt;the root cause diagnosed&lt;&#x2F;strong&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;17&quot;&gt;a patch&lt;&#x2F;a&gt; is created to fix it.&lt;&#x2F;li&gt;
&lt;li&gt;J+3: If necessary a Gitea binary is created with the patch and used as a temporary replacement until the next point release is published with &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19629&quot;&gt;the backport&lt;&#x2F;a&gt;. The Gitea admin runs the patched Gitea binary in the meantime. &lt;strong&gt;There is no data loss&lt;&#x2F;strong&gt;.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;It does not mean all upgrade problems can be resolved so easily. But it shows, with an example, that in some cases it makes sense to get professional help.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>Introducing Gna!</title>
<published>2022-04-22T00:00:00+00:00</published>
<updated>2022-04-22T00:00:00+00:00</updated>
<link href="https://gna.org/blog/22-04-2022-hostea-introducing-hostea-forgefriends-monthly-meet/" type="text/html"/>
<id>https://gna.org/blog/22-04-2022-hostea-introducing-hostea-forgefriends-monthly-meet/</id>
<content type="html">&lt;p&gt;Introducing &lt;a href=&quot;https:&#x2F;&#x2F;gna.org&quot;&gt;Hostea&lt;&#x2F;a&gt;, a project &lt;a href=&quot;https:&#x2F;&#x2F;dachary.org&quot;&gt;Loïc
Dachary&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;batsense.net&quot;&gt;Aravinth
Manivannan&lt;&#x2F;a&gt; are working on to create a full Free
software development suite based on
&lt;a href=&quot;https:&#x2F;&#x2F;gitea.io&quot;&gt;Gitea&lt;&#x2F;a&gt; for the forge, &lt;a href=&quot;https:&#x2F;&#x2F;woodpecker-ci.org&quot;&gt;Woodpecker
CI&lt;&#x2F;a&gt; for CI&#x2F;CD,
&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;realaravinth&#x2F;pages&quot;&gt;Pages&lt;&#x2F;a&gt; for static sites and
&lt;a href=&quot;https:&#x2F;&#x2F;gitpad.org&quot;&gt;GitPad&lt;&#x2F;a&gt; for gists.&lt;&#x2F;p&gt;
&lt;p&gt;This talk introduces the projects goals and philosophy behind the
project.&lt;&#x2F;p&gt;
&lt;p&gt;Please see
&lt;a href=&quot;https:&#x2F;&#x2F;forum.forgefriends.org&#x2F;t&#x2F;forgefriends-monthly-update-april-22st-2022-5pm-6pm-utc-2&#x2F;673&quot;&gt;here&lt;&#x2F;a&gt;
to learn more about the event.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;details&quot;&gt;Details&lt;a class=&quot;zola-anchor&quot; href=&quot;#details&quot; aria-label=&quot;Anchor link for: details&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;organised by:&lt;&#x2F;strong&gt; &lt;a href=&quot;https:&#x2F;&#x2F;forgefriends.org&quot;&gt;forgefriends.org&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;strong&gt;date:&lt;&#x2F;strong&gt; 2022&lt;sup&gt;th&lt;&#x2F;sup&gt; April, 2022&lt;&#x2F;li&gt;
&lt;li&gt;&lt;strong&gt;venue:&lt;&#x2F;strong&gt; Online&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;resources&quot;&gt;Resources&lt;a class=&quot;zola-anchor&quot; href=&quot;#resources&quot; aria-label=&quot;Anchor link for: resources&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;.&#x2F;slides&#x2F;2022-04-22-forgefriends-introducing-hostea.odp&quot;&gt;slides(ODP)&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;.&#x2F;slides&#x2F;2022-04-22-forgefriends-introducing-hostea.pdf&quot;&gt;slides(PDF)&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
</content>
</entry>
<entry xml:lang="en">
<title>Project plans for a hosted Gitea online service</title>
<published>2022-04-18T00:00:00+00:00</published>
<updated>2022-04-18T00:00:00+00:00</updated>
<link href="https://gna.org/blog/project-plans-for-hosted-gitea-online-service/" type="text/html"/>
<id>https://gna.org/blog/project-plans-for-hosted-gitea-online-service/</id>
<content type="html">&lt;p&gt;&lt;em&gt;This post was originally published on &lt;a href=&quot;https:&#x2F;&#x2F;blog.dachary.org&#x2F;2022&#x2F;02&#x2F;16&#x2F;project-plans-for-a-hosted-gitea-online-service&#x2F;&quot;&gt;Loïc Dachary&#x27;s
blog&lt;&#x2F;a&gt;.&lt;&#x2F;em&gt;&lt;&#x2F;p&gt;
&lt;hr &#x2F;&gt;
&lt;p&gt;When an organization asks me about Gitea, I would like to direct them to
a provider where they can rent an instance and just use it, in the same
way they can go to https:&#x2F;&#x2F;discourse.org for a forum, or
https:&#x2F;&#x2F;nextcloud.com for storage. Instead of waiting for that to
happen, &lt;a href=&quot;https:&#x2F;&#x2F;batsense.net&#x2F;about&#x2F;&quot;&gt;Aravinth&lt;&#x2F;a&gt; and
&lt;a href=&quot;https:&#x2F;&#x2F;dachary.org&#x2F;&quot;&gt;myself&lt;&#x2F;a&gt; decided to do something about it, in a
way that is in line with our shared values: transparency and Free
Software.&lt;&#x2F;p&gt;
&lt;p&gt;After doing some research we found counter examples that showed the
pitfalls to avoid. GitLab because its business model heavily relies on
selling proprietary licenses. CiviCRM because setting it up is complex
and requires training: users can&#x27;t figure it out on their own. Gitea
images provided by Digital Ocean because they do not include security
upgrades. MySQL configured and run by AWS because of the vendor lock-in
that makes it impossible to self-host.&lt;&#x2F;p&gt;
&lt;p&gt;We concluded that an online service such as Gitea can be hosted in a
sustainable way as long as:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;It is well maintained and upgrades itself&lt;&#x2F;li&gt;
&lt;li&gt;It can be self-hosted&lt;&#x2F;li&gt;
&lt;li&gt;The service can automatically be restored from backups when the
underlying resources fail&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;GitHub and GitLab make it look like there is a market around software
forges. It is however impossible to figure out if this market exists
only because it is based on proprietary software. How many of these
customers would pay for a Free Software hosted Gitea instance?&lt;&#x2F;p&gt;
&lt;p&gt;Even if these customers do exist, a new service provider would have to
figure out how to convince them to subscribe. The technical development
of the service can be done within weeks but building a sustainable
business takes much longer. Again, there were examples of what can go
wrong, for instance ElasticSearch. After years of work developing a
successful online service and a customer base, AWS entered the
competition and started to take it away from them.&lt;&#x2F;p&gt;
&lt;p&gt;The sustainability of the Free Software ecosystem is a new and very
difficult problem to solve. It is discussed more than it ever was in the
wake of security breaches originating from widely used and yet abandoned
library or disillusioned Free Software authors self-sabotaging their
next release, and everyone has diverging opinions. It falls on each Free
Software author to spend time to think about their own projects because
there are no handbook or good examples to follow. That is what Aravinth
and myself did to find a semblance of clarity and decide how to go about
this hosted Gitea service idea.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;sustaining-free-software-online-services&quot;&gt;Sustaining Free Software online services&lt;a class=&quot;zola-anchor&quot; href=&quot;#sustaining-free-software-online-services&quot; aria-label=&quot;Anchor link for: sustaining-free-software-online-services&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;h2 id=&quot;more-mature-online-services-mean-less-opportunities-to-sell-services&quot;&gt;More mature online services mean less opportunities to sell services&lt;a class=&quot;zola-anchor&quot; href=&quot;#more-mature-online-services-mean-less-opportunities-to-sell-services&quot; aria-label=&quot;Anchor link for: more-mature-online-services-mean-less-opportunities-to-sell-services&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h2&gt;
&lt;p&gt;Ideally the software running an online service is rock solid and bugs
are so rare that it can run unattended. This is true of
https:&#x2F;&#x2F;wordpress.org and it is not uncommon for an instance to run for
years while upgrading themselves to get security patches. The cost of
maintaining such a service is negligible and hosting companies can offer
it for free to their customers. They make their profit by renting the
machines on which the service runs.&lt;&#x2F;p&gt;
&lt;p&gt;When the software is not as mature, it is more expensive to run. Bugs
need fixing, upgrades require manual intervention, users must be trained
to overcome the complexity of the user experience, etc. Well known
examples are Discourse or CiviCRM for which companies sell services to
overcome these issues.&lt;&#x2F;p&gt;
&lt;p&gt;But when an organization is both the author of the software and the
provider of paid services to compensate for its lack of maturity, it
creates a conflict of interest. Should they focus their effort on making
the software more mature, they would harm a business model that is based
on this very lack of maturity. For instance, if the author of a software
also sells training courses, they are not motivated to solve user
experience issues. If they did, it would lower the need for training
courses and reduce their income.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;free-software-online-services-in-the-wake-of-the-sustainability&quot;&gt;Free Software online services in the wake of the sustainability&lt;a class=&quot;zola-anchor&quot; href=&quot;#free-software-online-services-in-the-wake-of-the-sustainability&quot; aria-label=&quot;Anchor link for: free-software-online-services-in-the-wake-of-the-sustainability&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h2&gt;
&lt;p&gt;crisis&lt;&#x2F;p&gt;
&lt;p&gt;Nowadays all Free Software authors struggle to get enough resources to
produce a steady stream of releases, even when the project is very
popular. This sustainability problem is getting more and more attention
as the number of Free Software projects in use world wide keeps growing.
Even the simplest online service relies on thousands of Free Software
projects, each of which needs work to keep going. Accidents caused by
poorly maintained Free Software projects become more frequent.&lt;&#x2F;p&gt;
&lt;p&gt;This Free Software sustainability crisis is barely emerging and very
much resembles ecological problems such as climate change. In both cases
it is very difficult to figure out how to properly care for the
resources that are consumed. After decades of advocacy, it is generally
accepted that fossil energy won&#x27;t last forever but there still is a long
way to go. It will also take a long time for the Free Software community
to answer this simple question: how to sustain an ever growing library
of Free Software?&lt;&#x2F;p&gt;
&lt;p&gt;Luckily, it is relatively simpler to solve that problem for an online
service because it has users. They can be reminded that their assistance
is needed to keep the project afloat, for instance by a donation. A
proposition that would be much more difficult to make for the author of
a cryptographic library. Convincing users to pay for an online service
has the best chance of success when the author of the software is also
the service provider. This is the business model of Discourse and
Weblate, but it is relatively fragile because nothing stands in the way
of the competition.&lt;&#x2F;p&gt;
&lt;p&gt;A few years ago ElasticSearch successfully developed an online service
offering. But when AWS entered the competition and was better at
marketing it, ElasticSearch quickly realized they would likely go out of
business. They tried to fight back by &lt;a href=&quot;https:&#x2F;&#x2F;www.elastic.co&#x2F;blog&#x2F;licensing-change&quot;&gt;changing their
license&lt;&#x2F;a&gt;, which was the
wrong answer to a real problem. Discourse or Weblate are also likely to
face competition from hosting companies in the future and they may not
survive it.&lt;&#x2F;p&gt;
&lt;p&gt;In the end, the durable source of income for a Free Software online
service is to rent the resources (CPU&#x2F;RAM&#x2F;network&#x2F;disk) it needs to run.
In other words only hosting companies can make a profit when running
such an online service. And for that reason they also need to share part
of the profits to ensure the sustainability of the Free Software service
their customers need.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;online-services-vendor-lock-in-is-cured-by-free-software&quot;&gt;Online services vendor lock-in is cured by Free Software&lt;a class=&quot;zola-anchor&quot; href=&quot;#online-services-vendor-lock-in-is-cured-by-free-software&quot; aria-label=&quot;Anchor link for: online-services-vendor-lock-in-is-cured-by-free-software&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;When hosting companies offer online services they also provide upgrades
and transparent recovery when the hardware fails. But none of them allow
the service to be self-hosted. When their price policy change, or when
the term of services ban users from a given country, migrating the
service elsewhere it costly and difficult. For instance when AWS runs
MySQL for their customers, they allow to download the data but not the
software that runs the proprietary AWS interface used to configure and
control the server. Another example is GitHub where the content of the
git repository can be downloaded but the code that runs GitHub itself is
not Free Software.&lt;&#x2F;p&gt;
&lt;p&gt;If a customer cannot run the same software as their service provider,
they are locked-in, even if they can download their data. It is a common
misconception to think that there is no vendor lock-in as long as it is
possible to download the data in an standard format. Migrating the data
from one software to another is, more often than not, time consuming and
costly to a point that it is effectively a blocker. A GitHub salesperson
would argue that it is possible for people to run GitHub Enterprise on
their own hardware. But the vendor lock-in is still present via the
proprietary license contract. The user experience, maintenance and
upgrades are still exclusively controlled by GitHub.&lt;&#x2F;p&gt;
&lt;p&gt;To guarantee their independence, the customers of an online service need
to be able to:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Download their data&lt;&#x2F;li&gt;
&lt;li&gt;Run the exact same Free Software as their service provider&lt;&#x2F;li&gt;
&lt;li&gt;Run the exact same Free Software infrastructure as code as their
service provider&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The requirement regarding Free Software infrastructure as code refers
to, for instance, the AWS control panel and all that is behind it when
creating a new MySQL service. It includes whatever a competitor would
need to run the same online service. An example would be
https:&#x2F;&#x2F;enough.community, an infrastructure as code dedicated to
creating the services needed by whistleblowers and human rights
defenders. It consumes resources rented by hosting providers, assembles
disks and machines, setup monitoring and intrusion detection, installs
various online services and upgrades them.&lt;&#x2F;p&gt;
&lt;p&gt;The availability of the software that creates the infrastructure is not
only useful to the competitors of a service provider. It also benefits a
non-profit that wants to provide (for instance) Wordpress instances to
its members. Without it they would need to create something from scratch
using building blocks such as CiviCRM. Even though such building blocks
exist, this is a significant undertaking and effectively a blocker.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;federated-online-services-and-durability&quot;&gt;Federated online services and durability&lt;a class=&quot;zola-anchor&quot; href=&quot;#federated-online-services-and-durability&quot; aria-label=&quot;Anchor link for: federated-online-services-and-durability&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;All self-hosted services are in danger of losing the data they contain.
When a Wordpress service is hosted in a home and the machine dies, it
must be restored from backups... when there are backups. Hosting
companies ensure the durability of the data with their own backup
system. It creates a dilemma for people who are looking into self
hosting: independence is desirable, but is it worth taking the risk of
data loss?&lt;&#x2F;p&gt;
&lt;p&gt;Federated online services do not suffer from this problem, because they
can mirror each other. A Gitea instance that is federated with another
will mirror copies of software projects found on its peers. Should one
instance be destroyed, mirrored projects can be resurrected from the
federated instance. Not only is it a practical way to ensure the (rare)
failure of an entire datacenter, it also helps with the (more frequent)
destruction of self-hosted machines. Contrary to backups that require
special attention, the replication involved in federated online service
is built in and works continuously. There is no need for an extra backup
service that is very rarely used and therefore likely to fail when
needed.&lt;&#x2F;p&gt;
&lt;p&gt;Federated services are not yet mainstream and Gitea is one of the rare
services that started to implement the concept. In the interim,
customers of an online hosting service will need to worry about backups
to ensure the durability of their data. But the ultimate solution for
them won&#x27;t be the emergence of an ideal backup infrastructure, it will
be replication (via federated services) that will continuously ensure
the durability of their data.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;paths-forward&quot;&gt;Paths forward&lt;a class=&quot;zola-anchor&quot; href=&quot;#paths-forward&quot; aria-label=&quot;Anchor link for: paths-forward&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;The Gitea project itself, following the footsteps of Discourse or
Weblate, could provide a hosting service. Part of its current user base
may become customers and there does not seem to be any blocker to make
that happen. As with most successful Free Software project, people
working on Gitea daily are already very busy and cannot engage in such a
long term project. But Aravinth and myself can, if they will have us.&lt;&#x2F;p&gt;
&lt;p&gt;Another path forward would be to wrap Gitea into a bundle that existing
hosting companies could easily use to provide such a service to their
customers. The biggest hosting companies are unlikely to be interested:
if Digital Ocean was to provide upgrades on top of their existing Gitea
image, they are more likely to rely on their internal staff to implement
that from scratch, as proprietary software integrated into their
existing infrastructure. But smaller hosting companies such as
https:&#x2F;&#x2F;Octopuce.fr or https:&#x2F;&#x2F;Easter-Eggs.com, who already deploy Gitea
instances for their customers, would use it if, for instance, it helped
with the upgrades. They would then kindly be reminded to give back a
share of their profits in order to sustain the development of the
service they deploy.&lt;&#x2F;p&gt;
&lt;p&gt;Finally it would also be possible to follow the example of GitLab in the
early days (before it turned to proprietary software) or Codeberg and
offer a free shared forge hosting service to build a user base. After a
few years, a percentage of the user base would convert to being paid
customers or donors to sustain the activity and part of the income would
be used to sustain the development of the service.&lt;&#x2F;p&gt;
</content>
</entry>
</feed>

View File

@ -0,0 +1,357 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>[solved] blank or error 500 page after login | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="After going to production, some Gitea users saw a blank page after login and had to manually type the URL of the project they wanted to see in the browser." />
<meta property="og:title" content="[solved] blank or error 500 page after login | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="After going to production, some Gitea users saw a blank page after login and had to manually type the URL of the project they wanted to see in the browser." />
<meta
property="og:site_name"
content="[solved] blank or error 500 page after login | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">[solved] blank or error 500 page after login</h1>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 8
May
,
2022 &middot; <b>6 min read</b>
</p>
<div class="blog__content">
<p>The <a href="https://docs.gitea.io/en-us/upgrade-from-gitea/#upgrade-from-binary">instructions to upgrade a Gitea instance</a> only require three to four steps. They work fine most of the time but the documentation is lacking a &quot;Troubleshooting&quot; section to help out when something goes wrong. Maintaining instructions on how to diagnose and fix upgrade problems is an ambitious undertaking and requires updates every time a new case is discovered.</p>
<p>An <a href="https://forum.gna.org/t/things-to-know-about-gitea-upgrades/39">inventory of the known upgrade issues</a> was started to figure out how to structure such a section in the documentation. The <a href="https://blog.gitea.io/">release notes</a> were analyzed all the way back to <a href="https://github.com/go-gitea/gitea/releases/tag/v1.9.6">Gitea 1.9.6</a> and the work is still in progress. Here is a sample of the tips that will be included:</p>
<ul>
<li>Upgrade directly to the latest Gitea version, there is no need to upgrade to intermediate versions.</li>
<li>If the upgrade from version x.y to version x.y+2 fails and there is a need to narrow down the problem, try upgrading to the latest minor version of each major version and verify it works.</li>
<li>etc.</li>
</ul>
<p>However, even with the best documentation, someone will eventually <strong>run into an new problem</strong> and fixing it without compromising the integrity of the data will be challenging. This is best demonstrated by a real world example that was concluded a few days ago.</p>
<h1 id="getting-help-from-the-community">Getting help from the community<a class="zola-anchor" href="#getting-help-from-the-community" aria-label="Anchor link for: getting-help-from-the-community"
><span class="anchor-icon">#</span></a
>
</h1>
<p>After <a href="https://discourse.gitea.io/t/blank-page-after-login/5051">upgrading a Gitea intsance from 1.9.6 to 1.16.5</a> the tests conducted manually did not uncover any problem. However, after going to production, some users saw a blank page after login and had to manually type the URL of the project they wanted to see in the browser. The person in charge of the upgrade never had to diagnose Gitea problem and <a href="https://discourse.gitea.io/t/blank-page-after-login/5051">reached out in the Gitea forum</a>.</p>
<blockquote>
<p><strong>Tip: explain the problem in a public forum as early as possible to get help from the community</strong></p>
</blockquote>
<p>In their post in the forum they explained how they attempted to diagnose the problem and how why they thought that only users created a few years ago were impacted. It was a detailed analysis that was concluded with a partial copy of the logs. It was unfortunately missing <a href="https://discourse.gitea.io/t/blank-page-after-login/5051/12">key information</a> that was provided only three days later. In the meantime, as they could not figure out the source of the problem, they were on the <strong>verge of <a href="https://discourse.gitea.io/t/blank-page-after-login/5051/11">accepting the loss of all the Gitea database</a> and start over from the repositories</strong>. However, once all the details were available, <a href="https://discourse.gitea.io/t/blank-page-after-login/5051/13">a workaround</a> was suggested in the forum.</p>
<blockquote>
<p><strong>Tip: focus more on providing detailed facts than exposing the attempted diagnostic</strong></p>
</blockquote>
<p>There was hope to fix Gitea and in the following days they applied the workaround. They also tried to improve it but without success and eventually accepted a <strong>partial data loss</strong> as inevitable and <a href="https://discourse.gitea.io/t/blank-page-after-login/5051/14">reported their success back to the forum</a>.</p>
<blockquote>
<p><strong>Tip: when getting support from the community, providing feedback is the best token of appreciation</strong></p>
</blockquote>
<h1 id="getting-professional-help">Getting professional help<a class="zola-anchor" href="#getting-professional-help" aria-label="Anchor link for: getting-professional-help"
><span class="anchor-icon">#</span></a
>
</h1>
<p>The <a href="https://gna.org/gitea-clinic/">Gna! Clinic</a> is a collective of individual and companies that provides professional services to Gitea admins. They are active members of the Gitea community who <a href="https://discourse.gitea.io/u/dachary/activity">help out</a> as volunteers. They can also be hired to resolve the more complicated cases.</p>
<p>The Gitea instance that was in trouble required more than a few minutes of work and access to the database content for a proper diagnostic. They <a href="https://discourse.gitea.io/t/blank-page-after-login/5051/13">proposed their assistance</a> but although <a href="https://discourse.gitea.io/t/user-research-about-gitea-upgrade-experiences-call-for-volunteers/5063/2">well received</a>, it was not accepted.</p>
<p>When the Gitea admin explained how they chose to resolve the problem <a href="https://discourse.gitea.io/t/blank-page-after-login/5051/14">on the forum</a>, it confirmed the workaround was viable and the root problem was identified. That was enough to figure out a fix for the underlying bug with <a href="https://discourse.gitea.io/t/blank-page-after-login/5051/17">a rather simple patch</a> that was merged <a href="https://github.com/go-gitea/gitea/pull/19629">and backported</a> in the following days. But it happened too late to avoid the data loss.</p>
<p>To summarize with a timeline, here is what happened:</p>
<ul>
<li>J+1: The <strong>problem is discovered</strong> by users who see a blank page after login and a the Gitea admin tries to diagnose the problem</li>
<li>J+2: A message is sent <strong>to ask for help in the community</strong></li>
<li>J+2 to J+6: Three people in the community suggest ideas but <strong>the Gitea admin cannot figure out the root cause and is on the verge of accepting the loss of all Gitea data</strong> and restart from the git repositories</li>
<li>J+6: A <strong>workaround is suggested by the community</strong></li>
<li>J+7 to J+17: The Gitea admin applies the <strong>workaround and only looses part of the Gitea data</strong></li>
</ul>
<p>And in retrospect, here is what could have happened instead:</p>
<ul>
<li>J+1: The <strong>problem is discovered</strong> by users who see a blank page after login</li>
<li>J+1: The Gitea admin <strong><a href="https://gna.org/gitea-clinic/">reaches out to someone at the Gna! Clinic</a></strong></li>
<li>J+2: The <a href="https://discourse.gitea.io/t/blank-page-after-login/5051/12">logs of the Gitea instance</a> are analyzed, <strong>the root cause diagnosed</strong> and <a href="https://discourse.gitea.io/t/blank-page-after-login/5051/17">a patch</a> is created to fix it.</li>
<li>J+3: If necessary a Gitea binary is created with the patch and used as a temporary replacement until the next point release is published with <a href="https://github.com/go-gitea/gitea/pull/19629">the backport</a>. The Gitea admin runs the patched Gitea binary in the meantime. <strong>There is no data loss</strong>.</li>
</ul>
<p>It does not mean all upgrade problems can be resolved so easily. But it shows, with an example, that in some cases it makes sense to get professional help.</p>
</div>
<br>
<br>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/upgrade">#upgrade</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

View File

@ -0,0 +1,339 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Get a Gitea instance with CI at Gna! | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="It is now possible to rent a Gitea instance by the month, with Woodpecker CI. A self-hostable hosting solution supported by a horizontal collective of individuals and organizations. 25% of the income is dedicated to help the Free Software projects it depends on such as Gitea, Enough, Django, etc." />
<meta property="og:title" content="Get a Gitea instance with CI at Gna! | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="It is now possible to rent a Gitea instance by the month, with Woodpecker CI. A self-hostable hosting solution supported by a horizontal collective of individuals and organizations. 25% of the income is dedicated to help the Free Software projects it depends on such as Gitea, Enough, Django, etc." />
<meta
property="og:site_name"
content="Get a Gitea instance with CI at Gna! | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">Get a Gitea instance with CI at Gna!</h1>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 10
July
,
2022 &middot; <b>5 min read</b>
</p>
<div class="blog__content">
<p>Hosting a Gitea instance on Gna! is now possible (but still experimental). It is meant to be a minimum viable product: anyone can <a href="https://hosteadashboard.gna.org">create a new dedicated Gitea instance</a> within minutes and pay for it on a monthly basis with a credit card. It includes a dedicated CI based on <a href="https://woodpecker-ci.org/">Woodpecker</a>. The smallest instance costs 10€ per month (2GB RAM, 10GB disk, 1CPU) and will be a good fit for a freelance up to a team of five people but bigger instances are also available if more RAM, CPU or disk is required.</p>
<video width="600" controls>
<source src="https://cloud.forgefriends.org/s/xXLcYpsE469tJEj/download?path=&files=hostea-screencast-vm-create.mp4" type="video/mp4" />
</video>
<p>The service is 100% infrastructure as code, published as <a href="https://lab.enough.community/main/infrastructure/-/tree/9e18ebbf675c8a65d1585d20b4cf6295af6e52ed/playbooks/hosteadashboard">Ansible playbooks within Enough</a>. It can be self-hosted on bare metal (with <a href="https://libvirt.org/">libvirt</a>) or in the cloud (with <a href="https://www.openstack.org/">OpenStack</a>): follow the <a href="https://enough-community.readthedocs.io/en/latest/introduction.html#quick-start">quick start</a>, configure playbooks for <a href="https://enough-community.readthedocs.io/en/latest/services/hostea.html">hostea</a> and <a href="https://enough-community.readthedocs.io/en/latest/services/hosteadashboard.html">the dashboard</a>.</p>
<p>The organization supporting Gna! is a <a href="https://forum.gna.org/c/governance-and-decisions/7">horizontal collective</a> of individuals and organizations. The <a href="https://forum.hostea.org/t/decision-revenue-sharing-model/92">revenue sharing model</a> is set to dedicate 25% of the income (more than the profits) to help the Free Software projects Hostea depends on such as Gitea, Enough, Django etc.</p>
<h3 id="the-origin">The origin<a class="zola-anchor" href="#the-origin" aria-label="Anchor link for: the-origin"
><span class="anchor-icon">#</span></a
>
</h3>
<p>In February 2022 the project of running a dedicated Gitea hosting service was <a href="https://discourse.gitea.io/t/a-gitea-hosting-service-under-the-umbrella-of-the-gitea-project/4692">proposed to the Gitea project</a> and other organizations and <a href="https://blog.dachary.org/2022/02/16/project-plans-for-a-hosted-gitea-online-service/">plans were drafted</a>. After a month of discussions it turned out to not be a <a href="https://blog.dachary.org/2022/03/11/the-inconclusive-story-of-four-failed-project-offers/">good match for any of them</a>.</p>
<p>It was suggested to create a new project from scratch instead of joining an existing organization. However, in order to be sustainable, a hosting service needs customers willing to pay for the service. And nobody had that kind of skill. It was therefore decided that to terminate the project: there is no point is creating a technical stack that's not going to be used by anyone.</p>
<h3 id="a-technical-stack-with-no-users">A technical stack with no users<a class="zola-anchor" href="#a-technical-stack-with-no-users" aria-label="Anchor link for: a-technical-stack-with-no-users"
><span class="anchor-icon">#</span></a
>
</h3>
<p>The most common mistake technical people do when creating a new piece of software is to overlook the fact that they have absolutely no idea how to let their intended user base know about it. Maybe the reason it happens so often is because it is very difficult to resist the urge of creating something. Because that's what technical people love to do: create things, even when they have no clue if it can be used.</p>
<p>It took no longer than two weeks for the people involved in Gna! to decide to build the technical stack to run hostea instead of being reasonable and give up. It was just too tempting.</p>
<p>To keep the madness contained and enjoyable, it was decided to set a deadline to July 1st and to <a href="https://gitea.gna.org/Hostea/july-mvp/issues">define precise and realistic technical goals</a>. It turned out to be an enjoyable experience: everyone learned a lot in the process and the outcome is something that can be reproduced. Most MVPs are a brittle pile of hacks designed to last a few weeks and be thrown away. But since a primary goal of the project was to create something self-hostable, it had to implement that feature and therefore be reproducible.</p>
<h3 id="a-horizontal-collective-with-a-revenue-sharing-model">A horizontal collective with a revenue sharing model<a class="zola-anchor" href="#a-horizontal-collective-with-a-revenue-sharing-model" aria-label="Anchor link for: a-horizontal-collective-with-a-revenue-sharing-model"
><span class="anchor-icon">#</span></a
>
</h3>
<p>Another goal of Gna! is to deploy federated forges, even at an experimental stage. Instead of creating a centralized organization to support Hostea, it was decided to create <a href="https://forum.gna.org/c/governance-and-decisions/7">horizontal collective</a>. It feels like a contradiction for a project committed to decentralization to be governed by a centralized organization.</p>
<p>The collective is composed of individuals and organizations but, unlike exclusively volunteer based Free Software projects, it is for profit. Customers rent Gitea instances by the month and the income is used to pay for expenses. There is however a difficulty: by nature a horizontal collective cannot be incorporated as it would create a level of hierarchy. The <a href="https://forum.gna.org/t/decision-revenue-sharing-model/92">revenue sharing model</a> had to be set as an informal agreement between members where one of them receives the income and distributes it to the others, depending on their Gna! related expenses.</p>
<p>It also requires that 25% of the income (not the profits) is dedicated to help the Free Software projects that Gna! depends on such as Gitea, Enough, Django etc. It can be via a donation, by upstreaming a bug fix or any kind of work that is beneficial to the dependency.</p>
<h3 id="dedicated-to-forge-federation">Dedicated to forge federation<a class="zola-anchor" href="#dedicated-to-forge-federation" aria-label="Anchor link for: dedicated-to-forge-federation"
><span class="anchor-icon">#</span></a
>
</h3>
<p>In the spirit of dogfooding, the people who created the technical stack of Gna! will use it for themselves on a daily basis. Since the focus of the authors is on <a href="https://forgefriends.org/blog/2022/06/30/2022-06-state-forge-federation/">forge federation</a>, they will add federation support in Hostea. This will be their primary motivation to improve and maintain Hostea: it is the only hosting platform where this can happen.</p>
</div>
<br>
<br>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/federation">#federation</a>
<a class="blog__post-tag" href="/tags/forgefriends">#forgefriends</a>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

View File

@ -0,0 +1,428 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>[tutorial] A gentle introduction to the gitea doctor | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="The doctor command is useful to check the health of a running Gitea instance. Specially after performing an upgrade." />
<meta property="og:title" content="[tutorial] A gentle introduction to the gitea doctor | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="The doctor command is useful to check the health of a running Gitea instance. Specially after performing an upgrade." />
<meta
property="og:site_name"
content="[tutorial] A gentle introduction to the gitea doctor | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">[tutorial] A gentle introduction to the gitea doctor</h1>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 14
June
,
2022 &middot; <b>7 min read</b>
</p>
<div class="blog__content">
<p>While helping people with their upgrades <a href="https://discourse.gitea.io/t/migration-from-1-2-to-1-16-8/5309">in the Gitea forum</a> or <a href="https://forum.gna.org/t/gitea-upgrade-from-1-14-1-to-1-16-8/90">at the Gna! clinic</a>, I realized that few Gitea admins know about the <a href="https://docs.gitea.io/en-us/command-line/#doctor"><code>gitea doctor</code></a> command and decided to write this blog post as a gentle introduction.</p>
<h3 id="an-apple-a-day-keeps-the-doctor-away">An apple a day keeps the doctor away<a class="zola-anchor" href="#an-apple-a-day-keeps-the-doctor-away" aria-label="Anchor link for: an-apple-a-day-keeps-the-doctor-away"
><span class="anchor-icon">#</span></a
>
</h3>
<p>Or in our case, Gitea versions <a href="https://github.com/go-gitea/gitea/blob/v1.11.5/cmd/doctor.go">below 1.11.5</a>. Since then, the <code>gitea doctor</code> is available and is designed to run against a specific Gitea version. It would not be a good idea to try to run the doctor from Gitea 1.16 to verify the sanity of a Gitea 1.2 instance: it will be confused by how the database is organized and a number of other details. Historical fun fact: the <code>gitea doctor</code> was backported to <a href="https://github.com/go-gitea/gitea/blob/v1.10.5/cmd/doctor.go">Gitea 1.10.5</a> and <a href="https://github.com/go-gitea/gitea/blob/v1.10.6/cmd/doctor.go">Gitea 1.10.6</a> and may be of help if you run this particular version and are facing the problem that motivated the backport.</p>
<p>With each version <code>gitea doctor</code> improves and gains new capabilities. For instance, in Gitea 1.17 it becomes aware of <a href="https://github.com/go-gitea/gitea/pull/19731">orphaned pull requests</a> and is able to fix them. If such a problem exists in Gitea 1.16, it does not know about it.</p>
<h3 id="calling-the-doctor">Calling the doctor<a class="zola-anchor" href="#calling-the-doctor" aria-label="Anchor link for: calling-the-doctor"
><span class="anchor-icon">#</span></a
>
</h3>
<p>In the following, examples are based on a Gitea 1.16.8 instance you can run as follows:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">$</span><span> docker run</span><span style="color:#bf616a;"> --name</span><span> gitea</span><span style="color:#bf616a;"> -p</span><span> 3000:3000</span><span style="color:#bf616a;"> -e</span><span> GITEA__security__INSTALL_LOCK=true</span><span style="color:#bf616a;"> -d</span><span> gitea/gitea:1.16.8-rootless
</span><span style="color:#bf616a;">$</span><span> docker exec gitea gitea admin user create</span><span style="color:#bf616a;"> --admin --username</span><span> root</span><span style="color:#bf616a;"> --password</span><span> admin1234</span><span style="color:#bf616a;"> --email</span><span> root@example.com
</span><span style="color:#bf616a;">$</span><span> docker exec gitea mkdir /var/lib/gitea/data/log
</span></code></pre>
<p>And then you can go to the <a href="https://127.0.0.1:3000/">web interface</a> to create a <code>test</code> repository, with an initial <code>README.md</code> file. When this is done the doctor can be called as follows:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">$</span><span> docker exec gitea gitea doctor</span><span style="color:#bf616a;"> --all
</span><span style="color:#bf616a;">[1]</span><span> Check paths and basic configuration
</span><span> </span><span style="color:#bf616a;">- </span><span style="color:#b48ead;">[</span><span>I</span><span style="color:#b48ead;">]</span><span> Configuration File Path: &quot;</span><span style="color:#a3be8c;">/etc/gitea/app.ini</span><span>&quot;
</span><span> </span><span style="color:#bf616a;">- </span><span style="color:#b48ead;">[</span><span>I</span><span style="color:#b48ead;">]</span><span> Repository Root Path: &quot;</span><span style="color:#a3be8c;">/var/lib/gitea/git/repositories</span><span>&quot;
</span><span> </span><span style="color:#bf616a;">- </span><span style="color:#b48ead;">[</span><span>I</span><span style="color:#b48ead;">]</span><span> Data Root Path: &quot;</span><span style="color:#a3be8c;">/var/lib/gitea</span><span>&quot;
</span><span> </span><span style="color:#bf616a;">- </span><span style="color:#b48ead;">[</span><span>I</span><span style="color:#b48ead;">]</span><span> Custom File Root Path: &quot;</span><span style="color:#a3be8c;">/var/lib/gitea/custom</span><span>&quot;
</span><span> </span><span style="color:#bf616a;">- </span><span style="color:#b48ead;">[</span><span>I</span><span style="color:#b48ead;">]</span><span> Work directory: &quot;</span><span style="color:#a3be8c;">/var/lib/gitea</span><span>&quot;
</span><span> </span><span style="color:#bf616a;">- </span><span style="color:#b48ead;">[</span><span>I</span><span style="color:#b48ead;">]</span><span> Log Root Path: &quot;</span><span style="color:#a3be8c;">/var/lib/gitea/data/log</span><span>&quot;
</span><span style="color:#bf616a;">OK
</span><span style="color:#bf616a;">[2]</span><span> Check if there is garbage storage files
</span><span style="color:#bf616a;">OK
</span><span style="color:#bf616a;">[3]</span><span> Check Database Version
</span><span style="color:#bf616a;">OK
</span><span style="color:#bf616a;">[4]</span><span> Check consistency of database
</span><span style="color:#bf616a;">OK
</span><span style="color:#bf616a;">[5]</span><span> Check if user with wrong type exist
</span><span style="color:#bf616a;">OK
</span><span style="color:#bf616a;">[6]</span><span> Check if OpenSSH authorized_keys file is up-to-date
</span><span style="color:#bf616a;">OK
</span><span style="color:#bf616a;">[7]</span><span> Check if SCRIPT_TYPE is available
</span><span> </span><span style="color:#bf616a;">- </span><span style="color:#b48ead;">[</span><span>I</span><span style="color:#b48ead;">]</span><span> ScriptType bash is on the current PATH at /bin/bash
</span><span style="color:#bf616a;">OK
</span><span style="color:#bf616a;">[8]</span><span> Check if hook files are up-to-date and executable
</span><span style="color:#bf616a;">OK
</span><span style="color:#bf616a;">[9]</span><span> Recalculate Stars number for all user
</span><span style="color:#bf616a;">OK
</span><span style="color:#bf616a;">[10]</span><span> Check old archives
</span><span> </span><span style="color:#bf616a;">- </span><span style="color:#b48ead;">[</span><span>I</span><span style="color:#b48ead;">]</span><span> 0 old archives in repository need to be deleted
</span><span style="color:#bf616a;">OK
</span><span style="color:#bf616a;">[11]</span><span> Enable push options
</span><span> </span><span style="color:#bf616a;">- </span><span style="color:#b48ead;">[</span><span>I</span><span style="color:#b48ead;">]</span><span> Checked 1 repositories, 0 need updates.
</span><span style="color:#bf616a;">OK
</span><span style="color:#bf616a;">[12]</span><span> Check for incorrectly dumped repo_units (See </span><span style="color:#65737e;">#16961)
</span><span> </span><span style="color:#bf616a;">- </span><span style="color:#b48ead;">[</span><span>W</span><span style="color:#b48ead;">]</span><span> Found 0 broken repo_units
</span><span style="color:#bf616a;">OK
</span><span style="color:#bf616a;">[13]</span><span> Recalculate merge bases
</span><span> </span><span style="color:#bf616a;">- </span><span style="color:#b48ead;">[</span><span>W</span><span style="color:#b48ead;">]</span><span> 0 PRs with incorrect mergebases of 0 PRs total in 1 repos
</span><span style="color:#bf616a;">OK
</span><span style="color:#bf616a;">[14]</span><span> Check git-daemon-export-ok files
</span><span> </span><span style="color:#bf616a;">- </span><span style="color:#b48ead;">[</span><span>I</span><span style="color:#b48ead;">]</span><span> Checked 1 repositories, 0 need updates.
</span></code></pre>
<h3 id="what-does-the-doctor-know">What does the doctor know?<a class="zola-anchor" href="#what-does-the-doctor-know" aria-label="Anchor link for: what-does-the-doctor-know"
><span class="anchor-icon">#</span></a
>
</h3>
<p>Although the <code>doctor</code> can be compared to <a href="https://en.wikipedia.org/wiki/Fsck">fsck(8)</a>, it does not know everything. It took decades for <code>fsck</code> to become the ultimate authority on finding problems on file systems and reliably fixing them without losing data. Nowadays, only a handful of people in the world are brave enough to manually attempt a file system recovery when <code>fsck</code> cannot recover from a data loss.</p>
<p>The first <code>doctor</code> version is two years old and Gitea admins are still routinely running SQL queries against the database or moving files around when trying to figure out why a Gitea instance is not behaving as it should. It is however worth checking if the doctor does not already have a solution by listing all it can do:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">$</span><span> docker exec gitea gitea doctor</span><span style="color:#bf616a;"> --list
</span><span style="color:#bf616a;">Default</span><span> Name Title
</span><span style="color:#bf616a;">*</span><span> paths Check paths and basic configuration
</span><span> </span><span style="color:#bf616a;">storages</span><span> Check if there is garbage storage files
</span><span style="color:#bf616a;">*</span><span> check-db-version Check Database Version
</span><span> </span><span style="color:#bf616a;">check-db-consistency</span><span> Check consistency of database
</span><span style="color:#bf616a;">*</span><span> check-user-type Check if user with wrong type exist
</span><span style="color:#bf616a;">*</span><span> authorized-keys Check if OpenSSH authorized_keys file is up-to-date
</span><span> </span><span style="color:#bf616a;">script-type</span><span> Check if SCRIPT_TYPE is available
</span><span> </span><span style="color:#bf616a;">hooks</span><span> Check if hook files are up-to-date and executable
</span><span> </span><span style="color:#bf616a;">recalculate-stars-number</span><span> Recalculate Stars number for all user
</span><span> </span><span style="color:#bf616a;">check-old-archives</span><span> Check old archives
</span><span> </span><span style="color:#bf616a;">enable-push-options</span><span> Enable push options
</span><span> </span><span style="color:#bf616a;">fix-broken-repo-units</span><span> Check for incorrectly dumped repo_units (See </span><span style="color:#65737e;">#16961)
</span><span> </span><span style="color:#bf616a;">recalculate-merge-bases</span><span> Recalculate merge bases
</span><span> </span><span style="color:#bf616a;">check-git-daemon-export-ok</span><span> Check git-daemon-export-ok files
</span></code></pre>
<p>And then call the <code>check</code> that looks interesting:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">$</span><span> docker exec gitea gitea doctor</span><span style="color:#bf616a;"> --run</span><span> authorized-keys
</span><span style="color:#bf616a;">[1]</span><span> Check if OpenSSH authorized_keys file is up-to-date
</span><span style="color:#bf616a;">OK
</span></code></pre>
<p>The challenge is to figure out which <code>check</code> does what and at the moment the best source of information is ... <a href="https://github.com/go-gitea/gitea/tree/v1.16.8">the sources</a> themselves. The <a href="https://github.com/go-gitea/gitea/blob/v1.16.8/cmd/doctor.go">doctor.go</a> command is the entry point and <a href="https://github.com/go-gitea/gitea/tree/v1.16.8/modules/doctor">the doctor directory</a> contains the rest.</p>
<p>Some <code>checks</code> are straightforward to understand, even if you do not know Go, such as <a href="https://github.com/go-gitea/gitea/blob/v1.16.8/modules/doctor/authorizedkeys.go">the authorized-keys check</a>. Others are much more involved and your best chance is to <a href="https://matrix.to/#/#gitea:matrix.org">ask the Gitea chatroom</a> for help.</p>
<h3 id="is-it-going-to-hurt">Is it going to hurt?<a class="zola-anchor" href="#is-it-going-to-hurt" aria-label="Anchor link for: is-it-going-to-hurt"
><span class="anchor-icon">#</span></a
>
</h3>
<p>By default the doctor (very much like <code>fsck -N</code>) only performs non destructive checks and displays diagnostics, with an indication of how serious the problem is. In the example above, there only are lines with <strong>[I]</strong> (which indicates an information) and <strong>[W]</strong> which indicates a warning that can be ignored but may be worth looking into. Those two warnings are actually just informational and should be labelled as <strong>[I]</strong>, <a href="https://github.com/go-gitea/gitea/pull/19836">which has been fixed</a> in a more recent version of the doctor.</p>
<p>Now let's do something bad: remove the permissions from a hook in our repository:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">$</span><span> docker exec gitea chmod</span><span style="color:#bf616a;"> -x</span><span> /var/lib/gitea/git/repositories/root/test.git/hooks/post-receive
</span></code></pre>
<p>Run the doctor with the <code>check</code> supposed to find that out:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">$</span><span> docker exec gitea gitea doctor</span><span style="color:#bf616a;"> --run</span><span> hooks
</span><span style="color:#bf616a;">[1]</span><span> Check if hook files are up-to-date and executable
</span><span> </span><span style="color:#bf616a;">- </span><span style="color:#b48ead;">[</span><span>W</span><span style="color:#b48ead;">]</span><span> old hook file /var/lib/gitea/git/repositories/root/test.git/hooks/post-receive is not executable
</span></code></pre>
<p>Ask it to fix this with the <code>--fix</code> flag:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">$</span><span> docker exec gitea gitea doctor</span><span style="color:#bf616a;"> --run</span><span> hooks</span><span style="color:#bf616a;"> --fix
</span><span style="color:#bf616a;">[1]</span><span> Check if hook files are up-to-date and executable
</span><span> </span><span style="color:#bf616a;">- </span><span style="color:#b48ead;">[</span><span>W</span><span style="color:#b48ead;">]</span><span> Regenerated hooks for root/test
</span><span> </span><span style="color:#bf616a;">- </span><span style="color:#b48ead;">[</span><span>W</span><span style="color:#b48ead;">]</span><span> old hook file /var/lib/gitea/git/repositories/root/test.git/hooks/post-receive is not executable
</span></code></pre>
<p>And run it one last time to check all is well:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">$</span><span> docker exec gitea gitea doctor</span><span style="color:#bf616a;"> --run</span><span> hooks
</span><span style="color:#bf616a;">[1]</span><span> Check if hook files are up-to-date and executable
</span><span style="color:#bf616a;">OK
</span></code></pre>
<p>Even when the doctor is unable to fix a problem, it can help by showing extensive debug output which can be found, by default, in the <code>doctor.log</code> file in the directory from which it runs. Or it can be displayed on the standard output with <code>--log-file -</code>, which is most convenient when running in docker.</p>
<h3 id="going-further">Going further<a class="zola-anchor" href="#going-further" aria-label="Anchor link for: going-further"
><span class="anchor-icon">#</span></a
>
</h3>
<p>If that was helpful to you, I would very much appreciate if you <a href="https://mastodon.online/@dachary">send me a message on Mastodon</a>. It will encourage me to write more blog posts to share what I learn about Gitea. Even better: you could <a href="https://github.com/go-gitea/gitea/pulls">send a pull request</a> to improve the doctor and help it mature.</p>
</div>
<br>
<br>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
<a class="blog__post-tag" href="/tags/tutorial">#tutorial</a>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

675
blog/index.html Normal file
View File

@ -0,0 +1,675 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Posts | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="The Gna! Blog: we write about Gitea, Free Software and the general forge ecosystem" />
<meta property="og:title" content="Posts | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="The Gna! Blog: we write about Gitea, Free Software and the general forge ecosystem" />
<meta
property="og:site_name"
content="Posts | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="blog__container">
<h1 class="blog__title">Posts</h1>
<p>Gna! is a <a href="https://gna.org/gitea-clinic">Clinic</a> to get help when a Gitea instance throws errors after an upgrade and the admin is not sure how to troubleshoot the problem. It opened in May 2022 and welcomes new patients. It will also provide dedicated Gitea hosting, including CI and more: subscribe <a href="https://hostea.org/blog/atom.xml">to the blog</a> or the <a rel="me" href="https://mastodon.online/@hostea">Mastodon account</a> to keep up to date.</p>
<ul class="blog__list">
<li class="blog__post-item">
<a href="https://gna.org/blog/1-17-breaking-episode-2/" class="blog__post-link">
<h2 class="blog__post-title">1.17 breaking changes episode 2: preserving a custom gitconfig</h2>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 20
July
,
2022 &middot; <b>2 min read</b>
</p>
<p class="blog__post-description">The location of the gitconfig file used by Gitea moved twice, here is a guide to sort out why and how to deal with it. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
<a class="blog__post-tag" href="/tags/tutorial">#tutorial</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/experimental/" class="blog__post-link">
<h2 class="blog__post-title">Get a Gitea instance with CI at Gna!</h2>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 10
July
,
2022 &middot; <b>5 min read</b>
</p>
<p class="blog__post-description">It is now possible to rent a Gitea instance by the month, with Woodpecker CI. A self-hostable hosting solution supported by a horizontal collective of individuals and organizations. 25% of the income is dedicated to help the Free Software projects it depends on such as Gitea, Enough, Django, etc. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/federation">#federation</a>
<a class="blog__post-tag" href="/tags/forgefriends">#forgefriends</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/1-17-breaking-episode-1/" class="blog__post-link">
<h2 class="blog__post-title">1.17 breaking changes episode 1: preserving a custom gitconfig</h2>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 22
June
,
2022 &middot; <b>2 min read</b>
</p>
<p class="blog__post-description">The location of the gitconfig file used by Gitea moved and custom modifications must be manually moved as well. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
<a class="blog__post-tag" href="/tags/tutorial">#tutorial</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/gentle-introduction-to-the-doctor/" class="blog__post-link">
<h2 class="blog__post-title">[tutorial] A gentle introduction to the gitea doctor</h2>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 14
June
,
2022 &middot; <b>7 min read</b>
</p>
<p class="blog__post-description">The doctor command is useful to check the health of a running Gitea instance. Specially after performing an upgrade. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
<a class="blog__post-tag" href="/tags/tutorial">#tutorial</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/zombies-part-2/" class="blog__post-link">
<h2 class="blog__post-title">[solved] Zombies created by Gitea</h2>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 4
June
,
2022 &middot; <b>3 min read</b>
</p>
<p class="blog__post-description">Gitea can use process groups to kill its children using a negative PID to never create zombies. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/zombies/" class="blog__post-link">
<h2 class="blog__post-title">[diagnostic] Zombies created by Gitea</h2>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 2
June
,
2022 &middot; <b>4 min read</b>
</p>
<p class="blog__post-description">An increasing number of zombies processes are created by Gitea because it only kills its direct children on timeout. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/path-not-found/" class="blog__post-link">
<h2 class="blog__post-title">[solved] Gitea 1.15 and up: path not found or permission denied</h2>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 28
May
,
2022 &middot; <b>3 min read</b>
</p>
<p class="blog__post-description">After migrating from 1.15 or earlier to gitea 1.16 paths are no longer found and files cannot be created because of permission problems because the default example.ini file changed. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/upgrade">#upgrade</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/unsafe-repository-is-owned-by-someone-else/" class="blog__post-link">
<h2 class="blog__post-title">[solved] Gitea 1.16.[678] error: fatal: unsafe repository is owned by someone else</h2>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 15
May
,
2022 &middot; <b>4 min read</b>
</p>
<p class="blog__post-description">If Gitea runs as user git, calls a patched Git version and a parent directory of the git repositories is owned by a user other than git, it will fail. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/upgrade">#upgrade</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/blank-or-error-500-page-after-login/" class="blog__post-link">
<h2 class="blog__post-title">[solved] blank or error 500 page after login</h2>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 8
May
,
2022 &middot; <b>6 min read</b>
</p>
<p class="blog__post-description">After going to production, some Gitea users saw a blank page after login and had to manually type the URL of the project they wanted to see in the browser. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/upgrade">#upgrade</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/22-04-2022-hostea-introducing-hostea-forgefriends-monthly-meet/" class="blog__post-link">
<h2 class="blog__post-title">Introducing Gna!</h2>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;batsense.net" class="post__author">Aravinth Manivannan</a>
&middot; 22
April
,
2022 &middot; <b>1 min read</b>
</p>
<p class="blog__post-description">Introducing Hostea, a project Loïc Dachary and Aravinth Manivannan are working on to create a 100% Free software development suite, complete with CI/CD, static pages and gists </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/hostea">#hostea</a>
<a class="blog__post-tag" href="/tags/forgefriends">#forgefriends</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/project-plans-for-hosted-gitea-online-service/" class="blog__post-link">
<h2 class="blog__post-title">Project plans for a hosted Gitea online service</h2>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 18
April
,
2022 &middot; <b>11 min read</b>
</p>
<p class="blog__post-description">When an organization asks me about Gitea, I would like to direct them to a provider where they can rent an instance and just use it </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/free-software">#free-software</a>
<a class="blog__post-tag" href="/tags/free-software-sustainability">#free-software-sustainability</a>
</div>
</li>
</ul>
</div>
<link rel="alternate" type="application/rss+xml" title="RSS" href="https://gna.org/rss.xml">
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

1
blog/main.css Normal file
View File

@ -0,0 +1 @@
.blog__content img{max-width:100%;display:block}.blog__content video{max-width:100%;display:block}.blog__content li{margin-left:40px}.blog__content a:hover{color:#0056b3;text-decoration:underline}.blog__content code{word-wrap:break-word;overflow-wrap:break-word}.blog__content table{border-collapse:collapse;caption-side:bottom;border-color:#e9ecef;text-align:center;width:100%}.blog__content table>thead{vertical-align:bottom;border-bottom:1px solid #cdc8ca;text-align:center}.blog__content table th{text-align:center}.blog__content table td{margin:auto;padding:10px;border-bottom:1px solid #edddd1}.blog__content p,.blog__content h2,.blog__content h3{margin:10px 0}.blog__content pre{padding:10px 10px 10px 20px;border-radius:8px;font-size:0.95rem;overflow:auto}.blog__content pre{font-family:monospace, monospace;font-display:auto;font-size:1em}.blog__content p{margin:30px 0}.blog__container{margin:auto;max-width:50%}.blog__list{list-style:none}.blog__post-link,.blog__post-link:visited{text-decoration:none;color:inherit}.blog__title{margin:35px 0}.blog__post-link{display:block}.blog__post-item{border-bottom:1px dashed #333;margin:10px;padding:10px}.blog__post-item:hover{background-color:lightgray}.blog__post-item:last-child{border-bottom:none}.blog__post-description{font-size:0.9rem;margin:5px 0}.blog__post-tag{font-size:0.7rem;font-family:monospace, monospace}.blog__post-tag:hover{color:#0056b3;text-decoration:underline}.blog__post-meta{font-size:0.7rem}.blog__post-title{font-size:1.4rem;font-weight:550}.blog__post-tag-container{margin:0}

1
blog/mobile.css Normal file
View File

@ -0,0 +1 @@
.blog__container{max-width:95%}.blog__content table{overflow-x:scroll}.blog__content table td{padding:5px}.blog__content pre{white-space:pre-wrap;word-wrap:break-word}.blog__content li{margin-left:25px}.blog__content p,.blog__content h1,.blog__content h2,.blog__content h3{margin:20px 0px}

View File

@ -0,0 +1,326 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>[solved] Gitea 1.15 and up: path not found or permission denied | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="After migrating from 1.15 or earlier to gitea 1.16 paths are no longer found and files cannot be created because of permission problems because the default example.ini file changed." />
<meta property="og:title" content="[solved] Gitea 1.15 and up: path not found or permission denied | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="After migrating from 1.15 or earlier to gitea 1.16 paths are no longer found and files cannot be created because of permission problems because the default example.ini file changed." />
<meta
property="og:site_name"
content="[solved] Gitea 1.15 and up: path not found or permission denied | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">[solved] Gitea 1.15 and up: path not found or permission denied</h1>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 28
May
,
2022 &middot; <b>3 min read</b>
</p>
<div class="blog__content">
<p>In Gitea 1.15 the <a href="https://github.com/go-gitea/gitea/blob/cfb4c23a5009b9c236d48ac0bc156577c7d70741/custom/conf/app.example.ini">app.example.ini</a> file was changed to <a href="https://github.com/go-gitea/gitea/commit/4a84022d2559ccfc99960c7c654ee8b9b38664f7">comment out most of the values</a>. The assumption was that all values exactly matched the defaults <a href="https://github.com/go-gitea/gitea/blob/main/modules/setting/setting.go">in the source code</a>. However, there are differences, for instance for <a href="https://github.com/go-gitea/gitea/blob/cfb4c23a5009b9c236d48ac0bc156577c7d70741/modules/setting/setting.go#L771">APP_DATA_PATH</a>. Before Gitea 1.15, <code>app.example.ini</code> contained:</p>
<pre style="background-color:#2b303b;color:#c0c5ce;"><code><span>APP_DATA_PATH = data
</span></code></pre>
<p>and the path was relative to the <strong>directory from which the Gitea server was running</strong>. In Gitea 1.15 up to 1.16, it was commented out:</p>
<pre style="background-color:#2b303b;color:#c0c5ce;"><code><span>; APP_DATA_PATH = data
</span></code></pre>
<p>and the path was relative to the <strong>work path directory</strong>, as provided either via the --work-path argument or the <code>GITEA_WORK_DIR</code> environment variable. </p>
<p>When a distribution such as voidlinux <a href="https://github.com/void-linux/void-packages/blob/master/srcpkgs/gitea/patches/config.patch">uses app.example.ini</a> as a base for the Gitea package, this change indirectly creates a regression and an upgrade of Gitea <a href="https://github.com/go-gitea/gitea/issues/19367">fails with errors</a> such as <code>unable to open level db at data/data/queues/common: mkdir data: permission denied</code>. The regression did not show as soon as Gitea 1.15 became available in voidlinux because the package <a href="https://github.com/void-linux/void-packages/blob/7fc9190f0e0d557dd5031e68df4e183892d4315b/srcpkgs/gitea/patches/config.patch#L62">explicitly set <code>APP_DATA_PATH</code></a>. But this <a href="https://github.com/void-linux/void-packages/commit/19d986a2cae9ce73d32552ddb62443b5e7fa13e2">changed when Gitea 1.15.6 was packaged</a> and once the value was commented out, upgrading triggered the problem. This was worked around six month later with the <a href="https://github.com/void-linux/void-packages/commit/44b6c96fa12ce9d993c7a2ac9486d892735b7e3a">Gitea 1.16.8</a> package.</p>
<p>The <code>APP_DATA_PATH</code> directory is not the only one, the <code>[log] ROOT_PATH</code> is another example. There is an <a href="https://github.com/go-gitea/gitea/pull/19815">ongoing effort</a> to improve the situation in Gitea 1.17. With the downside of introducing breaking changes that will have an impact on all Gitea installations because the content of the <code>app.ini</code> file will be interpreted differently. In the case of <code>APP_DATA_PATH</code>, both:</p>
<pre style="background-color:#2b303b;color:#c0c5ce;"><code><span>APP_DATA_PATH = data
</span></code></pre>
<p>and:</p>
<pre style="background-color:#2b303b;color:#c0c5ce;"><code><span>; APP_DATA_PATH = data
</span></code></pre>
<p>will be interpreted to be relative to the <strong>work path directory</strong>, as provided either via the --work-path argument or the <code>GITEA_WORK_DIR</code> environment variable. Every Gitea installation using <strong>APP_DATA_PATH = data</strong> will need to update the value to be an absolute path such as <strong>/var/lib/gitea/data</strong> so that it keeps pointing to the expected directory.</p>
<p>In order to prepare for the change or ensure the consistency of all path, there fortunately is a very simple <strong>solution: always use absolute paths in the <code>app.ini</code> configuration file</strong>.</p>
</div>
<br>
<br>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/upgrade">#upgrade</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

View File

@ -0,0 +1,529 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Project plans for a hosted Gitea online service | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="When an organization asks me about Gitea, I would like to direct them to a provider where they can rent an instance and just use it" />
<meta property="og:title" content="Project plans for a hosted Gitea online service | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="When an organization asks me about Gitea, I would like to direct them to a provider where they can rent an instance and just use it" />
<meta
property="og:site_name"
content="Project plans for a hosted Gitea online service | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">Project plans for a hosted Gitea online service</h1>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 18
April
,
2022 &middot; <b>11 min read</b>
</p>
<div class="blog__content">
<p><em>This post was originally published on <a href="https://blog.dachary.org/2022/02/16/project-plans-for-a-hosted-gitea-online-service/">Loïc Dachary's
blog</a>.</em></p>
<hr />
<p>When an organization asks me about Gitea, I would like to direct them to
a provider where they can rent an instance and just use it, in the same
way they can go to https://discourse.org for a forum, or
https://nextcloud.com for storage. Instead of waiting for that to
happen, <a href="https://batsense.net/about/">Aravinth</a> and
<a href="https://dachary.org/">myself</a> decided to do something about it, in a
way that is in line with our shared values: transparency and Free
Software.</p>
<p>After doing some research we found counter examples that showed the
pitfalls to avoid. GitLab because its business model heavily relies on
selling proprietary licenses. CiviCRM because setting it up is complex
and requires training: users can't figure it out on their own. Gitea
images provided by Digital Ocean because they do not include security
upgrades. MySQL configured and run by AWS because of the vendor lock-in
that makes it impossible to self-host.</p>
<p>We concluded that an online service such as Gitea can be hosted in a
sustainable way as long as:</p>
<ul>
<li>It is well maintained and upgrades itself</li>
<li>It can be self-hosted</li>
<li>The service can automatically be restored from backups when the
underlying resources fail</li>
</ul>
<p>GitHub and GitLab make it look like there is a market around software
forges. It is however impossible to figure out if this market exists
only because it is based on proprietary software. How many of these
customers would pay for a Free Software hosted Gitea instance?</p>
<p>Even if these customers do exist, a new service provider would have to
figure out how to convince them to subscribe. The technical development
of the service can be done within weeks but building a sustainable
business takes much longer. Again, there were examples of what can go
wrong, for instance ElasticSearch. After years of work developing a
successful online service and a customer base, AWS entered the
competition and started to take it away from them.</p>
<p>The sustainability of the Free Software ecosystem is a new and very
difficult problem to solve. It is discussed more than it ever was in the
wake of security breaches originating from widely used and yet abandoned
library or disillusioned Free Software authors self-sabotaging their
next release, and everyone has diverging opinions. It falls on each Free
Software author to spend time to think about their own projects because
there are no handbook or good examples to follow. That is what Aravinth
and myself did to find a semblance of clarity and decide how to go about
this hosted Gitea service idea.</p>
<h1 id="sustaining-free-software-online-services">Sustaining Free Software online services<a class="zola-anchor" href="#sustaining-free-software-online-services" aria-label="Anchor link for: sustaining-free-software-online-services"
><span class="anchor-icon">#</span></a
>
</h1>
<h2 id="more-mature-online-services-mean-less-opportunities-to-sell-services">More mature online services mean less opportunities to sell services<a class="zola-anchor" href="#more-mature-online-services-mean-less-opportunities-to-sell-services" aria-label="Anchor link for: more-mature-online-services-mean-less-opportunities-to-sell-services"
><span class="anchor-icon">#</span></a
>
</h2>
<p>Ideally the software running an online service is rock solid and bugs
are so rare that it can run unattended. This is true of
https://wordpress.org and it is not uncommon for an instance to run for
years while upgrading themselves to get security patches. The cost of
maintaining such a service is negligible and hosting companies can offer
it for free to their customers. They make their profit by renting the
machines on which the service runs.</p>
<p>When the software is not as mature, it is more expensive to run. Bugs
need fixing, upgrades require manual intervention, users must be trained
to overcome the complexity of the user experience, etc. Well known
examples are Discourse or CiviCRM for which companies sell services to
overcome these issues.</p>
<p>But when an organization is both the author of the software and the
provider of paid services to compensate for its lack of maturity, it
creates a conflict of interest. Should they focus their effort on making
the software more mature, they would harm a business model that is based
on this very lack of maturity. For instance, if the author of a software
also sells training courses, they are not motivated to solve user
experience issues. If they did, it would lower the need for training
courses and reduce their income.</p>
<h2 id="free-software-online-services-in-the-wake-of-the-sustainability">Free Software online services in the wake of the sustainability<a class="zola-anchor" href="#free-software-online-services-in-the-wake-of-the-sustainability" aria-label="Anchor link for: free-software-online-services-in-the-wake-of-the-sustainability"
><span class="anchor-icon">#</span></a
>
</h2>
<p>crisis</p>
<p>Nowadays all Free Software authors struggle to get enough resources to
produce a steady stream of releases, even when the project is very
popular. This sustainability problem is getting more and more attention
as the number of Free Software projects in use world wide keeps growing.
Even the simplest online service relies on thousands of Free Software
projects, each of which needs work to keep going. Accidents caused by
poorly maintained Free Software projects become more frequent.</p>
<p>This Free Software sustainability crisis is barely emerging and very
much resembles ecological problems such as climate change. In both cases
it is very difficult to figure out how to properly care for the
resources that are consumed. After decades of advocacy, it is generally
accepted that fossil energy won't last forever but there still is a long
way to go. It will also take a long time for the Free Software community
to answer this simple question: how to sustain an ever growing library
of Free Software?</p>
<p>Luckily, it is relatively simpler to solve that problem for an online
service because it has users. They can be reminded that their assistance
is needed to keep the project afloat, for instance by a donation. A
proposition that would be much more difficult to make for the author of
a cryptographic library. Convincing users to pay for an online service
has the best chance of success when the author of the software is also
the service provider. This is the business model of Discourse and
Weblate, but it is relatively fragile because nothing stands in the way
of the competition.</p>
<p>A few years ago ElasticSearch successfully developed an online service
offering. But when AWS entered the competition and was better at
marketing it, ElasticSearch quickly realized they would likely go out of
business. They tried to fight back by <a href="https://www.elastic.co/blog/licensing-change">changing their
license</a>, which was the
wrong answer to a real problem. Discourse or Weblate are also likely to
face competition from hosting companies in the future and they may not
survive it.</p>
<p>In the end, the durable source of income for a Free Software online
service is to rent the resources (CPU/RAM/network/disk) it needs to run.
In other words only hosting companies can make a profit when running
such an online service. And for that reason they also need to share part
of the profits to ensure the sustainability of the Free Software service
their customers need.</p>
<h1 id="online-services-vendor-lock-in-is-cured-by-free-software">Online services vendor lock-in is cured by Free Software<a class="zola-anchor" href="#online-services-vendor-lock-in-is-cured-by-free-software" aria-label="Anchor link for: online-services-vendor-lock-in-is-cured-by-free-software"
><span class="anchor-icon">#</span></a
>
</h1>
<p>When hosting companies offer online services they also provide upgrades
and transparent recovery when the hardware fails. But none of them allow
the service to be self-hosted. When their price policy change, or when
the term of services ban users from a given country, migrating the
service elsewhere it costly and difficult. For instance when AWS runs
MySQL for their customers, they allow to download the data but not the
software that runs the proprietary AWS interface used to configure and
control the server. Another example is GitHub where the content of the
git repository can be downloaded but the code that runs GitHub itself is
not Free Software.</p>
<p>If a customer cannot run the same software as their service provider,
they are locked-in, even if they can download their data. It is a common
misconception to think that there is no vendor lock-in as long as it is
possible to download the data in an standard format. Migrating the data
from one software to another is, more often than not, time consuming and
costly to a point that it is effectively a blocker. A GitHub salesperson
would argue that it is possible for people to run GitHub Enterprise on
their own hardware. But the vendor lock-in is still present via the
proprietary license contract. The user experience, maintenance and
upgrades are still exclusively controlled by GitHub.</p>
<p>To guarantee their independence, the customers of an online service need
to be able to:</p>
<ul>
<li>Download their data</li>
<li>Run the exact same Free Software as their service provider</li>
<li>Run the exact same Free Software infrastructure as code as their
service provider</li>
</ul>
<p>The requirement regarding Free Software infrastructure as code refers
to, for instance, the AWS control panel and all that is behind it when
creating a new MySQL service. It includes whatever a competitor would
need to run the same online service. An example would be
https://enough.community, an infrastructure as code dedicated to
creating the services needed by whistleblowers and human rights
defenders. It consumes resources rented by hosting providers, assembles
disks and machines, setup monitoring and intrusion detection, installs
various online services and upgrades them.</p>
<p>The availability of the software that creates the infrastructure is not
only useful to the competitors of a service provider. It also benefits a
non-profit that wants to provide (for instance) Wordpress instances to
its members. Without it they would need to create something from scratch
using building blocks such as CiviCRM. Even though such building blocks
exist, this is a significant undertaking and effectively a blocker.</p>
<h1 id="federated-online-services-and-durability">Federated online services and durability<a class="zola-anchor" href="#federated-online-services-and-durability" aria-label="Anchor link for: federated-online-services-and-durability"
><span class="anchor-icon">#</span></a
>
</h1>
<p>All self-hosted services are in danger of losing the data they contain.
When a Wordpress service is hosted in a home and the machine dies, it
must be restored from backups... when there are backups. Hosting
companies ensure the durability of the data with their own backup
system. It creates a dilemma for people who are looking into self
hosting: independence is desirable, but is it worth taking the risk of
data loss?</p>
<p>Federated online services do not suffer from this problem, because they
can mirror each other. A Gitea instance that is federated with another
will mirror copies of software projects found on its peers. Should one
instance be destroyed, mirrored projects can be resurrected from the
federated instance. Not only is it a practical way to ensure the (rare)
failure of an entire datacenter, it also helps with the (more frequent)
destruction of self-hosted machines. Contrary to backups that require
special attention, the replication involved in federated online service
is built in and works continuously. There is no need for an extra backup
service that is very rarely used and therefore likely to fail when
needed.</p>
<p>Federated services are not yet mainstream and Gitea is one of the rare
services that started to implement the concept. In the interim,
customers of an online hosting service will need to worry about backups
to ensure the durability of their data. But the ultimate solution for
them won't be the emergence of an ideal backup infrastructure, it will
be replication (via federated services) that will continuously ensure
the durability of their data.</p>
<h1 id="paths-forward">Paths forward<a class="zola-anchor" href="#paths-forward" aria-label="Anchor link for: paths-forward"
><span class="anchor-icon">#</span></a
>
</h1>
<p>The Gitea project itself, following the footsteps of Discourse or
Weblate, could provide a hosting service. Part of its current user base
may become customers and there does not seem to be any blocker to make
that happen. As with most successful Free Software project, people
working on Gitea daily are already very busy and cannot engage in such a
long term project. But Aravinth and myself can, if they will have us.</p>
<p>Another path forward would be to wrap Gitea into a bundle that existing
hosting companies could easily use to provide such a service to their
customers. The biggest hosting companies are unlikely to be interested:
if Digital Ocean was to provide upgrades on top of their existing Gitea
image, they are more likely to rely on their internal staff to implement
that from scratch, as proprietary software integrated into their
existing infrastructure. But smaller hosting companies such as
https://Octopuce.fr or https://Easter-Eggs.com, who already deploy Gitea
instances for their customers, would use it if, for instance, it helped
with the upgrades. They would then kindly be reminded to give back a
share of their profits in order to sustain the development of the
service they deploy.</p>
<p>Finally it would also be possible to follow the example of GitLab in the
early days (before it turned to proprietary software) or Codeberg and
offer a free shared forge hosting service to build a user base. After a
few years, a percentage of the user base would convert to being paid
customers or donors to sustain the activity and part of the income would
be used to sustain the development of the service.</p>
</div>
<br>
<br>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/free-software">#free-software</a>
<a class="blog__post-tag" href="/tags/free-software-sustainability">#free-software-sustainability</a>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

View File

@ -0,0 +1,346 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>[solved] Gitea 1.16.[678] error: fatal: unsafe repository is owned by someone else | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="If Gitea runs as user git, calls a patched Git version and a parent directory of the git repositories is owned by a user other than git, it will fail." />
<meta property="og:title" content="[solved] Gitea 1.16.[678] error: fatal: unsafe repository is owned by someone else | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="If Gitea runs as user git, calls a patched Git version and a parent directory of the git repositories is owned by a user other than git, it will fail." />
<meta
property="og:site_name"
content="[solved] Gitea 1.16.[678] error: fatal: unsafe repository is owned by someone else | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">[solved] Gitea 1.16.[678] error: fatal: unsafe repository is owned by someone else</h1>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 15
May
,
2022 &middot; <b>4 min read</b>
</p>
<div class="blog__content">
<p>April 12, 2022 version <a href="https://lore.kernel.org/git/xmqqv8veb5i6.fsf@gitster.g/">git v2.35.2</a> was released and addresses a security issue <a href="https://github.com/git-for-windows/git/security/advisories/GHSA-vw2c-22j4-2fh2">CVE-2022-24765</a>. It was backported to 2.30.3, v2.31.2, v2.32.1, v2.33.2, and v2.34.2 and published by distributions such as <a href="https://security-tracker.debian.org/tracker/CVE-2022-24765">Debian GNU/Linux</a>, <a href="https://www.alpinelinux.org/releases/">Alpine</a>.</p>
<p><strong>If Gitea runs as user <code>foo</code>, calls a patched Git version and a parent directory of the git repositories is owned by a user other than <code>foo</code>, it will fail</strong> with a message such as:</p>
<pre style="background-color:#2b303b;color:#c0c5ce;"><code><span>Failed to open repository: Git/Data Error: exit status 128 - fatal: unsafe repository (&#39;/data/git/repositories/git/data.git&#39; is owned by someone else)
</span></code></pre>
<p>This started to show in the past few weeks to <a href="https://github.com/go-gitea/gitea/issues/19455">users running the Gitea binary on Windows</a> who also independently installed git v2.36. And then to people running <a href="https://github.com/go-gitea/gitea/issues/19455#issuecomment-1106331149">Gitea from snap</a>, on <a href="https://github.com/go-gitea/gitea/issues/19455#issuecomment-1106312061">a Synology NAS</a> and then people running from <a href="https://github.com/go-gitea/gitea/blob/main/Dockerfile#L2">Gitea docker images</a> which is based on <a href="https://www.alpinelinux.org/releases/">Alpine</a>.</p>
<h3 id="workarounds">Workarounds<a class="zola-anchor" href="#workarounds" aria-label="Anchor link for: workarounds"
><span class="anchor-icon">#</span></a
>
</h3>
<ul>
<li>If using <a href="https://hub.docker.com/r/gitea/gitea">Gitea docker images</a>:
<ul>
<li>upgrade to <a href="https://github.com/go-gitea/gitea/pull/19876">Gitea &gt;=1.16.9</a> or 1.17, both have git &gt;=2.36</li>
<li><code>git config --global --replace-all safe.directory '*'</code></li>
</ul>
</li>
<li>If the Gitea binary was installed independently of git, upgrade git to a version that is <a href="https://git-scm.com/docs/git-config#Documentation/git-config.txt-safedirectory">greater or equal to 2.36</a> and disable the security check entirely with:
<ul>
<li>impersonate the <a href="https://docs.gitea.io/en-us/install-from-binary/#recommended-server-configuration">user dedicated to Gitea</a> (usually git)</li>
<li><code>git config --global --replace-all safe.directory '*'</code></li>
</ul>
</li>
</ul>
<h3 id="bug-fix">Bug fix<a class="zola-anchor" href="#bug-fix" aria-label="Anchor link for: bug-fix"
><span class="anchor-icon">#</span></a
>
</h3>
<p>The <a href="https://github.com/go-gitea/gitea/pull/19870">bug fix</a> is for Gitea to ensure <code>git config --global --replace-all safe.directory '*'</code> is set on its <a href="https://docs.gitea.io/en-us/install-from-binary/#recommended-server-configuration">dedicated user</a> when it initializes. It is effective on the condition that the git CLI version is <a href="https://git-scm.com/docs/git-config#Documentation/git-config.txt-safedirectory">greater or equal to 2.36</a>.</p>
<h3 id="bug-fix-rationale">Bug fix rationale<a class="zola-anchor" href="#bug-fix-rationale" aria-label="Anchor link for: bug-fix-rationale"
><span class="anchor-icon">#</span></a
>
</h3>
<p>It is safe to <a href="https://lab.forgefriends.org/forgefriends/forgefriends/-/merge_requests/50/diffs">disable the security check in Gitea</a>. It is not vulnerable to <strong><a href="https://github.com/git-for-windows/git/security/advisories/GHSA-vw2c-22j4-2fh2">CVE-2022-24765</a></strong> because it calls the git CLI <a href="https://github.com/go-gitea/gitea/blob/main/modules/git/command.go#L160">after changing its working directory</a> to be the git repository targeted by the command (for instance <a href="https://github.com/go-gitea/gitea/blob/main/modules/git/diff.go#L38-L45">diff</a>) or a temporary directory. Therefore <strong>it will not explore the parent directories looking for a git configuration file</strong>.</p>
<p>The security check is triggered because the repository is owned by an unexpected user (root instead of git typically) and <strong>not because a parent directory is owned by an unexpected user</strong>. This, in itself, is a problem worth investigating but it is unrelated and was revealed by the newer security check of git even though it does not match the threat described in <strong><a href="https://github.com/git-for-windows/git/security/advisories/GHSA-vw2c-22j4-2fh2">CVE-2022-24765</a></strong>.</p>
<p>It appears non trivial to enforce a consistent ownership of files and directories, either within docker or outside docker when networked file systems are involved. The Gitea server was not troubled by this inconsistency so far because the permissions allow it to write and read where expected, regardless of the owner. It is not worth looking into but it is ancient and unrelated.</p>
<p>Gitea runs under a dedicated user, either when installed <a href="https://docs.gitea.io/en-us/install-from-binary/#recommended-server-configuration">from binary</a> or from <a href="https://docs.gitea.io/en-us/install-with-docker/">docker</a> and <a href="https://github.com/go-gitea/gitea/blob/main/modules/git/git.go#L196-L207">modifies the global git configuration</a> depending on the git version at initialization time. Fixing the problem can therefore be done by <a href="https://lab.forgefriends.org/forgefriends/forgefriends/-/merge_requests/50/diffs#bcd72ff867cbd1ddd5b6518c3a05b5f1a6021286_209_209">disabling the security check in the global git config file at initialization time</a>. It also requires a minimum version of git 2.36 to be installed, which is the case for Gitea docker images with <a href="https://github.com/go-gitea/gitea/pull/19876">versions &gt;= 1.16.9</a>.</p>
</div>
<br>
<br>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/upgrade">#upgrade</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

View File

@ -0,0 +1,362 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>[solved] Zombies created by Gitea | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Gitea can use process groups to kill its children using a negative PID to never create zombies." />
<meta property="og:title" content="[solved] Zombies created by Gitea | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="Gitea can use process groups to kill its children using a negative PID to never create zombies." />
<meta
property="og:site_name"
content="[solved] Zombies created by Gitea | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">[solved] Zombies created by Gitea</h1>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 4
June
,
2022 &middot; <b>3 min read</b>
</p>
<div class="blog__content">
<p>Gitea can <a href="/blog/zombies">create zombies</a>, for instance if a Git mirror takes too long. When updating a mirror, Gitea relies on the <code>git remote update</code> command which creates a child process, <code>git-remote-https</code>, to fetch data from the remote repository. Gitea has an internal timeout that will kill the child process (e.g. <code>git remote update</code>) when it takes too long but will not kill the grandchild. This grandchild will become an orphan and run forever or until its own timeout expires, which is about two minutes on git version 2.25.</p>
<pre style="background-color:#2b303b;color:#c0c5ce;"><code><span>$ time git clone https://4.4.4.4
</span><span>Clonage dans &#39;4.4.4.4&#39;...
</span><span>fatal: impossible d&#39;accéder à &#39;https://4.4.4.4/&#39;: Failed to connect to 4.4.4.4 port 443: Connexion terminée par expiration du délai d&#39;attente
</span><span>
</span><span>real 2m9,753s
</span><span>user 0m0,001s
</span><span>sys 0m0,009s
</span></code></pre>
<p>As explained in the <a href="/blog/zombies/#killing-a-child-process-and-all-its-children">diagnostic blog post regarding Gitea zombies</a> there fortunately is a very simple way to avoid this by making sure each Gitea child is a <a href="https://en.wikipedia.org/wiki/Process_group">process group leader</a>. That first step was <a href="https://github.com/go-gitea/gitea/pull/19865">introduced in Gitea 1.17</a> and <a href="https://github.com/go-gitea/gitea/pull/19865">backported to Gitea 1.16.9</a>. The actual bug fix can now be implemented.</p>
<h3 id="using-negative-process-id-to-kill-children">Using negative process id to kill children<a class="zola-anchor" href="#using-negative-process-id-to-kill-children" aria-label="Anchor link for: using-negative-process-id-to-kill-children"
><span class="anchor-icon">#</span></a
>
</h3>
<p>When Gitea timeout on a child, it relies on <a href="https://github.com/golang/go/blob/f8a53df314e4af8cd350eedb0dae77d4c4fc30d0/src/os/exec/exec.go#L650">os.Process.Kill</a> which translates into a using the kill(2) system call to send a SIGKILL signal to unconditionally terminate it: <code>kill(pid, SIGKILL)</code>. Using a negative pid with <code>kill(-pid, SIGKILL)</code> will also terminate all processes created by Gitea's child, without Gitea knowing when or why they were created. From the kill(2) manual page:</p>
<blockquote>
<p>If pid is less than -1, then sig is sent to every process in the process group whose ID is -pid.</p>
</blockquote>
<p>Which is implemented as follows in the <a href="https://lab.forgefriends.org/friendlyforgeformat/gofff/-/blob/a9603c7cc934fccd4382b7f4309b75c852742480/util/exec.go#L130">Friendly Forge Format library</a>:</p>
<blockquote>
<p><code>syscall.Kill(-cmd.Process.Pid, syscall.SIGKILL)</code></p>
</blockquote>
<h3 id="not-using-the-default-go-commandcontext">Not using the default Go CommandContext<a class="zola-anchor" href="#not-using-the-default-go-commandcontext" aria-label="Anchor link for: not-using-the-default-go-commandcontext"
><span class="anchor-icon">#</span></a
>
</h3>
<p>Since <a href="https://pkg.go.dev/os/exec#CommandContext">CommandContext</a> does not allow to send a signal to the negative pid of the child process, it has to be implemented by Gitea itself, in a way that is similar to how the <a href="https://lab.forgefriends.org/friendlyforgeformat/gofff/-/blob/a9603c7cc934fccd4382b7f4309b75c852742480/util/exec.go#L75-82">Friendly Forge Format library</a> does it:</p>
<pre style="background-color:#2b303b;color:#c0c5ce;"><code><span> ctxErr := watchCtx(ctx, cmd.Process.Pid)
</span><span> err = cmd.Wait()
</span><span> interruptErr := &lt;-ctxErr
</span><span> // If cmd.Wait returned an error, prefer that.
</span><span> // Otherwise, report any error from the interrupt goroutine.
</span><span> if interruptErr != nil &amp;&amp; err == nil {
</span><span> err = interruptErr
</span><span> }
</span></code></pre>
<h3 id="testing-the-bug-is-fixed-and-stays-fixed">Testing the bug is fixed and stays fixed<a class="zola-anchor" href="#testing-the-bug-is-fixed-and-stays-fixed" aria-label="Anchor link for: testing-the-bug-is-fixed-and-stays-fixed"
><span class="anchor-icon">#</span></a
>
</h3>
<p>Long standing bugs that are difficult to reproduce manually such as this one require robust testing to ensure that:</p>
<ul>
<li>the diagnostic identifying the root cause is correct</li>
<li>the bug fix works</li>
<li>it does not resurface insidiously because of a subtle regression introduce years later</li>
</ul>
<p>It is easy to implement as can be seen in the <a href="https://lab.forgefriends.org/friendlyforgeformat/gofff/-/blob/a9603c7cc934fccd4382b7f4309b75c852742480/util/exec_test.go#L44-76">Friendly Forge Format library</a>. In a nutshell:</p>
<ul>
<li><a href="https://lab.forgefriends.org/friendlyforgeformat/gofff/-/blob/a9603c7cc934fccd4382b7f4309b75c852742480/util/exec_test.go#L53">git clone https://4.4.4.4</a> which will hang because of firewall rules</li>
<li><a href="https://lab.forgefriends.org/friendlyforgeformat/gofff/-/blob/a9603c7cc934fccd4382b7f4309b75c852742480/util/exec_test.go#L60-65">wait for the git-remote-https</a> grandchild process to be spawned</li>
<li><a href="https://lab.forgefriends.org/friendlyforgeformat/gofff/-/blob/a9603c7cc934fccd4382b7f4309b75c852742480/util/exec_test.go#L67-68">cancel the context and wait for the goroutine to terminate</a></li>
<li><a href="https://lab.forgefriends.org/friendlyforgeformat/gofff/-/blob/a9603c7cc934fccd4382b7f4309b75c852742480/util/exec_test.go#L70-75">verify the git-remote-https is killed</a></li>
</ul>
<p>And with that... no more zombies!</p>
</div>
<br>
<br>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

368
blog/zombies/index.html Normal file
View File

@ -0,0 +1,368 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>[diagnostic] Zombies created by Gitea | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="An increasing number of zombies processes are created by Gitea because it only kills its direct children on timeout." />
<meta property="og:title" content="[diagnostic] Zombies created by Gitea | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="An increasing number of zombies processes are created by Gitea because it only kills its direct children on timeout." />
<meta
property="og:site_name"
content="[diagnostic] Zombies created by Gitea | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">[diagnostic] Zombies created by Gitea</h1>
<p class="blog__post-meta">
<a href="https:&#x2F;&#x2F;dachary.org" class="post__author">Loïc Dachary</a>
&middot; 2
June
,
2022 &middot; <b>4 min read</b>
</p>
<div class="blog__content">
<p>The first <a href="https://github.com/go-gitea/gitea/issues/3242">issue about zombie processes</a> created by Gitea was reported in 2017 and <a href="https://github.com/go-gitea/gitea/issues/13987">resurfaced</a> on a <a href="https://github.com/go-gitea/gitea/issues/19077">regular basis</a>. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:</p>
<ul>
<li>Gitea updates a mirror by spawning the process <code>git remote update</code></li>
<li><code>git remote update</code> spawns yet another process, <code>git fetch</code></li>
<li><code>git fetch</code> is stuck, for instance because of network problems, and Gitea eventually times out</li>
<li>Gitea kill the process <code>git remote update</code></li>
<li>When killed <code>git remote update</code> does not kill its own child and <code>git fetch</code> becomes an orphaned process which keeps running</li>
<li>When <code>git fetch</code> eventually completes it becomes a zombie because its original parent is no longer around to wait on it</li>
</ul>
<h3 id="pid-1-process-and-waiting-on-orphans">PID 1 process and waiting on orphans<a class="zola-anchor" href="#pid-1-process-and-waiting-on-orphans" aria-label="Anchor link for: pid-1-process-and-waiting-on-orphans"
><span class="anchor-icon">#</span></a
>
</h3>
<p>This scenario is not unique to Gitea and it is such a common pattern that safeguards have been implemented to mitigate the proliferation of zombies. Orphaned process are automatically attached to the process with PID 1, which is expected to wait on every process, whether it created them or not. When Gitea is installed from binary on GNU/Linux this is <code>/bin/init</code> and when Gitea runs from the <a href="https://github.com/go-gitea/gitea/blob/6171ea7d318c0ca8714bc6efd6a97ea4b495eb6d/Dockerfile">default docker image</a> this is <code>s6</code>: they will both wait on orphaned processes and there won't be any zombies.</p>
<h3 id="what-if-gitea-is-the-only-running-process">What if Gitea is the only running process?<a class="zola-anchor" href="#what-if-gitea-is-the-only-running-process" aria-label="Anchor link for: what-if-gitea-is-the-only-running-process"
><span class="anchor-icon">#</span></a
>
</h3>
<p>But when Gitea runs from the <a href="https://github.com/go-gitea/gitea/blob/6171ea7d318c0ca8714bc6efd6a97ea4b495eb6d/Dockerfile.rootless">rootless docker image</a>, Gitea is the only process running in the container. Orphaned processes will have Gitea as a parent but will not wait on them and they will stay in a zombie state forever. To reproduce this problem in a minimal way:</p>
<pre style="background-color:#2b303b;color:#c0c5ce;"><code><span>$ docker run --name gitea -p 8080:3000 -e GITEA__security__INSTALL_LOCK=true -d gitea/gitea:1.16.8-rootless
</span><span>$ docker exec --user 1000 gitea gitea admin user create --admin --username root --password admin1234 --email root@example.com
</span></code></pre>
<p>The <code>git</code> command can then be replaced with a script that waits forever:</p>
<pre style="background-color:#2b303b;color:#c0c5ce;"><code><span>$ ( echo -e &#39;#!/bin/bash\nsleep infinity&#39; ) | docker exec -i --user root gitea tee /usr/bin/git
</span><span>$ docker exec --user root gitea chmod +x /usr/bin/git
</span></code></pre>
<p>Trying to create a repository from the web interface will create the conditions for a zombie to show:</p>
<pre style="background-color:#2b303b;color:#c0c5ce;"><code><span>$ docker exec gitea ps -o ppid,pid,comm,args
</span><span>PPID PID COMMAND COMMAND
</span><span> 0 1 gitea /usr/local/bin/gitea -c /etc/gitea/app.ini web
</span><span> 1 94 sleep [sleep]
</span><span> 1 99 sleep [sleep]
</span><span> 1 111 sleep [sleep]
</span><span> 1 164 git {git} /bin/bash /usr/bin/git -c credential.helper= -c protocol.version=2 -c uploadpack.allowfilter=true -c uploadpack.allowAnySHA1InWant=true init --bare
</span><span> 164 165 sleep sleep infinity
</span></code></pre>
<p>When the <code>git</code> process is killed by Gitea, the <code>sleep</code> child will be orphaned:</p>
<pre style="background-color:#2b303b;color:#c0c5ce;"><code><span>$ docker exec gitea ps -o ppid,pid,comm,args
</span><span>PPID PID COMMAND COMMAND
</span><span> 0 1 gitea /usr/local/bin/gitea -c /etc/gitea/app.ini web
</span><span> 1 94 sleep [sleep]
</span><span> 1 99 sleep [sleep]
</span><span> 1 111 sleep [sleep]
</span><span> 1 165 sleep sleep infinity
</span></code></pre>
<p>Killing it will turn it into a zombie:</p>
<pre style="background-color:#2b303b;color:#c0c5ce;"><code><span>$ docker exec gitea kill 165
</span><span>$ docker exec gitea ps -o ppid,pid,comm,args
</span><span>PPID PID COMMAND COMMAND
</span><span> 0 1 gitea /usr/local/bin/gitea -c /etc/gitea/app.ini web
</span><span> 1 94 sleep [sleep]
</span><span> 1 99 sleep [sleep]
</span><span> 1 111 sleep [sleep]
</span><span> 1 165 sleep [sleep]
</span></code></pre>
<h3 id="killing-a-child-process-and-all-its-children">Killing a child process and all its children<a class="zola-anchor" href="#killing-a-child-process-and-all-its-children" aria-label="Anchor link for: killing-a-child-process-and-all-its-children"
><span class="anchor-icon">#</span></a
>
</h3>
<p>There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are <a href="https://en.wikipedia.org/wiki/Process_group">process group leaders</a>. In a nutshell it means that when the child is killed all its children and grand children are also killed.</p>
</div>
<br>
<br>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

2
browserconfig.xml Normal file
View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>

309
coc/index.html Normal file
View File

@ -0,0 +1,309 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Code of Conduct | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Code of Conduct" />
<meta property="og:title" content="Code of Conduct | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="Code of Conduct" />
<meta
property="og:site_name"
content="Code of Conduct | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">Code of Conduct</h1>
<div class="page__group-content">
<h3 id="the-gna-collective-strives-to">The Gna! collective strives to:<a class="zola-anchor" href="#the-gna-collective-strives-to" aria-label="Anchor link for: the-gna-collective-strives-to"
><span class="anchor-icon">#</span></a
>
</h3>
<ul>
<li><strong>Be friendly, patient and welcoming.</strong> We strive to be a collective that welcomes and supports people of all backgrounds and identities. This includes, but is not limited to, members of any race, ethnicity, culture, national origin, colour, immigration status, social and economic class, educational level, sex, sexual orientation, gender identity and expression, age, size, family status, political belief, religion and mental and physical ability.</li>
<li><strong>Be considerate.</strong> Our work will be used by other people, and we in turn will depend on the work of others. Any decision we take will affect users and colleagues, and we should take those consequences into account when making decisions. Remember that we're a world-wide community and we have a global base of users and of contributors. Even if it's not obvious at the time, our contributions to projects managed by the Gna! collective will impact the work of others.</li>
<li><strong>Be respectful.</strong> Not all of us will agree all the time, but disagreement is no excuse for poor behavior and poor manners. We might all experience some frustration now and then, but we cannot allow that frustration to turn into a personal attack. Its important to remember that a collective where people feel uncomfortable or threatened is not a productive one. Members of the collective should be respectful when dealing with other contributors as well as with people outside of the collective and with users of the projects managed by Gna!.</li>
<li><strong>Collaborate openly.</strong> Collaboration is central to projects managed by Gna! and to the larger free software community. This collaboration involves individuals working within teams, cross-project collaboration within Hostea and working with other projects outside of Hostea. This collaboration reduces redundancy, and improves the quality of our work. Internally and externally, we should always be open to collaboration. Wherever possible, we should work closely with upstream and downstream projects and others in the free software community to coordinate our technical, advocacy, documentation and other work. Our work must be done transparently and we should involve as many interested parties as early as possible. If we decide to take a different approach than others, we will let them know early, document our work and inform others regularly of our progress. We do not create private forms of communication that take away transparency or exclude other contributors and collaborators.</li>
<li><strong>When we disagree, try to understand why.</strong> Disagreements, both social and technical, happen all the time and Gna! is no exception. It is important that we resolve disagreements and differing views constructively. Remember that were different. The strength of Hostea comes from people with a wide range of backgrounds. Different people have different perspectives on issues. Being unable to understand why someone holds a viewpoint doesnt mean that theyre wrong.</li>
<li><strong>Focus on helping to resolve issues and learning from mistakes.</strong> It is important that we resolve disagreements and differing views constructively and with the help of the collective. When our goals differ dramatically, we encourage the creation of alternative implementations, so that the collective can test new ideas and contribute to the discussion.</li>
<li><strong>When we are unsure, we ask for help.</strong> Nobody knows everything, and nobody is expected to be perfect in Gna!. Asking questions avoids many problems down the road, and so questions are encouraged. Those who are asked questions should be responsive and helpful. However, when asking a question, care must be taken to do so in an appropriate forum.</li>
</ul>
<h3 id="we-take-the-following-very-seriously-and-any-violations-may-impact-your-ability-to-participate-in-gna">We take the following very seriously, and any violations may impact your ability to participate in Gna!<a class="zola-anchor" href="#we-take-the-following-very-seriously-and-any-violations-may-impact-your-ability-to-participate-in-gna" aria-label="Anchor link for: we-take-the-following-very-seriously-and-any-violations-may-impact-your-ability-to-participate-in-gna"
><span class="anchor-icon">#</span></a
>
</h3>
<ul>
<li><strong>Be careful with your words and actions.</strong> Do not insult or put down other participants. Harassment and other exclusionary behavior is not acceptable and should be reported. This includes but is not limited to:
<ul>
<li>Violent threats or language directed against another person.</li>
<li>Discriminatory jokes and language.</li>
<li>Posting sexually suggestive, explicit or violent material.</li>
<li>Posting (or threatening to post) other people's personally identifying information (&quot;doxing&quot;).</li>
<li>Personal insults, especially those using racist or sexist terms.</li>
<li>Unwelcome sexual attention.</li>
<li>Advocating for, or encouraging, any of the above behavior.</li>
<li>Repeated harassment of others. In general, if someone asks you to stop, then stop.</li>
</ul>
</li>
<li><strong>Respect the decision process.</strong> Members of Gna! should not attempt to manipulate decisons based on consensus or election results. Open debate is welcome, but vote trading, ballot stuffing and other forms of abuse are not acceptable.</li>
</ul>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

1
defaults.css Normal file
View File

@ -0,0 +1 @@
*{padding:0;margin:0;font-family:"Segoe UI", Tahoma, Geneva, Verdana, sans-serif;font-family:"Segoe UI", Tahoma, Geneva, Verdana, sans-serif}a{text-decoration:none}a:hover,button:hover{cursor:pointer}a,a:visited{color:#0056b3}.base{min-height:100vh;display:flex;flex-direction:column;width:100%}.main__content-container{display:flex;flex-direction:column;min-height:100%;justify-content:space-between;flex:2}p,h1,h2,h3,h4,li,ol,ul{color:#333}main{width:100%}blockquote{border-left:0.3em solid rgba(55,55,55,0.4);margin-bottom:16px;padding:0 1em;color:#707070}blockquote p,blockquote h1,blockquote h2,blockquote h3,blockquote h4,blockquote li,blockquote ol,blockquote ul{color:inherit}

10
elasticlunr.min.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
favicon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

BIN
favicon-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

BIN
favicon-96x96.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

1
footer/main.css Normal file
View File

@ -0,0 +1 @@
footer{display:block;color:#333;font-size:0.7rem;padding:0;margin:0}.footer__container{width:100%;padding:0;justify-content:space-between;margin:auto;display:flex;flex-direction:row;overflow:hidden}.footer__column{list-style:none;display:flex;margin:auto 50px;align-items:center;flex:2.5}.footer__column--center{list-style:none;display:flex;margin:auto 50px;align-items:center;flex:2.5;margin:auto;flex-direction:column;align-items:center;flex:2}.footer__column:last-child{justify-content:flex-end}.footer__column:last-child a{margin:10px}.footer__link-container{margin:5px}.footer__link{text-decoration:none}.license__link{display:inline}.license__link:hover{color:#0056b3;text-decoration:underline}.footer__column-divider,.footer__column-divider--mobile-visible,.footer__column-divider--mobile-only{font-weight:500;opacity:0.7;margin:0 5px}.footer__column-divider--mobile-only{display:none}.footer__icon{margin:auto 5px;height:20px}

1
footer/mobile.css Normal file
View File

@ -0,0 +1 @@
footer{font-size:.44rem}.footer__container{display:grid;grid-template-rows:repeat(3, 100%);align-items:center;margin:auto;justify-content:center}.footer__link{font-size:0.5rem}.license__conatiner,.license__link{text-align:center}.footer__column:first-child{grid-row-start:3;flex-direction:row}.footer__column:last-child{grid-row-start:2}.footer__column{margin:0 auto;display:flex;padding:0;align-self:flex-end}.footer__column--center{margin:0 auto;display:flex;padding:0;align-self:flex-start}.footer__column-divider--mobile-only{margin:0 3px;font-size:9.9px}

389
gitea-clinic/index.html Normal file
View File

@ -0,0 +1,389 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Gitea Clinic | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Get help with your sick Gitea instance" />
<meta property="og:title" content="Gitea Clinic | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="Get help with your sick Gitea instance" />
<meta
property="og:site_name"
content="Gitea Clinic | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">Gitea Clinic</h1>
<div class="page__group-content">
<h2 id="how-does-it-work">How does it work?<a class="zola-anchor" href="#how-does-it-work" aria-label="Anchor link for: how-does-it-work"
><span class="anchor-icon">#</span></a
>
</h2>
<p>You can get help from the community on the <a href="https://forum.gna.org/c/clinic/5">Gna! forum</a> or the <a href="https://discourse.gitea.io/">Gitea forum</a>: it is the best way to resolve simple issues. If you are in a hurry or the problem is serious you could:</p>
<ol>
<li>Get in touch with the <a href="https://gna.org/gitea-clinic/#gna-doctors">doctor of your choice</a></li>
<li>Upload your sick Gitea</li>
<li>Once it is repaired download it back home (or decide it deserves a permanent residence at <a href="https://gna.org">Gna!</a>)</li>
<li>Pay the doctor</li>
</ol>
<h2 id="how-much-does-it-cost">How much does it cost?<a class="zola-anchor" href="#how-much-does-it-cost" aria-label="Anchor link for: how-much-does-it-cost"
><span class="anchor-icon">#</span></a
>
</h2>
<p>All Gna! doctors charge a flat hourly rate for consultations held in public (sensitive information is never revealed, even if the consultation is held in public). Private consultations fees depend on the Hostea doctor.</p>
<h2 id="gna-doctors">Gna! Doctors<a class="zola-anchor" href="#gna-doctors" aria-label="Anchor link for: gna-doctors"
><span class="anchor-icon">#</span></a
>
</h2>
<div class="clinic__doctors-container">
<div class="doctor__container">
<img src="https://gna.org/people/realaravinth.jpg?h=f63faac10c0b6539c6bf16b59573e5eab39bc7a81fd15d1195f06294f24991c6" alt="" class="doctor__profile_photo">
<h3 class="doctor__name">Aravinth Manivannan</h3>
<div class="docutr__rating-container">
<p class="doctor_rating-stars">★★★★☆</p>
<!--<p class="doctor_rating-value">5</p> -->
</div>
<a href='https:&#x2F;&#x2F;gitea.gna.org&#x2F;realaravinth&#x2F;hostea&#x2F;issues' class="doctor__contact">Get in touch</a>
</div>
<div class="doctor__container">
<img src="https://gna.org/people/easter-eggs.png?h=f82746c0d96a2eaff6a6ada551d8779bdc7edba190b71411cf178ca6f853bf27" alt="" class="doctor__profile_photo">
<h3 class="doctor__name">Easter-eggs</h3>
<div class="docutr__rating-container">
<p class="doctor_rating-stars">★★★★★</p>
<!--<p class="doctor_rating-value">5</p> -->
</div>
<a href='https:&#x2F;&#x2F;gitea.gna.org&#x2F;easter-eggs&#x2F;clinic&#x2F;issues' class="doctor__contact">Get in touch</a>
</div>
<div class="doctor__container">
<img src="https://gna.org/people/dachary.png?h=5b8c493d6f287eb071e6c17109496c7bb9ce357330bf8ce49e7d4021b073ae15" alt="" class="doctor__profile_photo">
<h3 class="doctor__name">Loïc Dachary</h3>
<div class="docutr__rating-container">
<p class="doctor_rating-stars">★★★★★</p>
<!--<p class="doctor_rating-value">5</p> -->
</div>
<a href='https:&#x2F;&#x2F;gitea.gna.org&#x2F;dachary&#x2F;hostea&#x2F;issues' class="doctor__contact">Get in touch</a>
</div>
</div>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

1
gitea-clinic/main.css Normal file
View File

@ -0,0 +1 @@
.clinic__doctors-container{display:flex}.doctor__profile_photo{width:100px;height:100px;border-radius:100px}.doctor__container{background-color:#eee;margin:10px 30px;padding:10px;height:250px;border-radius:5px;width:30%;display:flex;flex-direction:column;align-items:center;justify-content:space-around}.doctor__name{text-align:center;margin:0 auto !important}.doctor_rating-stars,.doctor_rating-value{margin:0 auto !important;text-align:center}

1
gitea-clinic/mobile.css Normal file
View File

@ -0,0 +1 @@
.clinic__doctors-container{display:flex;flex-direction:column;align-items:center}.doctor__container{width:80%}

BIN
gna-logo-rectangle-48px.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
gna-logo-rectangle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
gna-logo-square.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

1
home/card-main.css Normal file
View File

@ -0,0 +1 @@
.home-card__group{display:flex;margin:0px auto;width:80%}.home-card__conatiner{background-color:#eee;margin:10px 30px;padding:10px;border-radius:5px;width:30%}.home-card__icon{width:100px;height:100px;margin:auto;border-radius:100px}.home-card__title{margin:auto;text-align:center}.home-card__text{font-size:0.7rem;text-align:center}

1
home/card-mobile.css Normal file
View File

@ -0,0 +1 @@
.home-card__group{flex-direction:column}.home-card__conatiner{margin:10px auto;width:80%}.home-card__group{margin:auto}

1
home/main.css Normal file
View File

@ -0,0 +1 @@
.home-card__group{display:flex;margin:0px auto;width:80%}.home-card__conatiner{background-color:#eee;margin:10px 30px;padding:10px;border-radius:5px;width:30%}.home-card__icon{width:100px;height:100px;margin:auto;border-radius:100px}.home-card__title{margin:auto;text-align:center}.home-card__text{font-size:0.7rem;text-align:center}.service__features{margin:20px 0px;height:100vh;min-height:500px;max-height:800px;display:flex;flex-direction:column;justify-content:space-between}.service__features--split{margin:20px 0px;height:100vh;min-height:500px;max-height:800px;display:flex;flex-direction:column;justify-content:space-between;max-height:1300px}.service-card__group{margin:0px auto}.service-card__conatiner{margin:10px 0px;border-radius:5px;display:flex;width:80%;margin:0 auto}.line-border{width:80%;display:block;border-bottom:1px solid #cacaca;margin:auto}.service-card__icon{width:100px;height:100px;margin:auto;flex:2;border-radius:100px}.service-card__service-name{color:green;font-weight:600}.service-card__title{margin:auto}.service-card__text{margin-bottom:30px !important}.service-card__text-container{flex:2;margin:auto !important}.service-card__aciton-btn{margin:auto 0;padding:10px;display:block;font-weight:400;border:none;background-color:#000}.service__features{display:flex;flex-direction:column;align-items:center}.service__features-title{margin:10px auto !important}.service-card__icon-container{width:30%;margin:auto}.service-card__aciton-btn--inactive{margin:auto;padding:10px;display:block;font-weight:400;border:none;background-color:lightgrey;color:#000}.home__vision-container{display:flex;align-items:center;height:200px;justify-content:space-between}.home__vision-text-line{font-size:0.8rem;font-style:italic}.home__vision-intro-title{text-align:center}.home__vision-intro-tagline{font-size:0.9rem;margin:auto;display:block;text-align:center}.home__vision-aciton-btn{display:block;font-weight:400;margin:20px auto;padding:15px;border:none;background-color:black;color:#fff}.home__vision-aciton-btn:hover{background-color:lightgray}.home__vision-action-link{color:white !important}.page__container--split{width:50%;margin:auto;padding:50px 0;width:80%;height:100vh;min-height:500px;max-height:800px;max-height:1300px;height:90vh !important;display:flex;flex-direction:column;justify-content:space-around}.index-banner__container{width:100%;display:flex;flex-direction:column;font-family:"Segoe UI", Tahoma, Geneva, Verdana, sans-serif;height:100vh;min-height:500px;max-height:800px;flex-grow:1}.index-banner{margin:auto;width:80%;display:flex;justify-content:space-between}.index-banner__logo-container{margin:center;align-items:center;display:flex;width:500px}.index-banner__title{margin:auto;font-style:none}.index-banner__tagline{margin:auto}.index-banner__title-container{display:flex}.index-banner__logo{margin:auto;border-radius:20px}.index-banner__main-action-btn{display:block;display:block;font-weight:400;padding:15px;border:none;margin:20px 0;background-color:green}.index-banner__main-action-link{color:white !important}.index-banner__features-list{margin:20px}.index-banner__features{margin:10px 0}.home__features{display:flex;flex-direction:column;align-items:center}.home__features-title{margin:auto}.index__group-content .page__container{width:80%;height:100vh;min-height:500px;max-height:800px;height:90vh !important;display:flex;flex-direction:column;justify-content:space-around}.action-call__container{background:#1f5818;width:100%;padding:60px 0}.action-call__margin-container{display:flex;width:80%;margin:auto;align-items:center;justify-content:space-around}.action-call__prompt{color:white;font-weight:400;font-size:1.7rem}.action-call__button{display:block;display:block;font-weight:400;padding:15px;border:none;margin:20px 0;background-color:#fff}.action-call__button:hover{background-color:lightgray}.action-call_link{color:#000 !important}.action-call_link:hover{text-decoration:none !important}

1
home/mobile.css Normal file
View File

@ -0,0 +1 @@
.home-card__group{flex-direction:column}.home-card__conatiner{margin:10px auto;width:80%}.home-card__group{margin:auto}.home__vision-container{flex-direction:column;height:auto !important;min-height:auto !important;max-height:auto !important}.service-card__conatiner{width:85%;flex-direction:column-reverse;margin:50px auto}.service__features--split,.service__features{height:auto !important;min-height:auto !important;max-height:none !important;flex-direction:column}.line-border{width:95%}.home__container{max-height:100vh;height:100vh}.home__name{font-size:2rem}.index-banner{margin:auto}.index-banner__title{font-size:2.5rem;margin:auto}.index__group-content .page__container{width:90%}.index-banner__logo-container{display:none}.action-call__margin-container{flex-direction:column;width:85%}.action-call__prompt{text-align:center}

View File

@ -0,0 +1 @@
.service__features{margin:20px 0px;height:100vh;min-height:500px;max-height:800px;display:flex;flex-direction:column;justify-content:space-between}.service__features--split{margin:20px 0px;height:100vh;min-height:500px;max-height:800px;display:flex;flex-direction:column;justify-content:space-between;max-height:1300px}.service-card__group{margin:0px auto}.service-card__conatiner{margin:10px 0px;border-radius:5px;display:flex;width:80%;margin:0 auto}.line-border{width:80%;display:block;border-bottom:1px solid #cacaca;margin:auto}.service-card__icon{width:100px;height:100px;margin:auto;flex:2;border-radius:100px}.service-card__service-name{color:green;font-weight:600}.service-card__title{margin:auto}.service-card__text{margin-bottom:30px !important}.service-card__text-container{flex:2;margin:auto !important}.service-card__aciton-btn{margin:auto 0;padding:10px;display:block;font-weight:400;border:none;background-color:#000}.service__features{display:flex;flex-direction:column;align-items:center}.service__features-title{margin:10px auto !important}.service-card__icon-container{width:30%;margin:auto}.service-card__aciton-btn--inactive{margin:auto;padding:10px;display:block;font-weight:400;border:none;background-color:lightgrey;color:#000}

View File

@ -0,0 +1 @@
.service-card__conatiner{width:85%;flex-direction:column-reverse;margin:50px auto}.service__features--split,.service__features{height:auto !important;min-height:auto !important;max-height:none !important;flex-direction:column}.line-border{width:95%}

1
home/vision-mobile.css Normal file
View File

@ -0,0 +1 @@
.home__vision-container{flex-direction:column;height:auto !important;min-height:auto !important;max-height:auto !important}

1
home/vision.css Normal file
View File

@ -0,0 +1 @@
.home__vision-container{display:flex;align-items:center;height:200px;justify-content:space-between}.home__vision-text-line{font-size:0.8rem;font-style:italic}.home__vision-intro-title{text-align:center}.home__vision-intro-tagline{font-size:0.9rem;margin:auto;display:block;text-align:center}.home__vision-aciton-btn{display:block;font-weight:400;margin:20px auto;padding:15px;border:none;background-color:black;color:#fff}.home__vision-aciton-btn:hover{background-color:lightgray}.home__vision-action-link{color:white !important}.page__container--split{width:50%;margin:auto;padding:50px 0;width:80%;height:100vh;min-height:500px;max-height:800px;max-height:1300px;height:90vh !important;display:flex;flex-direction:column;justify-content:space-around}

1
icons/email.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>

After

Width:  |  Height:  |  Size: 326 B

1
icons/file-text.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-file-text"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline></svg>

After

Width:  |  Height:  |  Size: 473 B

1
icons/github.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>

After

Width:  |  Height:  |  Size: 497 B

1
icons/matrix.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><path d="M.632.55v22.9H2.28V24H0V0h2.28v.55zm7.043 7.26v1.157h.033c.309-.443.683-.784 1.117-1.024.433-.245.936-.365 1.5-.365.54 0 1.033.107 1.481.314.448.208.785.582 1.02 1.108.254-.374.6-.706 1.034-.992.434-.287.95-.43 1.546-.43.453 0 .872.056 1.26.167.388.11.716.286.993.53.276.245.489.559.646.951.152.392.23.863.23 1.417v5.728h-2.349V11.52c0-.286-.01-.559-.032-.812a1.755 1.755 0 0 0-.18-.66 1.106 1.106 0 0 0-.438-.448c-.194-.11-.457-.166-.785-.166-.332 0-.6.064-.803.189a1.38 1.38 0 0 0-.48.499 1.946 1.946 0 0 0-.231.696 5.56 5.56 0 0 0-.06.785v4.768h-2.35v-4.8c0-.254-.004-.503-.018-.752a2.074 2.074 0 0 0-.143-.688 1.052 1.052 0 0 0-.415-.503c-.194-.125-.476-.19-.854-.19-.111 0-.259.024-.439.074-.18.051-.36.143-.53.282-.171.138-.319.337-.439.595-.12.259-.18.6-.18 1.02v4.966H5.46V7.81zm15.693 15.64V.55H21.72V0H24v24h-2.28v-.55z"></path></svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

1
icons/rss.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg>

After

Width:  |  Height:  |  Size: 330 B

304
index.html Normal file
View File

@ -0,0 +1,304 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Home | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Gna!: Dedicated managed Gitea hosting, including CI&#x2F;CD
and static pages with upgrades, backups and 24&#x2F;7 monitoring" />
<meta property="og:title" content="Home | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="Gna!: Dedicated managed Gitea hosting, including CI&#x2F;CD
and static pages with upgrades, backups and 24&#x2F;7 monitoring" />
<meta
property="og:site_name"
content="Home | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="index-banner__container">
<div class="index-banner">
<div class="index-banner__content-container">
<h1 class="index-banner__title">
<a href="https://gitea.io">Gitea</a> hosting and <a href="/gitea-clinic/">service</a>.
</h1>
<p class="index-banner__tagline">A free forge ecosystem for free developers.</p>
<ul class="index-banner__features-list">
<li class="index-banner__features">Dedicated <a href="https://hosteadashboard.gna.org/register/">Gitea hosting</a> and <a href="https://woodpecker-ci.org/">Woodpecker CI</a> from 10€/month</li>
<li class="index-banner__features">Clinic to <a href="/gitea-clinic/">heal sick Gitea</a> instances</li>
<li class="index-banner__features">100% <a href="https://www.gnu.org/philosophy/free-sw.html">Free Software</a></li>
<li class="index-banner__features">Radically <a href="https://forum.gna.org/t/55">Transparent</a></li>
<li class="index-banner__features">Run by a <a href="https://forum.gna.org/t/55">horizontal collective</a></li>
<li class="index-banner__features">25% of the income <a href="https://forum.gna.org/t/decision-revenue-sharing-model/92">dedicated to sustain Free Software dependencies</a></li>
<li class="index-banner__features">Committed to <a href="https://forgefriends.org/blog/2022/06/30/2022-06-state-forge-federation/">further forge federation</a></li>
</ul>
<button class="index-banner__main-action-btn">
<a href="https://hosteadashboard.gna.org" class="index-banner__main-action-link"
>Get Started</a
>
</button>
</div>
<div class="index-banner__logo-container">
<img
class="index-banner__logo"
src="https://gna.org/gna-logo-rectangle.png?h=8cf419ebcbe49e0ef2143f982f5afe1023fee0e1647f14798f3b1d5b991ad370"
alt="Gna! logo"
/>
</div>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

308
legalese/index.html Normal file
View File

@ -0,0 +1,308 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Legalese | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="" />
<meta property="og:title" content="Legalese | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="" />
<meta
property="og:site_name"
content="Legalese | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">Legalese</h1>
<div class="page__group-content">
<h2 id="copyright">Copyright<a class="zola-anchor" href="#copyright" aria-label="Anchor link for: copyright"
><span class="anchor-icon">#</span></a
>
</h2>
<p>The copyright of the software and content used to build the infrastructure is held by the individual contributors who implemented it, as found in the <a href="https://lab.enough.community/main/infrastructure/commits/master">git history</a>.</p>
<h2 id="intellectual-property">Intellectual Property<a class="zola-anchor" href="#intellectual-property" aria-label="Anchor link for: intellectual-property"
><span class="anchor-icon">#</span></a
>
</h2>
<p><a href="https://www.gnu.org/philosophy/not-ipr.html">Did You Say “Intellectual Property”? It's a Seductive Mirage</a></p>
<h2 id="disclaimer-of-warranty">Disclaimer of Warranty<a class="zola-anchor" href="#disclaimer-of-warranty" aria-label="Anchor link for: disclaimer-of-warranty"
><span class="anchor-icon">#</span></a
>
</h2>
<p>There is no warranty for the service, to the extent permitted by applicable law. Except when otherwise stated in writing the service is provided &quot;as is&quot; without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose.</p>
<h2 id="limitation-of-liability">Limitation of Liability<a class="zola-anchor" href="#limitation-of-liability" aria-label="Anchor link for: limitation-of-liability"
><span class="anchor-icon">#</span></a
>
</h2>
<p>In no event unless required by applicable law or agreed to in writing will any member of the Gna! community, or any other party who modifies the service as permitted by Hostea, be liable to you for damages, including any general, special, incidental or consequential damages arising out of the use or inability to use the service (including but not limited to loss of data or data being rendered inaccurate or losses sustained by you or third parties or a failure of the service to operate with any other service), even if such member or other party has been advised of the possibility of such damages.</p>
<h2 id="interpretation-of-the-warranty-and-liability-disclaimers">Interpretation of the Warranty and Liability disclaimers<a class="zola-anchor" href="#interpretation-of-the-warranty-and-liability-disclaimers" aria-label="Anchor link for: interpretation-of-the-warranty-and-liability-disclaimers"
><span class="anchor-icon">#</span></a
>
</h2>
<p>If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the service.</p>
<h2 id="hosting">Hosting<a class="zola-anchor" href="#hosting" aria-label="Anchor link for: hosting"
><span class="anchor-icon">#</span></a
>
</h2>
<p>The services and this web site, as well as all sub-domains, are exclusively maintained and used by the individuals composing the Gna!. They can be reached at contact@gna.org.</p>
<p>For details, see <a href="https://enough-community.readthedocs.io/">the documentation</a>.</p>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

1
main.css Normal file

File diff suppressed because one or more lines are too long

41
manifest.json Normal file
View File

@ -0,0 +1,41 @@
{
"name": "App",
"icons": [
{
"src": "\/android-icon-36x36.png",
"sizes": "36x36",
"type": "image\/png",
"density": "0.75"
},
{
"src": "\/android-icon-48x48.png",
"sizes": "48x48",
"type": "image\/png",
"density": "1.0"
},
{
"src": "\/android-icon-72x72.png",
"sizes": "72x72",
"type": "image\/png",
"density": "1.5"
},
{
"src": "\/android-icon-96x96.png",
"sizes": "96x96",
"type": "image\/png",
"density": "2.0"
},
{
"src": "\/android-icon-144x144.png",
"sizes": "144x144",
"type": "image\/png",
"density": "3.0"
},
{
"src": "\/android-icon-192x192.png",
"sizes": "192x192",
"type": "image\/png",
"density": "4.0"
}
]
}

1
mobile.css Normal file
View File

@ -0,0 +1 @@
.home-card__group{flex-direction:column}.home-card__conatiner{margin:10px auto;width:80%}.home-card__group{margin:auto}.home__vision-container{flex-direction:column;height:auto !important;min-height:auto !important;max-height:auto !important}.service-card__conatiner{width:85%;flex-direction:column-reverse;margin:50px auto}.service__features--split,.service__features{height:auto !important;min-height:auto !important;max-height:none !important;flex-direction:column}.line-border{width:95%}.home__container{max-height:100vh;height:100vh}.home__name{font-size:2rem}.index-banner{margin:auto}.index-banner__title{font-size:2.5rem;margin:auto}.index__group-content .page__container{width:90%}.index-banner__logo-container{display:none}.action-call__margin-container{flex-direction:column;width:85%}.action-call__prompt{text-align:center}.nav__container{flex-direction:column}.nav__header{display:flex;flex-direction:row;min-width:100%;justify-content:space-between}.nav__link-group,.nav__link-group--small{position:sticky;flex-direction:column;margin:auto;align-items:center;width:100%}.nav__link-container--action{background-color:#fff}.nav__link-container--action .nav__link{color:#000 !important}.nav__link-container{border-bottom:1px dashed rgba(55,55,55,0.4);width:70%}.nav__link-container--action{border-bottom:1px dashed rgba(55,55,55,0.4);width:70%}.nav__link-container:last-child{border-bottom:none}.nav__link{margin:auto}.nav__hamburger-menu{display:inline-block;width:50px;height:50px}.nav__spacer{display:none}.nav__link-group{margin-right:auto}.nav__toggle:not(:checked)~.nav__link-group,.nav__link-group--small{max-height:0;transition:max-height 0.4s ease-out;overflow:hidden}.nav__toggle:checked~.nav__link-group,.nav__toggle:checked~.nav__link-group--small{max-height:500px;transition:max-height 0.4s ease-out}.nav__toggle:checked~.nav__header .nav__hamburger-inner::after{width:24px;bottom:1.3px;transform:rotate(-90deg);transition:bottom 0.1s ease-out,transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s,width 0.1s ease-out}.nav__toggle:checked~.nav__header .nav__hamburger-inner::before{top:0;opacity:0;transition:top 0.1s ease-out, opacity 0.1s ease-out 0.12s}.nav__toggle:checked~.nav__header .nav__hamburger-inner{transform:rotate(225deg);transition-delay:0.12s;transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1)}.nav__hamburger-inner::after{bottom:-7px;transition:bottom 0.1s ease-in 0.25s,transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19),width 0.1s ease-in 0.25s}.nav__hamburger-inner::after,.nav__hamburger-inner::before{content:"";display:block}.nav__hamburger-inner::before{top:-7px;transition:top 0.1s ease-in 0.25s, opacity 0.1s ease-in}.nav__hamburger-inner{top:50%;margin:auto;transition-duration:0.22s;transition-timing-function:cubic-bezier(0.55, 0.055, 0.675, 0.19)}.nav__hamburger-inner,.nav__hamburger-inner::after,.nav__hamburger-inner::before{width:24px;height:1.3px;position:relative;background:#000}.nav__hamburger-menu,.nav__hamburger-inner{display:block}footer{font-size:.44rem}.footer__container{display:grid;grid-template-rows:repeat(3, 100%);align-items:center;margin:auto;justify-content:center}.footer__link{font-size:0.5rem}.license__conatiner,.license__link{text-align:center}.footer__column:first-child{grid-row-start:3;flex-direction:row}.footer__column:last-child{grid-row-start:2}.footer__column{margin:0 auto;display:flex;padding:0;align-self:flex-end}.footer__column--center{margin:0 auto;display:flex;padding:0;align-self:flex-start}.footer__column-divider--mobile-only{margin:0 3px;font-size:9.9px}.page__container{width:85%}.page__group-content table{overflow-x:scroll}.page__group-content table td{padding:5px}.page__group-content pre{white-space:pre-wrap;word-wrap:break-word}.page__group-content li{margin-left:25px}.page__group-content p,.page__group-content h1,.page__group-content h2,.page__group-content h3{margin:20px 0px}.page__banner{height:auto}.page__group-title{margin:auto;margin-top:0px;margin-bottom:10px}.page__container--split{width:85%;height:auto !important;min-height:auto !important;max-height:none !important}.blog__container{max-width:95%}.blog__content table{overflow-x:scroll}.blog__content table td{padding:5px}.blog__content pre{white-space:pre-wrap;word-wrap:break-word}.blog__content li{margin-left:25px}.blog__content p,.blog__content h1,.blog__content h2,.blog__content h3{margin:20px 0px}.tag__title-container{flex-direction:column}.tag__rss-link--icon{margin:auto 0px}.clinic__doctors-container{display:flex;flex-direction:column;align-items:center}.doctor__container{width:80%}header{height:auto}

BIN
ms-icon-144x144.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
ms-icon-150x150.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
ms-icon-310x310.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
ms-icon-70x70.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

1
nav/main.css Normal file
View File

@ -0,0 +1 @@
header{z-index:5;position:sticky;top:0;background-color:#fff}.nav__container{display:flex;flex-direction:row;box-sizing:border-box;width:100%;padding-top:5px;border-bottom:1px solid #d3d3d3}.nav__home-btn{font-weight:bold;margin:auto;margin-left:-10px}.nav__hamburger-menu{display:none}.nav__spacer--small{width:100px;margin:auto}.nav__spacer{flex:4;margin:auto}.nav__logo-container{display:inline-flex;text-decoration:none}.nav__logo-container:hover{color:#0056b3;text-decoration:underline}.nav__toggle{display:none}.nav__logo{display:inline-flex;margin:auto;padding:5px;width:40px}.nav__link-group{flex:1.5;list-style:none;display:flex;flex-direction:row;align-items:center;align-self:center;margin:auto;text-align:center}.nav__link-group--small{flex:1.5;list-style:none;display:flex;flex-direction:row;align-items:center;align-self:center;margin:auto;text-align:center;flex:0.5;margin-right:10px}.nav__link-container{display:flex;padding:10px;height:100%;margin:auto}.nav__link-container--action{display:flex;padding:10px;height:100%;margin:auto;background-color:green;padding:15px}.nav__link-container--action .nav__link{color:white !important}.nav__link{text-decoration:none;color:black !important;font-weight:600;font-size:14px}.nav__link:hover{color:#0056b3;text-decoration:underline}

1
nav/mobile.css Normal file
View File

@ -0,0 +1 @@
.nav__container{flex-direction:column}.nav__header{display:flex;flex-direction:row;min-width:100%;justify-content:space-between}.nav__link-group,.nav__link-group--small{position:sticky;flex-direction:column;margin:auto;align-items:center;width:100%}.nav__link-container--action{background-color:#fff}.nav__link-container--action .nav__link{color:#000 !important}.nav__link-container{border-bottom:1px dashed rgba(55,55,55,0.4);width:70%}.nav__link-container--action{border-bottom:1px dashed rgba(55,55,55,0.4);width:70%}.nav__link-container:last-child{border-bottom:none}.nav__link{margin:auto}.nav__hamburger-menu{display:inline-block;width:50px;height:50px}.nav__spacer{display:none}.nav__link-group{margin-right:auto}.nav__toggle:not(:checked)~.nav__link-group,.nav__link-group--small{max-height:0;transition:max-height 0.4s ease-out;overflow:hidden}.nav__toggle:checked~.nav__link-group,.nav__toggle:checked~.nav__link-group--small{max-height:500px;transition:max-height 0.4s ease-out}.nav__toggle:checked~.nav__header .nav__hamburger-inner::after{width:24px;bottom:1.3px;transform:rotate(-90deg);transition:bottom 0.1s ease-out,transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s,width 0.1s ease-out}.nav__toggle:checked~.nav__header .nav__hamburger-inner::before{top:0;opacity:0;transition:top 0.1s ease-out, opacity 0.1s ease-out 0.12s}.nav__toggle:checked~.nav__header .nav__hamburger-inner{transform:rotate(225deg);transition-delay:0.12s;transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1)}.nav__hamburger-inner::after{bottom:-7px;transition:bottom 0.1s ease-in 0.25s,transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19),width 0.1s ease-in 0.25s}.nav__hamburger-inner::after,.nav__hamburger-inner::before{content:"";display:block}.nav__hamburger-inner::before{top:-7px;transition:top 0.1s ease-in 0.25s, opacity 0.1s ease-in}.nav__hamburger-inner{top:50%;margin:auto;transition-duration:0.22s;transition-timing-function:cubic-bezier(0.55, 0.055, 0.675, 0.19)}.nav__hamburger-inner,.nav__hamburger-inner::after,.nav__hamburger-inner::before{width:24px;height:1.3px;position:relative;background:#000}.nav__hamburger-menu,.nav__hamburger-inner{display:block}

1
page/main.css Normal file
View File

@ -0,0 +1 @@
.page__container{width:50%;margin:auto;padding:50px 0}.page__group{display:flex;flex-direction:column}.page__group-title{margin:20px auto}.page__group-content{display:flex;flex-direction:column}.page__group-content img{max-width:100%;display:block}.page__group-content video{max-width:100%;display:block}.page__group-content li{margin-left:40px}.page__group-content a:hover{color:#0056b3;text-decoration:underline}.page__group-content code{word-wrap:break-word;overflow-wrap:break-word}.page__group-content table{border-collapse:collapse;caption-side:bottom;border-color:#e9ecef;text-align:center;width:100%}.page__group-content table>thead{vertical-align:bottom;border-bottom:1px solid #cdc8ca;text-align:center}.page__group-content table th{text-align:center}.page__group-content table td{margin:auto;padding:10px;border-bottom:1px solid #edddd1}.page__group-content p,.page__group-content h2,.page__group-content h3{margin:10px 0}.page__group-content pre{padding:10px 10px 10px 20px;border-radius:8px;font-size:0.95rem;overflow:auto}.page__group-content pre{font-family:monospace, monospace;font-display:auto;font-size:1em}.page__preview-banner{width:10%;height:min(250px, 50vh);margin:20px auto}.page__banner{width:100%;height:max(450px, 50vh);margin:20px auto}

1
page/mobile.css Normal file
View File

@ -0,0 +1 @@
.page__container{width:85%}.page__group-content table{overflow-x:scroll}.page__group-content table td{padding:5px}.page__group-content pre{white-space:pre-wrap;word-wrap:break-word}.page__group-content li{margin-left:25px}.page__group-content p,.page__group-content h1,.page__group-content h2,.page__group-content h3{margin:20px 0px}.page__banner{height:auto}.page__group-title{margin:auto;margin-top:0px;margin-bottom:10px}.page__container--split{width:85%;height:auto !important;min-height:auto !important;max-height:none !important}

BIN
people/dachary.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
people/easter-eggs.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
people/realaravinth.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

342
privacy-policy/index.html Normal file
View File

@ -0,0 +1,342 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Privacy | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="" />
<meta property="og:title" content="Privacy | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="" />
<meta
property="og:site_name"
content="Privacy | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">Privacy</h1>
<div class="page__group-content">
<h2 id="who-is-we">Who is we?<a class="zola-anchor" href="#who-is-we" aria-label="Anchor link for: who-is-we"
><span class="anchor-icon">#</span></a
>
</h2>
<p>In the context of a horizontal community, the word <strong>we</strong> has a different meaning than within not-for-profit organizations or companies. <strong>We</strong> are the individuals who have access to the resources that would enable them to modify how it is implemented. For instance, someone with access to the configuration of the web server can change the log retention policy.</p>
<h2 id="what-information-do-we-collect">What information do we collect?<a class="zola-anchor" href="#what-information-do-we-collect" aria-label="Anchor link for: what-information-do-we-collect"
><span class="anchor-icon">#</span></a
>
</h2>
<p>We collect information from you when you register on our site and gather data when you participate in the community by reading, writing, and evaluating the content shared here.</p>
<p>When registering on Gna! sites, you may be asked to enter your name and e-mail address. You may, however, visit our sites without registering. Your e-mail address will be verified by an email containing a unique link. If that link is visited, we know that you control the e-mail address.</p>
<p>When registered and participating, we record the IP address that the post originated from. We also may retain server logs which include the IP address of every request to our server.</p>
<h2 id="what-do-we-use-your-information-for">What do we use your information for?<a class="zola-anchor" href="#what-do-we-use-your-information-for" aria-label="Anchor link for: what-do-we-use-your-information-for"
><span class="anchor-icon">#</span></a
>
</h2>
<p>Any of the information we collect from you may be used in one of the following ways:</p>
<ul>
<li>To personalize your experience — your information helps us to better respond to your individual needs.</li>
<li>To send periodic emails — The email address you provide may be used to send you information, notifications that you request about changes to topics or in response to your user name, respond to inquiries, and/or other requests or questions.</li>
</ul>
<h2 id="how-do-we-protect-your-information">How do we protect your information?<a class="zola-anchor" href="#how-do-we-protect-your-information" aria-label="Anchor link for: how-do-we-protect-your-information"
><span class="anchor-icon">#</span></a
>
</h2>
<p>We implement a variety of security measures to maintain the safety of your personal information when you enter, submit, or access your personal information.</p>
<h2 id="what-is-your-data-retention-policy">What is your data retention policy?<a class="zola-anchor" href="#what-is-your-data-retention-policy" aria-label="Anchor link for: what-is-your-data-retention-policy"
><span class="anchor-icon">#</span></a
>
</h2>
<p>We will make a good faith effort to:</p>
<ul>
<li>Retain server logs containing the IP address of all requests to this server no more than 15 days.</li>
<li>Retain the IP addresses associated with registered users and their posts no more than 15 days.</li>
</ul>
<h2 id="what-about-my-data">What about my data?<a class="zola-anchor" href="#what-about-my-data" aria-label="Anchor link for: what-about-my-data"
><span class="anchor-icon">#</span></a
>
</h2>
<p>Users of Hotea's services can ask contact@gna.org to:</p>
<ul>
<li>Delete their account on a service when it is not a feature available to the user (for instance Nextcloud)</li>
<li>Retrieve data associated with their account on a service that does not already provide full access</li>
</ul>
<h2 id="do-we-use-cookies">Do we use cookies?<a class="zola-anchor" href="#do-we-use-cookies" aria-label="Anchor link for: do-we-use-cookies"
><span class="anchor-icon">#</span></a
>
</h2>
<p>Yes. Cookies are small files that a site or its service provider transfers to your computer's hard drive through your Web browser (if you allow). These cookies enable the sites to recognize your browser and, if you have a registered account, associate it with your registered account.</p>
<p>We use cookies to understand and save your preferences for future visits and compile aggregate data about site traffic and site interaction so that we can offer better site experiences and tools in the future. We do not contract with third-party service providers.</p>
<h2 id="do-we-disclose-any-information-to-outside-parties">Do we disclose any information to outside parties?<a class="zola-anchor" href="#do-we-disclose-any-information-to-outside-parties" aria-label="Anchor link for: do-we-disclose-any-information-to-outside-parties"
><span class="anchor-icon">#</span></a
>
</h2>
<p>We do not sell, trade, or otherwise transfer to outside parties any information.</p>
<h2 id="your-consent">Your Consent<a class="zola-anchor" href="#your-consent" aria-label="Anchor link for: your-consent"
><span class="anchor-icon">#</span></a
>
</h2>
<p>By using our sites, you consent to our sites privacy policy.</p>
<h2 id="changes-to-our-privacy-policy">Changes to our Privacy Policy<a class="zola-anchor" href="#changes-to-our-privacy-policy" aria-label="Anchor link for: changes-to-our-privacy-policy"
><span class="anchor-icon">#</span></a
>
</h2>
<p>If we decide to change our privacy policy, we will post those changes on this page.</p>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

3
robots.txt Normal file
View File

@ -0,0 +1,3 @@
User-agent: *
Allow: /
Sitemap: https://gna.org/sitemap.xml

1
search_index.en.js Normal file

File diff suppressed because one or more lines are too long

279
service-wip/index.html Normal file
View File

@ -0,0 +1,279 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Service Work in Progress | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="" />
<meta property="og:title" content="Service Work in Progress | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="" />
<meta
property="og:site_name"
content="Service Work in Progress | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="page__container">
<h1 class="page__group-title">Service Work in Progress</h1>
<div class="page__group-content">
<p>Thank you for your interest in Gna!, we are a work-in-progress. <a href="/contact">Come
say hi</a> and join the conversion! :)</p>
</div>
</div>
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

110
sitemap.xml Normal file
View File

@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://gna.org/</loc>
</url>
<url>
<loc>https://gna.org/about/</loc>
</url>
<url>
<loc>https://gna.org/blog/</loc>
</url>
<url>
<loc>https://gna.org/blog/1-17-breaking-episode-1/</loc>
<lastmod>2022-06-22</lastmod>
</url>
<url>
<loc>https://gna.org/blog/1-17-breaking-episode-2/</loc>
<lastmod>2022-07-20</lastmod>
</url>
<url>
<loc>https://gna.org/blog/22-04-2022-hostea-introducing-hostea-forgefriends-monthly-meet/</loc>
<lastmod>2022-04-22</lastmod>
</url>
<url>
<loc>https://gna.org/blog/blank-or-error-500-page-after-login/</loc>
<lastmod>2022-05-08</lastmod>
</url>
<url>
<loc>https://gna.org/blog/experimental/</loc>
<lastmod>2022-07-10</lastmod>
</url>
<url>
<loc>https://gna.org/blog/gentle-introduction-to-the-doctor/</loc>
<lastmod>2022-06-14</lastmod>
</url>
<url>
<loc>https://gna.org/blog/path-not-found/</loc>
<lastmod>2022-05-28</lastmod>
</url>
<url>
<loc>https://gna.org/blog/project-plans-for-hosted-gitea-online-service/</loc>
<lastmod>2022-04-18</lastmod>
</url>
<url>
<loc>https://gna.org/blog/unsafe-repository-is-owned-by-someone-else/</loc>
<lastmod>2022-05-15</lastmod>
</url>
<url>
<loc>https://gna.org/blog/zombies-part-2/</loc>
<lastmod>2022-06-04</lastmod>
</url>
<url>
<loc>https://gna.org/blog/zombies/</loc>
<lastmod>2022-06-02</lastmod>
</url>
<url>
<loc>https://gna.org/coc/</loc>
</url>
<url>
<loc>https://gna.org/gitea-clinic/</loc>
</url>
<url>
<loc>https://gna.org/legalese/</loc>
</url>
<url>
<loc>https://gna.org/privacy-policy/</loc>
</url>
<url>
<loc>https://gna.org/service-wip/</loc>
</url>
<url>
<loc>https://gna.org/tags/</loc>
</url>
<url>
<loc>https://gna.org/tags/federation/</loc>
</url>
<url>
<loc>https://gna.org/tags/forgefriends/</loc>
</url>
<url>
<loc>https://gna.org/tags/free-software-sustainability/</loc>
</url>
<url>
<loc>https://gna.org/tags/free-software/</loc>
</url>
<url>
<loc>https://gna.org/tags/gitea/</loc>
</url>
<url>
<loc>https://gna.org/tags/gna/</loc>
</url>
<url>
<loc>https://gna.org/tags/hostea/</loc>
</url>
<url>
<loc>https://gna.org/tags/problem/</loc>
</url>
<url>
<loc>https://gna.org/tags/troubleshoot/</loc>
</url>
<url>
<loc>https://gna.org/tags/tutorial/</loc>
</url>
<url>
<loc>https://gna.org/tags/upgrade/</loc>
</url>
<url>
<loc>https://gna.org/tos/</loc>
</url>
</urlset>

1
tag/main.css Normal file
View File

@ -0,0 +1 @@
.tag__item-link,.tag__item-link:visited{text-decoration:none}.tag__item-link{display:flex;align-items:start;flex-direction:column;flex:2}.tag__item{border-bottom:1px dashed #333;margin:10px;display:flex;justify-content:space-between;padding:5px}.tag__item-title{font-size:1.4rem}.tag__meta{font-size:0.7rem}.tag__rss-link{margin:auto 20px}.tag__title{display:inline;flex:2}.tag__title-container{margin:35px 0;display:flex}.tag__rss-link--single{margin:auto}

1
tag/mobile.css Normal file
View File

@ -0,0 +1 @@
.tag__title-container{flex-direction:column}.tag__rss-link--icon{margin:auto 0px}

48
tags/federation/atom.xml Normal file
View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title> - federation</title>
<link href="https://gna.org/tags/federation/atom.xml" rel="self" type="application/atom+xml"/>
<link href="https://gna.org"/>
<generator uri="https://www.getzola.org/">Zola</generator>
<updated>2022-07-10T00:00:00+00:00</updated>
<id>https://gna.org/tags/federation/atom.xml</id>
<entry xml:lang="en">
<title>Get a Gitea instance with CI at Gna!</title>
<published>2022-07-10T00:00:00+00:00</published>
<updated>2022-07-10T00:00:00+00:00</updated>
<link href="https://gna.org/blog/experimental/" type="text/html"/>
<id>https://gna.org/blog/experimental/</id>
<content type="html">&lt;p&gt;Hosting a Gitea instance on Gna! is now possible (but still experimental). It is meant to be a minimum viable product: anyone can &lt;a href=&quot;https:&#x2F;&#x2F;hosteadashboard.gna.org&quot;&gt;create a new dedicated Gitea instance&lt;&#x2F;a&gt; within minutes and pay for it on a monthly basis with a credit card. It includes a dedicated CI based on &lt;a href=&quot;https:&#x2F;&#x2F;woodpecker-ci.org&#x2F;&quot;&gt;Woodpecker&lt;&#x2F;a&gt;. The smallest instance costs 10€ per month (2GB RAM, 10GB disk, 1CPU) and will be a good fit for a freelance up to a team of five people but bigger instances are also available if more RAM, CPU or disk is required.&lt;&#x2F;p&gt;
&lt;video width=&quot;600&quot; controls&gt;
&lt;source src=&quot;https:&#x2F;&#x2F;cloud.forgefriends.org&#x2F;s&#x2F;xXLcYpsE469tJEj&#x2F;download?path=&amp;files=hostea-screencast-vm-create.mp4&quot; type=&quot;video&#x2F;mp4&quot; &#x2F;&gt;
&lt;&#x2F;video&gt;
&lt;p&gt;The service is 100% infrastructure as code, published as &lt;a href=&quot;https:&#x2F;&#x2F;lab.enough.community&#x2F;main&#x2F;infrastructure&#x2F;-&#x2F;tree&#x2F;9e18ebbf675c8a65d1585d20b4cf6295af6e52ed&#x2F;playbooks&#x2F;hosteadashboard&quot;&gt;Ansible playbooks within Enough&lt;&#x2F;a&gt;. It can be self-hosted on bare metal (with &lt;a href=&quot;https:&#x2F;&#x2F;libvirt.org&#x2F;&quot;&gt;libvirt&lt;&#x2F;a&gt;) or in the cloud (with &lt;a href=&quot;https:&#x2F;&#x2F;www.openstack.org&#x2F;&quot;&gt;OpenStack&lt;&#x2F;a&gt;): follow the &lt;a href=&quot;https:&#x2F;&#x2F;enough-community.readthedocs.io&#x2F;en&#x2F;latest&#x2F;introduction.html#quick-start&quot;&gt;quick start&lt;&#x2F;a&gt;, configure playbooks for &lt;a href=&quot;https:&#x2F;&#x2F;enough-community.readthedocs.io&#x2F;en&#x2F;latest&#x2F;services&#x2F;hostea.html&quot;&gt;hostea&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;enough-community.readthedocs.io&#x2F;en&#x2F;latest&#x2F;services&#x2F;hosteadashboard.html&quot;&gt;the dashboard&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;The organization supporting Gna! is a &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;c&#x2F;governance-and-decisions&#x2F;7&quot;&gt;horizontal collective&lt;&#x2F;a&gt; of individuals and organizations. The &lt;a href=&quot;https:&#x2F;&#x2F;forum.hostea.org&#x2F;t&#x2F;decision-revenue-sharing-model&#x2F;92&quot;&gt;revenue sharing model&lt;&#x2F;a&gt; is set to dedicate 25% of the income (more than the profits) to help the Free Software projects Hostea depends on such as Gitea, Enough, Django etc.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;the-origin&quot;&gt;The origin&lt;a class=&quot;zola-anchor&quot; href=&quot;#the-origin&quot; aria-label=&quot;Anchor link for: the-origin&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;In February 2022 the project of running a dedicated Gitea hosting service was &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;a-gitea-hosting-service-under-the-umbrella-of-the-gitea-project&#x2F;4692&quot;&gt;proposed to the Gitea project&lt;&#x2F;a&gt; and other organizations and &lt;a href=&quot;https:&#x2F;&#x2F;blog.dachary.org&#x2F;2022&#x2F;02&#x2F;16&#x2F;project-plans-for-a-hosted-gitea-online-service&#x2F;&quot;&gt;plans were drafted&lt;&#x2F;a&gt;. After a month of discussions it turned out to not be a &lt;a href=&quot;https:&#x2F;&#x2F;blog.dachary.org&#x2F;2022&#x2F;03&#x2F;11&#x2F;the-inconclusive-story-of-four-failed-project-offers&#x2F;&quot;&gt;good match for any of them&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;It was suggested to create a new project from scratch instead of joining an existing organization. However, in order to be sustainable, a hosting service needs customers willing to pay for the service. And nobody had that kind of skill. It was therefore decided that to terminate the project: there is no point is creating a technical stack that&#x27;s not going to be used by anyone.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;a-technical-stack-with-no-users&quot;&gt;A technical stack with no users&lt;a class=&quot;zola-anchor&quot; href=&quot;#a-technical-stack-with-no-users&quot; aria-label=&quot;Anchor link for: a-technical-stack-with-no-users&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;The most common mistake technical people do when creating a new piece of software is to overlook the fact that they have absolutely no idea how to let their intended user base know about it. Maybe the reason it happens so often is because it is very difficult to resist the urge of creating something. Because that&#x27;s what technical people love to do: create things, even when they have no clue if it can be used.&lt;&#x2F;p&gt;
&lt;p&gt;It took no longer than two weeks for the people involved in Gna! to decide to build the technical stack to run hostea instead of being reasonable and give up. It was just too tempting.&lt;&#x2F;p&gt;
&lt;p&gt;To keep the madness contained and enjoyable, it was decided to set a deadline to July 1st and to &lt;a href=&quot;https:&#x2F;&#x2F;gitea.gna.org&#x2F;Hostea&#x2F;july-mvp&#x2F;issues&quot;&gt;define precise and realistic technical goals&lt;&#x2F;a&gt;. It turned out to be an enjoyable experience: everyone learned a lot in the process and the outcome is something that can be reproduced. Most MVPs are a brittle pile of hacks designed to last a few weeks and be thrown away. But since a primary goal of the project was to create something self-hostable, it had to implement that feature and therefore be reproducible.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;a-horizontal-collective-with-a-revenue-sharing-model&quot;&gt;A horizontal collective with a revenue sharing model&lt;a class=&quot;zola-anchor&quot; href=&quot;#a-horizontal-collective-with-a-revenue-sharing-model&quot; aria-label=&quot;Anchor link for: a-horizontal-collective-with-a-revenue-sharing-model&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Another goal of Gna! is to deploy federated forges, even at an experimental stage. Instead of creating a centralized organization to support Hostea, it was decided to create &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;c&#x2F;governance-and-decisions&#x2F;7&quot;&gt;horizontal collective&lt;&#x2F;a&gt;. It feels like a contradiction for a project committed to decentralization to be governed by a centralized organization.&lt;&#x2F;p&gt;
&lt;p&gt;The collective is composed of individuals and organizations but, unlike exclusively volunteer based Free Software projects, it is for profit. Customers rent Gitea instances by the month and the income is used to pay for expenses. There is however a difficulty: by nature a horizontal collective cannot be incorporated as it would create a level of hierarchy. The &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;t&#x2F;decision-revenue-sharing-model&#x2F;92&quot;&gt;revenue sharing model&lt;&#x2F;a&gt; had to be set as an informal agreement between members where one of them receives the income and distributes it to the others, depending on their Gna! related expenses.&lt;&#x2F;p&gt;
&lt;p&gt;It also requires that 25% of the income (not the profits) is dedicated to help the Free Software projects that Gna! depends on such as Gitea, Enough, Django etc. It can be via a donation, by upstreaming a bug fix or any kind of work that is beneficial to the dependency.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;dedicated-to-forge-federation&quot;&gt;Dedicated to forge federation&lt;a class=&quot;zola-anchor&quot; href=&quot;#dedicated-to-forge-federation&quot; aria-label=&quot;Anchor link for: dedicated-to-forge-federation&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;In the spirit of dogfooding, the people who created the technical stack of Gna! will use it for themselves on a daily basis. Since the focus of the authors is on &lt;a href=&quot;https:&#x2F;&#x2F;forgefriends.org&#x2F;blog&#x2F;2022&#x2F;06&#x2F;30&#x2F;2022-06-state-forge-federation&#x2F;&quot;&gt;forge federation&lt;&#x2F;a&gt;, they will add federation support in Hostea. This will be their primary motivation to improve and maintain Hostea: it is the only hosting platform where this can happen.&lt;&#x2F;p&gt;
</content>
</entry>
</feed>

314
tags/federation/index.html Normal file
View File

@ -0,0 +1,314 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>federation | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="federation" />
<meta property="og:title" content="federation | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="federation" />
<meta
property="og:site_name"
content="federation | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="blog__container">
<div class="tag__title-container">
<h1 class="tag__title">#federation</h1>
<a class="tag__rss-link--single" href="https:&#x2F;&#x2F;gna.org&#x2F;tags&#x2F;federation&#x2F;atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="tag__rss-icon--single"
alt="RSS icon"
/>
</a></div>
<ul class="blog__list">
<li class="blog__post-item">
<a href="https://gna.org/blog/experimental/" class="blog__post-link">
<h2 class="blog__post-title">Get a Gitea instance with CI at Gna!</h2>
<p class="blog__post-meta">
10
July
,
2022 &middot; <b>5 min read</b>
</p>
<p class="blog__post-description">It is now possible to rent a Gitea instance by the month, with Woodpecker CI. A self-hostable hosting solution supported by a horizontal collective of individuals and organizations. 25% of the income is dedicated to help the Free Software projects it depends on such as Gitea, Enough, Django, etc. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/federation">#federation</a>
<a class="blog__post-tag" href="/tags/forgefriends">#forgefriends</a>
</div>
</li>
</ul>
</div>
<link rel="alternate" type="application/rss+xml" title="RSS" href="https://gna.org/rss.xml">
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

View File

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title> - forgefriends</title>
<link href="https://gna.org/tags/forgefriends/atom.xml" rel="self" type="application/atom+xml"/>
<link href="https://gna.org"/>
<generator uri="https://www.getzola.org/">Zola</generator>
<updated>2022-07-10T00:00:00+00:00</updated>
<id>https://gna.org/tags/forgefriends/atom.xml</id>
<entry xml:lang="en">
<title>Get a Gitea instance with CI at Gna!</title>
<published>2022-07-10T00:00:00+00:00</published>
<updated>2022-07-10T00:00:00+00:00</updated>
<link href="https://gna.org/blog/experimental/" type="text/html"/>
<id>https://gna.org/blog/experimental/</id>
<content type="html">&lt;p&gt;Hosting a Gitea instance on Gna! is now possible (but still experimental). It is meant to be a minimum viable product: anyone can &lt;a href=&quot;https:&#x2F;&#x2F;hosteadashboard.gna.org&quot;&gt;create a new dedicated Gitea instance&lt;&#x2F;a&gt; within minutes and pay for it on a monthly basis with a credit card. It includes a dedicated CI based on &lt;a href=&quot;https:&#x2F;&#x2F;woodpecker-ci.org&#x2F;&quot;&gt;Woodpecker&lt;&#x2F;a&gt;. The smallest instance costs 10€ per month (2GB RAM, 10GB disk, 1CPU) and will be a good fit for a freelance up to a team of five people but bigger instances are also available if more RAM, CPU or disk is required.&lt;&#x2F;p&gt;
&lt;video width=&quot;600&quot; controls&gt;
&lt;source src=&quot;https:&#x2F;&#x2F;cloud.forgefriends.org&#x2F;s&#x2F;xXLcYpsE469tJEj&#x2F;download?path=&amp;files=hostea-screencast-vm-create.mp4&quot; type=&quot;video&#x2F;mp4&quot; &#x2F;&gt;
&lt;&#x2F;video&gt;
&lt;p&gt;The service is 100% infrastructure as code, published as &lt;a href=&quot;https:&#x2F;&#x2F;lab.enough.community&#x2F;main&#x2F;infrastructure&#x2F;-&#x2F;tree&#x2F;9e18ebbf675c8a65d1585d20b4cf6295af6e52ed&#x2F;playbooks&#x2F;hosteadashboard&quot;&gt;Ansible playbooks within Enough&lt;&#x2F;a&gt;. It can be self-hosted on bare metal (with &lt;a href=&quot;https:&#x2F;&#x2F;libvirt.org&#x2F;&quot;&gt;libvirt&lt;&#x2F;a&gt;) or in the cloud (with &lt;a href=&quot;https:&#x2F;&#x2F;www.openstack.org&#x2F;&quot;&gt;OpenStack&lt;&#x2F;a&gt;): follow the &lt;a href=&quot;https:&#x2F;&#x2F;enough-community.readthedocs.io&#x2F;en&#x2F;latest&#x2F;introduction.html#quick-start&quot;&gt;quick start&lt;&#x2F;a&gt;, configure playbooks for &lt;a href=&quot;https:&#x2F;&#x2F;enough-community.readthedocs.io&#x2F;en&#x2F;latest&#x2F;services&#x2F;hostea.html&quot;&gt;hostea&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;enough-community.readthedocs.io&#x2F;en&#x2F;latest&#x2F;services&#x2F;hosteadashboard.html&quot;&gt;the dashboard&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;The organization supporting Gna! is a &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;c&#x2F;governance-and-decisions&#x2F;7&quot;&gt;horizontal collective&lt;&#x2F;a&gt; of individuals and organizations. The &lt;a href=&quot;https:&#x2F;&#x2F;forum.hostea.org&#x2F;t&#x2F;decision-revenue-sharing-model&#x2F;92&quot;&gt;revenue sharing model&lt;&#x2F;a&gt; is set to dedicate 25% of the income (more than the profits) to help the Free Software projects Hostea depends on such as Gitea, Enough, Django etc.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;the-origin&quot;&gt;The origin&lt;a class=&quot;zola-anchor&quot; href=&quot;#the-origin&quot; aria-label=&quot;Anchor link for: the-origin&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;In February 2022 the project of running a dedicated Gitea hosting service was &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;a-gitea-hosting-service-under-the-umbrella-of-the-gitea-project&#x2F;4692&quot;&gt;proposed to the Gitea project&lt;&#x2F;a&gt; and other organizations and &lt;a href=&quot;https:&#x2F;&#x2F;blog.dachary.org&#x2F;2022&#x2F;02&#x2F;16&#x2F;project-plans-for-a-hosted-gitea-online-service&#x2F;&quot;&gt;plans were drafted&lt;&#x2F;a&gt;. After a month of discussions it turned out to not be a &lt;a href=&quot;https:&#x2F;&#x2F;blog.dachary.org&#x2F;2022&#x2F;03&#x2F;11&#x2F;the-inconclusive-story-of-four-failed-project-offers&#x2F;&quot;&gt;good match for any of them&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;It was suggested to create a new project from scratch instead of joining an existing organization. However, in order to be sustainable, a hosting service needs customers willing to pay for the service. And nobody had that kind of skill. It was therefore decided that to terminate the project: there is no point is creating a technical stack that&#x27;s not going to be used by anyone.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;a-technical-stack-with-no-users&quot;&gt;A technical stack with no users&lt;a class=&quot;zola-anchor&quot; href=&quot;#a-technical-stack-with-no-users&quot; aria-label=&quot;Anchor link for: a-technical-stack-with-no-users&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;The most common mistake technical people do when creating a new piece of software is to overlook the fact that they have absolutely no idea how to let their intended user base know about it. Maybe the reason it happens so often is because it is very difficult to resist the urge of creating something. Because that&#x27;s what technical people love to do: create things, even when they have no clue if it can be used.&lt;&#x2F;p&gt;
&lt;p&gt;It took no longer than two weeks for the people involved in Gna! to decide to build the technical stack to run hostea instead of being reasonable and give up. It was just too tempting.&lt;&#x2F;p&gt;
&lt;p&gt;To keep the madness contained and enjoyable, it was decided to set a deadline to July 1st and to &lt;a href=&quot;https:&#x2F;&#x2F;gitea.gna.org&#x2F;Hostea&#x2F;july-mvp&#x2F;issues&quot;&gt;define precise and realistic technical goals&lt;&#x2F;a&gt;. It turned out to be an enjoyable experience: everyone learned a lot in the process and the outcome is something that can be reproduced. Most MVPs are a brittle pile of hacks designed to last a few weeks and be thrown away. But since a primary goal of the project was to create something self-hostable, it had to implement that feature and therefore be reproducible.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;a-horizontal-collective-with-a-revenue-sharing-model&quot;&gt;A horizontal collective with a revenue sharing model&lt;a class=&quot;zola-anchor&quot; href=&quot;#a-horizontal-collective-with-a-revenue-sharing-model&quot; aria-label=&quot;Anchor link for: a-horizontal-collective-with-a-revenue-sharing-model&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Another goal of Gna! is to deploy federated forges, even at an experimental stage. Instead of creating a centralized organization to support Hostea, it was decided to create &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;c&#x2F;governance-and-decisions&#x2F;7&quot;&gt;horizontal collective&lt;&#x2F;a&gt;. It feels like a contradiction for a project committed to decentralization to be governed by a centralized organization.&lt;&#x2F;p&gt;
&lt;p&gt;The collective is composed of individuals and organizations but, unlike exclusively volunteer based Free Software projects, it is for profit. Customers rent Gitea instances by the month and the income is used to pay for expenses. There is however a difficulty: by nature a horizontal collective cannot be incorporated as it would create a level of hierarchy. The &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;t&#x2F;decision-revenue-sharing-model&#x2F;92&quot;&gt;revenue sharing model&lt;&#x2F;a&gt; had to be set as an informal agreement between members where one of them receives the income and distributes it to the others, depending on their Gna! related expenses.&lt;&#x2F;p&gt;
&lt;p&gt;It also requires that 25% of the income (not the profits) is dedicated to help the Free Software projects that Gna! depends on such as Gitea, Enough, Django etc. It can be via a donation, by upstreaming a bug fix or any kind of work that is beneficial to the dependency.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;dedicated-to-forge-federation&quot;&gt;Dedicated to forge federation&lt;a class=&quot;zola-anchor&quot; href=&quot;#dedicated-to-forge-federation&quot; aria-label=&quot;Anchor link for: dedicated-to-forge-federation&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;In the spirit of dogfooding, the people who created the technical stack of Gna! will use it for themselves on a daily basis. Since the focus of the authors is on &lt;a href=&quot;https:&#x2F;&#x2F;forgefriends.org&#x2F;blog&#x2F;2022&#x2F;06&#x2F;30&#x2F;2022-06-state-forge-federation&#x2F;&quot;&gt;forge federation&lt;&#x2F;a&gt;, they will add federation support in Hostea. This will be their primary motivation to improve and maintain Hostea: it is the only hosting platform where this can happen.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>Introducing Gna!</title>
<published>2022-04-22T00:00:00+00:00</published>
<updated>2022-04-22T00:00:00+00:00</updated>
<link href="https://gna.org/blog/22-04-2022-hostea-introducing-hostea-forgefriends-monthly-meet/" type="text/html"/>
<id>https://gna.org/blog/22-04-2022-hostea-introducing-hostea-forgefriends-monthly-meet/</id>
<content type="html">&lt;p&gt;Introducing &lt;a href=&quot;https:&#x2F;&#x2F;gna.org&quot;&gt;Hostea&lt;&#x2F;a&gt;, a project &lt;a href=&quot;https:&#x2F;&#x2F;dachary.org&quot;&gt;Loïc
Dachary&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;batsense.net&quot;&gt;Aravinth
Manivannan&lt;&#x2F;a&gt; are working on to create a full Free
software development suite based on
&lt;a href=&quot;https:&#x2F;&#x2F;gitea.io&quot;&gt;Gitea&lt;&#x2F;a&gt; for the forge, &lt;a href=&quot;https:&#x2F;&#x2F;woodpecker-ci.org&quot;&gt;Woodpecker
CI&lt;&#x2F;a&gt; for CI&#x2F;CD,
&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;realaravinth&#x2F;pages&quot;&gt;Pages&lt;&#x2F;a&gt; for static sites and
&lt;a href=&quot;https:&#x2F;&#x2F;gitpad.org&quot;&gt;GitPad&lt;&#x2F;a&gt; for gists.&lt;&#x2F;p&gt;
&lt;p&gt;This talk introduces the projects goals and philosophy behind the
project.&lt;&#x2F;p&gt;
&lt;p&gt;Please see
&lt;a href=&quot;https:&#x2F;&#x2F;forum.forgefriends.org&#x2F;t&#x2F;forgefriends-monthly-update-april-22st-2022-5pm-6pm-utc-2&#x2F;673&quot;&gt;here&lt;&#x2F;a&gt;
to learn more about the event.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;details&quot;&gt;Details&lt;a class=&quot;zola-anchor&quot; href=&quot;#details&quot; aria-label=&quot;Anchor link for: details&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;organised by:&lt;&#x2F;strong&gt; &lt;a href=&quot;https:&#x2F;&#x2F;forgefriends.org&quot;&gt;forgefriends.org&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;strong&gt;date:&lt;&#x2F;strong&gt; 2022&lt;sup&gt;th&lt;&#x2F;sup&gt; April, 2022&lt;&#x2F;li&gt;
&lt;li&gt;&lt;strong&gt;venue:&lt;&#x2F;strong&gt; Online&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;resources&quot;&gt;Resources&lt;a class=&quot;zola-anchor&quot; href=&quot;#resources&quot; aria-label=&quot;Anchor link for: resources&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;.&#x2F;slides&#x2F;2022-04-22-forgefriends-introducing-hostea.odp&quot;&gt;slides(ODP)&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;.&#x2F;slides&#x2F;2022-04-22-forgefriends-introducing-hostea.pdf&quot;&gt;slides(PDF)&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
</content>
</entry>
</feed>

View File

@ -0,0 +1,336 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>forgefriends | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="forgefriends" />
<meta property="og:title" content="forgefriends | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="forgefriends" />
<meta
property="og:site_name"
content="forgefriends | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="blog__container">
<div class="tag__title-container">
<h1 class="tag__title">#forgefriends</h1>
<a class="tag__rss-link--single" href="https:&#x2F;&#x2F;gna.org&#x2F;tags&#x2F;forgefriends&#x2F;atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="tag__rss-icon--single"
alt="RSS icon"
/>
</a></div>
<ul class="blog__list">
<li class="blog__post-item">
<a href="https://gna.org/blog/experimental/" class="blog__post-link">
<h2 class="blog__post-title">Get a Gitea instance with CI at Gna!</h2>
<p class="blog__post-meta">
10
July
,
2022 &middot; <b>5 min read</b>
</p>
<p class="blog__post-description">It is now possible to rent a Gitea instance by the month, with Woodpecker CI. A self-hostable hosting solution supported by a horizontal collective of individuals and organizations. 25% of the income is dedicated to help the Free Software projects it depends on such as Gitea, Enough, Django, etc. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/federation">#federation</a>
<a class="blog__post-tag" href="/tags/forgefriends">#forgefriends</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/22-04-2022-hostea-introducing-hostea-forgefriends-monthly-meet/" class="blog__post-link">
<h2 class="blog__post-title">Introducing Gna!</h2>
<p class="blog__post-meta">
22
April
,
2022 &middot; <b>1 min read</b>
</p>
<p class="blog__post-description">Introducing Hostea, a project Loïc Dachary and Aravinth Manivannan are working on to create a 100% Free software development suite, complete with CI/CD, static pages and gists </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/hostea">#hostea</a>
<a class="blog__post-tag" href="/tags/forgefriends">#forgefriends</a>
</div>
</li>
</ul>
</div>
<link rel="alternate" type="application/rss+xml" title="RSS" href="https://gna.org/rss.xml">
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

View File

@ -0,0 +1,238 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title> - free-software-sustainability</title>
<link href="https://gna.org/tags/free-software-sustainability/atom.xml" rel="self" type="application/atom+xml"/>
<link href="https://gna.org"/>
<generator uri="https://www.getzola.org/">Zola</generator>
<updated>2022-04-18T00:00:00+00:00</updated>
<id>https://gna.org/tags/free-software-sustainability/atom.xml</id>
<entry xml:lang="en">
<title>Project plans for a hosted Gitea online service</title>
<published>2022-04-18T00:00:00+00:00</published>
<updated>2022-04-18T00:00:00+00:00</updated>
<link href="https://gna.org/blog/project-plans-for-hosted-gitea-online-service/" type="text/html"/>
<id>https://gna.org/blog/project-plans-for-hosted-gitea-online-service/</id>
<content type="html">&lt;p&gt;&lt;em&gt;This post was originally published on &lt;a href=&quot;https:&#x2F;&#x2F;blog.dachary.org&#x2F;2022&#x2F;02&#x2F;16&#x2F;project-plans-for-a-hosted-gitea-online-service&#x2F;&quot;&gt;Loïc Dachary&#x27;s
blog&lt;&#x2F;a&gt;.&lt;&#x2F;em&gt;&lt;&#x2F;p&gt;
&lt;hr &#x2F;&gt;
&lt;p&gt;When an organization asks me about Gitea, I would like to direct them to
a provider where they can rent an instance and just use it, in the same
way they can go to https:&#x2F;&#x2F;discourse.org for a forum, or
https:&#x2F;&#x2F;nextcloud.com for storage. Instead of waiting for that to
happen, &lt;a href=&quot;https:&#x2F;&#x2F;batsense.net&#x2F;about&#x2F;&quot;&gt;Aravinth&lt;&#x2F;a&gt; and
&lt;a href=&quot;https:&#x2F;&#x2F;dachary.org&#x2F;&quot;&gt;myself&lt;&#x2F;a&gt; decided to do something about it, in a
way that is in line with our shared values: transparency and Free
Software.&lt;&#x2F;p&gt;
&lt;p&gt;After doing some research we found counter examples that showed the
pitfalls to avoid. GitLab because its business model heavily relies on
selling proprietary licenses. CiviCRM because setting it up is complex
and requires training: users can&#x27;t figure it out on their own. Gitea
images provided by Digital Ocean because they do not include security
upgrades. MySQL configured and run by AWS because of the vendor lock-in
that makes it impossible to self-host.&lt;&#x2F;p&gt;
&lt;p&gt;We concluded that an online service such as Gitea can be hosted in a
sustainable way as long as:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;It is well maintained and upgrades itself&lt;&#x2F;li&gt;
&lt;li&gt;It can be self-hosted&lt;&#x2F;li&gt;
&lt;li&gt;The service can automatically be restored from backups when the
underlying resources fail&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;GitHub and GitLab make it look like there is a market around software
forges. It is however impossible to figure out if this market exists
only because it is based on proprietary software. How many of these
customers would pay for a Free Software hosted Gitea instance?&lt;&#x2F;p&gt;
&lt;p&gt;Even if these customers do exist, a new service provider would have to
figure out how to convince them to subscribe. The technical development
of the service can be done within weeks but building a sustainable
business takes much longer. Again, there were examples of what can go
wrong, for instance ElasticSearch. After years of work developing a
successful online service and a customer base, AWS entered the
competition and started to take it away from them.&lt;&#x2F;p&gt;
&lt;p&gt;The sustainability of the Free Software ecosystem is a new and very
difficult problem to solve. It is discussed more than it ever was in the
wake of security breaches originating from widely used and yet abandoned
library or disillusioned Free Software authors self-sabotaging their
next release, and everyone has diverging opinions. It falls on each Free
Software author to spend time to think about their own projects because
there are no handbook or good examples to follow. That is what Aravinth
and myself did to find a semblance of clarity and decide how to go about
this hosted Gitea service idea.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;sustaining-free-software-online-services&quot;&gt;Sustaining Free Software online services&lt;a class=&quot;zola-anchor&quot; href=&quot;#sustaining-free-software-online-services&quot; aria-label=&quot;Anchor link for: sustaining-free-software-online-services&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;h2 id=&quot;more-mature-online-services-mean-less-opportunities-to-sell-services&quot;&gt;More mature online services mean less opportunities to sell services&lt;a class=&quot;zola-anchor&quot; href=&quot;#more-mature-online-services-mean-less-opportunities-to-sell-services&quot; aria-label=&quot;Anchor link for: more-mature-online-services-mean-less-opportunities-to-sell-services&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h2&gt;
&lt;p&gt;Ideally the software running an online service is rock solid and bugs
are so rare that it can run unattended. This is true of
https:&#x2F;&#x2F;wordpress.org and it is not uncommon for an instance to run for
years while upgrading themselves to get security patches. The cost of
maintaining such a service is negligible and hosting companies can offer
it for free to their customers. They make their profit by renting the
machines on which the service runs.&lt;&#x2F;p&gt;
&lt;p&gt;When the software is not as mature, it is more expensive to run. Bugs
need fixing, upgrades require manual intervention, users must be trained
to overcome the complexity of the user experience, etc. Well known
examples are Discourse or CiviCRM for which companies sell services to
overcome these issues.&lt;&#x2F;p&gt;
&lt;p&gt;But when an organization is both the author of the software and the
provider of paid services to compensate for its lack of maturity, it
creates a conflict of interest. Should they focus their effort on making
the software more mature, they would harm a business model that is based
on this very lack of maturity. For instance, if the author of a software
also sells training courses, they are not motivated to solve user
experience issues. If they did, it would lower the need for training
courses and reduce their income.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;free-software-online-services-in-the-wake-of-the-sustainability&quot;&gt;Free Software online services in the wake of the sustainability&lt;a class=&quot;zola-anchor&quot; href=&quot;#free-software-online-services-in-the-wake-of-the-sustainability&quot; aria-label=&quot;Anchor link for: free-software-online-services-in-the-wake-of-the-sustainability&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h2&gt;
&lt;p&gt;crisis&lt;&#x2F;p&gt;
&lt;p&gt;Nowadays all Free Software authors struggle to get enough resources to
produce a steady stream of releases, even when the project is very
popular. This sustainability problem is getting more and more attention
as the number of Free Software projects in use world wide keeps growing.
Even the simplest online service relies on thousands of Free Software
projects, each of which needs work to keep going. Accidents caused by
poorly maintained Free Software projects become more frequent.&lt;&#x2F;p&gt;
&lt;p&gt;This Free Software sustainability crisis is barely emerging and very
much resembles ecological problems such as climate change. In both cases
it is very difficult to figure out how to properly care for the
resources that are consumed. After decades of advocacy, it is generally
accepted that fossil energy won&#x27;t last forever but there still is a long
way to go. It will also take a long time for the Free Software community
to answer this simple question: how to sustain an ever growing library
of Free Software?&lt;&#x2F;p&gt;
&lt;p&gt;Luckily, it is relatively simpler to solve that problem for an online
service because it has users. They can be reminded that their assistance
is needed to keep the project afloat, for instance by a donation. A
proposition that would be much more difficult to make for the author of
a cryptographic library. Convincing users to pay for an online service
has the best chance of success when the author of the software is also
the service provider. This is the business model of Discourse and
Weblate, but it is relatively fragile because nothing stands in the way
of the competition.&lt;&#x2F;p&gt;
&lt;p&gt;A few years ago ElasticSearch successfully developed an online service
offering. But when AWS entered the competition and was better at
marketing it, ElasticSearch quickly realized they would likely go out of
business. They tried to fight back by &lt;a href=&quot;https:&#x2F;&#x2F;www.elastic.co&#x2F;blog&#x2F;licensing-change&quot;&gt;changing their
license&lt;&#x2F;a&gt;, which was the
wrong answer to a real problem. Discourse or Weblate are also likely to
face competition from hosting companies in the future and they may not
survive it.&lt;&#x2F;p&gt;
&lt;p&gt;In the end, the durable source of income for a Free Software online
service is to rent the resources (CPU&#x2F;RAM&#x2F;network&#x2F;disk) it needs to run.
In other words only hosting companies can make a profit when running
such an online service. And for that reason they also need to share part
of the profits to ensure the sustainability of the Free Software service
their customers need.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;online-services-vendor-lock-in-is-cured-by-free-software&quot;&gt;Online services vendor lock-in is cured by Free Software&lt;a class=&quot;zola-anchor&quot; href=&quot;#online-services-vendor-lock-in-is-cured-by-free-software&quot; aria-label=&quot;Anchor link for: online-services-vendor-lock-in-is-cured-by-free-software&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;When hosting companies offer online services they also provide upgrades
and transparent recovery when the hardware fails. But none of them allow
the service to be self-hosted. When their price policy change, or when
the term of services ban users from a given country, migrating the
service elsewhere it costly and difficult. For instance when AWS runs
MySQL for their customers, they allow to download the data but not the
software that runs the proprietary AWS interface used to configure and
control the server. Another example is GitHub where the content of the
git repository can be downloaded but the code that runs GitHub itself is
not Free Software.&lt;&#x2F;p&gt;
&lt;p&gt;If a customer cannot run the same software as their service provider,
they are locked-in, even if they can download their data. It is a common
misconception to think that there is no vendor lock-in as long as it is
possible to download the data in an standard format. Migrating the data
from one software to another is, more often than not, time consuming and
costly to a point that it is effectively a blocker. A GitHub salesperson
would argue that it is possible for people to run GitHub Enterprise on
their own hardware. But the vendor lock-in is still present via the
proprietary license contract. The user experience, maintenance and
upgrades are still exclusively controlled by GitHub.&lt;&#x2F;p&gt;
&lt;p&gt;To guarantee their independence, the customers of an online service need
to be able to:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Download their data&lt;&#x2F;li&gt;
&lt;li&gt;Run the exact same Free Software as their service provider&lt;&#x2F;li&gt;
&lt;li&gt;Run the exact same Free Software infrastructure as code as their
service provider&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The requirement regarding Free Software infrastructure as code refers
to, for instance, the AWS control panel and all that is behind it when
creating a new MySQL service. It includes whatever a competitor would
need to run the same online service. An example would be
https:&#x2F;&#x2F;enough.community, an infrastructure as code dedicated to
creating the services needed by whistleblowers and human rights
defenders. It consumes resources rented by hosting providers, assembles
disks and machines, setup monitoring and intrusion detection, installs
various online services and upgrades them.&lt;&#x2F;p&gt;
&lt;p&gt;The availability of the software that creates the infrastructure is not
only useful to the competitors of a service provider. It also benefits a
non-profit that wants to provide (for instance) Wordpress instances to
its members. Without it they would need to create something from scratch
using building blocks such as CiviCRM. Even though such building blocks
exist, this is a significant undertaking and effectively a blocker.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;federated-online-services-and-durability&quot;&gt;Federated online services and durability&lt;a class=&quot;zola-anchor&quot; href=&quot;#federated-online-services-and-durability&quot; aria-label=&quot;Anchor link for: federated-online-services-and-durability&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;All self-hosted services are in danger of losing the data they contain.
When a Wordpress service is hosted in a home and the machine dies, it
must be restored from backups... when there are backups. Hosting
companies ensure the durability of the data with their own backup
system. It creates a dilemma for people who are looking into self
hosting: independence is desirable, but is it worth taking the risk of
data loss?&lt;&#x2F;p&gt;
&lt;p&gt;Federated online services do not suffer from this problem, because they
can mirror each other. A Gitea instance that is federated with another
will mirror copies of software projects found on its peers. Should one
instance be destroyed, mirrored projects can be resurrected from the
federated instance. Not only is it a practical way to ensure the (rare)
failure of an entire datacenter, it also helps with the (more frequent)
destruction of self-hosted machines. Contrary to backups that require
special attention, the replication involved in federated online service
is built in and works continuously. There is no need for an extra backup
service that is very rarely used and therefore likely to fail when
needed.&lt;&#x2F;p&gt;
&lt;p&gt;Federated services are not yet mainstream and Gitea is one of the rare
services that started to implement the concept. In the interim,
customers of an online hosting service will need to worry about backups
to ensure the durability of their data. But the ultimate solution for
them won&#x27;t be the emergence of an ideal backup infrastructure, it will
be replication (via federated services) that will continuously ensure
the durability of their data.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;paths-forward&quot;&gt;Paths forward&lt;a class=&quot;zola-anchor&quot; href=&quot;#paths-forward&quot; aria-label=&quot;Anchor link for: paths-forward&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;The Gitea project itself, following the footsteps of Discourse or
Weblate, could provide a hosting service. Part of its current user base
may become customers and there does not seem to be any blocker to make
that happen. As with most successful Free Software project, people
working on Gitea daily are already very busy and cannot engage in such a
long term project. But Aravinth and myself can, if they will have us.&lt;&#x2F;p&gt;
&lt;p&gt;Another path forward would be to wrap Gitea into a bundle that existing
hosting companies could easily use to provide such a service to their
customers. The biggest hosting companies are unlikely to be interested:
if Digital Ocean was to provide upgrades on top of their existing Gitea
image, they are more likely to rely on their internal staff to implement
that from scratch, as proprietary software integrated into their
existing infrastructure. But smaller hosting companies such as
https:&#x2F;&#x2F;Octopuce.fr or https:&#x2F;&#x2F;Easter-Eggs.com, who already deploy Gitea
instances for their customers, would use it if, for instance, it helped
with the upgrades. They would then kindly be reminded to give back a
share of their profits in order to sustain the development of the
service they deploy.&lt;&#x2F;p&gt;
&lt;p&gt;Finally it would also be possible to follow the example of GitLab in the
early days (before it turned to proprietary software) or Codeberg and
offer a free shared forge hosting service to build a user base. After a
few years, a percentage of the user base would convert to being paid
customers or donors to sustain the activity and part of the income would
be used to sustain the development of the service.&lt;&#x2F;p&gt;
</content>
</entry>
</feed>

View File

@ -0,0 +1,314 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>free-software-sustainability | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="free-software-sustainability" />
<meta property="og:title" content="free-software-sustainability | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="free-software-sustainability" />
<meta
property="og:site_name"
content="free-software-sustainability | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="blog__container">
<div class="tag__title-container">
<h1 class="tag__title">#free-software-sustainability</h1>
<a class="tag__rss-link--single" href="https:&#x2F;&#x2F;gna.org&#x2F;tags&#x2F;free-software-sustainability&#x2F;atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="tag__rss-icon--single"
alt="RSS icon"
/>
</a></div>
<ul class="blog__list">
<li class="blog__post-item">
<a href="https://gna.org/blog/project-plans-for-hosted-gitea-online-service/" class="blog__post-link">
<h2 class="blog__post-title">Project plans for a hosted Gitea online service</h2>
<p class="blog__post-meta">
18
April
,
2022 &middot; <b>11 min read</b>
</p>
<p class="blog__post-description">When an organization asks me about Gitea, I would like to direct them to a provider where they can rent an instance and just use it </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/free-software">#free-software</a>
<a class="blog__post-tag" href="/tags/free-software-sustainability">#free-software-sustainability</a>
</div>
</li>
</ul>
</div>
<link rel="alternate" type="application/rss+xml" title="RSS" href="https://gna.org/rss.xml">
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

238
tags/free-software/atom.xml Normal file
View File

@ -0,0 +1,238 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title> - free-software</title>
<link href="https://gna.org/tags/free-software/atom.xml" rel="self" type="application/atom+xml"/>
<link href="https://gna.org"/>
<generator uri="https://www.getzola.org/">Zola</generator>
<updated>2022-04-18T00:00:00+00:00</updated>
<id>https://gna.org/tags/free-software/atom.xml</id>
<entry xml:lang="en">
<title>Project plans for a hosted Gitea online service</title>
<published>2022-04-18T00:00:00+00:00</published>
<updated>2022-04-18T00:00:00+00:00</updated>
<link href="https://gna.org/blog/project-plans-for-hosted-gitea-online-service/" type="text/html"/>
<id>https://gna.org/blog/project-plans-for-hosted-gitea-online-service/</id>
<content type="html">&lt;p&gt;&lt;em&gt;This post was originally published on &lt;a href=&quot;https:&#x2F;&#x2F;blog.dachary.org&#x2F;2022&#x2F;02&#x2F;16&#x2F;project-plans-for-a-hosted-gitea-online-service&#x2F;&quot;&gt;Loïc Dachary&#x27;s
blog&lt;&#x2F;a&gt;.&lt;&#x2F;em&gt;&lt;&#x2F;p&gt;
&lt;hr &#x2F;&gt;
&lt;p&gt;When an organization asks me about Gitea, I would like to direct them to
a provider where they can rent an instance and just use it, in the same
way they can go to https:&#x2F;&#x2F;discourse.org for a forum, or
https:&#x2F;&#x2F;nextcloud.com for storage. Instead of waiting for that to
happen, &lt;a href=&quot;https:&#x2F;&#x2F;batsense.net&#x2F;about&#x2F;&quot;&gt;Aravinth&lt;&#x2F;a&gt; and
&lt;a href=&quot;https:&#x2F;&#x2F;dachary.org&#x2F;&quot;&gt;myself&lt;&#x2F;a&gt; decided to do something about it, in a
way that is in line with our shared values: transparency and Free
Software.&lt;&#x2F;p&gt;
&lt;p&gt;After doing some research we found counter examples that showed the
pitfalls to avoid. GitLab because its business model heavily relies on
selling proprietary licenses. CiviCRM because setting it up is complex
and requires training: users can&#x27;t figure it out on their own. Gitea
images provided by Digital Ocean because they do not include security
upgrades. MySQL configured and run by AWS because of the vendor lock-in
that makes it impossible to self-host.&lt;&#x2F;p&gt;
&lt;p&gt;We concluded that an online service such as Gitea can be hosted in a
sustainable way as long as:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;It is well maintained and upgrades itself&lt;&#x2F;li&gt;
&lt;li&gt;It can be self-hosted&lt;&#x2F;li&gt;
&lt;li&gt;The service can automatically be restored from backups when the
underlying resources fail&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;GitHub and GitLab make it look like there is a market around software
forges. It is however impossible to figure out if this market exists
only because it is based on proprietary software. How many of these
customers would pay for a Free Software hosted Gitea instance?&lt;&#x2F;p&gt;
&lt;p&gt;Even if these customers do exist, a new service provider would have to
figure out how to convince them to subscribe. The technical development
of the service can be done within weeks but building a sustainable
business takes much longer. Again, there were examples of what can go
wrong, for instance ElasticSearch. After years of work developing a
successful online service and a customer base, AWS entered the
competition and started to take it away from them.&lt;&#x2F;p&gt;
&lt;p&gt;The sustainability of the Free Software ecosystem is a new and very
difficult problem to solve. It is discussed more than it ever was in the
wake of security breaches originating from widely used and yet abandoned
library or disillusioned Free Software authors self-sabotaging their
next release, and everyone has diverging opinions. It falls on each Free
Software author to spend time to think about their own projects because
there are no handbook or good examples to follow. That is what Aravinth
and myself did to find a semblance of clarity and decide how to go about
this hosted Gitea service idea.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;sustaining-free-software-online-services&quot;&gt;Sustaining Free Software online services&lt;a class=&quot;zola-anchor&quot; href=&quot;#sustaining-free-software-online-services&quot; aria-label=&quot;Anchor link for: sustaining-free-software-online-services&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;h2 id=&quot;more-mature-online-services-mean-less-opportunities-to-sell-services&quot;&gt;More mature online services mean less opportunities to sell services&lt;a class=&quot;zola-anchor&quot; href=&quot;#more-mature-online-services-mean-less-opportunities-to-sell-services&quot; aria-label=&quot;Anchor link for: more-mature-online-services-mean-less-opportunities-to-sell-services&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h2&gt;
&lt;p&gt;Ideally the software running an online service is rock solid and bugs
are so rare that it can run unattended. This is true of
https:&#x2F;&#x2F;wordpress.org and it is not uncommon for an instance to run for
years while upgrading themselves to get security patches. The cost of
maintaining such a service is negligible and hosting companies can offer
it for free to their customers. They make their profit by renting the
machines on which the service runs.&lt;&#x2F;p&gt;
&lt;p&gt;When the software is not as mature, it is more expensive to run. Bugs
need fixing, upgrades require manual intervention, users must be trained
to overcome the complexity of the user experience, etc. Well known
examples are Discourse or CiviCRM for which companies sell services to
overcome these issues.&lt;&#x2F;p&gt;
&lt;p&gt;But when an organization is both the author of the software and the
provider of paid services to compensate for its lack of maturity, it
creates a conflict of interest. Should they focus their effort on making
the software more mature, they would harm a business model that is based
on this very lack of maturity. For instance, if the author of a software
also sells training courses, they are not motivated to solve user
experience issues. If they did, it would lower the need for training
courses and reduce their income.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;free-software-online-services-in-the-wake-of-the-sustainability&quot;&gt;Free Software online services in the wake of the sustainability&lt;a class=&quot;zola-anchor&quot; href=&quot;#free-software-online-services-in-the-wake-of-the-sustainability&quot; aria-label=&quot;Anchor link for: free-software-online-services-in-the-wake-of-the-sustainability&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h2&gt;
&lt;p&gt;crisis&lt;&#x2F;p&gt;
&lt;p&gt;Nowadays all Free Software authors struggle to get enough resources to
produce a steady stream of releases, even when the project is very
popular. This sustainability problem is getting more and more attention
as the number of Free Software projects in use world wide keeps growing.
Even the simplest online service relies on thousands of Free Software
projects, each of which needs work to keep going. Accidents caused by
poorly maintained Free Software projects become more frequent.&lt;&#x2F;p&gt;
&lt;p&gt;This Free Software sustainability crisis is barely emerging and very
much resembles ecological problems such as climate change. In both cases
it is very difficult to figure out how to properly care for the
resources that are consumed. After decades of advocacy, it is generally
accepted that fossil energy won&#x27;t last forever but there still is a long
way to go. It will also take a long time for the Free Software community
to answer this simple question: how to sustain an ever growing library
of Free Software?&lt;&#x2F;p&gt;
&lt;p&gt;Luckily, it is relatively simpler to solve that problem for an online
service because it has users. They can be reminded that their assistance
is needed to keep the project afloat, for instance by a donation. A
proposition that would be much more difficult to make for the author of
a cryptographic library. Convincing users to pay for an online service
has the best chance of success when the author of the software is also
the service provider. This is the business model of Discourse and
Weblate, but it is relatively fragile because nothing stands in the way
of the competition.&lt;&#x2F;p&gt;
&lt;p&gt;A few years ago ElasticSearch successfully developed an online service
offering. But when AWS entered the competition and was better at
marketing it, ElasticSearch quickly realized they would likely go out of
business. They tried to fight back by &lt;a href=&quot;https:&#x2F;&#x2F;www.elastic.co&#x2F;blog&#x2F;licensing-change&quot;&gt;changing their
license&lt;&#x2F;a&gt;, which was the
wrong answer to a real problem. Discourse or Weblate are also likely to
face competition from hosting companies in the future and they may not
survive it.&lt;&#x2F;p&gt;
&lt;p&gt;In the end, the durable source of income for a Free Software online
service is to rent the resources (CPU&#x2F;RAM&#x2F;network&#x2F;disk) it needs to run.
In other words only hosting companies can make a profit when running
such an online service. And for that reason they also need to share part
of the profits to ensure the sustainability of the Free Software service
their customers need.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;online-services-vendor-lock-in-is-cured-by-free-software&quot;&gt;Online services vendor lock-in is cured by Free Software&lt;a class=&quot;zola-anchor&quot; href=&quot;#online-services-vendor-lock-in-is-cured-by-free-software&quot; aria-label=&quot;Anchor link for: online-services-vendor-lock-in-is-cured-by-free-software&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;When hosting companies offer online services they also provide upgrades
and transparent recovery when the hardware fails. But none of them allow
the service to be self-hosted. When their price policy change, or when
the term of services ban users from a given country, migrating the
service elsewhere it costly and difficult. For instance when AWS runs
MySQL for their customers, they allow to download the data but not the
software that runs the proprietary AWS interface used to configure and
control the server. Another example is GitHub where the content of the
git repository can be downloaded but the code that runs GitHub itself is
not Free Software.&lt;&#x2F;p&gt;
&lt;p&gt;If a customer cannot run the same software as their service provider,
they are locked-in, even if they can download their data. It is a common
misconception to think that there is no vendor lock-in as long as it is
possible to download the data in an standard format. Migrating the data
from one software to another is, more often than not, time consuming and
costly to a point that it is effectively a blocker. A GitHub salesperson
would argue that it is possible for people to run GitHub Enterprise on
their own hardware. But the vendor lock-in is still present via the
proprietary license contract. The user experience, maintenance and
upgrades are still exclusively controlled by GitHub.&lt;&#x2F;p&gt;
&lt;p&gt;To guarantee their independence, the customers of an online service need
to be able to:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Download their data&lt;&#x2F;li&gt;
&lt;li&gt;Run the exact same Free Software as their service provider&lt;&#x2F;li&gt;
&lt;li&gt;Run the exact same Free Software infrastructure as code as their
service provider&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The requirement regarding Free Software infrastructure as code refers
to, for instance, the AWS control panel and all that is behind it when
creating a new MySQL service. It includes whatever a competitor would
need to run the same online service. An example would be
https:&#x2F;&#x2F;enough.community, an infrastructure as code dedicated to
creating the services needed by whistleblowers and human rights
defenders. It consumes resources rented by hosting providers, assembles
disks and machines, setup monitoring and intrusion detection, installs
various online services and upgrades them.&lt;&#x2F;p&gt;
&lt;p&gt;The availability of the software that creates the infrastructure is not
only useful to the competitors of a service provider. It also benefits a
non-profit that wants to provide (for instance) Wordpress instances to
its members. Without it they would need to create something from scratch
using building blocks such as CiviCRM. Even though such building blocks
exist, this is a significant undertaking and effectively a blocker.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;federated-online-services-and-durability&quot;&gt;Federated online services and durability&lt;a class=&quot;zola-anchor&quot; href=&quot;#federated-online-services-and-durability&quot; aria-label=&quot;Anchor link for: federated-online-services-and-durability&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;All self-hosted services are in danger of losing the data they contain.
When a Wordpress service is hosted in a home and the machine dies, it
must be restored from backups... when there are backups. Hosting
companies ensure the durability of the data with their own backup
system. It creates a dilemma for people who are looking into self
hosting: independence is desirable, but is it worth taking the risk of
data loss?&lt;&#x2F;p&gt;
&lt;p&gt;Federated online services do not suffer from this problem, because they
can mirror each other. A Gitea instance that is federated with another
will mirror copies of software projects found on its peers. Should one
instance be destroyed, mirrored projects can be resurrected from the
federated instance. Not only is it a practical way to ensure the (rare)
failure of an entire datacenter, it also helps with the (more frequent)
destruction of self-hosted machines. Contrary to backups that require
special attention, the replication involved in federated online service
is built in and works continuously. There is no need for an extra backup
service that is very rarely used and therefore likely to fail when
needed.&lt;&#x2F;p&gt;
&lt;p&gt;Federated services are not yet mainstream and Gitea is one of the rare
services that started to implement the concept. In the interim,
customers of an online hosting service will need to worry about backups
to ensure the durability of their data. But the ultimate solution for
them won&#x27;t be the emergence of an ideal backup infrastructure, it will
be replication (via federated services) that will continuously ensure
the durability of their data.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;paths-forward&quot;&gt;Paths forward&lt;a class=&quot;zola-anchor&quot; href=&quot;#paths-forward&quot; aria-label=&quot;Anchor link for: paths-forward&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;The Gitea project itself, following the footsteps of Discourse or
Weblate, could provide a hosting service. Part of its current user base
may become customers and there does not seem to be any blocker to make
that happen. As with most successful Free Software project, people
working on Gitea daily are already very busy and cannot engage in such a
long term project. But Aravinth and myself can, if they will have us.&lt;&#x2F;p&gt;
&lt;p&gt;Another path forward would be to wrap Gitea into a bundle that existing
hosting companies could easily use to provide such a service to their
customers. The biggest hosting companies are unlikely to be interested:
if Digital Ocean was to provide upgrades on top of their existing Gitea
image, they are more likely to rely on their internal staff to implement
that from scratch, as proprietary software integrated into their
existing infrastructure. But smaller hosting companies such as
https:&#x2F;&#x2F;Octopuce.fr or https:&#x2F;&#x2F;Easter-Eggs.com, who already deploy Gitea
instances for their customers, would use it if, for instance, it helped
with the upgrades. They would then kindly be reminded to give back a
share of their profits in order to sustain the development of the
service they deploy.&lt;&#x2F;p&gt;
&lt;p&gt;Finally it would also be possible to follow the example of GitLab in the
early days (before it turned to proprietary software) or Codeberg and
offer a free shared forge hosting service to build a user base. After a
few years, a percentage of the user base would convert to being paid
customers or donors to sustain the activity and part of the income would
be used to sustain the development of the service.&lt;&#x2F;p&gt;
</content>
</entry>
</feed>

View File

@ -0,0 +1,314 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>free-software | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="free-software" />
<meta property="og:title" content="free-software | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="free-software" />
<meta
property="og:site_name"
content="free-software | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="blog__container">
<div class="tag__title-container">
<h1 class="tag__title">#free-software</h1>
<a class="tag__rss-link--single" href="https:&#x2F;&#x2F;gna.org&#x2F;tags&#x2F;free-software&#x2F;atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="tag__rss-icon--single"
alt="RSS icon"
/>
</a></div>
<ul class="blog__list">
<li class="blog__post-item">
<a href="https://gna.org/blog/project-plans-for-hosted-gitea-online-service/" class="blog__post-link">
<h2 class="blog__post-title">Project plans for a hosted Gitea online service</h2>
<p class="blog__post-meta">
18
April
,
2022 &middot; <b>11 min read</b>
</p>
<p class="blog__post-description">When an organization asks me about Gitea, I would like to direct them to a provider where they can rent an instance and just use it </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/free-software">#free-software</a>
<a class="blog__post-tag" href="/tags/free-software-sustainability">#free-software-sustainability</a>
</div>
</li>
</ul>
</div>
<link rel="alternate" type="application/rss+xml" title="RSS" href="https://gna.org/rss.xml">
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

720
tags/gitea/atom.xml Normal file
View File

@ -0,0 +1,720 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title> - gitea</title>
<link href="https://gna.org/tags/gitea/atom.xml" rel="self" type="application/atom+xml"/>
<link href="https://gna.org"/>
<generator uri="https://www.getzola.org/">Zola</generator>
<updated>2022-07-20T00:00:00+00:00</updated>
<id>https://gna.org/tags/gitea/atom.xml</id>
<entry xml:lang="en">
<title>1.17 breaking changes episode 2: preserving a custom gitconfig</title>
<published>2022-07-20T00:00:00+00:00</published>
<updated>2022-07-20T00:00:00+00:00</updated>
<link href="https://gna.org/blog/1-17-breaking-episode-2/" type="text/html"/>
<id>https://gna.org/blog/1-17-breaking-episode-2/</id>
<content type="html">&lt;p&gt;On June 21st, 2022 1.17.0-rc1 was published and the location of the gitconfig file moved to a new location, &lt;a href=&quot;2022-06-23-1.17-breaking-episode-1&quot;&gt;which required manual intervention&lt;&#x2F;a&gt;. This change impacted a large number of Gitea installations because the docker image tag &lt;strong&gt;latest&lt;&#x2F;strong&gt; &lt;a href=&quot;https:&#x2F;&#x2F;mastodon.online&#x2F;@hostea&#x2F;108514134565401798&quot;&gt;was set to 1.17.0-rc1&lt;&#x2F;a&gt; by accident. As a result, about 10,000 pulls per hour from the docker hub got the release candidate instead of the expected stable version.&lt;&#x2F;p&gt;
&lt;p&gt;Unfortunately moving the git home directory in 1.17.0-rc1 was implemented in way that created a security problem. The &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;20114&quot;&gt;fix that was merged in Gitea&lt;&#x2F;a&gt; to fix it requires moving the gitconfig file and was released July 19th, 2022 in 1.17.0-rc2.&lt;&#x2F;p&gt;
&lt;p&gt;This would have been a minor inconvenience if it only has an impact on adventurous people trying the release candidate in a test environment. But since all Gitea production installations based on the &lt;strong&gt;latest&lt;&#x2F;strong&gt; tag were inadvertently upgraded to 1.17.0-rc1, the admins who moved their custom .gitconfig will need to move it one more time when upgrading to 1.17.0-rc2.&lt;&#x2F;p&gt;
&lt;p&gt;In 1.17.0-rc2, a custom .gitconfig must be moved manually to the &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;config-cheat-sheet&#x2F;#git-git&quot;&gt;new git home directory&lt;&#x2F;a&gt; as follows:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Figure out the directory where &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; must be moved by &lt;a href=&quot;https:&#x2F;&#x2F;gna.org&#x2F;blog&#x2F;gentle-introduction-to-the-doctor&#x2F;&quot;&gt;running the doctor&lt;&#x2F;a&gt;:&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;pre data-lang=&quot;shell&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-shell &quot;&gt;&lt;code class=&quot;language-shell&quot; data-lang=&quot;shell&quot;&gt;&lt;span&gt;$ gitea --work-path &#x2F;app&#x2F;gitea -c &#x2F;data&#x2F;gitea&#x2F;conf&#x2F;app.ini doctor
&lt;&#x2F;span&gt;&lt;span&gt;[1] Check paths and basic configuration
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Configuration File Path: &amp;quot;&#x2F;data&#x2F;gitea&#x2F;conf&#x2F;app.ini&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Repository Root Path: &amp;quot;&#x2F;data&#x2F;git&#x2F;repositories&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Data Root Path: &amp;quot;&#x2F;data&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Custom File Root Path: &amp;quot;&#x2F;data&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Work directory: &amp;quot;&#x2F;app&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Log Root Path: &amp;quot;&#x2F;data&#x2F;gitea&#x2F;log&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt;OK
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;ul&gt;
&lt;li&gt;Copy the &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; file to the &lt;strong&gt;Data Root Path&lt;&#x2F;strong&gt;&#x2F;home (which is &lt;code&gt;&#x2F;data&#x2F;gitea&#x2F;home&lt;&#x2F;code&gt; in the example above).&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
</content>
</entry>
<entry xml:lang="en">
<title>Get a Gitea instance with CI at Gna!</title>
<published>2022-07-10T00:00:00+00:00</published>
<updated>2022-07-10T00:00:00+00:00</updated>
<link href="https://gna.org/blog/experimental/" type="text/html"/>
<id>https://gna.org/blog/experimental/</id>
<content type="html">&lt;p&gt;Hosting a Gitea instance on Gna! is now possible (but still experimental). It is meant to be a minimum viable product: anyone can &lt;a href=&quot;https:&#x2F;&#x2F;hosteadashboard.gna.org&quot;&gt;create a new dedicated Gitea instance&lt;&#x2F;a&gt; within minutes and pay for it on a monthly basis with a credit card. It includes a dedicated CI based on &lt;a href=&quot;https:&#x2F;&#x2F;woodpecker-ci.org&#x2F;&quot;&gt;Woodpecker&lt;&#x2F;a&gt;. The smallest instance costs 10€ per month (2GB RAM, 10GB disk, 1CPU) and will be a good fit for a freelance up to a team of five people but bigger instances are also available if more RAM, CPU or disk is required.&lt;&#x2F;p&gt;
&lt;video width=&quot;600&quot; controls&gt;
&lt;source src=&quot;https:&#x2F;&#x2F;cloud.forgefriends.org&#x2F;s&#x2F;xXLcYpsE469tJEj&#x2F;download?path=&amp;files=hostea-screencast-vm-create.mp4&quot; type=&quot;video&#x2F;mp4&quot; &#x2F;&gt;
&lt;&#x2F;video&gt;
&lt;p&gt;The service is 100% infrastructure as code, published as &lt;a href=&quot;https:&#x2F;&#x2F;lab.enough.community&#x2F;main&#x2F;infrastructure&#x2F;-&#x2F;tree&#x2F;9e18ebbf675c8a65d1585d20b4cf6295af6e52ed&#x2F;playbooks&#x2F;hosteadashboard&quot;&gt;Ansible playbooks within Enough&lt;&#x2F;a&gt;. It can be self-hosted on bare metal (with &lt;a href=&quot;https:&#x2F;&#x2F;libvirt.org&#x2F;&quot;&gt;libvirt&lt;&#x2F;a&gt;) or in the cloud (with &lt;a href=&quot;https:&#x2F;&#x2F;www.openstack.org&#x2F;&quot;&gt;OpenStack&lt;&#x2F;a&gt;): follow the &lt;a href=&quot;https:&#x2F;&#x2F;enough-community.readthedocs.io&#x2F;en&#x2F;latest&#x2F;introduction.html#quick-start&quot;&gt;quick start&lt;&#x2F;a&gt;, configure playbooks for &lt;a href=&quot;https:&#x2F;&#x2F;enough-community.readthedocs.io&#x2F;en&#x2F;latest&#x2F;services&#x2F;hostea.html&quot;&gt;hostea&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;enough-community.readthedocs.io&#x2F;en&#x2F;latest&#x2F;services&#x2F;hosteadashboard.html&quot;&gt;the dashboard&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;The organization supporting Gna! is a &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;c&#x2F;governance-and-decisions&#x2F;7&quot;&gt;horizontal collective&lt;&#x2F;a&gt; of individuals and organizations. The &lt;a href=&quot;https:&#x2F;&#x2F;forum.hostea.org&#x2F;t&#x2F;decision-revenue-sharing-model&#x2F;92&quot;&gt;revenue sharing model&lt;&#x2F;a&gt; is set to dedicate 25% of the income (more than the profits) to help the Free Software projects Hostea depends on such as Gitea, Enough, Django etc.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;the-origin&quot;&gt;The origin&lt;a class=&quot;zola-anchor&quot; href=&quot;#the-origin&quot; aria-label=&quot;Anchor link for: the-origin&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;In February 2022 the project of running a dedicated Gitea hosting service was &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;a-gitea-hosting-service-under-the-umbrella-of-the-gitea-project&#x2F;4692&quot;&gt;proposed to the Gitea project&lt;&#x2F;a&gt; and other organizations and &lt;a href=&quot;https:&#x2F;&#x2F;blog.dachary.org&#x2F;2022&#x2F;02&#x2F;16&#x2F;project-plans-for-a-hosted-gitea-online-service&#x2F;&quot;&gt;plans were drafted&lt;&#x2F;a&gt;. After a month of discussions it turned out to not be a &lt;a href=&quot;https:&#x2F;&#x2F;blog.dachary.org&#x2F;2022&#x2F;03&#x2F;11&#x2F;the-inconclusive-story-of-four-failed-project-offers&#x2F;&quot;&gt;good match for any of them&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;It was suggested to create a new project from scratch instead of joining an existing organization. However, in order to be sustainable, a hosting service needs customers willing to pay for the service. And nobody had that kind of skill. It was therefore decided that to terminate the project: there is no point is creating a technical stack that&#x27;s not going to be used by anyone.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;a-technical-stack-with-no-users&quot;&gt;A technical stack with no users&lt;a class=&quot;zola-anchor&quot; href=&quot;#a-technical-stack-with-no-users&quot; aria-label=&quot;Anchor link for: a-technical-stack-with-no-users&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;The most common mistake technical people do when creating a new piece of software is to overlook the fact that they have absolutely no idea how to let their intended user base know about it. Maybe the reason it happens so often is because it is very difficult to resist the urge of creating something. Because that&#x27;s what technical people love to do: create things, even when they have no clue if it can be used.&lt;&#x2F;p&gt;
&lt;p&gt;It took no longer than two weeks for the people involved in Gna! to decide to build the technical stack to run hostea instead of being reasonable and give up. It was just too tempting.&lt;&#x2F;p&gt;
&lt;p&gt;To keep the madness contained and enjoyable, it was decided to set a deadline to July 1st and to &lt;a href=&quot;https:&#x2F;&#x2F;gitea.gna.org&#x2F;Hostea&#x2F;july-mvp&#x2F;issues&quot;&gt;define precise and realistic technical goals&lt;&#x2F;a&gt;. It turned out to be an enjoyable experience: everyone learned a lot in the process and the outcome is something that can be reproduced. Most MVPs are a brittle pile of hacks designed to last a few weeks and be thrown away. But since a primary goal of the project was to create something self-hostable, it had to implement that feature and therefore be reproducible.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;a-horizontal-collective-with-a-revenue-sharing-model&quot;&gt;A horizontal collective with a revenue sharing model&lt;a class=&quot;zola-anchor&quot; href=&quot;#a-horizontal-collective-with-a-revenue-sharing-model&quot; aria-label=&quot;Anchor link for: a-horizontal-collective-with-a-revenue-sharing-model&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Another goal of Gna! is to deploy federated forges, even at an experimental stage. Instead of creating a centralized organization to support Hostea, it was decided to create &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;c&#x2F;governance-and-decisions&#x2F;7&quot;&gt;horizontal collective&lt;&#x2F;a&gt;. It feels like a contradiction for a project committed to decentralization to be governed by a centralized organization.&lt;&#x2F;p&gt;
&lt;p&gt;The collective is composed of individuals and organizations but, unlike exclusively volunteer based Free Software projects, it is for profit. Customers rent Gitea instances by the month and the income is used to pay for expenses. There is however a difficulty: by nature a horizontal collective cannot be incorporated as it would create a level of hierarchy. The &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;t&#x2F;decision-revenue-sharing-model&#x2F;92&quot;&gt;revenue sharing model&lt;&#x2F;a&gt; had to be set as an informal agreement between members where one of them receives the income and distributes it to the others, depending on their Gna! related expenses.&lt;&#x2F;p&gt;
&lt;p&gt;It also requires that 25% of the income (not the profits) is dedicated to help the Free Software projects that Gna! depends on such as Gitea, Enough, Django etc. It can be via a donation, by upstreaming a bug fix or any kind of work that is beneficial to the dependency.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;dedicated-to-forge-federation&quot;&gt;Dedicated to forge federation&lt;a class=&quot;zola-anchor&quot; href=&quot;#dedicated-to-forge-federation&quot; aria-label=&quot;Anchor link for: dedicated-to-forge-federation&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;In the spirit of dogfooding, the people who created the technical stack of Gna! will use it for themselves on a daily basis. Since the focus of the authors is on &lt;a href=&quot;https:&#x2F;&#x2F;forgefriends.org&#x2F;blog&#x2F;2022&#x2F;06&#x2F;30&#x2F;2022-06-state-forge-federation&#x2F;&quot;&gt;forge federation&lt;&#x2F;a&gt;, they will add federation support in Hostea. This will be their primary motivation to improve and maintain Hostea: it is the only hosting platform where this can happen.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>1.17 breaking changes episode 1: preserving a custom gitconfig</title>
<published>2022-06-22T00:00:00+00:00</published>
<updated>2022-06-22T00:00:00+00:00</updated>
<link href="https://gna.org/blog/1-17-breaking-episode-1/" type="text/html"/>
<id>https://gna.org/blog/1-17-breaking-episode-1/</id>
<content type="html">&lt;p&gt;Before version 1.17, when Gitea needed to change the &lt;a href=&quot;https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;git-config&quot;&gt;git configuration&lt;&#x2F;a&gt;, it modified the &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; file. For instance it would &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;release&#x2F;v1.16&#x2F;modules&#x2F;git&#x2F;git.go#L174-L177&quot;&gt;set core.quotePath to false&lt;&#x2F;a&gt;:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;ini&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-ini &quot;&gt;&lt;code class=&quot;language-ini&quot; data-lang=&quot;ini&quot;&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[core]
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;quotePath &lt;&#x2F;span&gt;&lt;span&gt;= &lt;&#x2F;span&gt;&lt;span style=&quot;color:#d08770;&quot;&gt;false
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;When installing Gitea &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-with-docker&#x2F;&quot;&gt;from docker&lt;&#x2F;a&gt; or &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-with-docker-rootless&#x2F;&quot;&gt;rootless&lt;&#x2F;a&gt; or even &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-from-binary&#x2F;&quot;&gt;from binary&lt;&#x2F;a&gt; this &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; file belongs to a user that is &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-from-binary&#x2F;#prepare-environment&quot;&gt;dedicated to Gitea&lt;&#x2F;a&gt; and not used by anyone else.&lt;&#x2F;p&gt;
&lt;p&gt;However, if an Gitea installation was done differently and &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; has been customized because it is shared by a user or another application, there is a good chance that manual modifications were done such as:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;ini&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-ini &quot;&gt;&lt;code class=&quot;language-ini&quot; data-lang=&quot;ini&quot;&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[user]
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;name &lt;&#x2F;span&gt;&lt;span&gt;= Jane Doe
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;email &lt;&#x2F;span&gt;&lt;span&gt;= jane&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;@doe&lt;&#x2F;span&gt;&lt;span&gt;.com
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;It is also possible that the file was modified manually by the Gitea admin for other reasons. In both there is a &lt;strong&gt;potential for breakage when upgrading to Gitea &amp;gt;= 1.17 because the location of the file changed&lt;&#x2F;strong&gt;. It must be moved manually to the new location as follows:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Figure out the directory where &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; must be moved by &lt;a href=&quot;https:&#x2F;&#x2F;gna.org&#x2F;blog&#x2F;gentle-introduction-to-the-doctor&#x2F;&quot;&gt;running the doctor&lt;&#x2F;a&gt;:&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;pre data-lang=&quot;shell&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-shell &quot;&gt;&lt;code class=&quot;language-shell&quot; data-lang=&quot;shell&quot;&gt;&lt;span&gt;$ gitea --work-path &#x2F;app&#x2F;gitea -c &#x2F;data&#x2F;gitea&#x2F;conf&#x2F;app.ini doctor
&lt;&#x2F;span&gt;&lt;span&gt;[1] Check paths and basic configuration
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Configuration File Path: &amp;quot;&#x2F;data&#x2F;gitea&#x2F;conf&#x2F;app.ini&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Repository Root Path: &amp;quot;&#x2F;data&#x2F;git&#x2F;repositories&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Data Root Path: &amp;quot;&#x2F;data&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Custom File Root Path: &amp;quot;&#x2F;data&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Work directory: &amp;quot;&#x2F;app&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Log Root Path: &amp;quot;&#x2F;data&#x2F;gitea&#x2F;log&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt;OK
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;ul&gt;
&lt;li&gt;Copy the &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; file to the &lt;strong&gt;Repository Root Path&lt;&#x2F;strong&gt; (which is &lt;code&gt;&#x2F;data&#x2F;git&#x2F;repositories&lt;&#x2F;code&gt; in the example above).&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The reason why this breaking change was introduced is to workaround &lt;a href=&quot;https:&#x2F;&#x2F;gna.org&#x2F;blog&#x2F;unsafe-repository-is-owned-by-someone-else&#x2F;&quot;&gt;a rare problem&lt;&#x2F;a&gt; impacting Gitea installations relying on networked volumes.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[tutorial] A gentle introduction to the gitea doctor</title>
<published>2022-06-14T00:00:00+00:00</published>
<updated>2022-06-14T00:00:00+00:00</updated>
<link href="https://gna.org/blog/gentle-introduction-to-the-doctor/" type="text/html"/>
<id>https://gna.org/blog/gentle-introduction-to-the-doctor/</id>
<content type="html">&lt;p&gt;While helping people with their upgrades &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;migration-from-1-2-to-1-16-8&#x2F;5309&quot;&gt;in the Gitea forum&lt;&#x2F;a&gt; or &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;t&#x2F;gitea-upgrade-from-1-14-1-to-1-16-8&#x2F;90&quot;&gt;at the Gna! clinic&lt;&#x2F;a&gt;, I realized that few Gitea admins know about the &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;command-line&#x2F;#doctor&quot;&gt;&lt;code&gt;gitea doctor&lt;&#x2F;code&gt;&lt;&#x2F;a&gt; command and decided to write this blog post as a gentle introduction.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;an-apple-a-day-keeps-the-doctor-away&quot;&gt;An apple a day keeps the doctor away&lt;a class=&quot;zola-anchor&quot; href=&quot;#an-apple-a-day-keeps-the-doctor-away&quot; aria-label=&quot;Anchor link for: an-apple-a-day-keeps-the-doctor-away&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Or in our case, Gitea versions &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;v1.11.5&#x2F;cmd&#x2F;doctor.go&quot;&gt;below 1.11.5&lt;&#x2F;a&gt;. Since then, the &lt;code&gt;gitea doctor&lt;&#x2F;code&gt; is available and is designed to run against a specific Gitea version. It would not be a good idea to try to run the doctor from Gitea 1.16 to verify the sanity of a Gitea 1.2 instance: it will be confused by how the database is organized and a number of other details. Historical fun fact: the &lt;code&gt;gitea doctor&lt;&#x2F;code&gt; was backported to &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;v1.10.5&#x2F;cmd&#x2F;doctor.go&quot;&gt;Gitea 1.10.5&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;v1.10.6&#x2F;cmd&#x2F;doctor.go&quot;&gt;Gitea 1.10.6&lt;&#x2F;a&gt; and may be of help if you run this particular version and are facing the problem that motivated the backport.&lt;&#x2F;p&gt;
&lt;p&gt;With each version &lt;code&gt;gitea doctor&lt;&#x2F;code&gt; improves and gains new capabilities. For instance, in Gitea 1.17 it becomes aware of &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19731&quot;&gt;orphaned pull requests&lt;&#x2F;a&gt; and is able to fix them. If such a problem exists in Gitea 1.16, it does not know about it.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;calling-the-doctor&quot;&gt;Calling the doctor&lt;a class=&quot;zola-anchor&quot; href=&quot;#calling-the-doctor&quot; aria-label=&quot;Anchor link for: calling-the-doctor&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;In the following, examples are based on a Gitea 1.16.8 instance you can run as follows:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker run&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --name&lt;&#x2F;span&gt;&lt;span&gt; gitea&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; -p&lt;&#x2F;span&gt;&lt;span&gt; 3000:3000&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; -e&lt;&#x2F;span&gt;&lt;span&gt; GITEA__security__INSTALL_LOCK=true&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; -d&lt;&#x2F;span&gt;&lt;span&gt; gitea&#x2F;gitea:1.16.8-rootless
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea admin user create&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --admin --username&lt;&#x2F;span&gt;&lt;span&gt; root&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --password&lt;&#x2F;span&gt;&lt;span&gt; admin1234&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --email&lt;&#x2F;span&gt;&lt;span&gt; root@example.com
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea mkdir &#x2F;var&#x2F;lib&#x2F;gitea&#x2F;data&#x2F;log
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;And then you can go to the &lt;a href=&quot;https:&#x2F;&#x2F;127.0.0.1:3000&#x2F;&quot;&gt;web interface&lt;&#x2F;a&gt; to create a &lt;code&gt;test&lt;&#x2F;code&gt; repository, with an initial &lt;code&gt;README.md&lt;&#x2F;code&gt; file. When this is done the doctor can be called as follows:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --all
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[1]&lt;&#x2F;span&gt;&lt;span&gt; Check paths and basic configuration
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Configuration File Path: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;etc&#x2F;gitea&#x2F;app.ini&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Repository Root Path: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;var&#x2F;lib&#x2F;gitea&#x2F;git&#x2F;repositories&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Data Root Path: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;var&#x2F;lib&#x2F;gitea&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Custom File Root Path: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;var&#x2F;lib&#x2F;gitea&#x2F;custom&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Work directory: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;var&#x2F;lib&#x2F;gitea&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Log Root Path: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;var&#x2F;lib&#x2F;gitea&#x2F;data&#x2F;log&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[2]&lt;&#x2F;span&gt;&lt;span&gt; Check if there is garbage storage files
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[3]&lt;&#x2F;span&gt;&lt;span&gt; Check Database Version
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[4]&lt;&#x2F;span&gt;&lt;span&gt; Check consistency of database
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[5]&lt;&#x2F;span&gt;&lt;span&gt; Check if user with wrong type exist
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[6]&lt;&#x2F;span&gt;&lt;span&gt; Check if OpenSSH authorized_keys file is up-to-date
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[7]&lt;&#x2F;span&gt;&lt;span&gt; Check if SCRIPT_TYPE is available
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; ScriptType bash is on the current PATH at &#x2F;bin&#x2F;bash
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[8]&lt;&#x2F;span&gt;&lt;span&gt; Check if hook files are up-to-date and executable
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[9]&lt;&#x2F;span&gt;&lt;span&gt; Recalculate Stars number for all user
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[10]&lt;&#x2F;span&gt;&lt;span&gt; Check old archives
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; 0 old archives in repository need to be deleted
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[11]&lt;&#x2F;span&gt;&lt;span&gt; Enable push options
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Checked 1 repositories, 0 need updates.
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[12]&lt;&#x2F;span&gt;&lt;span&gt; Check for incorrectly dumped repo_units (See &lt;&#x2F;span&gt;&lt;span style=&quot;color:#65737e;&quot;&gt;#16961)
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;W&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Found 0 broken repo_units
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[13]&lt;&#x2F;span&gt;&lt;span&gt; Recalculate merge bases
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;W&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; 0 PRs with incorrect mergebases of 0 PRs total in 1 repos
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[14]&lt;&#x2F;span&gt;&lt;span&gt; Check git-daemon-export-ok files
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Checked 1 repositories, 0 need updates.
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h3 id=&quot;what-does-the-doctor-know&quot;&gt;What does the doctor know?&lt;a class=&quot;zola-anchor&quot; href=&quot;#what-does-the-doctor-know&quot; aria-label=&quot;Anchor link for: what-does-the-doctor-know&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Although the &lt;code&gt;doctor&lt;&#x2F;code&gt; can be compared to &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Fsck&quot;&gt;fsck(8)&lt;&#x2F;a&gt;, it does not know everything. It took decades for &lt;code&gt;fsck&lt;&#x2F;code&gt; to become the ultimate authority on finding problems on file systems and reliably fixing them without losing data. Nowadays, only a handful of people in the world are brave enough to manually attempt a file system recovery when &lt;code&gt;fsck&lt;&#x2F;code&gt; cannot recover from a data loss.&lt;&#x2F;p&gt;
&lt;p&gt;The first &lt;code&gt;doctor&lt;&#x2F;code&gt; version is two years old and Gitea admins are still routinely running SQL queries against the database or moving files around when trying to figure out why a Gitea instance is not behaving as it should. It is however worth checking if the doctor does not already have a solution by listing all it can do:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --list
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;Default&lt;&#x2F;span&gt;&lt;span&gt; Name Title
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;*&lt;&#x2F;span&gt;&lt;span&gt; paths Check paths and basic configuration
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;storages&lt;&#x2F;span&gt;&lt;span&gt; Check if there is garbage storage files
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;*&lt;&#x2F;span&gt;&lt;span&gt; check-db-version Check Database Version
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;check-db-consistency&lt;&#x2F;span&gt;&lt;span&gt; Check consistency of database
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;*&lt;&#x2F;span&gt;&lt;span&gt; check-user-type Check if user with wrong type exist
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;*&lt;&#x2F;span&gt;&lt;span&gt; authorized-keys Check if OpenSSH authorized_keys file is up-to-date
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;script-type&lt;&#x2F;span&gt;&lt;span&gt; Check if SCRIPT_TYPE is available
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;hooks&lt;&#x2F;span&gt;&lt;span&gt; Check if hook files are up-to-date and executable
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;recalculate-stars-number&lt;&#x2F;span&gt;&lt;span&gt; Recalculate Stars number for all user
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;check-old-archives&lt;&#x2F;span&gt;&lt;span&gt; Check old archives
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;enable-push-options&lt;&#x2F;span&gt;&lt;span&gt; Enable push options
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;fix-broken-repo-units&lt;&#x2F;span&gt;&lt;span&gt; Check for incorrectly dumped repo_units (See &lt;&#x2F;span&gt;&lt;span style=&quot;color:#65737e;&quot;&gt;#16961)
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;recalculate-merge-bases&lt;&#x2F;span&gt;&lt;span&gt; Recalculate merge bases
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;check-git-daemon-export-ok&lt;&#x2F;span&gt;&lt;span&gt; Check git-daemon-export-ok files
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;And then call the &lt;code&gt;check&lt;&#x2F;code&gt; that looks interesting:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --run&lt;&#x2F;span&gt;&lt;span&gt; authorized-keys
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[1]&lt;&#x2F;span&gt;&lt;span&gt; Check if OpenSSH authorized_keys file is up-to-date
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;The challenge is to figure out which &lt;code&gt;check&lt;&#x2F;code&gt; does what and at the moment the best source of information is ... &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;tree&#x2F;v1.16.8&quot;&gt;the sources&lt;&#x2F;a&gt; themselves. The &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;v1.16.8&#x2F;cmd&#x2F;doctor.go&quot;&gt;doctor.go&lt;&#x2F;a&gt; command is the entry point and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;tree&#x2F;v1.16.8&#x2F;modules&#x2F;doctor&quot;&gt;the doctor directory&lt;&#x2F;a&gt; contains the rest.&lt;&#x2F;p&gt;
&lt;p&gt;Some &lt;code&gt;checks&lt;&#x2F;code&gt; are straightforward to understand, even if you do not know Go, such as &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;v1.16.8&#x2F;modules&#x2F;doctor&#x2F;authorizedkeys.go&quot;&gt;the authorized-keys check&lt;&#x2F;a&gt;. Others are much more involved and your best chance is to &lt;a href=&quot;https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gitea:matrix.org&quot;&gt;ask the Gitea chatroom&lt;&#x2F;a&gt; for help.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;is-it-going-to-hurt&quot;&gt;Is it going to hurt?&lt;a class=&quot;zola-anchor&quot; href=&quot;#is-it-going-to-hurt&quot; aria-label=&quot;Anchor link for: is-it-going-to-hurt&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;By default the doctor (very much like &lt;code&gt;fsck -N&lt;&#x2F;code&gt;) only performs non destructive checks and displays diagnostics, with an indication of how serious the problem is. In the example above, there only are lines with &lt;strong&gt;[I]&lt;&#x2F;strong&gt; (which indicates an information) and &lt;strong&gt;[W]&lt;&#x2F;strong&gt; which indicates a warning that can be ignored but may be worth looking into. Those two warnings are actually just informational and should be labelled as &lt;strong&gt;[I]&lt;&#x2F;strong&gt;, &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19836&quot;&gt;which has been fixed&lt;&#x2F;a&gt; in a more recent version of the doctor.&lt;&#x2F;p&gt;
&lt;p&gt;Now let&#x27;s do something bad: remove the permissions from a hook in our repository:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea chmod&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; -x&lt;&#x2F;span&gt;&lt;span&gt; &#x2F;var&#x2F;lib&#x2F;gitea&#x2F;git&#x2F;repositories&#x2F;root&#x2F;test.git&#x2F;hooks&#x2F;post-receive
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Run the doctor with the &lt;code&gt;check&lt;&#x2F;code&gt; supposed to find that out:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --run&lt;&#x2F;span&gt;&lt;span&gt; hooks
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[1]&lt;&#x2F;span&gt;&lt;span&gt; Check if hook files are up-to-date and executable
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;W&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; old hook file &#x2F;var&#x2F;lib&#x2F;gitea&#x2F;git&#x2F;repositories&#x2F;root&#x2F;test.git&#x2F;hooks&#x2F;post-receive is not executable
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Ask it to fix this with the &lt;code&gt;--fix&lt;&#x2F;code&gt; flag:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --run&lt;&#x2F;span&gt;&lt;span&gt; hooks&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --fix
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[1]&lt;&#x2F;span&gt;&lt;span&gt; Check if hook files are up-to-date and executable
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;W&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Regenerated hooks for root&#x2F;test
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;W&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; old hook file &#x2F;var&#x2F;lib&#x2F;gitea&#x2F;git&#x2F;repositories&#x2F;root&#x2F;test.git&#x2F;hooks&#x2F;post-receive is not executable
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;And run it one last time to check all is well:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --run&lt;&#x2F;span&gt;&lt;span&gt; hooks
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[1]&lt;&#x2F;span&gt;&lt;span&gt; Check if hook files are up-to-date and executable
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Even when the doctor is unable to fix a problem, it can help by showing extensive debug output which can be found, by default, in the &lt;code&gt;doctor.log&lt;&#x2F;code&gt; file in the directory from which it runs. Or it can be displayed on the standard output with &lt;code&gt;--log-file -&lt;&#x2F;code&gt;, which is most convenient when running in docker.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;going-further&quot;&gt;Going further&lt;a class=&quot;zola-anchor&quot; href=&quot;#going-further&quot; aria-label=&quot;Anchor link for: going-further&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;If that was helpful to you, I would very much appreciate if you &lt;a href=&quot;https:&#x2F;&#x2F;mastodon.online&#x2F;@dachary&quot;&gt;send me a message on Mastodon&lt;&#x2F;a&gt;. It will encourage me to write more blog posts to share what I learn about Gitea. Even better: you could &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pulls&quot;&gt;send a pull request&lt;&#x2F;a&gt; to improve the doctor and help it mature.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[solved] Zombies created by Gitea</title>
<published>2022-06-04T00:00:00+00:00</published>
<updated>2022-06-04T00:00:00+00:00</updated>
<link href="https://gna.org/blog/zombies-part-2/" type="text/html"/>
<id>https://gna.org/blog/zombies-part-2/</id>
<content type="html">&lt;p&gt;Gitea can &lt;a href=&quot;&#x2F;blog&#x2F;zombies&quot;&gt;create zombies&lt;&#x2F;a&gt;, for instance if a Git mirror takes too long. When updating a mirror, Gitea relies on the &lt;code&gt;git remote update&lt;&#x2F;code&gt; command which creates a child process, &lt;code&gt;git-remote-https&lt;&#x2F;code&gt;, to fetch data from the remote repository. Gitea has an internal timeout that will kill the child process (e.g. &lt;code&gt;git remote update&lt;&#x2F;code&gt;) when it takes too long but will not kill the grandchild. This grandchild will become an orphan and run forever or until its own timeout expires, which is about two minutes on git version 2.25.&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ time git clone https:&#x2F;&#x2F;4.4.4.4
&lt;&#x2F;span&gt;&lt;span&gt;Clonage dans &amp;#39;4.4.4.4&amp;#39;...
&lt;&#x2F;span&gt;&lt;span&gt;fatal: impossible d&amp;#39;accéder à &amp;#39;https:&#x2F;&#x2F;4.4.4.4&#x2F;&amp;#39;: Failed to connect to 4.4.4.4 port 443: Connexion terminée par expiration du délai d&amp;#39;attente
&lt;&#x2F;span&gt;&lt;span&gt;
&lt;&#x2F;span&gt;&lt;span&gt;real 2m9,753s
&lt;&#x2F;span&gt;&lt;span&gt;user 0m0,001s
&lt;&#x2F;span&gt;&lt;span&gt;sys 0m0,009s
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;As explained in the &lt;a href=&quot;&#x2F;blog&#x2F;zombies&#x2F;#killing-a-child-process-and-all-its-children&quot;&gt;diagnostic blog post regarding Gitea zombies&lt;&#x2F;a&gt; there fortunately is a very simple way to avoid this by making sure each Gitea child is a &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Process_group&quot;&gt;process group leader&lt;&#x2F;a&gt;. That first step was &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19865&quot;&gt;introduced in Gitea 1.17&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19865&quot;&gt;backported to Gitea 1.16.9&lt;&#x2F;a&gt;. The actual bug fix can now be implemented.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;using-negative-process-id-to-kill-children&quot;&gt;Using negative process id to kill children&lt;a class=&quot;zola-anchor&quot; href=&quot;#using-negative-process-id-to-kill-children&quot; aria-label=&quot;Anchor link for: using-negative-process-id-to-kill-children&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;When Gitea timeout on a child, it relies on &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;blob&#x2F;f8a53df314e4af8cd350eedb0dae77d4c4fc30d0&#x2F;src&#x2F;os&#x2F;exec&#x2F;exec.go#L650&quot;&gt;os.Process.Kill&lt;&#x2F;a&gt; which translates into a using the kill(2) system call to send a SIGKILL signal to unconditionally terminate it: &lt;code&gt;kill(pid, SIGKILL)&lt;&#x2F;code&gt;. Using a negative pid with &lt;code&gt;kill(-pid, SIGKILL)&lt;&#x2F;code&gt; will also terminate all processes created by Gitea&#x27;s child, without Gitea knowing when or why they were created. From the kill(2) manual page:&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;If pid is less than -1, then sig is sent to every process in the process group whose ID is -pid.&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;Which is implemented as follows in the &lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec.go#L130&quot;&gt;Friendly Forge Format library&lt;&#x2F;a&gt;:&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;syscall.Kill(-cmd.Process.Pid, syscall.SIGKILL)&lt;&#x2F;code&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;h3 id=&quot;not-using-the-default-go-commandcontext&quot;&gt;Not using the default Go CommandContext&lt;a class=&quot;zola-anchor&quot; href=&quot;#not-using-the-default-go-commandcontext&quot; aria-label=&quot;Anchor link for: not-using-the-default-go-commandcontext&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Since &lt;a href=&quot;https:&#x2F;&#x2F;pkg.go.dev&#x2F;os&#x2F;exec#CommandContext&quot;&gt;CommandContext&lt;&#x2F;a&gt; does not allow to send a signal to the negative pid of the child process, it has to be implemented by Gitea itself, in a way that is similar to how the &lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec.go#L75-82&quot;&gt;Friendly Forge Format library&lt;&#x2F;a&gt; does it:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt; ctxErr := watchCtx(ctx, cmd.Process.Pid)
&lt;&#x2F;span&gt;&lt;span&gt; err = cmd.Wait()
&lt;&#x2F;span&gt;&lt;span&gt; interruptErr := &amp;lt;-ctxErr
&lt;&#x2F;span&gt;&lt;span&gt; &#x2F;&#x2F; If cmd.Wait returned an error, prefer that.
&lt;&#x2F;span&gt;&lt;span&gt; &#x2F;&#x2F; Otherwise, report any error from the interrupt goroutine.
&lt;&#x2F;span&gt;&lt;span&gt; if interruptErr != nil &amp;amp;&amp;amp; err == nil {
&lt;&#x2F;span&gt;&lt;span&gt; err = interruptErr
&lt;&#x2F;span&gt;&lt;span&gt; }
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h3 id=&quot;testing-the-bug-is-fixed-and-stays-fixed&quot;&gt;Testing the bug is fixed and stays fixed&lt;a class=&quot;zola-anchor&quot; href=&quot;#testing-the-bug-is-fixed-and-stays-fixed&quot; aria-label=&quot;Anchor link for: testing-the-bug-is-fixed-and-stays-fixed&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Long standing bugs that are difficult to reproduce manually such as this one require robust testing to ensure that:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;the diagnostic identifying the root cause is correct&lt;&#x2F;li&gt;
&lt;li&gt;the bug fix works&lt;&#x2F;li&gt;
&lt;li&gt;it does not resurface insidiously because of a subtle regression introduce years later&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;It is easy to implement as can be seen in the &lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec_test.go#L44-76&quot;&gt;Friendly Forge Format library&lt;&#x2F;a&gt;. In a nutshell:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec_test.go#L53&quot;&gt;git clone https:&#x2F;&#x2F;4.4.4.4&lt;&#x2F;a&gt; which will hang because of firewall rules&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec_test.go#L60-65&quot;&gt;wait for the git-remote-https&lt;&#x2F;a&gt; grandchild process to be spawned&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec_test.go#L67-68&quot;&gt;cancel the context and wait for the goroutine to terminate&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec_test.go#L70-75&quot;&gt;verify the git-remote-https is killed&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;And with that... no more zombies!&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[diagnostic] Zombies created by Gitea</title>
<published>2022-06-02T00:00:00+00:00</published>
<updated>2022-06-02T00:00:00+00:00</updated>
<link href="https://gna.org/blog/zombies/" type="text/html"/>
<id>https://gna.org/blog/zombies/</id>
<content type="html">&lt;p&gt;The first &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;3242&quot;&gt;issue about zombie processes&lt;&#x2F;a&gt; created by Gitea was reported in 2017 and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;13987&quot;&gt;resurfaced&lt;&#x2F;a&gt; on a &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19077&quot;&gt;regular basis&lt;&#x2F;a&gt;. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Gitea updates a mirror by spawning the process &lt;code&gt;git remote update&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git remote update&lt;&#x2F;code&gt; spawns yet another process, &lt;code&gt;git fetch&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git fetch&lt;&#x2F;code&gt; is stuck, for instance because of network problems, and Gitea eventually times out&lt;&#x2F;li&gt;
&lt;li&gt;Gitea kill the process &lt;code&gt;git remote update&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;li&gt;When killed &lt;code&gt;git remote update&lt;&#x2F;code&gt; does not kill its own child and &lt;code&gt;git fetch&lt;&#x2F;code&gt; becomes an orphaned process which keeps running&lt;&#x2F;li&gt;
&lt;li&gt;When &lt;code&gt;git fetch&lt;&#x2F;code&gt; eventually completes it becomes a zombie because its original parent is no longer around to wait on it&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;pid-1-process-and-waiting-on-orphans&quot;&gt;PID 1 process and waiting on orphans&lt;a class=&quot;zola-anchor&quot; href=&quot;#pid-1-process-and-waiting-on-orphans&quot; aria-label=&quot;Anchor link for: pid-1-process-and-waiting-on-orphans&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;This scenario is not unique to Gitea and it is such a common pattern that safeguards have been implemented to mitigate the proliferation of zombies. Orphaned process are automatically attached to the process with PID 1, which is expected to wait on every process, whether it created them or not. When Gitea is installed from binary on GNU&#x2F;Linux this is &lt;code&gt;&#x2F;bin&#x2F;init&lt;&#x2F;code&gt; and when Gitea runs from the &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;6171ea7d318c0ca8714bc6efd6a97ea4b495eb6d&#x2F;Dockerfile&quot;&gt;default docker image&lt;&#x2F;a&gt; this is &lt;code&gt;s6&lt;&#x2F;code&gt;: they will both wait on orphaned processes and there won&#x27;t be any zombies.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-if-gitea-is-the-only-running-process&quot;&gt;What if Gitea is the only running process?&lt;a class=&quot;zola-anchor&quot; href=&quot;#what-if-gitea-is-the-only-running-process&quot; aria-label=&quot;Anchor link for: what-if-gitea-is-the-only-running-process&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;But when Gitea runs from the &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;6171ea7d318c0ca8714bc6efd6a97ea4b495eb6d&#x2F;Dockerfile.rootless&quot;&gt;rootless docker image&lt;&#x2F;a&gt;, Gitea is the only process running in the container. Orphaned processes will have Gitea as a parent but will not wait on them and they will stay in a zombie state forever. To reproduce this problem in a minimal way:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ docker run --name gitea -p 8080:3000 -e GITEA__security__INSTALL_LOCK=true -d gitea&#x2F;gitea:1.16.8-rootless
&lt;&#x2F;span&gt;&lt;span&gt;$ docker exec --user 1000 gitea gitea admin user create --admin --username root --password admin1234 --email root@example.com
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;The &lt;code&gt;git&lt;&#x2F;code&gt; command can then be replaced with a script that waits forever:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ ( echo -e &amp;#39;#!&#x2F;bin&#x2F;bash\nsleep infinity&amp;#39; ) | docker exec -i --user root gitea tee &#x2F;usr&#x2F;bin&#x2F;git
&lt;&#x2F;span&gt;&lt;span&gt;$ docker exec --user root gitea chmod +x &#x2F;usr&#x2F;bin&#x2F;git
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Trying to create a repository from the web interface will create the conditions for a zombie to show:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ docker exec gitea ps -o ppid,pid,comm,args
&lt;&#x2F;span&gt;&lt;span&gt;PPID PID COMMAND COMMAND
&lt;&#x2F;span&gt;&lt;span&gt; 0 1 gitea &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gitea -c &#x2F;etc&#x2F;gitea&#x2F;app.ini web
&lt;&#x2F;span&gt;&lt;span&gt; 1 94 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 99 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 111 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 164 git {git} &#x2F;bin&#x2F;bash &#x2F;usr&#x2F;bin&#x2F;git -c credential.helper= -c protocol.version=2 -c uploadpack.allowfilter=true -c uploadpack.allowAnySHA1InWant=true init --bare
&lt;&#x2F;span&gt;&lt;span&gt; 164 165 sleep sleep infinity
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;When the &lt;code&gt;git&lt;&#x2F;code&gt; process is killed by Gitea, the &lt;code&gt;sleep&lt;&#x2F;code&gt; child will be orphaned:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ docker exec gitea ps -o ppid,pid,comm,args
&lt;&#x2F;span&gt;&lt;span&gt;PPID PID COMMAND COMMAND
&lt;&#x2F;span&gt;&lt;span&gt; 0 1 gitea &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gitea -c &#x2F;etc&#x2F;gitea&#x2F;app.ini web
&lt;&#x2F;span&gt;&lt;span&gt; 1 94 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 99 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 111 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 165 sleep sleep infinity
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Killing it will turn it into a zombie:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ docker exec gitea kill 165
&lt;&#x2F;span&gt;&lt;span&gt;$ docker exec gitea ps -o ppid,pid,comm,args
&lt;&#x2F;span&gt;&lt;span&gt;PPID PID COMMAND COMMAND
&lt;&#x2F;span&gt;&lt;span&gt; 0 1 gitea &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gitea -c &#x2F;etc&#x2F;gitea&#x2F;app.ini web
&lt;&#x2F;span&gt;&lt;span&gt; 1 94 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 99 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 111 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 165 sleep [sleep]
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h3 id=&quot;killing-a-child-process-and-all-its-children&quot;&gt;Killing a child process and all its children&lt;a class=&quot;zola-anchor&quot; href=&quot;#killing-a-child-process-and-all-its-children&quot; aria-label=&quot;Anchor link for: killing-a-child-process-and-all-its-children&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Process_group&quot;&gt;process group leaders&lt;&#x2F;a&gt;. In a nutshell it means that when the child is killed all its children and grand children are also killed.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[solved] Gitea 1.15 and up: path not found or permission denied</title>
<published>2022-05-28T00:00:00+00:00</published>
<updated>2022-05-28T00:00:00+00:00</updated>
<link href="https://gna.org/blog/path-not-found/" type="text/html"/>
<id>https://gna.org/blog/path-not-found/</id>
<content type="html">&lt;p&gt;In Gitea 1.15 the &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;cfb4c23a5009b9c236d48ac0bc156577c7d70741&#x2F;custom&#x2F;conf&#x2F;app.example.ini&quot;&gt;app.example.ini&lt;&#x2F;a&gt; file was changed to &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;commit&#x2F;4a84022d2559ccfc99960c7c654ee8b9b38664f7&quot;&gt;comment out most of the values&lt;&#x2F;a&gt;. The assumption was that all values exactly matched the defaults &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;main&#x2F;modules&#x2F;setting&#x2F;setting.go&quot;&gt;in the source code&lt;&#x2F;a&gt;. However, there are differences, for instance for &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;cfb4c23a5009b9c236d48ac0bc156577c7d70741&#x2F;modules&#x2F;setting&#x2F;setting.go#L771&quot;&gt;APP_DATA_PATH&lt;&#x2F;a&gt;. Before Gitea 1.15, &lt;code&gt;app.example.ini&lt;&#x2F;code&gt; contained:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;APP_DATA_PATH = data
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;and the path was relative to the &lt;strong&gt;directory from which the Gitea server was running&lt;&#x2F;strong&gt;. In Gitea 1.15 up to 1.16, it was commented out:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;; APP_DATA_PATH = data
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;and the path was relative to the &lt;strong&gt;work path directory&lt;&#x2F;strong&gt;, as provided either via the --work-path argument or the &lt;code&gt;GITEA_WORK_DIR&lt;&#x2F;code&gt; environment variable. &lt;&#x2F;p&gt;
&lt;p&gt;When a distribution such as voidlinux &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;void-linux&#x2F;void-packages&#x2F;blob&#x2F;master&#x2F;srcpkgs&#x2F;gitea&#x2F;patches&#x2F;config.patch&quot;&gt;uses app.example.ini&lt;&#x2F;a&gt; as a base for the Gitea package, this change indirectly creates a regression and an upgrade of Gitea &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19367&quot;&gt;fails with errors&lt;&#x2F;a&gt; such as &lt;code&gt;unable to open level db at data&#x2F;data&#x2F;queues&#x2F;common: mkdir data: permission denied&lt;&#x2F;code&gt;. The regression did not show as soon as Gitea 1.15 became available in voidlinux because the package &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;void-linux&#x2F;void-packages&#x2F;blob&#x2F;7fc9190f0e0d557dd5031e68df4e183892d4315b&#x2F;srcpkgs&#x2F;gitea&#x2F;patches&#x2F;config.patch#L62&quot;&gt;explicitly set &lt;code&gt;APP_DATA_PATH&lt;&#x2F;code&gt;&lt;&#x2F;a&gt;. But this &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;void-linux&#x2F;void-packages&#x2F;commit&#x2F;19d986a2cae9ce73d32552ddb62443b5e7fa13e2&quot;&gt;changed when Gitea 1.15.6 was packaged&lt;&#x2F;a&gt; and once the value was commented out, upgrading triggered the problem. This was worked around six month later with the &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;void-linux&#x2F;void-packages&#x2F;commit&#x2F;44b6c96fa12ce9d993c7a2ac9486d892735b7e3a&quot;&gt;Gitea 1.16.8&lt;&#x2F;a&gt; package.&lt;&#x2F;p&gt;
&lt;p&gt;The &lt;code&gt;APP_DATA_PATH&lt;&#x2F;code&gt; directory is not the only one, the &lt;code&gt;[log] ROOT_PATH&lt;&#x2F;code&gt; is another example. There is an &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19815&quot;&gt;ongoing effort&lt;&#x2F;a&gt; to improve the situation in Gitea 1.17. With the downside of introducing breaking changes that will have an impact on all Gitea installations because the content of the &lt;code&gt;app.ini&lt;&#x2F;code&gt; file will be interpreted differently. In the case of &lt;code&gt;APP_DATA_PATH&lt;&#x2F;code&gt;, both:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;APP_DATA_PATH = data
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;and:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;; APP_DATA_PATH = data
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;will be interpreted to be relative to the &lt;strong&gt;work path directory&lt;&#x2F;strong&gt;, as provided either via the --work-path argument or the &lt;code&gt;GITEA_WORK_DIR&lt;&#x2F;code&gt; environment variable. Every Gitea installation using &lt;strong&gt;APP_DATA_PATH = data&lt;&#x2F;strong&gt; will need to update the value to be an absolute path such as &lt;strong&gt;&#x2F;var&#x2F;lib&#x2F;gitea&#x2F;data&lt;&#x2F;strong&gt; so that it keeps pointing to the expected directory.&lt;&#x2F;p&gt;
&lt;p&gt;In order to prepare for the change or ensure the consistency of all path, there fortunately is a very simple &lt;strong&gt;solution: always use absolute paths in the &lt;code&gt;app.ini&lt;&#x2F;code&gt; configuration file&lt;&#x2F;strong&gt;.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[solved] Gitea 1.16.[678] error: fatal: unsafe repository is owned by someone else</title>
<published>2022-05-15T00:00:00+00:00</published>
<updated>2022-05-15T00:00:00+00:00</updated>
<link href="https://gna.org/blog/unsafe-repository-is-owned-by-someone-else/" type="text/html"/>
<id>https://gna.org/blog/unsafe-repository-is-owned-by-someone-else/</id>
<content type="html">&lt;p&gt;April 12, 2022 version &lt;a href=&quot;https:&#x2F;&#x2F;lore.kernel.org&#x2F;git&#x2F;xmqqv8veb5i6.fsf@gitster.g&#x2F;&quot;&gt;git v2.35.2&lt;&#x2F;a&gt; was released and addresses a security issue &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;git-for-windows&#x2F;git&#x2F;security&#x2F;advisories&#x2F;GHSA-vw2c-22j4-2fh2&quot;&gt;CVE-2022-24765&lt;&#x2F;a&gt;. It was backported to 2.30.3, v2.31.2, v2.32.1, v2.33.2, and v2.34.2 and published by distributions such as &lt;a href=&quot;https:&#x2F;&#x2F;security-tracker.debian.org&#x2F;tracker&#x2F;CVE-2022-24765&quot;&gt;Debian GNU&#x2F;Linux&lt;&#x2F;a&gt;, &lt;a href=&quot;https:&#x2F;&#x2F;www.alpinelinux.org&#x2F;releases&#x2F;&quot;&gt;Alpine&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;If Gitea runs as user &lt;code&gt;foo&lt;&#x2F;code&gt;, calls a patched Git version and a parent directory of the git repositories is owned by a user other than &lt;code&gt;foo&lt;&#x2F;code&gt;, it will fail&lt;&#x2F;strong&gt; with a message such as:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;Failed to open repository: Git&#x2F;Data Error: exit status 128 - fatal: unsafe repository (&amp;#39;&#x2F;data&#x2F;git&#x2F;repositories&#x2F;git&#x2F;data.git&amp;#39; is owned by someone else)
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This started to show in the past few weeks to &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19455&quot;&gt;users running the Gitea binary on Windows&lt;&#x2F;a&gt; who also independently installed git v2.36. And then to people running &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19455#issuecomment-1106331149&quot;&gt;Gitea from snap&lt;&#x2F;a&gt;, on &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19455#issuecomment-1106312061&quot;&gt;a Synology NAS&lt;&#x2F;a&gt; and then people running from &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;main&#x2F;Dockerfile#L2&quot;&gt;Gitea docker images&lt;&#x2F;a&gt; which is based on &lt;a href=&quot;https:&#x2F;&#x2F;www.alpinelinux.org&#x2F;releases&#x2F;&quot;&gt;Alpine&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;workarounds&quot;&gt;Workarounds&lt;a class=&quot;zola-anchor&quot; href=&quot;#workarounds&quot; aria-label=&quot;Anchor link for: workarounds&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;If using &lt;a href=&quot;https:&#x2F;&#x2F;hub.docker.com&#x2F;r&#x2F;gitea&#x2F;gitea&quot;&gt;Gitea docker images&lt;&#x2F;a&gt;:
&lt;ul&gt;
&lt;li&gt;upgrade to &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19876&quot;&gt;Gitea &amp;gt;=1.16.9&lt;&#x2F;a&gt; or 1.17, both have git &amp;gt;=2.36&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git config --global --replace-all safe.directory &#x27;*&#x27;&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;If the Gitea binary was installed independently of git, upgrade git to a version that is &lt;a href=&quot;https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;git-config#Documentation&#x2F;git-config.txt-safedirectory&quot;&gt;greater or equal to 2.36&lt;&#x2F;a&gt; and disable the security check entirely with:
&lt;ul&gt;
&lt;li&gt;impersonate the &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-from-binary&#x2F;#recommended-server-configuration&quot;&gt;user dedicated to Gitea&lt;&#x2F;a&gt; (usually git)&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git config --global --replace-all safe.directory &#x27;*&#x27;&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;bug-fix&quot;&gt;Bug fix&lt;a class=&quot;zola-anchor&quot; href=&quot;#bug-fix&quot; aria-label=&quot;Anchor link for: bug-fix&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;The &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19870&quot;&gt;bug fix&lt;&#x2F;a&gt; is for Gitea to ensure &lt;code&gt;git config --global --replace-all safe.directory &#x27;*&#x27;&lt;&#x2F;code&gt; is set on its &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-from-binary&#x2F;#recommended-server-configuration&quot;&gt;dedicated user&lt;&#x2F;a&gt; when it initializes. It is effective on the condition that the git CLI version is &lt;a href=&quot;https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;git-config#Documentation&#x2F;git-config.txt-safedirectory&quot;&gt;greater or equal to 2.36&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;bug-fix-rationale&quot;&gt;Bug fix rationale&lt;a class=&quot;zola-anchor&quot; href=&quot;#bug-fix-rationale&quot; aria-label=&quot;Anchor link for: bug-fix-rationale&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;It is safe to &lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;forgefriends&#x2F;forgefriends&#x2F;-&#x2F;merge_requests&#x2F;50&#x2F;diffs&quot;&gt;disable the security check in Gitea&lt;&#x2F;a&gt;. It is not vulnerable to &lt;strong&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;git-for-windows&#x2F;git&#x2F;security&#x2F;advisories&#x2F;GHSA-vw2c-22j4-2fh2&quot;&gt;CVE-2022-24765&lt;&#x2F;a&gt;&lt;&#x2F;strong&gt; because it calls the git CLI &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;main&#x2F;modules&#x2F;git&#x2F;command.go#L160&quot;&gt;after changing its working directory&lt;&#x2F;a&gt; to be the git repository targeted by the command (for instance &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;main&#x2F;modules&#x2F;git&#x2F;diff.go#L38-L45&quot;&gt;diff&lt;&#x2F;a&gt;) or a temporary directory. Therefore &lt;strong&gt;it will not explore the parent directories looking for a git configuration file&lt;&#x2F;strong&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;The security check is triggered because the repository is owned by an unexpected user (root instead of git typically) and &lt;strong&gt;not because a parent directory is owned by an unexpected user&lt;&#x2F;strong&gt;. This, in itself, is a problem worth investigating but it is unrelated and was revealed by the newer security check of git even though it does not match the threat described in &lt;strong&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;git-for-windows&#x2F;git&#x2F;security&#x2F;advisories&#x2F;GHSA-vw2c-22j4-2fh2&quot;&gt;CVE-2022-24765&lt;&#x2F;a&gt;&lt;&#x2F;strong&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;It appears non trivial to enforce a consistent ownership of files and directories, either within docker or outside docker when networked file systems are involved. The Gitea server was not troubled by this inconsistency so far because the permissions allow it to write and read where expected, regardless of the owner. It is not worth looking into but it is ancient and unrelated.&lt;&#x2F;p&gt;
&lt;p&gt;Gitea runs under a dedicated user, either when installed &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-from-binary&#x2F;#recommended-server-configuration&quot;&gt;from binary&lt;&#x2F;a&gt; or from &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-with-docker&#x2F;&quot;&gt;docker&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;main&#x2F;modules&#x2F;git&#x2F;git.go#L196-L207&quot;&gt;modifies the global git configuration&lt;&#x2F;a&gt; depending on the git version at initialization time. Fixing the problem can therefore be done by &lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;forgefriends&#x2F;forgefriends&#x2F;-&#x2F;merge_requests&#x2F;50&#x2F;diffs#bcd72ff867cbd1ddd5b6518c3a05b5f1a6021286_209_209&quot;&gt;disabling the security check in the global git config file at initialization time&lt;&#x2F;a&gt;. It also requires a minimum version of git 2.36 to be installed, which is the case for Gitea docker images with &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19876&quot;&gt;versions &amp;gt;= 1.16.9&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[solved] blank or error 500 page after login</title>
<published>2022-05-08T00:00:00+00:00</published>
<updated>2022-05-08T00:00:00+00:00</updated>
<link href="https://gna.org/blog/blank-or-error-500-page-after-login/" type="text/html"/>
<id>https://gna.org/blog/blank-or-error-500-page-after-login/</id>
<content type="html">&lt;p&gt;The &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;upgrade-from-gitea&#x2F;#upgrade-from-binary&quot;&gt;instructions to upgrade a Gitea instance&lt;&#x2F;a&gt; only require three to four steps. They work fine most of the time but the documentation is lacking a &amp;quot;Troubleshooting&amp;quot; section to help out when something goes wrong. Maintaining instructions on how to diagnose and fix upgrade problems is an ambitious undertaking and requires updates every time a new case is discovered.&lt;&#x2F;p&gt;
&lt;p&gt;An &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;t&#x2F;things-to-know-about-gitea-upgrades&#x2F;39&quot;&gt;inventory of the known upgrade issues&lt;&#x2F;a&gt; was started to figure out how to structure such a section in the documentation. The &lt;a href=&quot;https:&#x2F;&#x2F;blog.gitea.io&#x2F;&quot;&gt;release notes&lt;&#x2F;a&gt; were analyzed all the way back to &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;releases&#x2F;tag&#x2F;v1.9.6&quot;&gt;Gitea 1.9.6&lt;&#x2F;a&gt; and the work is still in progress. Here is a sample of the tips that will be included:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Upgrade directly to the latest Gitea version, there is no need to upgrade to intermediate versions.&lt;&#x2F;li&gt;
&lt;li&gt;If the upgrade from version x.y to version x.y+2 fails and there is a need to narrow down the problem, try upgrading to the latest minor version of each major version and verify it works.&lt;&#x2F;li&gt;
&lt;li&gt;etc.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;However, even with the best documentation, someone will eventually &lt;strong&gt;run into an new problem&lt;&#x2F;strong&gt; and fixing it without compromising the integrity of the data will be challenging. This is best demonstrated by a real world example that was concluded a few days ago.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;getting-help-from-the-community&quot;&gt;Getting help from the community&lt;a class=&quot;zola-anchor&quot; href=&quot;#getting-help-from-the-community&quot; aria-label=&quot;Anchor link for: getting-help-from-the-community&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;After &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&quot;&gt;upgrading a Gitea intsance from 1.9.6 to 1.16.5&lt;&#x2F;a&gt; the tests conducted manually did not uncover any problem. However, after going to production, some users saw a blank page after login and had to manually type the URL of the project they wanted to see in the browser. The person in charge of the upgrade never had to diagnose Gitea problem and &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&quot;&gt;reached out in the Gitea forum&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip: explain the problem in a public forum as early as possible to get help from the community&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;In their post in the forum they explained how they attempted to diagnose the problem and how why they thought that only users created a few years ago were impacted. It was a detailed analysis that was concluded with a partial copy of the logs. It was unfortunately missing &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;12&quot;&gt;key information&lt;&#x2F;a&gt; that was provided only three days later. In the meantime, as they could not figure out the source of the problem, they were on the &lt;strong&gt;verge of &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;11&quot;&gt;accepting the loss of all the Gitea database&lt;&#x2F;a&gt; and start over from the repositories&lt;&#x2F;strong&gt;. However, once all the details were available, &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;13&quot;&gt;a workaround&lt;&#x2F;a&gt; was suggested in the forum.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip: focus more on providing detailed facts than exposing the attempted diagnostic&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;There was hope to fix Gitea and in the following days they applied the workaround. They also tried to improve it but without success and eventually accepted a &lt;strong&gt;partial data loss&lt;&#x2F;strong&gt; as inevitable and &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;14&quot;&gt;reported their success back to the forum&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip: when getting support from the community, providing feedback is the best token of appreciation&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;h1 id=&quot;getting-professional-help&quot;&gt;Getting professional help&lt;a class=&quot;zola-anchor&quot; href=&quot;#getting-professional-help&quot; aria-label=&quot;Anchor link for: getting-professional-help&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;The &lt;a href=&quot;https:&#x2F;&#x2F;gna.org&#x2F;gitea-clinic&#x2F;&quot;&gt;Gna! Clinic&lt;&#x2F;a&gt; is a collective of individual and companies that provides professional services to Gitea admins. They are active members of the Gitea community who &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;u&#x2F;dachary&#x2F;activity&quot;&gt;help out&lt;&#x2F;a&gt; as volunteers. They can also be hired to resolve the more complicated cases.&lt;&#x2F;p&gt;
&lt;p&gt;The Gitea instance that was in trouble required more than a few minutes of work and access to the database content for a proper diagnostic. They &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;13&quot;&gt;proposed their assistance&lt;&#x2F;a&gt; but although &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;user-research-about-gitea-upgrade-experiences-call-for-volunteers&#x2F;5063&#x2F;2&quot;&gt;well received&lt;&#x2F;a&gt;, it was not accepted.&lt;&#x2F;p&gt;
&lt;p&gt;When the Gitea admin explained how they chose to resolve the problem &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;14&quot;&gt;on the forum&lt;&#x2F;a&gt;, it confirmed the workaround was viable and the root problem was identified. That was enough to figure out a fix for the underlying bug with &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;17&quot;&gt;a rather simple patch&lt;&#x2F;a&gt; that was merged &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19629&quot;&gt;and backported&lt;&#x2F;a&gt; in the following days. But it happened too late to avoid the data loss.&lt;&#x2F;p&gt;
&lt;p&gt;To summarize with a timeline, here is what happened:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;J+1: The &lt;strong&gt;problem is discovered&lt;&#x2F;strong&gt; by users who see a blank page after login and a the Gitea admin tries to diagnose the problem&lt;&#x2F;li&gt;
&lt;li&gt;J+2: A message is sent &lt;strong&gt;to ask for help in the community&lt;&#x2F;strong&gt;&lt;&#x2F;li&gt;
&lt;li&gt;J+2 to J+6: Three people in the community suggest ideas but &lt;strong&gt;the Gitea admin cannot figure out the root cause and is on the verge of accepting the loss of all Gitea data&lt;&#x2F;strong&gt; and restart from the git repositories&lt;&#x2F;li&gt;
&lt;li&gt;J+6: A &lt;strong&gt;workaround is suggested by the community&lt;&#x2F;strong&gt;&lt;&#x2F;li&gt;
&lt;li&gt;J+7 to J+17: The Gitea admin applies the &lt;strong&gt;workaround and only looses part of the Gitea data&lt;&#x2F;strong&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;And in retrospect, here is what could have happened instead:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;J+1: The &lt;strong&gt;problem is discovered&lt;&#x2F;strong&gt; by users who see a blank page after login&lt;&#x2F;li&gt;
&lt;li&gt;J+1: The Gitea admin &lt;strong&gt;&lt;a href=&quot;https:&#x2F;&#x2F;gna.org&#x2F;gitea-clinic&#x2F;&quot;&gt;reaches out to someone at the Gna! Clinic&lt;&#x2F;a&gt;&lt;&#x2F;strong&gt;&lt;&#x2F;li&gt;
&lt;li&gt;J+2: The &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;12&quot;&gt;logs of the Gitea instance&lt;&#x2F;a&gt; are analyzed, &lt;strong&gt;the root cause diagnosed&lt;&#x2F;strong&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;17&quot;&gt;a patch&lt;&#x2F;a&gt; is created to fix it.&lt;&#x2F;li&gt;
&lt;li&gt;J+3: If necessary a Gitea binary is created with the patch and used as a temporary replacement until the next point release is published with &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19629&quot;&gt;the backport&lt;&#x2F;a&gt;. The Gitea admin runs the patched Gitea binary in the meantime. &lt;strong&gt;There is no data loss&lt;&#x2F;strong&gt;.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;It does not mean all upgrade problems can be resolved so easily. But it shows, with an example, that in some cases it makes sense to get professional help.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>Project plans for a hosted Gitea online service</title>
<published>2022-04-18T00:00:00+00:00</published>
<updated>2022-04-18T00:00:00+00:00</updated>
<link href="https://gna.org/blog/project-plans-for-hosted-gitea-online-service/" type="text/html"/>
<id>https://gna.org/blog/project-plans-for-hosted-gitea-online-service/</id>
<content type="html">&lt;p&gt;&lt;em&gt;This post was originally published on &lt;a href=&quot;https:&#x2F;&#x2F;blog.dachary.org&#x2F;2022&#x2F;02&#x2F;16&#x2F;project-plans-for-a-hosted-gitea-online-service&#x2F;&quot;&gt;Loïc Dachary&#x27;s
blog&lt;&#x2F;a&gt;.&lt;&#x2F;em&gt;&lt;&#x2F;p&gt;
&lt;hr &#x2F;&gt;
&lt;p&gt;When an organization asks me about Gitea, I would like to direct them to
a provider where they can rent an instance and just use it, in the same
way they can go to https:&#x2F;&#x2F;discourse.org for a forum, or
https:&#x2F;&#x2F;nextcloud.com for storage. Instead of waiting for that to
happen, &lt;a href=&quot;https:&#x2F;&#x2F;batsense.net&#x2F;about&#x2F;&quot;&gt;Aravinth&lt;&#x2F;a&gt; and
&lt;a href=&quot;https:&#x2F;&#x2F;dachary.org&#x2F;&quot;&gt;myself&lt;&#x2F;a&gt; decided to do something about it, in a
way that is in line with our shared values: transparency and Free
Software.&lt;&#x2F;p&gt;
&lt;p&gt;After doing some research we found counter examples that showed the
pitfalls to avoid. GitLab because its business model heavily relies on
selling proprietary licenses. CiviCRM because setting it up is complex
and requires training: users can&#x27;t figure it out on their own. Gitea
images provided by Digital Ocean because they do not include security
upgrades. MySQL configured and run by AWS because of the vendor lock-in
that makes it impossible to self-host.&lt;&#x2F;p&gt;
&lt;p&gt;We concluded that an online service such as Gitea can be hosted in a
sustainable way as long as:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;It is well maintained and upgrades itself&lt;&#x2F;li&gt;
&lt;li&gt;It can be self-hosted&lt;&#x2F;li&gt;
&lt;li&gt;The service can automatically be restored from backups when the
underlying resources fail&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;GitHub and GitLab make it look like there is a market around software
forges. It is however impossible to figure out if this market exists
only because it is based on proprietary software. How many of these
customers would pay for a Free Software hosted Gitea instance?&lt;&#x2F;p&gt;
&lt;p&gt;Even if these customers do exist, a new service provider would have to
figure out how to convince them to subscribe. The technical development
of the service can be done within weeks but building a sustainable
business takes much longer. Again, there were examples of what can go
wrong, for instance ElasticSearch. After years of work developing a
successful online service and a customer base, AWS entered the
competition and started to take it away from them.&lt;&#x2F;p&gt;
&lt;p&gt;The sustainability of the Free Software ecosystem is a new and very
difficult problem to solve. It is discussed more than it ever was in the
wake of security breaches originating from widely used and yet abandoned
library or disillusioned Free Software authors self-sabotaging their
next release, and everyone has diverging opinions. It falls on each Free
Software author to spend time to think about their own projects because
there are no handbook or good examples to follow. That is what Aravinth
and myself did to find a semblance of clarity and decide how to go about
this hosted Gitea service idea.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;sustaining-free-software-online-services&quot;&gt;Sustaining Free Software online services&lt;a class=&quot;zola-anchor&quot; href=&quot;#sustaining-free-software-online-services&quot; aria-label=&quot;Anchor link for: sustaining-free-software-online-services&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;h2 id=&quot;more-mature-online-services-mean-less-opportunities-to-sell-services&quot;&gt;More mature online services mean less opportunities to sell services&lt;a class=&quot;zola-anchor&quot; href=&quot;#more-mature-online-services-mean-less-opportunities-to-sell-services&quot; aria-label=&quot;Anchor link for: more-mature-online-services-mean-less-opportunities-to-sell-services&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h2&gt;
&lt;p&gt;Ideally the software running an online service is rock solid and bugs
are so rare that it can run unattended. This is true of
https:&#x2F;&#x2F;wordpress.org and it is not uncommon for an instance to run for
years while upgrading themselves to get security patches. The cost of
maintaining such a service is negligible and hosting companies can offer
it for free to their customers. They make their profit by renting the
machines on which the service runs.&lt;&#x2F;p&gt;
&lt;p&gt;When the software is not as mature, it is more expensive to run. Bugs
need fixing, upgrades require manual intervention, users must be trained
to overcome the complexity of the user experience, etc. Well known
examples are Discourse or CiviCRM for which companies sell services to
overcome these issues.&lt;&#x2F;p&gt;
&lt;p&gt;But when an organization is both the author of the software and the
provider of paid services to compensate for its lack of maturity, it
creates a conflict of interest. Should they focus their effort on making
the software more mature, they would harm a business model that is based
on this very lack of maturity. For instance, if the author of a software
also sells training courses, they are not motivated to solve user
experience issues. If they did, it would lower the need for training
courses and reduce their income.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;free-software-online-services-in-the-wake-of-the-sustainability&quot;&gt;Free Software online services in the wake of the sustainability&lt;a class=&quot;zola-anchor&quot; href=&quot;#free-software-online-services-in-the-wake-of-the-sustainability&quot; aria-label=&quot;Anchor link for: free-software-online-services-in-the-wake-of-the-sustainability&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h2&gt;
&lt;p&gt;crisis&lt;&#x2F;p&gt;
&lt;p&gt;Nowadays all Free Software authors struggle to get enough resources to
produce a steady stream of releases, even when the project is very
popular. This sustainability problem is getting more and more attention
as the number of Free Software projects in use world wide keeps growing.
Even the simplest online service relies on thousands of Free Software
projects, each of which needs work to keep going. Accidents caused by
poorly maintained Free Software projects become more frequent.&lt;&#x2F;p&gt;
&lt;p&gt;This Free Software sustainability crisis is barely emerging and very
much resembles ecological problems such as climate change. In both cases
it is very difficult to figure out how to properly care for the
resources that are consumed. After decades of advocacy, it is generally
accepted that fossil energy won&#x27;t last forever but there still is a long
way to go. It will also take a long time for the Free Software community
to answer this simple question: how to sustain an ever growing library
of Free Software?&lt;&#x2F;p&gt;
&lt;p&gt;Luckily, it is relatively simpler to solve that problem for an online
service because it has users. They can be reminded that their assistance
is needed to keep the project afloat, for instance by a donation. A
proposition that would be much more difficult to make for the author of
a cryptographic library. Convincing users to pay for an online service
has the best chance of success when the author of the software is also
the service provider. This is the business model of Discourse and
Weblate, but it is relatively fragile because nothing stands in the way
of the competition.&lt;&#x2F;p&gt;
&lt;p&gt;A few years ago ElasticSearch successfully developed an online service
offering. But when AWS entered the competition and was better at
marketing it, ElasticSearch quickly realized they would likely go out of
business. They tried to fight back by &lt;a href=&quot;https:&#x2F;&#x2F;www.elastic.co&#x2F;blog&#x2F;licensing-change&quot;&gt;changing their
license&lt;&#x2F;a&gt;, which was the
wrong answer to a real problem. Discourse or Weblate are also likely to
face competition from hosting companies in the future and they may not
survive it.&lt;&#x2F;p&gt;
&lt;p&gt;In the end, the durable source of income for a Free Software online
service is to rent the resources (CPU&#x2F;RAM&#x2F;network&#x2F;disk) it needs to run.
In other words only hosting companies can make a profit when running
such an online service. And for that reason they also need to share part
of the profits to ensure the sustainability of the Free Software service
their customers need.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;online-services-vendor-lock-in-is-cured-by-free-software&quot;&gt;Online services vendor lock-in is cured by Free Software&lt;a class=&quot;zola-anchor&quot; href=&quot;#online-services-vendor-lock-in-is-cured-by-free-software&quot; aria-label=&quot;Anchor link for: online-services-vendor-lock-in-is-cured-by-free-software&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;When hosting companies offer online services they also provide upgrades
and transparent recovery when the hardware fails. But none of them allow
the service to be self-hosted. When their price policy change, or when
the term of services ban users from a given country, migrating the
service elsewhere it costly and difficult. For instance when AWS runs
MySQL for their customers, they allow to download the data but not the
software that runs the proprietary AWS interface used to configure and
control the server. Another example is GitHub where the content of the
git repository can be downloaded but the code that runs GitHub itself is
not Free Software.&lt;&#x2F;p&gt;
&lt;p&gt;If a customer cannot run the same software as their service provider,
they are locked-in, even if they can download their data. It is a common
misconception to think that there is no vendor lock-in as long as it is
possible to download the data in an standard format. Migrating the data
from one software to another is, more often than not, time consuming and
costly to a point that it is effectively a blocker. A GitHub salesperson
would argue that it is possible for people to run GitHub Enterprise on
their own hardware. But the vendor lock-in is still present via the
proprietary license contract. The user experience, maintenance and
upgrades are still exclusively controlled by GitHub.&lt;&#x2F;p&gt;
&lt;p&gt;To guarantee their independence, the customers of an online service need
to be able to:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Download their data&lt;&#x2F;li&gt;
&lt;li&gt;Run the exact same Free Software as their service provider&lt;&#x2F;li&gt;
&lt;li&gt;Run the exact same Free Software infrastructure as code as their
service provider&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The requirement regarding Free Software infrastructure as code refers
to, for instance, the AWS control panel and all that is behind it when
creating a new MySQL service. It includes whatever a competitor would
need to run the same online service. An example would be
https:&#x2F;&#x2F;enough.community, an infrastructure as code dedicated to
creating the services needed by whistleblowers and human rights
defenders. It consumes resources rented by hosting providers, assembles
disks and machines, setup monitoring and intrusion detection, installs
various online services and upgrades them.&lt;&#x2F;p&gt;
&lt;p&gt;The availability of the software that creates the infrastructure is not
only useful to the competitors of a service provider. It also benefits a
non-profit that wants to provide (for instance) Wordpress instances to
its members. Without it they would need to create something from scratch
using building blocks such as CiviCRM. Even though such building blocks
exist, this is a significant undertaking and effectively a blocker.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;federated-online-services-and-durability&quot;&gt;Federated online services and durability&lt;a class=&quot;zola-anchor&quot; href=&quot;#federated-online-services-and-durability&quot; aria-label=&quot;Anchor link for: federated-online-services-and-durability&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;All self-hosted services are in danger of losing the data they contain.
When a Wordpress service is hosted in a home and the machine dies, it
must be restored from backups... when there are backups. Hosting
companies ensure the durability of the data with their own backup
system. It creates a dilemma for people who are looking into self
hosting: independence is desirable, but is it worth taking the risk of
data loss?&lt;&#x2F;p&gt;
&lt;p&gt;Federated online services do not suffer from this problem, because they
can mirror each other. A Gitea instance that is federated with another
will mirror copies of software projects found on its peers. Should one
instance be destroyed, mirrored projects can be resurrected from the
federated instance. Not only is it a practical way to ensure the (rare)
failure of an entire datacenter, it also helps with the (more frequent)
destruction of self-hosted machines. Contrary to backups that require
special attention, the replication involved in federated online service
is built in and works continuously. There is no need for an extra backup
service that is very rarely used and therefore likely to fail when
needed.&lt;&#x2F;p&gt;
&lt;p&gt;Federated services are not yet mainstream and Gitea is one of the rare
services that started to implement the concept. In the interim,
customers of an online hosting service will need to worry about backups
to ensure the durability of their data. But the ultimate solution for
them won&#x27;t be the emergence of an ideal backup infrastructure, it will
be replication (via federated services) that will continuously ensure
the durability of their data.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;paths-forward&quot;&gt;Paths forward&lt;a class=&quot;zola-anchor&quot; href=&quot;#paths-forward&quot; aria-label=&quot;Anchor link for: paths-forward&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;The Gitea project itself, following the footsteps of Discourse or
Weblate, could provide a hosting service. Part of its current user base
may become customers and there does not seem to be any blocker to make
that happen. As with most successful Free Software project, people
working on Gitea daily are already very busy and cannot engage in such a
long term project. But Aravinth and myself can, if they will have us.&lt;&#x2F;p&gt;
&lt;p&gt;Another path forward would be to wrap Gitea into a bundle that existing
hosting companies could easily use to provide such a service to their
customers. The biggest hosting companies are unlikely to be interested:
if Digital Ocean was to provide upgrades on top of their existing Gitea
image, they are more likely to rely on their internal staff to implement
that from scratch, as proprietary software integrated into their
existing infrastructure. But smaller hosting companies such as
https:&#x2F;&#x2F;Octopuce.fr or https:&#x2F;&#x2F;Easter-Eggs.com, who already deploy Gitea
instances for their customers, would use it if, for instance, it helped
with the upgrades. They would then kindly be reminded to give back a
share of their profits in order to sustain the development of the
service they deploy.&lt;&#x2F;p&gt;
&lt;p&gt;Finally it would also be possible to follow the example of GitLab in the
early days (before it turned to proprietary software) or Codeberg and
offer a free shared forge hosting service to build a user base. After a
few years, a percentage of the user base would convert to being paid
customers or donors to sustain the activity and part of the income would
be used to sustain the development of the service.&lt;&#x2F;p&gt;
</content>
</entry>
</feed>

560
tags/gitea/index.html Normal file
View File

@ -0,0 +1,560 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>gitea | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="gitea" />
<meta property="og:title" content="gitea | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="gitea" />
<meta
property="og:site_name"
content="gitea | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="blog__container">
<div class="tag__title-container">
<h1 class="tag__title">#gitea</h1>
<a class="tag__rss-link--single" href="https:&#x2F;&#x2F;gna.org&#x2F;tags&#x2F;gitea&#x2F;atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="tag__rss-icon--single"
alt="RSS icon"
/>
</a></div>
<ul class="blog__list">
<li class="blog__post-item">
<a href="https://gna.org/blog/1-17-breaking-episode-2/" class="blog__post-link">
<h2 class="blog__post-title">1.17 breaking changes episode 2: preserving a custom gitconfig</h2>
<p class="blog__post-meta">
20
July
,
2022 &middot; <b>2 min read</b>
</p>
<p class="blog__post-description">The location of the gitconfig file used by Gitea moved twice, here is a guide to sort out why and how to deal with it. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
<a class="blog__post-tag" href="/tags/tutorial">#tutorial</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/experimental/" class="blog__post-link">
<h2 class="blog__post-title">Get a Gitea instance with CI at Gna!</h2>
<p class="blog__post-meta">
10
July
,
2022 &middot; <b>5 min read</b>
</p>
<p class="blog__post-description">It is now possible to rent a Gitea instance by the month, with Woodpecker CI. A self-hostable hosting solution supported by a horizontal collective of individuals and organizations. 25% of the income is dedicated to help the Free Software projects it depends on such as Gitea, Enough, Django, etc. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/federation">#federation</a>
<a class="blog__post-tag" href="/tags/forgefriends">#forgefriends</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/1-17-breaking-episode-1/" class="blog__post-link">
<h2 class="blog__post-title">1.17 breaking changes episode 1: preserving a custom gitconfig</h2>
<p class="blog__post-meta">
22
June
,
2022 &middot; <b>2 min read</b>
</p>
<p class="blog__post-description">The location of the gitconfig file used by Gitea moved and custom modifications must be manually moved as well. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
<a class="blog__post-tag" href="/tags/tutorial">#tutorial</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/gentle-introduction-to-the-doctor/" class="blog__post-link">
<h2 class="blog__post-title">[tutorial] A gentle introduction to the gitea doctor</h2>
<p class="blog__post-meta">
14
June
,
2022 &middot; <b>7 min read</b>
</p>
<p class="blog__post-description">The doctor command is useful to check the health of a running Gitea instance. Specially after performing an upgrade. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
<a class="blog__post-tag" href="/tags/tutorial">#tutorial</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/zombies-part-2/" class="blog__post-link">
<h2 class="blog__post-title">[solved] Zombies created by Gitea</h2>
<p class="blog__post-meta">
4
June
,
2022 &middot; <b>3 min read</b>
</p>
<p class="blog__post-description">Gitea can use process groups to kill its children using a negative PID to never create zombies. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/zombies/" class="blog__post-link">
<h2 class="blog__post-title">[diagnostic] Zombies created by Gitea</h2>
<p class="blog__post-meta">
2
June
,
2022 &middot; <b>4 min read</b>
</p>
<p class="blog__post-description">An increasing number of zombies processes are created by Gitea because it only kills its direct children on timeout. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/path-not-found/" class="blog__post-link">
<h2 class="blog__post-title">[solved] Gitea 1.15 and up: path not found or permission denied</h2>
<p class="blog__post-meta">
28
May
,
2022 &middot; <b>3 min read</b>
</p>
<p class="blog__post-description">After migrating from 1.15 or earlier to gitea 1.16 paths are no longer found and files cannot be created because of permission problems because the default example.ini file changed. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/upgrade">#upgrade</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/unsafe-repository-is-owned-by-someone-else/" class="blog__post-link">
<h2 class="blog__post-title">[solved] Gitea 1.16.[678] error: fatal: unsafe repository is owned by someone else</h2>
<p class="blog__post-meta">
15
May
,
2022 &middot; <b>4 min read</b>
</p>
<p class="blog__post-description">If Gitea runs as user git, calls a patched Git version and a parent directory of the git repositories is owned by a user other than git, it will fail. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/upgrade">#upgrade</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/blank-or-error-500-page-after-login/" class="blog__post-link">
<h2 class="blog__post-title">[solved] blank or error 500 page after login</h2>
<p class="blog__post-meta">
8
May
,
2022 &middot; <b>6 min read</b>
</p>
<p class="blog__post-description">After going to production, some Gitea users saw a blank page after login and had to manually type the URL of the project they wanted to see in the browser. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/upgrade">#upgrade</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/project-plans-for-hosted-gitea-online-service/" class="blog__post-link">
<h2 class="blog__post-title">Project plans for a hosted Gitea online service</h2>
<p class="blog__post-meta">
18
April
,
2022 &middot; <b>11 min read</b>
</p>
<p class="blog__post-description">When an organization asks me about Gitea, I would like to direct them to a provider where they can rent an instance and just use it </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/free-software">#free-software</a>
<a class="blog__post-tag" href="/tags/free-software-sustainability">#free-software-sustainability</a>
</div>
</li>
</ul>
</div>
<link rel="alternate" type="application/rss+xml" title="RSS" href="https://gna.org/rss.xml">
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

720
tags/gna/atom.xml Normal file
View File

@ -0,0 +1,720 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title> - gna</title>
<link href="https://gna.org/tags/gna/atom.xml" rel="self" type="application/atom+xml"/>
<link href="https://gna.org"/>
<generator uri="https://www.getzola.org/">Zola</generator>
<updated>2022-07-20T00:00:00+00:00</updated>
<id>https://gna.org/tags/gna/atom.xml</id>
<entry xml:lang="en">
<title>1.17 breaking changes episode 2: preserving a custom gitconfig</title>
<published>2022-07-20T00:00:00+00:00</published>
<updated>2022-07-20T00:00:00+00:00</updated>
<link href="https://gna.org/blog/1-17-breaking-episode-2/" type="text/html"/>
<id>https://gna.org/blog/1-17-breaking-episode-2/</id>
<content type="html">&lt;p&gt;On June 21st, 2022 1.17.0-rc1 was published and the location of the gitconfig file moved to a new location, &lt;a href=&quot;2022-06-23-1.17-breaking-episode-1&quot;&gt;which required manual intervention&lt;&#x2F;a&gt;. This change impacted a large number of Gitea installations because the docker image tag &lt;strong&gt;latest&lt;&#x2F;strong&gt; &lt;a href=&quot;https:&#x2F;&#x2F;mastodon.online&#x2F;@hostea&#x2F;108514134565401798&quot;&gt;was set to 1.17.0-rc1&lt;&#x2F;a&gt; by accident. As a result, about 10,000 pulls per hour from the docker hub got the release candidate instead of the expected stable version.&lt;&#x2F;p&gt;
&lt;p&gt;Unfortunately moving the git home directory in 1.17.0-rc1 was implemented in way that created a security problem. The &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;20114&quot;&gt;fix that was merged in Gitea&lt;&#x2F;a&gt; to fix it requires moving the gitconfig file and was released July 19th, 2022 in 1.17.0-rc2.&lt;&#x2F;p&gt;
&lt;p&gt;This would have been a minor inconvenience if it only has an impact on adventurous people trying the release candidate in a test environment. But since all Gitea production installations based on the &lt;strong&gt;latest&lt;&#x2F;strong&gt; tag were inadvertently upgraded to 1.17.0-rc1, the admins who moved their custom .gitconfig will need to move it one more time when upgrading to 1.17.0-rc2.&lt;&#x2F;p&gt;
&lt;p&gt;In 1.17.0-rc2, a custom .gitconfig must be moved manually to the &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;config-cheat-sheet&#x2F;#git-git&quot;&gt;new git home directory&lt;&#x2F;a&gt; as follows:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Figure out the directory where &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; must be moved by &lt;a href=&quot;https:&#x2F;&#x2F;gna.org&#x2F;blog&#x2F;gentle-introduction-to-the-doctor&#x2F;&quot;&gt;running the doctor&lt;&#x2F;a&gt;:&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;pre data-lang=&quot;shell&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-shell &quot;&gt;&lt;code class=&quot;language-shell&quot; data-lang=&quot;shell&quot;&gt;&lt;span&gt;$ gitea --work-path &#x2F;app&#x2F;gitea -c &#x2F;data&#x2F;gitea&#x2F;conf&#x2F;app.ini doctor
&lt;&#x2F;span&gt;&lt;span&gt;[1] Check paths and basic configuration
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Configuration File Path: &amp;quot;&#x2F;data&#x2F;gitea&#x2F;conf&#x2F;app.ini&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Repository Root Path: &amp;quot;&#x2F;data&#x2F;git&#x2F;repositories&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Data Root Path: &amp;quot;&#x2F;data&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Custom File Root Path: &amp;quot;&#x2F;data&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Work directory: &amp;quot;&#x2F;app&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Log Root Path: &amp;quot;&#x2F;data&#x2F;gitea&#x2F;log&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt;OK
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;ul&gt;
&lt;li&gt;Copy the &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; file to the &lt;strong&gt;Data Root Path&lt;&#x2F;strong&gt;&#x2F;home (which is &lt;code&gt;&#x2F;data&#x2F;gitea&#x2F;home&lt;&#x2F;code&gt; in the example above).&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
</content>
</entry>
<entry xml:lang="en">
<title>Get a Gitea instance with CI at Gna!</title>
<published>2022-07-10T00:00:00+00:00</published>
<updated>2022-07-10T00:00:00+00:00</updated>
<link href="https://gna.org/blog/experimental/" type="text/html"/>
<id>https://gna.org/blog/experimental/</id>
<content type="html">&lt;p&gt;Hosting a Gitea instance on Gna! is now possible (but still experimental). It is meant to be a minimum viable product: anyone can &lt;a href=&quot;https:&#x2F;&#x2F;hosteadashboard.gna.org&quot;&gt;create a new dedicated Gitea instance&lt;&#x2F;a&gt; within minutes and pay for it on a monthly basis with a credit card. It includes a dedicated CI based on &lt;a href=&quot;https:&#x2F;&#x2F;woodpecker-ci.org&#x2F;&quot;&gt;Woodpecker&lt;&#x2F;a&gt;. The smallest instance costs 10€ per month (2GB RAM, 10GB disk, 1CPU) and will be a good fit for a freelance up to a team of five people but bigger instances are also available if more RAM, CPU or disk is required.&lt;&#x2F;p&gt;
&lt;video width=&quot;600&quot; controls&gt;
&lt;source src=&quot;https:&#x2F;&#x2F;cloud.forgefriends.org&#x2F;s&#x2F;xXLcYpsE469tJEj&#x2F;download?path=&amp;files=hostea-screencast-vm-create.mp4&quot; type=&quot;video&#x2F;mp4&quot; &#x2F;&gt;
&lt;&#x2F;video&gt;
&lt;p&gt;The service is 100% infrastructure as code, published as &lt;a href=&quot;https:&#x2F;&#x2F;lab.enough.community&#x2F;main&#x2F;infrastructure&#x2F;-&#x2F;tree&#x2F;9e18ebbf675c8a65d1585d20b4cf6295af6e52ed&#x2F;playbooks&#x2F;hosteadashboard&quot;&gt;Ansible playbooks within Enough&lt;&#x2F;a&gt;. It can be self-hosted on bare metal (with &lt;a href=&quot;https:&#x2F;&#x2F;libvirt.org&#x2F;&quot;&gt;libvirt&lt;&#x2F;a&gt;) or in the cloud (with &lt;a href=&quot;https:&#x2F;&#x2F;www.openstack.org&#x2F;&quot;&gt;OpenStack&lt;&#x2F;a&gt;): follow the &lt;a href=&quot;https:&#x2F;&#x2F;enough-community.readthedocs.io&#x2F;en&#x2F;latest&#x2F;introduction.html#quick-start&quot;&gt;quick start&lt;&#x2F;a&gt;, configure playbooks for &lt;a href=&quot;https:&#x2F;&#x2F;enough-community.readthedocs.io&#x2F;en&#x2F;latest&#x2F;services&#x2F;hostea.html&quot;&gt;hostea&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;enough-community.readthedocs.io&#x2F;en&#x2F;latest&#x2F;services&#x2F;hosteadashboard.html&quot;&gt;the dashboard&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;The organization supporting Gna! is a &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;c&#x2F;governance-and-decisions&#x2F;7&quot;&gt;horizontal collective&lt;&#x2F;a&gt; of individuals and organizations. The &lt;a href=&quot;https:&#x2F;&#x2F;forum.hostea.org&#x2F;t&#x2F;decision-revenue-sharing-model&#x2F;92&quot;&gt;revenue sharing model&lt;&#x2F;a&gt; is set to dedicate 25% of the income (more than the profits) to help the Free Software projects Hostea depends on such as Gitea, Enough, Django etc.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;the-origin&quot;&gt;The origin&lt;a class=&quot;zola-anchor&quot; href=&quot;#the-origin&quot; aria-label=&quot;Anchor link for: the-origin&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;In February 2022 the project of running a dedicated Gitea hosting service was &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;a-gitea-hosting-service-under-the-umbrella-of-the-gitea-project&#x2F;4692&quot;&gt;proposed to the Gitea project&lt;&#x2F;a&gt; and other organizations and &lt;a href=&quot;https:&#x2F;&#x2F;blog.dachary.org&#x2F;2022&#x2F;02&#x2F;16&#x2F;project-plans-for-a-hosted-gitea-online-service&#x2F;&quot;&gt;plans were drafted&lt;&#x2F;a&gt;. After a month of discussions it turned out to not be a &lt;a href=&quot;https:&#x2F;&#x2F;blog.dachary.org&#x2F;2022&#x2F;03&#x2F;11&#x2F;the-inconclusive-story-of-four-failed-project-offers&#x2F;&quot;&gt;good match for any of them&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;It was suggested to create a new project from scratch instead of joining an existing organization. However, in order to be sustainable, a hosting service needs customers willing to pay for the service. And nobody had that kind of skill. It was therefore decided that to terminate the project: there is no point is creating a technical stack that&#x27;s not going to be used by anyone.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;a-technical-stack-with-no-users&quot;&gt;A technical stack with no users&lt;a class=&quot;zola-anchor&quot; href=&quot;#a-technical-stack-with-no-users&quot; aria-label=&quot;Anchor link for: a-technical-stack-with-no-users&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;The most common mistake technical people do when creating a new piece of software is to overlook the fact that they have absolutely no idea how to let their intended user base know about it. Maybe the reason it happens so often is because it is very difficult to resist the urge of creating something. Because that&#x27;s what technical people love to do: create things, even when they have no clue if it can be used.&lt;&#x2F;p&gt;
&lt;p&gt;It took no longer than two weeks for the people involved in Gna! to decide to build the technical stack to run hostea instead of being reasonable and give up. It was just too tempting.&lt;&#x2F;p&gt;
&lt;p&gt;To keep the madness contained and enjoyable, it was decided to set a deadline to July 1st and to &lt;a href=&quot;https:&#x2F;&#x2F;gitea.gna.org&#x2F;Hostea&#x2F;july-mvp&#x2F;issues&quot;&gt;define precise and realistic technical goals&lt;&#x2F;a&gt;. It turned out to be an enjoyable experience: everyone learned a lot in the process and the outcome is something that can be reproduced. Most MVPs are a brittle pile of hacks designed to last a few weeks and be thrown away. But since a primary goal of the project was to create something self-hostable, it had to implement that feature and therefore be reproducible.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;a-horizontal-collective-with-a-revenue-sharing-model&quot;&gt;A horizontal collective with a revenue sharing model&lt;a class=&quot;zola-anchor&quot; href=&quot;#a-horizontal-collective-with-a-revenue-sharing-model&quot; aria-label=&quot;Anchor link for: a-horizontal-collective-with-a-revenue-sharing-model&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Another goal of Gna! is to deploy federated forges, even at an experimental stage. Instead of creating a centralized organization to support Hostea, it was decided to create &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;c&#x2F;governance-and-decisions&#x2F;7&quot;&gt;horizontal collective&lt;&#x2F;a&gt;. It feels like a contradiction for a project committed to decentralization to be governed by a centralized organization.&lt;&#x2F;p&gt;
&lt;p&gt;The collective is composed of individuals and organizations but, unlike exclusively volunteer based Free Software projects, it is for profit. Customers rent Gitea instances by the month and the income is used to pay for expenses. There is however a difficulty: by nature a horizontal collective cannot be incorporated as it would create a level of hierarchy. The &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;t&#x2F;decision-revenue-sharing-model&#x2F;92&quot;&gt;revenue sharing model&lt;&#x2F;a&gt; had to be set as an informal agreement between members where one of them receives the income and distributes it to the others, depending on their Gna! related expenses.&lt;&#x2F;p&gt;
&lt;p&gt;It also requires that 25% of the income (not the profits) is dedicated to help the Free Software projects that Gna! depends on such as Gitea, Enough, Django etc. It can be via a donation, by upstreaming a bug fix or any kind of work that is beneficial to the dependency.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;dedicated-to-forge-federation&quot;&gt;Dedicated to forge federation&lt;a class=&quot;zola-anchor&quot; href=&quot;#dedicated-to-forge-federation&quot; aria-label=&quot;Anchor link for: dedicated-to-forge-federation&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;In the spirit of dogfooding, the people who created the technical stack of Gna! will use it for themselves on a daily basis. Since the focus of the authors is on &lt;a href=&quot;https:&#x2F;&#x2F;forgefriends.org&#x2F;blog&#x2F;2022&#x2F;06&#x2F;30&#x2F;2022-06-state-forge-federation&#x2F;&quot;&gt;forge federation&lt;&#x2F;a&gt;, they will add federation support in Hostea. This will be their primary motivation to improve and maintain Hostea: it is the only hosting platform where this can happen.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>1.17 breaking changes episode 1: preserving a custom gitconfig</title>
<published>2022-06-22T00:00:00+00:00</published>
<updated>2022-06-22T00:00:00+00:00</updated>
<link href="https://gna.org/blog/1-17-breaking-episode-1/" type="text/html"/>
<id>https://gna.org/blog/1-17-breaking-episode-1/</id>
<content type="html">&lt;p&gt;Before version 1.17, when Gitea needed to change the &lt;a href=&quot;https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;git-config&quot;&gt;git configuration&lt;&#x2F;a&gt;, it modified the &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; file. For instance it would &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;release&#x2F;v1.16&#x2F;modules&#x2F;git&#x2F;git.go#L174-L177&quot;&gt;set core.quotePath to false&lt;&#x2F;a&gt;:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;ini&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-ini &quot;&gt;&lt;code class=&quot;language-ini&quot; data-lang=&quot;ini&quot;&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[core]
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;quotePath &lt;&#x2F;span&gt;&lt;span&gt;= &lt;&#x2F;span&gt;&lt;span style=&quot;color:#d08770;&quot;&gt;false
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;When installing Gitea &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-with-docker&#x2F;&quot;&gt;from docker&lt;&#x2F;a&gt; or &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-with-docker-rootless&#x2F;&quot;&gt;rootless&lt;&#x2F;a&gt; or even &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-from-binary&#x2F;&quot;&gt;from binary&lt;&#x2F;a&gt; this &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; file belongs to a user that is &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-from-binary&#x2F;#prepare-environment&quot;&gt;dedicated to Gitea&lt;&#x2F;a&gt; and not used by anyone else.&lt;&#x2F;p&gt;
&lt;p&gt;However, if an Gitea installation was done differently and &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; has been customized because it is shared by a user or another application, there is a good chance that manual modifications were done such as:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;ini&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-ini &quot;&gt;&lt;code class=&quot;language-ini&quot; data-lang=&quot;ini&quot;&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[user]
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;name &lt;&#x2F;span&gt;&lt;span&gt;= Jane Doe
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;email &lt;&#x2F;span&gt;&lt;span&gt;= jane&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;@doe&lt;&#x2F;span&gt;&lt;span&gt;.com
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;It is also possible that the file was modified manually by the Gitea admin for other reasons. In both there is a &lt;strong&gt;potential for breakage when upgrading to Gitea &amp;gt;= 1.17 because the location of the file changed&lt;&#x2F;strong&gt;. It must be moved manually to the new location as follows:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Figure out the directory where &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; must be moved by &lt;a href=&quot;https:&#x2F;&#x2F;gna.org&#x2F;blog&#x2F;gentle-introduction-to-the-doctor&#x2F;&quot;&gt;running the doctor&lt;&#x2F;a&gt;:&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;pre data-lang=&quot;shell&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-shell &quot;&gt;&lt;code class=&quot;language-shell&quot; data-lang=&quot;shell&quot;&gt;&lt;span&gt;$ gitea --work-path &#x2F;app&#x2F;gitea -c &#x2F;data&#x2F;gitea&#x2F;conf&#x2F;app.ini doctor
&lt;&#x2F;span&gt;&lt;span&gt;[1] Check paths and basic configuration
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Configuration File Path: &amp;quot;&#x2F;data&#x2F;gitea&#x2F;conf&#x2F;app.ini&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Repository Root Path: &amp;quot;&#x2F;data&#x2F;git&#x2F;repositories&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Data Root Path: &amp;quot;&#x2F;data&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Custom File Root Path: &amp;quot;&#x2F;data&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Work directory: &amp;quot;&#x2F;app&#x2F;gitea&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; - [I] Log Root Path: &amp;quot;&#x2F;data&#x2F;gitea&#x2F;log&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt;OK
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;ul&gt;
&lt;li&gt;Copy the &lt;code&gt;$HOME&#x2F;.gitconfig&lt;&#x2F;code&gt; file to the &lt;strong&gt;Repository Root Path&lt;&#x2F;strong&gt; (which is &lt;code&gt;&#x2F;data&#x2F;git&#x2F;repositories&lt;&#x2F;code&gt; in the example above).&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The reason why this breaking change was introduced is to workaround &lt;a href=&quot;https:&#x2F;&#x2F;gna.org&#x2F;blog&#x2F;unsafe-repository-is-owned-by-someone-else&#x2F;&quot;&gt;a rare problem&lt;&#x2F;a&gt; impacting Gitea installations relying on networked volumes.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[tutorial] A gentle introduction to the gitea doctor</title>
<published>2022-06-14T00:00:00+00:00</published>
<updated>2022-06-14T00:00:00+00:00</updated>
<link href="https://gna.org/blog/gentle-introduction-to-the-doctor/" type="text/html"/>
<id>https://gna.org/blog/gentle-introduction-to-the-doctor/</id>
<content type="html">&lt;p&gt;While helping people with their upgrades &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;migration-from-1-2-to-1-16-8&#x2F;5309&quot;&gt;in the Gitea forum&lt;&#x2F;a&gt; or &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;t&#x2F;gitea-upgrade-from-1-14-1-to-1-16-8&#x2F;90&quot;&gt;at the Gna! clinic&lt;&#x2F;a&gt;, I realized that few Gitea admins know about the &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;command-line&#x2F;#doctor&quot;&gt;&lt;code&gt;gitea doctor&lt;&#x2F;code&gt;&lt;&#x2F;a&gt; command and decided to write this blog post as a gentle introduction.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;an-apple-a-day-keeps-the-doctor-away&quot;&gt;An apple a day keeps the doctor away&lt;a class=&quot;zola-anchor&quot; href=&quot;#an-apple-a-day-keeps-the-doctor-away&quot; aria-label=&quot;Anchor link for: an-apple-a-day-keeps-the-doctor-away&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Or in our case, Gitea versions &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;v1.11.5&#x2F;cmd&#x2F;doctor.go&quot;&gt;below 1.11.5&lt;&#x2F;a&gt;. Since then, the &lt;code&gt;gitea doctor&lt;&#x2F;code&gt; is available and is designed to run against a specific Gitea version. It would not be a good idea to try to run the doctor from Gitea 1.16 to verify the sanity of a Gitea 1.2 instance: it will be confused by how the database is organized and a number of other details. Historical fun fact: the &lt;code&gt;gitea doctor&lt;&#x2F;code&gt; was backported to &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;v1.10.5&#x2F;cmd&#x2F;doctor.go&quot;&gt;Gitea 1.10.5&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;v1.10.6&#x2F;cmd&#x2F;doctor.go&quot;&gt;Gitea 1.10.6&lt;&#x2F;a&gt; and may be of help if you run this particular version and are facing the problem that motivated the backport.&lt;&#x2F;p&gt;
&lt;p&gt;With each version &lt;code&gt;gitea doctor&lt;&#x2F;code&gt; improves and gains new capabilities. For instance, in Gitea 1.17 it becomes aware of &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19731&quot;&gt;orphaned pull requests&lt;&#x2F;a&gt; and is able to fix them. If such a problem exists in Gitea 1.16, it does not know about it.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;calling-the-doctor&quot;&gt;Calling the doctor&lt;a class=&quot;zola-anchor&quot; href=&quot;#calling-the-doctor&quot; aria-label=&quot;Anchor link for: calling-the-doctor&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;In the following, examples are based on a Gitea 1.16.8 instance you can run as follows:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker run&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --name&lt;&#x2F;span&gt;&lt;span&gt; gitea&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; -p&lt;&#x2F;span&gt;&lt;span&gt; 3000:3000&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; -e&lt;&#x2F;span&gt;&lt;span&gt; GITEA__security__INSTALL_LOCK=true&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; -d&lt;&#x2F;span&gt;&lt;span&gt; gitea&#x2F;gitea:1.16.8-rootless
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea admin user create&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --admin --username&lt;&#x2F;span&gt;&lt;span&gt; root&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --password&lt;&#x2F;span&gt;&lt;span&gt; admin1234&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --email&lt;&#x2F;span&gt;&lt;span&gt; root@example.com
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea mkdir &#x2F;var&#x2F;lib&#x2F;gitea&#x2F;data&#x2F;log
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;And then you can go to the &lt;a href=&quot;https:&#x2F;&#x2F;127.0.0.1:3000&#x2F;&quot;&gt;web interface&lt;&#x2F;a&gt; to create a &lt;code&gt;test&lt;&#x2F;code&gt; repository, with an initial &lt;code&gt;README.md&lt;&#x2F;code&gt; file. When this is done the doctor can be called as follows:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --all
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[1]&lt;&#x2F;span&gt;&lt;span&gt; Check paths and basic configuration
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Configuration File Path: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;etc&#x2F;gitea&#x2F;app.ini&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Repository Root Path: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;var&#x2F;lib&#x2F;gitea&#x2F;git&#x2F;repositories&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Data Root Path: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;var&#x2F;lib&#x2F;gitea&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Custom File Root Path: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;var&#x2F;lib&#x2F;gitea&#x2F;custom&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Work directory: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;var&#x2F;lib&#x2F;gitea&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Log Root Path: &amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color:#a3be8c;&quot;&gt;&#x2F;var&#x2F;lib&#x2F;gitea&#x2F;data&#x2F;log&lt;&#x2F;span&gt;&lt;span&gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[2]&lt;&#x2F;span&gt;&lt;span&gt; Check if there is garbage storage files
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[3]&lt;&#x2F;span&gt;&lt;span&gt; Check Database Version
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[4]&lt;&#x2F;span&gt;&lt;span&gt; Check consistency of database
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[5]&lt;&#x2F;span&gt;&lt;span&gt; Check if user with wrong type exist
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[6]&lt;&#x2F;span&gt;&lt;span&gt; Check if OpenSSH authorized_keys file is up-to-date
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[7]&lt;&#x2F;span&gt;&lt;span&gt; Check if SCRIPT_TYPE is available
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; ScriptType bash is on the current PATH at &#x2F;bin&#x2F;bash
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[8]&lt;&#x2F;span&gt;&lt;span&gt; Check if hook files are up-to-date and executable
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[9]&lt;&#x2F;span&gt;&lt;span&gt; Recalculate Stars number for all user
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[10]&lt;&#x2F;span&gt;&lt;span&gt; Check old archives
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; 0 old archives in repository need to be deleted
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[11]&lt;&#x2F;span&gt;&lt;span&gt; Enable push options
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Checked 1 repositories, 0 need updates.
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[12]&lt;&#x2F;span&gt;&lt;span&gt; Check for incorrectly dumped repo_units (See &lt;&#x2F;span&gt;&lt;span style=&quot;color:#65737e;&quot;&gt;#16961)
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;W&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Found 0 broken repo_units
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[13]&lt;&#x2F;span&gt;&lt;span&gt; Recalculate merge bases
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;W&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; 0 PRs with incorrect mergebases of 0 PRs total in 1 repos
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[14]&lt;&#x2F;span&gt;&lt;span&gt; Check git-daemon-export-ok files
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;I&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Checked 1 repositories, 0 need updates.
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h3 id=&quot;what-does-the-doctor-know&quot;&gt;What does the doctor know?&lt;a class=&quot;zola-anchor&quot; href=&quot;#what-does-the-doctor-know&quot; aria-label=&quot;Anchor link for: what-does-the-doctor-know&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Although the &lt;code&gt;doctor&lt;&#x2F;code&gt; can be compared to &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Fsck&quot;&gt;fsck(8)&lt;&#x2F;a&gt;, it does not know everything. It took decades for &lt;code&gt;fsck&lt;&#x2F;code&gt; to become the ultimate authority on finding problems on file systems and reliably fixing them without losing data. Nowadays, only a handful of people in the world are brave enough to manually attempt a file system recovery when &lt;code&gt;fsck&lt;&#x2F;code&gt; cannot recover from a data loss.&lt;&#x2F;p&gt;
&lt;p&gt;The first &lt;code&gt;doctor&lt;&#x2F;code&gt; version is two years old and Gitea admins are still routinely running SQL queries against the database or moving files around when trying to figure out why a Gitea instance is not behaving as it should. It is however worth checking if the doctor does not already have a solution by listing all it can do:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --list
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;Default&lt;&#x2F;span&gt;&lt;span&gt; Name Title
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;*&lt;&#x2F;span&gt;&lt;span&gt; paths Check paths and basic configuration
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;storages&lt;&#x2F;span&gt;&lt;span&gt; Check if there is garbage storage files
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;*&lt;&#x2F;span&gt;&lt;span&gt; check-db-version Check Database Version
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;check-db-consistency&lt;&#x2F;span&gt;&lt;span&gt; Check consistency of database
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;*&lt;&#x2F;span&gt;&lt;span&gt; check-user-type Check if user with wrong type exist
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;*&lt;&#x2F;span&gt;&lt;span&gt; authorized-keys Check if OpenSSH authorized_keys file is up-to-date
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;script-type&lt;&#x2F;span&gt;&lt;span&gt; Check if SCRIPT_TYPE is available
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;hooks&lt;&#x2F;span&gt;&lt;span&gt; Check if hook files are up-to-date and executable
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;recalculate-stars-number&lt;&#x2F;span&gt;&lt;span&gt; Recalculate Stars number for all user
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;check-old-archives&lt;&#x2F;span&gt;&lt;span&gt; Check old archives
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;enable-push-options&lt;&#x2F;span&gt;&lt;span&gt; Enable push options
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;fix-broken-repo-units&lt;&#x2F;span&gt;&lt;span&gt; Check for incorrectly dumped repo_units (See &lt;&#x2F;span&gt;&lt;span style=&quot;color:#65737e;&quot;&gt;#16961)
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;recalculate-merge-bases&lt;&#x2F;span&gt;&lt;span&gt; Recalculate merge bases
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;check-git-daemon-export-ok&lt;&#x2F;span&gt;&lt;span&gt; Check git-daemon-export-ok files
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;And then call the &lt;code&gt;check&lt;&#x2F;code&gt; that looks interesting:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --run&lt;&#x2F;span&gt;&lt;span&gt; authorized-keys
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[1]&lt;&#x2F;span&gt;&lt;span&gt; Check if OpenSSH authorized_keys file is up-to-date
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;The challenge is to figure out which &lt;code&gt;check&lt;&#x2F;code&gt; does what and at the moment the best source of information is ... &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;tree&#x2F;v1.16.8&quot;&gt;the sources&lt;&#x2F;a&gt; themselves. The &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;v1.16.8&#x2F;cmd&#x2F;doctor.go&quot;&gt;doctor.go&lt;&#x2F;a&gt; command is the entry point and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;tree&#x2F;v1.16.8&#x2F;modules&#x2F;doctor&quot;&gt;the doctor directory&lt;&#x2F;a&gt; contains the rest.&lt;&#x2F;p&gt;
&lt;p&gt;Some &lt;code&gt;checks&lt;&#x2F;code&gt; are straightforward to understand, even if you do not know Go, such as &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;v1.16.8&#x2F;modules&#x2F;doctor&#x2F;authorizedkeys.go&quot;&gt;the authorized-keys check&lt;&#x2F;a&gt;. Others are much more involved and your best chance is to &lt;a href=&quot;https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gitea:matrix.org&quot;&gt;ask the Gitea chatroom&lt;&#x2F;a&gt; for help.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;is-it-going-to-hurt&quot;&gt;Is it going to hurt?&lt;a class=&quot;zola-anchor&quot; href=&quot;#is-it-going-to-hurt&quot; aria-label=&quot;Anchor link for: is-it-going-to-hurt&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;By default the doctor (very much like &lt;code&gt;fsck -N&lt;&#x2F;code&gt;) only performs non destructive checks and displays diagnostics, with an indication of how serious the problem is. In the example above, there only are lines with &lt;strong&gt;[I]&lt;&#x2F;strong&gt; (which indicates an information) and &lt;strong&gt;[W]&lt;&#x2F;strong&gt; which indicates a warning that can be ignored but may be worth looking into. Those two warnings are actually just informational and should be labelled as &lt;strong&gt;[I]&lt;&#x2F;strong&gt;, &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19836&quot;&gt;which has been fixed&lt;&#x2F;a&gt; in a more recent version of the doctor.&lt;&#x2F;p&gt;
&lt;p&gt;Now let&#x27;s do something bad: remove the permissions from a hook in our repository:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea chmod&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; -x&lt;&#x2F;span&gt;&lt;span&gt; &#x2F;var&#x2F;lib&#x2F;gitea&#x2F;git&#x2F;repositories&#x2F;root&#x2F;test.git&#x2F;hooks&#x2F;post-receive
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Run the doctor with the &lt;code&gt;check&lt;&#x2F;code&gt; supposed to find that out:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --run&lt;&#x2F;span&gt;&lt;span&gt; hooks
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[1]&lt;&#x2F;span&gt;&lt;span&gt; Check if hook files are up-to-date and executable
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;W&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; old hook file &#x2F;var&#x2F;lib&#x2F;gitea&#x2F;git&#x2F;repositories&#x2F;root&#x2F;test.git&#x2F;hooks&#x2F;post-receive is not executable
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Ask it to fix this with the &lt;code&gt;--fix&lt;&#x2F;code&gt; flag:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --run&lt;&#x2F;span&gt;&lt;span&gt; hooks&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --fix
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[1]&lt;&#x2F;span&gt;&lt;span&gt; Check if hook files are up-to-date and executable
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;W&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; Regenerated hooks for root&#x2F;test
&lt;&#x2F;span&gt;&lt;span&gt; &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;- &lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;[&lt;&#x2F;span&gt;&lt;span&gt;W&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b48ead;&quot;&gt;]&lt;&#x2F;span&gt;&lt;span&gt; old hook file &#x2F;var&#x2F;lib&#x2F;gitea&#x2F;git&#x2F;repositories&#x2F;root&#x2F;test.git&#x2F;hooks&#x2F;post-receive is not executable
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;And run it one last time to check all is well:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;bash&quot; style=&quot;background-color:#2b303b;color:#c0c5ce;&quot; class=&quot;language-bash &quot;&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;$&lt;&#x2F;span&gt;&lt;span&gt; docker exec gitea gitea doctor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt; --run&lt;&#x2F;span&gt;&lt;span&gt; hooks
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;[1]&lt;&#x2F;span&gt;&lt;span&gt; Check if hook files are up-to-date and executable
&lt;&#x2F;span&gt;&lt;span style=&quot;color:#bf616a;&quot;&gt;OK
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Even when the doctor is unable to fix a problem, it can help by showing extensive debug output which can be found, by default, in the &lt;code&gt;doctor.log&lt;&#x2F;code&gt; file in the directory from which it runs. Or it can be displayed on the standard output with &lt;code&gt;--log-file -&lt;&#x2F;code&gt;, which is most convenient when running in docker.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;going-further&quot;&gt;Going further&lt;a class=&quot;zola-anchor&quot; href=&quot;#going-further&quot; aria-label=&quot;Anchor link for: going-further&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;If that was helpful to you, I would very much appreciate if you &lt;a href=&quot;https:&#x2F;&#x2F;mastodon.online&#x2F;@dachary&quot;&gt;send me a message on Mastodon&lt;&#x2F;a&gt;. It will encourage me to write more blog posts to share what I learn about Gitea. Even better: you could &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pulls&quot;&gt;send a pull request&lt;&#x2F;a&gt; to improve the doctor and help it mature.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[solved] Zombies created by Gitea</title>
<published>2022-06-04T00:00:00+00:00</published>
<updated>2022-06-04T00:00:00+00:00</updated>
<link href="https://gna.org/blog/zombies-part-2/" type="text/html"/>
<id>https://gna.org/blog/zombies-part-2/</id>
<content type="html">&lt;p&gt;Gitea can &lt;a href=&quot;&#x2F;blog&#x2F;zombies&quot;&gt;create zombies&lt;&#x2F;a&gt;, for instance if a Git mirror takes too long. When updating a mirror, Gitea relies on the &lt;code&gt;git remote update&lt;&#x2F;code&gt; command which creates a child process, &lt;code&gt;git-remote-https&lt;&#x2F;code&gt;, to fetch data from the remote repository. Gitea has an internal timeout that will kill the child process (e.g. &lt;code&gt;git remote update&lt;&#x2F;code&gt;) when it takes too long but will not kill the grandchild. This grandchild will become an orphan and run forever or until its own timeout expires, which is about two minutes on git version 2.25.&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ time git clone https:&#x2F;&#x2F;4.4.4.4
&lt;&#x2F;span&gt;&lt;span&gt;Clonage dans &amp;#39;4.4.4.4&amp;#39;...
&lt;&#x2F;span&gt;&lt;span&gt;fatal: impossible d&amp;#39;accéder à &amp;#39;https:&#x2F;&#x2F;4.4.4.4&#x2F;&amp;#39;: Failed to connect to 4.4.4.4 port 443: Connexion terminée par expiration du délai d&amp;#39;attente
&lt;&#x2F;span&gt;&lt;span&gt;
&lt;&#x2F;span&gt;&lt;span&gt;real 2m9,753s
&lt;&#x2F;span&gt;&lt;span&gt;user 0m0,001s
&lt;&#x2F;span&gt;&lt;span&gt;sys 0m0,009s
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;As explained in the &lt;a href=&quot;&#x2F;blog&#x2F;zombies&#x2F;#killing-a-child-process-and-all-its-children&quot;&gt;diagnostic blog post regarding Gitea zombies&lt;&#x2F;a&gt; there fortunately is a very simple way to avoid this by making sure each Gitea child is a &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Process_group&quot;&gt;process group leader&lt;&#x2F;a&gt;. That first step was &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19865&quot;&gt;introduced in Gitea 1.17&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19865&quot;&gt;backported to Gitea 1.16.9&lt;&#x2F;a&gt;. The actual bug fix can now be implemented.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;using-negative-process-id-to-kill-children&quot;&gt;Using negative process id to kill children&lt;a class=&quot;zola-anchor&quot; href=&quot;#using-negative-process-id-to-kill-children&quot; aria-label=&quot;Anchor link for: using-negative-process-id-to-kill-children&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;When Gitea timeout on a child, it relies on &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;blob&#x2F;f8a53df314e4af8cd350eedb0dae77d4c4fc30d0&#x2F;src&#x2F;os&#x2F;exec&#x2F;exec.go#L650&quot;&gt;os.Process.Kill&lt;&#x2F;a&gt; which translates into a using the kill(2) system call to send a SIGKILL signal to unconditionally terminate it: &lt;code&gt;kill(pid, SIGKILL)&lt;&#x2F;code&gt;. Using a negative pid with &lt;code&gt;kill(-pid, SIGKILL)&lt;&#x2F;code&gt; will also terminate all processes created by Gitea&#x27;s child, without Gitea knowing when or why they were created. From the kill(2) manual page:&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;If pid is less than -1, then sig is sent to every process in the process group whose ID is -pid.&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;Which is implemented as follows in the &lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec.go#L130&quot;&gt;Friendly Forge Format library&lt;&#x2F;a&gt;:&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;syscall.Kill(-cmd.Process.Pid, syscall.SIGKILL)&lt;&#x2F;code&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;h3 id=&quot;not-using-the-default-go-commandcontext&quot;&gt;Not using the default Go CommandContext&lt;a class=&quot;zola-anchor&quot; href=&quot;#not-using-the-default-go-commandcontext&quot; aria-label=&quot;Anchor link for: not-using-the-default-go-commandcontext&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Since &lt;a href=&quot;https:&#x2F;&#x2F;pkg.go.dev&#x2F;os&#x2F;exec#CommandContext&quot;&gt;CommandContext&lt;&#x2F;a&gt; does not allow to send a signal to the negative pid of the child process, it has to be implemented by Gitea itself, in a way that is similar to how the &lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec.go#L75-82&quot;&gt;Friendly Forge Format library&lt;&#x2F;a&gt; does it:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt; ctxErr := watchCtx(ctx, cmd.Process.Pid)
&lt;&#x2F;span&gt;&lt;span&gt; err = cmd.Wait()
&lt;&#x2F;span&gt;&lt;span&gt; interruptErr := &amp;lt;-ctxErr
&lt;&#x2F;span&gt;&lt;span&gt; &#x2F;&#x2F; If cmd.Wait returned an error, prefer that.
&lt;&#x2F;span&gt;&lt;span&gt; &#x2F;&#x2F; Otherwise, report any error from the interrupt goroutine.
&lt;&#x2F;span&gt;&lt;span&gt; if interruptErr != nil &amp;amp;&amp;amp; err == nil {
&lt;&#x2F;span&gt;&lt;span&gt; err = interruptErr
&lt;&#x2F;span&gt;&lt;span&gt; }
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h3 id=&quot;testing-the-bug-is-fixed-and-stays-fixed&quot;&gt;Testing the bug is fixed and stays fixed&lt;a class=&quot;zola-anchor&quot; href=&quot;#testing-the-bug-is-fixed-and-stays-fixed&quot; aria-label=&quot;Anchor link for: testing-the-bug-is-fixed-and-stays-fixed&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;Long standing bugs that are difficult to reproduce manually such as this one require robust testing to ensure that:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;the diagnostic identifying the root cause is correct&lt;&#x2F;li&gt;
&lt;li&gt;the bug fix works&lt;&#x2F;li&gt;
&lt;li&gt;it does not resurface insidiously because of a subtle regression introduce years later&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;It is easy to implement as can be seen in the &lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec_test.go#L44-76&quot;&gt;Friendly Forge Format library&lt;&#x2F;a&gt;. In a nutshell:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec_test.go#L53&quot;&gt;git clone https:&#x2F;&#x2F;4.4.4.4&lt;&#x2F;a&gt; which will hang because of firewall rules&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec_test.go#L60-65&quot;&gt;wait for the git-remote-https&lt;&#x2F;a&gt; grandchild process to be spawned&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec_test.go#L67-68&quot;&gt;cancel the context and wait for the goroutine to terminate&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;friendlyforgeformat&#x2F;gofff&#x2F;-&#x2F;blob&#x2F;a9603c7cc934fccd4382b7f4309b75c852742480&#x2F;util&#x2F;exec_test.go#L70-75&quot;&gt;verify the git-remote-https is killed&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;And with that... no more zombies!&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[diagnostic] Zombies created by Gitea</title>
<published>2022-06-02T00:00:00+00:00</published>
<updated>2022-06-02T00:00:00+00:00</updated>
<link href="https://gna.org/blog/zombies/" type="text/html"/>
<id>https://gna.org/blog/zombies/</id>
<content type="html">&lt;p&gt;The first &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;3242&quot;&gt;issue about zombie processes&lt;&#x2F;a&gt; created by Gitea was reported in 2017 and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;13987&quot;&gt;resurfaced&lt;&#x2F;a&gt; on a &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19077&quot;&gt;regular basis&lt;&#x2F;a&gt;. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Gitea updates a mirror by spawning the process &lt;code&gt;git remote update&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git remote update&lt;&#x2F;code&gt; spawns yet another process, &lt;code&gt;git fetch&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git fetch&lt;&#x2F;code&gt; is stuck, for instance because of network problems, and Gitea eventually times out&lt;&#x2F;li&gt;
&lt;li&gt;Gitea kill the process &lt;code&gt;git remote update&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;li&gt;When killed &lt;code&gt;git remote update&lt;&#x2F;code&gt; does not kill its own child and &lt;code&gt;git fetch&lt;&#x2F;code&gt; becomes an orphaned process which keeps running&lt;&#x2F;li&gt;
&lt;li&gt;When &lt;code&gt;git fetch&lt;&#x2F;code&gt; eventually completes it becomes a zombie because its original parent is no longer around to wait on it&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;pid-1-process-and-waiting-on-orphans&quot;&gt;PID 1 process and waiting on orphans&lt;a class=&quot;zola-anchor&quot; href=&quot;#pid-1-process-and-waiting-on-orphans&quot; aria-label=&quot;Anchor link for: pid-1-process-and-waiting-on-orphans&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;This scenario is not unique to Gitea and it is such a common pattern that safeguards have been implemented to mitigate the proliferation of zombies. Orphaned process are automatically attached to the process with PID 1, which is expected to wait on every process, whether it created them or not. When Gitea is installed from binary on GNU&#x2F;Linux this is &lt;code&gt;&#x2F;bin&#x2F;init&lt;&#x2F;code&gt; and when Gitea runs from the &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;6171ea7d318c0ca8714bc6efd6a97ea4b495eb6d&#x2F;Dockerfile&quot;&gt;default docker image&lt;&#x2F;a&gt; this is &lt;code&gt;s6&lt;&#x2F;code&gt;: they will both wait on orphaned processes and there won&#x27;t be any zombies.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-if-gitea-is-the-only-running-process&quot;&gt;What if Gitea is the only running process?&lt;a class=&quot;zola-anchor&quot; href=&quot;#what-if-gitea-is-the-only-running-process&quot; aria-label=&quot;Anchor link for: what-if-gitea-is-the-only-running-process&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;But when Gitea runs from the &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;6171ea7d318c0ca8714bc6efd6a97ea4b495eb6d&#x2F;Dockerfile.rootless&quot;&gt;rootless docker image&lt;&#x2F;a&gt;, Gitea is the only process running in the container. Orphaned processes will have Gitea as a parent but will not wait on them and they will stay in a zombie state forever. To reproduce this problem in a minimal way:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ docker run --name gitea -p 8080:3000 -e GITEA__security__INSTALL_LOCK=true -d gitea&#x2F;gitea:1.16.8-rootless
&lt;&#x2F;span&gt;&lt;span&gt;$ docker exec --user 1000 gitea gitea admin user create --admin --username root --password admin1234 --email root@example.com
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;The &lt;code&gt;git&lt;&#x2F;code&gt; command can then be replaced with a script that waits forever:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ ( echo -e &amp;#39;#!&#x2F;bin&#x2F;bash\nsleep infinity&amp;#39; ) | docker exec -i --user root gitea tee &#x2F;usr&#x2F;bin&#x2F;git
&lt;&#x2F;span&gt;&lt;span&gt;$ docker exec --user root gitea chmod +x &#x2F;usr&#x2F;bin&#x2F;git
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Trying to create a repository from the web interface will create the conditions for a zombie to show:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ docker exec gitea ps -o ppid,pid,comm,args
&lt;&#x2F;span&gt;&lt;span&gt;PPID PID COMMAND COMMAND
&lt;&#x2F;span&gt;&lt;span&gt; 0 1 gitea &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gitea -c &#x2F;etc&#x2F;gitea&#x2F;app.ini web
&lt;&#x2F;span&gt;&lt;span&gt; 1 94 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 99 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 111 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 164 git {git} &#x2F;bin&#x2F;bash &#x2F;usr&#x2F;bin&#x2F;git -c credential.helper= -c protocol.version=2 -c uploadpack.allowfilter=true -c uploadpack.allowAnySHA1InWant=true init --bare
&lt;&#x2F;span&gt;&lt;span&gt; 164 165 sleep sleep infinity
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;When the &lt;code&gt;git&lt;&#x2F;code&gt; process is killed by Gitea, the &lt;code&gt;sleep&lt;&#x2F;code&gt; child will be orphaned:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ docker exec gitea ps -o ppid,pid,comm,args
&lt;&#x2F;span&gt;&lt;span&gt;PPID PID COMMAND COMMAND
&lt;&#x2F;span&gt;&lt;span&gt; 0 1 gitea &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gitea -c &#x2F;etc&#x2F;gitea&#x2F;app.ini web
&lt;&#x2F;span&gt;&lt;span&gt; 1 94 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 99 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 111 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 165 sleep sleep infinity
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Killing it will turn it into a zombie:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;$ docker exec gitea kill 165
&lt;&#x2F;span&gt;&lt;span&gt;$ docker exec gitea ps -o ppid,pid,comm,args
&lt;&#x2F;span&gt;&lt;span&gt;PPID PID COMMAND COMMAND
&lt;&#x2F;span&gt;&lt;span&gt; 0 1 gitea &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gitea -c &#x2F;etc&#x2F;gitea&#x2F;app.ini web
&lt;&#x2F;span&gt;&lt;span&gt; 1 94 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 99 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 111 sleep [sleep]
&lt;&#x2F;span&gt;&lt;span&gt; 1 165 sleep [sleep]
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h3 id=&quot;killing-a-child-process-and-all-its-children&quot;&gt;Killing a child process and all its children&lt;a class=&quot;zola-anchor&quot; href=&quot;#killing-a-child-process-and-all-its-children&quot; aria-label=&quot;Anchor link for: killing-a-child-process-and-all-its-children&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Process_group&quot;&gt;process group leaders&lt;&#x2F;a&gt;. In a nutshell it means that when the child is killed all its children and grand children are also killed.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[solved] Gitea 1.15 and up: path not found or permission denied</title>
<published>2022-05-28T00:00:00+00:00</published>
<updated>2022-05-28T00:00:00+00:00</updated>
<link href="https://gna.org/blog/path-not-found/" type="text/html"/>
<id>https://gna.org/blog/path-not-found/</id>
<content type="html">&lt;p&gt;In Gitea 1.15 the &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;cfb4c23a5009b9c236d48ac0bc156577c7d70741&#x2F;custom&#x2F;conf&#x2F;app.example.ini&quot;&gt;app.example.ini&lt;&#x2F;a&gt; file was changed to &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;commit&#x2F;4a84022d2559ccfc99960c7c654ee8b9b38664f7&quot;&gt;comment out most of the values&lt;&#x2F;a&gt;. The assumption was that all values exactly matched the defaults &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;main&#x2F;modules&#x2F;setting&#x2F;setting.go&quot;&gt;in the source code&lt;&#x2F;a&gt;. However, there are differences, for instance for &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;cfb4c23a5009b9c236d48ac0bc156577c7d70741&#x2F;modules&#x2F;setting&#x2F;setting.go#L771&quot;&gt;APP_DATA_PATH&lt;&#x2F;a&gt;. Before Gitea 1.15, &lt;code&gt;app.example.ini&lt;&#x2F;code&gt; contained:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;APP_DATA_PATH = data
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;and the path was relative to the &lt;strong&gt;directory from which the Gitea server was running&lt;&#x2F;strong&gt;. In Gitea 1.15 up to 1.16, it was commented out:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;; APP_DATA_PATH = data
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;and the path was relative to the &lt;strong&gt;work path directory&lt;&#x2F;strong&gt;, as provided either via the --work-path argument or the &lt;code&gt;GITEA_WORK_DIR&lt;&#x2F;code&gt; environment variable. &lt;&#x2F;p&gt;
&lt;p&gt;When a distribution such as voidlinux &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;void-linux&#x2F;void-packages&#x2F;blob&#x2F;master&#x2F;srcpkgs&#x2F;gitea&#x2F;patches&#x2F;config.patch&quot;&gt;uses app.example.ini&lt;&#x2F;a&gt; as a base for the Gitea package, this change indirectly creates a regression and an upgrade of Gitea &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19367&quot;&gt;fails with errors&lt;&#x2F;a&gt; such as &lt;code&gt;unable to open level db at data&#x2F;data&#x2F;queues&#x2F;common: mkdir data: permission denied&lt;&#x2F;code&gt;. The regression did not show as soon as Gitea 1.15 became available in voidlinux because the package &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;void-linux&#x2F;void-packages&#x2F;blob&#x2F;7fc9190f0e0d557dd5031e68df4e183892d4315b&#x2F;srcpkgs&#x2F;gitea&#x2F;patches&#x2F;config.patch#L62&quot;&gt;explicitly set &lt;code&gt;APP_DATA_PATH&lt;&#x2F;code&gt;&lt;&#x2F;a&gt;. But this &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;void-linux&#x2F;void-packages&#x2F;commit&#x2F;19d986a2cae9ce73d32552ddb62443b5e7fa13e2&quot;&gt;changed when Gitea 1.15.6 was packaged&lt;&#x2F;a&gt; and once the value was commented out, upgrading triggered the problem. This was worked around six month later with the &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;void-linux&#x2F;void-packages&#x2F;commit&#x2F;44b6c96fa12ce9d993c7a2ac9486d892735b7e3a&quot;&gt;Gitea 1.16.8&lt;&#x2F;a&gt; package.&lt;&#x2F;p&gt;
&lt;p&gt;The &lt;code&gt;APP_DATA_PATH&lt;&#x2F;code&gt; directory is not the only one, the &lt;code&gt;[log] ROOT_PATH&lt;&#x2F;code&gt; is another example. There is an &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19815&quot;&gt;ongoing effort&lt;&#x2F;a&gt; to improve the situation in Gitea 1.17. With the downside of introducing breaking changes that will have an impact on all Gitea installations because the content of the &lt;code&gt;app.ini&lt;&#x2F;code&gt; file will be interpreted differently. In the case of &lt;code&gt;APP_DATA_PATH&lt;&#x2F;code&gt;, both:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;APP_DATA_PATH = data
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;and:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;; APP_DATA_PATH = data
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;will be interpreted to be relative to the &lt;strong&gt;work path directory&lt;&#x2F;strong&gt;, as provided either via the --work-path argument or the &lt;code&gt;GITEA_WORK_DIR&lt;&#x2F;code&gt; environment variable. Every Gitea installation using &lt;strong&gt;APP_DATA_PATH = data&lt;&#x2F;strong&gt; will need to update the value to be an absolute path such as &lt;strong&gt;&#x2F;var&#x2F;lib&#x2F;gitea&#x2F;data&lt;&#x2F;strong&gt; so that it keeps pointing to the expected directory.&lt;&#x2F;p&gt;
&lt;p&gt;In order to prepare for the change or ensure the consistency of all path, there fortunately is a very simple &lt;strong&gt;solution: always use absolute paths in the &lt;code&gt;app.ini&lt;&#x2F;code&gt; configuration file&lt;&#x2F;strong&gt;.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[solved] Gitea 1.16.[678] error: fatal: unsafe repository is owned by someone else</title>
<published>2022-05-15T00:00:00+00:00</published>
<updated>2022-05-15T00:00:00+00:00</updated>
<link href="https://gna.org/blog/unsafe-repository-is-owned-by-someone-else/" type="text/html"/>
<id>https://gna.org/blog/unsafe-repository-is-owned-by-someone-else/</id>
<content type="html">&lt;p&gt;April 12, 2022 version &lt;a href=&quot;https:&#x2F;&#x2F;lore.kernel.org&#x2F;git&#x2F;xmqqv8veb5i6.fsf@gitster.g&#x2F;&quot;&gt;git v2.35.2&lt;&#x2F;a&gt; was released and addresses a security issue &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;git-for-windows&#x2F;git&#x2F;security&#x2F;advisories&#x2F;GHSA-vw2c-22j4-2fh2&quot;&gt;CVE-2022-24765&lt;&#x2F;a&gt;. It was backported to 2.30.3, v2.31.2, v2.32.1, v2.33.2, and v2.34.2 and published by distributions such as &lt;a href=&quot;https:&#x2F;&#x2F;security-tracker.debian.org&#x2F;tracker&#x2F;CVE-2022-24765&quot;&gt;Debian GNU&#x2F;Linux&lt;&#x2F;a&gt;, &lt;a href=&quot;https:&#x2F;&#x2F;www.alpinelinux.org&#x2F;releases&#x2F;&quot;&gt;Alpine&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;If Gitea runs as user &lt;code&gt;foo&lt;&#x2F;code&gt;, calls a patched Git version and a parent directory of the git repositories is owned by a user other than &lt;code&gt;foo&lt;&#x2F;code&gt;, it will fail&lt;&#x2F;strong&gt; with a message such as:&lt;&#x2F;p&gt;
&lt;pre style=&quot;background-color:#2b303b;color:#c0c5ce;&quot;&gt;&lt;code&gt;&lt;span&gt;Failed to open repository: Git&#x2F;Data Error: exit status 128 - fatal: unsafe repository (&amp;#39;&#x2F;data&#x2F;git&#x2F;repositories&#x2F;git&#x2F;data.git&amp;#39; is owned by someone else)
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This started to show in the past few weeks to &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19455&quot;&gt;users running the Gitea binary on Windows&lt;&#x2F;a&gt; who also independently installed git v2.36. And then to people running &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19455#issuecomment-1106331149&quot;&gt;Gitea from snap&lt;&#x2F;a&gt;, on &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19455#issuecomment-1106312061&quot;&gt;a Synology NAS&lt;&#x2F;a&gt; and then people running from &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;main&#x2F;Dockerfile#L2&quot;&gt;Gitea docker images&lt;&#x2F;a&gt; which is based on &lt;a href=&quot;https:&#x2F;&#x2F;www.alpinelinux.org&#x2F;releases&#x2F;&quot;&gt;Alpine&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;workarounds&quot;&gt;Workarounds&lt;a class=&quot;zola-anchor&quot; href=&quot;#workarounds&quot; aria-label=&quot;Anchor link for: workarounds&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;If using &lt;a href=&quot;https:&#x2F;&#x2F;hub.docker.com&#x2F;r&#x2F;gitea&#x2F;gitea&quot;&gt;Gitea docker images&lt;&#x2F;a&gt;:
&lt;ul&gt;
&lt;li&gt;upgrade to &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19876&quot;&gt;Gitea &amp;gt;=1.16.9&lt;&#x2F;a&gt; or 1.17, both have git &amp;gt;=2.36&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git config --global --replace-all safe.directory &#x27;*&#x27;&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;If the Gitea binary was installed independently of git, upgrade git to a version that is &lt;a href=&quot;https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;git-config#Documentation&#x2F;git-config.txt-safedirectory&quot;&gt;greater or equal to 2.36&lt;&#x2F;a&gt; and disable the security check entirely with:
&lt;ul&gt;
&lt;li&gt;impersonate the &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-from-binary&#x2F;#recommended-server-configuration&quot;&gt;user dedicated to Gitea&lt;&#x2F;a&gt; (usually git)&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git config --global --replace-all safe.directory &#x27;*&#x27;&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;bug-fix&quot;&gt;Bug fix&lt;a class=&quot;zola-anchor&quot; href=&quot;#bug-fix&quot; aria-label=&quot;Anchor link for: bug-fix&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;The &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19870&quot;&gt;bug fix&lt;&#x2F;a&gt; is for Gitea to ensure &lt;code&gt;git config --global --replace-all safe.directory &#x27;*&#x27;&lt;&#x2F;code&gt; is set on its &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-from-binary&#x2F;#recommended-server-configuration&quot;&gt;dedicated user&lt;&#x2F;a&gt; when it initializes. It is effective on the condition that the git CLI version is &lt;a href=&quot;https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;git-config#Documentation&#x2F;git-config.txt-safedirectory&quot;&gt;greater or equal to 2.36&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;bug-fix-rationale&quot;&gt;Bug fix rationale&lt;a class=&quot;zola-anchor&quot; href=&quot;#bug-fix-rationale&quot; aria-label=&quot;Anchor link for: bug-fix-rationale&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h3&gt;
&lt;p&gt;It is safe to &lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;forgefriends&#x2F;forgefriends&#x2F;-&#x2F;merge_requests&#x2F;50&#x2F;diffs&quot;&gt;disable the security check in Gitea&lt;&#x2F;a&gt;. It is not vulnerable to &lt;strong&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;git-for-windows&#x2F;git&#x2F;security&#x2F;advisories&#x2F;GHSA-vw2c-22j4-2fh2&quot;&gt;CVE-2022-24765&lt;&#x2F;a&gt;&lt;&#x2F;strong&gt; because it calls the git CLI &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;main&#x2F;modules&#x2F;git&#x2F;command.go#L160&quot;&gt;after changing its working directory&lt;&#x2F;a&gt; to be the git repository targeted by the command (for instance &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;main&#x2F;modules&#x2F;git&#x2F;diff.go#L38-L45&quot;&gt;diff&lt;&#x2F;a&gt;) or a temporary directory. Therefore &lt;strong&gt;it will not explore the parent directories looking for a git configuration file&lt;&#x2F;strong&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;The security check is triggered because the repository is owned by an unexpected user (root instead of git typically) and &lt;strong&gt;not because a parent directory is owned by an unexpected user&lt;&#x2F;strong&gt;. This, in itself, is a problem worth investigating but it is unrelated and was revealed by the newer security check of git even though it does not match the threat described in &lt;strong&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;git-for-windows&#x2F;git&#x2F;security&#x2F;advisories&#x2F;GHSA-vw2c-22j4-2fh2&quot;&gt;CVE-2022-24765&lt;&#x2F;a&gt;&lt;&#x2F;strong&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;It appears non trivial to enforce a consistent ownership of files and directories, either within docker or outside docker when networked file systems are involved. The Gitea server was not troubled by this inconsistency so far because the permissions allow it to write and read where expected, regardless of the owner. It is not worth looking into but it is ancient and unrelated.&lt;&#x2F;p&gt;
&lt;p&gt;Gitea runs under a dedicated user, either when installed &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-from-binary&#x2F;#recommended-server-configuration&quot;&gt;from binary&lt;&#x2F;a&gt; or from &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;install-with-docker&#x2F;&quot;&gt;docker&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;blob&#x2F;main&#x2F;modules&#x2F;git&#x2F;git.go#L196-L207&quot;&gt;modifies the global git configuration&lt;&#x2F;a&gt; depending on the git version at initialization time. Fixing the problem can therefore be done by &lt;a href=&quot;https:&#x2F;&#x2F;lab.forgefriends.org&#x2F;forgefriends&#x2F;forgefriends&#x2F;-&#x2F;merge_requests&#x2F;50&#x2F;diffs#bcd72ff867cbd1ddd5b6518c3a05b5f1a6021286_209_209&quot;&gt;disabling the security check in the global git config file at initialization time&lt;&#x2F;a&gt;. It also requires a minimum version of git 2.36 to be installed, which is the case for Gitea docker images with &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19876&quot;&gt;versions &amp;gt;= 1.16.9&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>[solved] blank or error 500 page after login</title>
<published>2022-05-08T00:00:00+00:00</published>
<updated>2022-05-08T00:00:00+00:00</updated>
<link href="https://gna.org/blog/blank-or-error-500-page-after-login/" type="text/html"/>
<id>https://gna.org/blog/blank-or-error-500-page-after-login/</id>
<content type="html">&lt;p&gt;The &lt;a href=&quot;https:&#x2F;&#x2F;docs.gitea.io&#x2F;en-us&#x2F;upgrade-from-gitea&#x2F;#upgrade-from-binary&quot;&gt;instructions to upgrade a Gitea instance&lt;&#x2F;a&gt; only require three to four steps. They work fine most of the time but the documentation is lacking a &amp;quot;Troubleshooting&amp;quot; section to help out when something goes wrong. Maintaining instructions on how to diagnose and fix upgrade problems is an ambitious undertaking and requires updates every time a new case is discovered.&lt;&#x2F;p&gt;
&lt;p&gt;An &lt;a href=&quot;https:&#x2F;&#x2F;forum.gna.org&#x2F;t&#x2F;things-to-know-about-gitea-upgrades&#x2F;39&quot;&gt;inventory of the known upgrade issues&lt;&#x2F;a&gt; was started to figure out how to structure such a section in the documentation. The &lt;a href=&quot;https:&#x2F;&#x2F;blog.gitea.io&#x2F;&quot;&gt;release notes&lt;&#x2F;a&gt; were analyzed all the way back to &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;releases&#x2F;tag&#x2F;v1.9.6&quot;&gt;Gitea 1.9.6&lt;&#x2F;a&gt; and the work is still in progress. Here is a sample of the tips that will be included:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Upgrade directly to the latest Gitea version, there is no need to upgrade to intermediate versions.&lt;&#x2F;li&gt;
&lt;li&gt;If the upgrade from version x.y to version x.y+2 fails and there is a need to narrow down the problem, try upgrading to the latest minor version of each major version and verify it works.&lt;&#x2F;li&gt;
&lt;li&gt;etc.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;However, even with the best documentation, someone will eventually &lt;strong&gt;run into an new problem&lt;&#x2F;strong&gt; and fixing it without compromising the integrity of the data will be challenging. This is best demonstrated by a real world example that was concluded a few days ago.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;getting-help-from-the-community&quot;&gt;Getting help from the community&lt;a class=&quot;zola-anchor&quot; href=&quot;#getting-help-from-the-community&quot; aria-label=&quot;Anchor link for: getting-help-from-the-community&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;After &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&quot;&gt;upgrading a Gitea intsance from 1.9.6 to 1.16.5&lt;&#x2F;a&gt; the tests conducted manually did not uncover any problem. However, after going to production, some users saw a blank page after login and had to manually type the URL of the project they wanted to see in the browser. The person in charge of the upgrade never had to diagnose Gitea problem and &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&quot;&gt;reached out in the Gitea forum&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip: explain the problem in a public forum as early as possible to get help from the community&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;In their post in the forum they explained how they attempted to diagnose the problem and how why they thought that only users created a few years ago were impacted. It was a detailed analysis that was concluded with a partial copy of the logs. It was unfortunately missing &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;12&quot;&gt;key information&lt;&#x2F;a&gt; that was provided only three days later. In the meantime, as they could not figure out the source of the problem, they were on the &lt;strong&gt;verge of &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;11&quot;&gt;accepting the loss of all the Gitea database&lt;&#x2F;a&gt; and start over from the repositories&lt;&#x2F;strong&gt;. However, once all the details were available, &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;13&quot;&gt;a workaround&lt;&#x2F;a&gt; was suggested in the forum.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip: focus more on providing detailed facts than exposing the attempted diagnostic&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;There was hope to fix Gitea and in the following days they applied the workaround. They also tried to improve it but without success and eventually accepted a &lt;strong&gt;partial data loss&lt;&#x2F;strong&gt; as inevitable and &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;14&quot;&gt;reported their success back to the forum&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip: when getting support from the community, providing feedback is the best token of appreciation&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;h1 id=&quot;getting-professional-help&quot;&gt;Getting professional help&lt;a class=&quot;zola-anchor&quot; href=&quot;#getting-professional-help&quot; aria-label=&quot;Anchor link for: getting-professional-help&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;The &lt;a href=&quot;https:&#x2F;&#x2F;gna.org&#x2F;gitea-clinic&#x2F;&quot;&gt;Gna! Clinic&lt;&#x2F;a&gt; is a collective of individual and companies that provides professional services to Gitea admins. They are active members of the Gitea community who &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;u&#x2F;dachary&#x2F;activity&quot;&gt;help out&lt;&#x2F;a&gt; as volunteers. They can also be hired to resolve the more complicated cases.&lt;&#x2F;p&gt;
&lt;p&gt;The Gitea instance that was in trouble required more than a few minutes of work and access to the database content for a proper diagnostic. They &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;13&quot;&gt;proposed their assistance&lt;&#x2F;a&gt; but although &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;user-research-about-gitea-upgrade-experiences-call-for-volunteers&#x2F;5063&#x2F;2&quot;&gt;well received&lt;&#x2F;a&gt;, it was not accepted.&lt;&#x2F;p&gt;
&lt;p&gt;When the Gitea admin explained how they chose to resolve the problem &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;14&quot;&gt;on the forum&lt;&#x2F;a&gt;, it confirmed the workaround was viable and the root problem was identified. That was enough to figure out a fix for the underlying bug with &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;17&quot;&gt;a rather simple patch&lt;&#x2F;a&gt; that was merged &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19629&quot;&gt;and backported&lt;&#x2F;a&gt; in the following days. But it happened too late to avoid the data loss.&lt;&#x2F;p&gt;
&lt;p&gt;To summarize with a timeline, here is what happened:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;J+1: The &lt;strong&gt;problem is discovered&lt;&#x2F;strong&gt; by users who see a blank page after login and a the Gitea admin tries to diagnose the problem&lt;&#x2F;li&gt;
&lt;li&gt;J+2: A message is sent &lt;strong&gt;to ask for help in the community&lt;&#x2F;strong&gt;&lt;&#x2F;li&gt;
&lt;li&gt;J+2 to J+6: Three people in the community suggest ideas but &lt;strong&gt;the Gitea admin cannot figure out the root cause and is on the verge of accepting the loss of all Gitea data&lt;&#x2F;strong&gt; and restart from the git repositories&lt;&#x2F;li&gt;
&lt;li&gt;J+6: A &lt;strong&gt;workaround is suggested by the community&lt;&#x2F;strong&gt;&lt;&#x2F;li&gt;
&lt;li&gt;J+7 to J+17: The Gitea admin applies the &lt;strong&gt;workaround and only looses part of the Gitea data&lt;&#x2F;strong&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;And in retrospect, here is what could have happened instead:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;J+1: The &lt;strong&gt;problem is discovered&lt;&#x2F;strong&gt; by users who see a blank page after login&lt;&#x2F;li&gt;
&lt;li&gt;J+1: The Gitea admin &lt;strong&gt;&lt;a href=&quot;https:&#x2F;&#x2F;gna.org&#x2F;gitea-clinic&#x2F;&quot;&gt;reaches out to someone at the Gna! Clinic&lt;&#x2F;a&gt;&lt;&#x2F;strong&gt;&lt;&#x2F;li&gt;
&lt;li&gt;J+2: The &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;12&quot;&gt;logs of the Gitea instance&lt;&#x2F;a&gt; are analyzed, &lt;strong&gt;the root cause diagnosed&lt;&#x2F;strong&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;discourse.gitea.io&#x2F;t&#x2F;blank-page-after-login&#x2F;5051&#x2F;17&quot;&gt;a patch&lt;&#x2F;a&gt; is created to fix it.&lt;&#x2F;li&gt;
&lt;li&gt;J+3: If necessary a Gitea binary is created with the patch and used as a temporary replacement until the next point release is published with &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19629&quot;&gt;the backport&lt;&#x2F;a&gt;. The Gitea admin runs the patched Gitea binary in the meantime. &lt;strong&gt;There is no data loss&lt;&#x2F;strong&gt;.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;It does not mean all upgrade problems can be resolved so easily. But it shows, with an example, that in some cases it makes sense to get professional help.&lt;&#x2F;p&gt;
</content>
</entry>
<entry xml:lang="en">
<title>Project plans for a hosted Gitea online service</title>
<published>2022-04-18T00:00:00+00:00</published>
<updated>2022-04-18T00:00:00+00:00</updated>
<link href="https://gna.org/blog/project-plans-for-hosted-gitea-online-service/" type="text/html"/>
<id>https://gna.org/blog/project-plans-for-hosted-gitea-online-service/</id>
<content type="html">&lt;p&gt;&lt;em&gt;This post was originally published on &lt;a href=&quot;https:&#x2F;&#x2F;blog.dachary.org&#x2F;2022&#x2F;02&#x2F;16&#x2F;project-plans-for-a-hosted-gitea-online-service&#x2F;&quot;&gt;Loïc Dachary&#x27;s
blog&lt;&#x2F;a&gt;.&lt;&#x2F;em&gt;&lt;&#x2F;p&gt;
&lt;hr &#x2F;&gt;
&lt;p&gt;When an organization asks me about Gitea, I would like to direct them to
a provider where they can rent an instance and just use it, in the same
way they can go to https:&#x2F;&#x2F;discourse.org for a forum, or
https:&#x2F;&#x2F;nextcloud.com for storage. Instead of waiting for that to
happen, &lt;a href=&quot;https:&#x2F;&#x2F;batsense.net&#x2F;about&#x2F;&quot;&gt;Aravinth&lt;&#x2F;a&gt; and
&lt;a href=&quot;https:&#x2F;&#x2F;dachary.org&#x2F;&quot;&gt;myself&lt;&#x2F;a&gt; decided to do something about it, in a
way that is in line with our shared values: transparency and Free
Software.&lt;&#x2F;p&gt;
&lt;p&gt;After doing some research we found counter examples that showed the
pitfalls to avoid. GitLab because its business model heavily relies on
selling proprietary licenses. CiviCRM because setting it up is complex
and requires training: users can&#x27;t figure it out on their own. Gitea
images provided by Digital Ocean because they do not include security
upgrades. MySQL configured and run by AWS because of the vendor lock-in
that makes it impossible to self-host.&lt;&#x2F;p&gt;
&lt;p&gt;We concluded that an online service such as Gitea can be hosted in a
sustainable way as long as:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;It is well maintained and upgrades itself&lt;&#x2F;li&gt;
&lt;li&gt;It can be self-hosted&lt;&#x2F;li&gt;
&lt;li&gt;The service can automatically be restored from backups when the
underlying resources fail&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;GitHub and GitLab make it look like there is a market around software
forges. It is however impossible to figure out if this market exists
only because it is based on proprietary software. How many of these
customers would pay for a Free Software hosted Gitea instance?&lt;&#x2F;p&gt;
&lt;p&gt;Even if these customers do exist, a new service provider would have to
figure out how to convince them to subscribe. The technical development
of the service can be done within weeks but building a sustainable
business takes much longer. Again, there were examples of what can go
wrong, for instance ElasticSearch. After years of work developing a
successful online service and a customer base, AWS entered the
competition and started to take it away from them.&lt;&#x2F;p&gt;
&lt;p&gt;The sustainability of the Free Software ecosystem is a new and very
difficult problem to solve. It is discussed more than it ever was in the
wake of security breaches originating from widely used and yet abandoned
library or disillusioned Free Software authors self-sabotaging their
next release, and everyone has diverging opinions. It falls on each Free
Software author to spend time to think about their own projects because
there are no handbook or good examples to follow. That is what Aravinth
and myself did to find a semblance of clarity and decide how to go about
this hosted Gitea service idea.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;sustaining-free-software-online-services&quot;&gt;Sustaining Free Software online services&lt;a class=&quot;zola-anchor&quot; href=&quot;#sustaining-free-software-online-services&quot; aria-label=&quot;Anchor link for: sustaining-free-software-online-services&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;h2 id=&quot;more-mature-online-services-mean-less-opportunities-to-sell-services&quot;&gt;More mature online services mean less opportunities to sell services&lt;a class=&quot;zola-anchor&quot; href=&quot;#more-mature-online-services-mean-less-opportunities-to-sell-services&quot; aria-label=&quot;Anchor link for: more-mature-online-services-mean-less-opportunities-to-sell-services&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h2&gt;
&lt;p&gt;Ideally the software running an online service is rock solid and bugs
are so rare that it can run unattended. This is true of
https:&#x2F;&#x2F;wordpress.org and it is not uncommon for an instance to run for
years while upgrading themselves to get security patches. The cost of
maintaining such a service is negligible and hosting companies can offer
it for free to their customers. They make their profit by renting the
machines on which the service runs.&lt;&#x2F;p&gt;
&lt;p&gt;When the software is not as mature, it is more expensive to run. Bugs
need fixing, upgrades require manual intervention, users must be trained
to overcome the complexity of the user experience, etc. Well known
examples are Discourse or CiviCRM for which companies sell services to
overcome these issues.&lt;&#x2F;p&gt;
&lt;p&gt;But when an organization is both the author of the software and the
provider of paid services to compensate for its lack of maturity, it
creates a conflict of interest. Should they focus their effort on making
the software more mature, they would harm a business model that is based
on this very lack of maturity. For instance, if the author of a software
also sells training courses, they are not motivated to solve user
experience issues. If they did, it would lower the need for training
courses and reduce their income.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;free-software-online-services-in-the-wake-of-the-sustainability&quot;&gt;Free Software online services in the wake of the sustainability&lt;a class=&quot;zola-anchor&quot; href=&quot;#free-software-online-services-in-the-wake-of-the-sustainability&quot; aria-label=&quot;Anchor link for: free-software-online-services-in-the-wake-of-the-sustainability&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h2&gt;
&lt;p&gt;crisis&lt;&#x2F;p&gt;
&lt;p&gt;Nowadays all Free Software authors struggle to get enough resources to
produce a steady stream of releases, even when the project is very
popular. This sustainability problem is getting more and more attention
as the number of Free Software projects in use world wide keeps growing.
Even the simplest online service relies on thousands of Free Software
projects, each of which needs work to keep going. Accidents caused by
poorly maintained Free Software projects become more frequent.&lt;&#x2F;p&gt;
&lt;p&gt;This Free Software sustainability crisis is barely emerging and very
much resembles ecological problems such as climate change. In both cases
it is very difficult to figure out how to properly care for the
resources that are consumed. After decades of advocacy, it is generally
accepted that fossil energy won&#x27;t last forever but there still is a long
way to go. It will also take a long time for the Free Software community
to answer this simple question: how to sustain an ever growing library
of Free Software?&lt;&#x2F;p&gt;
&lt;p&gt;Luckily, it is relatively simpler to solve that problem for an online
service because it has users. They can be reminded that their assistance
is needed to keep the project afloat, for instance by a donation. A
proposition that would be much more difficult to make for the author of
a cryptographic library. Convincing users to pay for an online service
has the best chance of success when the author of the software is also
the service provider. This is the business model of Discourse and
Weblate, but it is relatively fragile because nothing stands in the way
of the competition.&lt;&#x2F;p&gt;
&lt;p&gt;A few years ago ElasticSearch successfully developed an online service
offering. But when AWS entered the competition and was better at
marketing it, ElasticSearch quickly realized they would likely go out of
business. They tried to fight back by &lt;a href=&quot;https:&#x2F;&#x2F;www.elastic.co&#x2F;blog&#x2F;licensing-change&quot;&gt;changing their
license&lt;&#x2F;a&gt;, which was the
wrong answer to a real problem. Discourse or Weblate are also likely to
face competition from hosting companies in the future and they may not
survive it.&lt;&#x2F;p&gt;
&lt;p&gt;In the end, the durable source of income for a Free Software online
service is to rent the resources (CPU&#x2F;RAM&#x2F;network&#x2F;disk) it needs to run.
In other words only hosting companies can make a profit when running
such an online service. And for that reason they also need to share part
of the profits to ensure the sustainability of the Free Software service
their customers need.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;online-services-vendor-lock-in-is-cured-by-free-software&quot;&gt;Online services vendor lock-in is cured by Free Software&lt;a class=&quot;zola-anchor&quot; href=&quot;#online-services-vendor-lock-in-is-cured-by-free-software&quot; aria-label=&quot;Anchor link for: online-services-vendor-lock-in-is-cured-by-free-software&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;When hosting companies offer online services they also provide upgrades
and transparent recovery when the hardware fails. But none of them allow
the service to be self-hosted. When their price policy change, or when
the term of services ban users from a given country, migrating the
service elsewhere it costly and difficult. For instance when AWS runs
MySQL for their customers, they allow to download the data but not the
software that runs the proprietary AWS interface used to configure and
control the server. Another example is GitHub where the content of the
git repository can be downloaded but the code that runs GitHub itself is
not Free Software.&lt;&#x2F;p&gt;
&lt;p&gt;If a customer cannot run the same software as their service provider,
they are locked-in, even if they can download their data. It is a common
misconception to think that there is no vendor lock-in as long as it is
possible to download the data in an standard format. Migrating the data
from one software to another is, more often than not, time consuming and
costly to a point that it is effectively a blocker. A GitHub salesperson
would argue that it is possible for people to run GitHub Enterprise on
their own hardware. But the vendor lock-in is still present via the
proprietary license contract. The user experience, maintenance and
upgrades are still exclusively controlled by GitHub.&lt;&#x2F;p&gt;
&lt;p&gt;To guarantee their independence, the customers of an online service need
to be able to:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Download their data&lt;&#x2F;li&gt;
&lt;li&gt;Run the exact same Free Software as their service provider&lt;&#x2F;li&gt;
&lt;li&gt;Run the exact same Free Software infrastructure as code as their
service provider&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The requirement regarding Free Software infrastructure as code refers
to, for instance, the AWS control panel and all that is behind it when
creating a new MySQL service. It includes whatever a competitor would
need to run the same online service. An example would be
https:&#x2F;&#x2F;enough.community, an infrastructure as code dedicated to
creating the services needed by whistleblowers and human rights
defenders. It consumes resources rented by hosting providers, assembles
disks and machines, setup monitoring and intrusion detection, installs
various online services and upgrades them.&lt;&#x2F;p&gt;
&lt;p&gt;The availability of the software that creates the infrastructure is not
only useful to the competitors of a service provider. It also benefits a
non-profit that wants to provide (for instance) Wordpress instances to
its members. Without it they would need to create something from scratch
using building blocks such as CiviCRM. Even though such building blocks
exist, this is a significant undertaking and effectively a blocker.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;federated-online-services-and-durability&quot;&gt;Federated online services and durability&lt;a class=&quot;zola-anchor&quot; href=&quot;#federated-online-services-and-durability&quot; aria-label=&quot;Anchor link for: federated-online-services-and-durability&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;All self-hosted services are in danger of losing the data they contain.
When a Wordpress service is hosted in a home and the machine dies, it
must be restored from backups... when there are backups. Hosting
companies ensure the durability of the data with their own backup
system. It creates a dilemma for people who are looking into self
hosting: independence is desirable, but is it worth taking the risk of
data loss?&lt;&#x2F;p&gt;
&lt;p&gt;Federated online services do not suffer from this problem, because they
can mirror each other. A Gitea instance that is federated with another
will mirror copies of software projects found on its peers. Should one
instance be destroyed, mirrored projects can be resurrected from the
federated instance. Not only is it a practical way to ensure the (rare)
failure of an entire datacenter, it also helps with the (more frequent)
destruction of self-hosted machines. Contrary to backups that require
special attention, the replication involved in federated online service
is built in and works continuously. There is no need for an extra backup
service that is very rarely used and therefore likely to fail when
needed.&lt;&#x2F;p&gt;
&lt;p&gt;Federated services are not yet mainstream and Gitea is one of the rare
services that started to implement the concept. In the interim,
customers of an online hosting service will need to worry about backups
to ensure the durability of their data. But the ultimate solution for
them won&#x27;t be the emergence of an ideal backup infrastructure, it will
be replication (via federated services) that will continuously ensure
the durability of their data.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;paths-forward&quot;&gt;Paths forward&lt;a class=&quot;zola-anchor&quot; href=&quot;#paths-forward&quot; aria-label=&quot;Anchor link for: paths-forward&quot;
&gt;&lt;span class=&quot;anchor-icon&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a
&gt;
&lt;&#x2F;h1&gt;
&lt;p&gt;The Gitea project itself, following the footsteps of Discourse or
Weblate, could provide a hosting service. Part of its current user base
may become customers and there does not seem to be any blocker to make
that happen. As with most successful Free Software project, people
working on Gitea daily are already very busy and cannot engage in such a
long term project. But Aravinth and myself can, if they will have us.&lt;&#x2F;p&gt;
&lt;p&gt;Another path forward would be to wrap Gitea into a bundle that existing
hosting companies could easily use to provide such a service to their
customers. The biggest hosting companies are unlikely to be interested:
if Digital Ocean was to provide upgrades on top of their existing Gitea
image, they are more likely to rely on their internal staff to implement
that from scratch, as proprietary software integrated into their
existing infrastructure. But smaller hosting companies such as
https:&#x2F;&#x2F;Octopuce.fr or https:&#x2F;&#x2F;Easter-Eggs.com, who already deploy Gitea
instances for their customers, would use it if, for instance, it helped
with the upgrades. They would then kindly be reminded to give back a
share of their profits in order to sustain the development of the
service they deploy.&lt;&#x2F;p&gt;
&lt;p&gt;Finally it would also be possible to follow the example of GitLab in the
early days (before it turned to proprietary software) or Codeberg and
offer a free shared forge hosting service to build a user base. After a
few years, a percentage of the user base would convert to being paid
customers or donors to sustain the activity and part of the income would
be used to sustain the development of the service.&lt;&#x2F;p&gt;
</content>
</entry>
</feed>

560
tags/gna/index.html Normal file
View File

@ -0,0 +1,560 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="me" href="https://pouet.chapril.org/@gna" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://gna.org/main.css" />
<link
rel="stylesheet"
media="screen and (max-width: 1300px)"
href="https://gna.org/mobile.css"
/>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>gna | Gna!: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="gna" />
<meta property="og:title" content="gna | Gna!: Managed Gitea Hosting " />
<meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;gna.org" />
<meta property="og:description" content="gna" />
<meta
property="og:site_name"
content="gna | Gna!: Managed Gitea Hosting "
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://gna.org/apple-icon-57x57.png?h=c21de14cfdf862a6472ae977557fa048a7c36d39337e61d3274705e9bd8e857f"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://gna.org/apple-icon-60x60.png?h=67089d9025a52d0d1ddce450078c7acefe2c150a2427dec9f5e13c6314f74281"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://gna.org/apple-icon-72x72.png?h=70725943de8884804f9da28202ced0ad6fed483ae9cf8f6d874aa133e30cb693"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://gna.org/apple-icon-76x76.png?h=1e6e8072df3b21bdcea254a42aac6e993611e845f91ddd79f6f35a6c441710a5"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://gna.org/apple-icon-114x114.png?h=c20099f8190ed3962fab5726c5594857a871cdb3ee98439343c622cd3727fed6"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://gna.org/apple-icon-120x120.png?h=4df78e402e60b58c6d44764678bdd737b5b6a836aeb85fb75fa49f706f7e8c81"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://gna.org/apple-icon-144x144.png?h=0c44e6655d714f89ee95cc151032d1f0dc3204bd24d1ca2ee9d94692d4ede84d"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://gna.org/apple-icon-152x152.png?h=157918f883ff95d4eeb6452d0ebb61ca5e21ea0dcac1aefe825f3e2f3999052f"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://gna.org/apple-icon-180x180.png?h=7d5c16d379b7db6d8ea5aae64921d7162b84f543763acd8fc7c107f80a600213"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="https://gna.org/android-icon-192x192.png?h=095e3835b082dba07f606c33fa6f71bcd671a71e987b0ab2e46dcddceef52b9c"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://gna.org/favicon-32x32.png?h=1bf54bf111572b1d1639192b5360ee4345f702e563aa71bb66610a95a7290437"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="https://gna.org/favicon-96x96.png?h=5a6ed96c09f5055526e3b236867a1272a26f7ba957d48b267bccd51ef0845fbe"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://gna.org/favicon-16x16.png?h=1e5fa59ae78516055f662e40bb2599dc3828a7adb34567e9d8d2cfcaa6b7aa5f"
/>
<link
rel="manifest"
href="https://gna.org/manifest.json?h=27eca3e8297eb7ff340deb3849b210185a459b3845456aa4d0036f6d966b3518"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="https://gna.org/ms-icon-144x144.png?h=8170ab51b871b84b8f98bd03cf441afdffb2998b7dfffb04abb7ebf5deeb1f94"
/>
<meta name="theme-color" content="#ffffff" />
</head>
</head>
<body class="base">
<header>
<nav class="nav__container">
<input type="checkbox" class="nav__toggle" id="nav__toggle" />
<div class="nav__header">
<a class="nav__logo-container" href="/">
<img src="https://gna.org/gna-logo-rectangle-48px.png?h=ba9eab043277265f94c51b87d5e14f9ca35789403ecb8afc9bd1e33b13c6a2a5" alt="Gna!"/>
</a>
<label class="nav__hamburger-menu" for="nav__toggle">
<span class="nav__hamburger-inner"></span>
</label>
</div>
<div class="nav__spacer--small"></div>
<div class="nav__link-group">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;about&#x2F;">About</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;blog&#x2F;">Blog</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;matrix.to&#x2F;#&#x2F;#gna:matrix.batsense.net">Chat</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="&#x2F;gitea-clinic&#x2F;">Clinic</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;forum.gna.org">Forum</a>
</div>
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;pouet.chapril.org&#x2F;@gna">Mastodon</a>
</div>
</div>
<div class="nav__spacer"></div>
<div class="nav__link-group--small">
<div class="nav__link-container">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;login&#x2F;">Login</a>
</div>
<div class="nav__link-container--action">
<a class="nav__link" rel="noreferrer" href="https:&#x2F;&#x2F;hosteadashboard.gna.org&#x2F;register&#x2F;">Join</a>
</div>
</div>
</nav>
</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
<div class="blog__container">
<div class="tag__title-container">
<h1 class="tag__title">#gna</h1>
<a class="tag__rss-link--single" href="https:&#x2F;&#x2F;gna.org&#x2F;tags&#x2F;gna&#x2F;atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="tag__rss-icon--single"
alt="RSS icon"
/>
</a></div>
<ul class="blog__list">
<li class="blog__post-item">
<a href="https://gna.org/blog/1-17-breaking-episode-2/" class="blog__post-link">
<h2 class="blog__post-title">1.17 breaking changes episode 2: preserving a custom gitconfig</h2>
<p class="blog__post-meta">
20
July
,
2022 &middot; <b>2 min read</b>
</p>
<p class="blog__post-description">The location of the gitconfig file used by Gitea moved twice, here is a guide to sort out why and how to deal with it. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
<a class="blog__post-tag" href="/tags/tutorial">#tutorial</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/experimental/" class="blog__post-link">
<h2 class="blog__post-title">Get a Gitea instance with CI at Gna!</h2>
<p class="blog__post-meta">
10
July
,
2022 &middot; <b>5 min read</b>
</p>
<p class="blog__post-description">It is now possible to rent a Gitea instance by the month, with Woodpecker CI. A self-hostable hosting solution supported by a horizontal collective of individuals and organizations. 25% of the income is dedicated to help the Free Software projects it depends on such as Gitea, Enough, Django, etc. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/federation">#federation</a>
<a class="blog__post-tag" href="/tags/forgefriends">#forgefriends</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/1-17-breaking-episode-1/" class="blog__post-link">
<h2 class="blog__post-title">1.17 breaking changes episode 1: preserving a custom gitconfig</h2>
<p class="blog__post-meta">
22
June
,
2022 &middot; <b>2 min read</b>
</p>
<p class="blog__post-description">The location of the gitconfig file used by Gitea moved and custom modifications must be manually moved as well. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
<a class="blog__post-tag" href="/tags/tutorial">#tutorial</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/gentle-introduction-to-the-doctor/" class="blog__post-link">
<h2 class="blog__post-title">[tutorial] A gentle introduction to the gitea doctor</h2>
<p class="blog__post-meta">
14
June
,
2022 &middot; <b>7 min read</b>
</p>
<p class="blog__post-description">The doctor command is useful to check the health of a running Gitea instance. Specially after performing an upgrade. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
<a class="blog__post-tag" href="/tags/tutorial">#tutorial</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/zombies-part-2/" class="blog__post-link">
<h2 class="blog__post-title">[solved] Zombies created by Gitea</h2>
<p class="blog__post-meta">
4
June
,
2022 &middot; <b>3 min read</b>
</p>
<p class="blog__post-description">Gitea can use process groups to kill its children using a negative PID to never create zombies. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/zombies/" class="blog__post-link">
<h2 class="blog__post-title">[diagnostic] Zombies created by Gitea</h2>
<p class="blog__post-meta">
2
June
,
2022 &middot; <b>4 min read</b>
</p>
<p class="blog__post-description">An increasing number of zombies processes are created by Gitea because it only kills its direct children on timeout. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/path-not-found/" class="blog__post-link">
<h2 class="blog__post-title">[solved] Gitea 1.15 and up: path not found or permission denied</h2>
<p class="blog__post-meta">
28
May
,
2022 &middot; <b>3 min read</b>
</p>
<p class="blog__post-description">After migrating from 1.15 or earlier to gitea 1.16 paths are no longer found and files cannot be created because of permission problems because the default example.ini file changed. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/upgrade">#upgrade</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/unsafe-repository-is-owned-by-someone-else/" class="blog__post-link">
<h2 class="blog__post-title">[solved] Gitea 1.16.[678] error: fatal: unsafe repository is owned by someone else</h2>
<p class="blog__post-meta">
15
May
,
2022 &middot; <b>4 min read</b>
</p>
<p class="blog__post-description">If Gitea runs as user git, calls a patched Git version and a parent directory of the git repositories is owned by a user other than git, it will fail. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/upgrade">#upgrade</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/blank-or-error-500-page-after-login/" class="blog__post-link">
<h2 class="blog__post-title">[solved] blank or error 500 page after login</h2>
<p class="blog__post-meta">
8
May
,
2022 &middot; <b>6 min read</b>
</p>
<p class="blog__post-description">After going to production, some Gitea users saw a blank page after login and had to manually type the URL of the project they wanted to see in the browser. </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/upgrade">#upgrade</a>
<a class="blog__post-tag" href="/tags/troubleshoot">#troubleshoot</a>
<a class="blog__post-tag" href="/tags/problem">#problem</a>
</div>
</li>
<li class="blog__post-item">
<a href="https://gna.org/blog/project-plans-for-hosted-gitea-online-service/" class="blog__post-link">
<h2 class="blog__post-title">Project plans for a hosted Gitea online service</h2>
<p class="blog__post-meta">
18
April
,
2022 &middot; <b>11 min read</b>
</p>
<p class="blog__post-description">When an organization asks me about Gitea, I would like to direct them to a provider where they can rent an instance and just use it </p>
</a>
<div class="blog__post-tag-container">
<a class="blog__post-tag" href="/tags/gna">#gna</a>
<a class="blog__post-tag" href="/tags/gitea">#gitea</a>
<a class="blog__post-tag" href="/tags/free-software">#free-software</a>
<a class="blog__post-tag" href="/tags/free-software-sustainability">#free-software-sustainability</a>
</div>
</li>
</ul>
</div>
<link rel="alternate" type="application/rss+xml" title="RSS" href="https://gna.org/rss.xml">
</main>
<footer>
<div class="footer__container">
<!-- <div class="footer__column"> --->
<p class="footer__column license__conatiner">
All text <a
class="license__link"
rel="noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
>&nbsp;CC-BY-SA&nbsp;</a
>
&amp; code
<a
class="license__link"
rel="noreferrer"
href="https://www.gnu.org/licenses/agpl-3.0.en.html"
target="_blank"
>&nbsp;AGPL&nbsp;</a
>
|
<a
class="license__link"
rel="noreferrer"
href="https://www.eff.org/issues/do-not-track/amp/"
target="_blank"
>&nbsp;No AMP&nbsp;</a
>
</p>
<!-- </div> -->
<div class="footer__column--center">
<a href="/blog/atom.xml" target="_blank" rel="noopener" title="RSS">
<img
src="https://gna.org/icons/rss.svg?h=f6cd584bdbcd2eb4d1b8b84c9cf083ef45f772167c33fdcee754b35ae8ff4c7d"
class="footer__icon"
alt="Email icon"
/>
</a>
</div>
<div class="footer__column">
<a href="/about" title="About">About</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<span class="footer__column-divider--mobile-only">|</span>
<a href="/legalese" title="Legalese">Legalese</a>
<a href="/privacy-policy" title="Privacy Policy">Privacy</a>
<span class="footer__column-divider--mobile-only">|</span>
<a
href="https://gitea.gna.org/Hostea"
rel="noreferrer"
target="_blank"
title="Status"
>Source Code</a
>
<a href="/tos" title="Terms of Service">ToS</a>
</div>
</div>
</footer>
</div>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More