157 lines
5.5 KiB
HTML
157 lines
5.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en-us">
|
|
<head>
|
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
|
|
<link rel="manifest" href="/images/site.webmanifest">
|
|
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="description" content="Credit to the designer of the theme [goodroot](https://github.com/goodroot/hugo-classic)">
|
|
<title>"I am bad at reading" | acorneroftheweb</title>
|
|
<link rel="stylesheet" href="/css/style.css" />
|
|
<link rel="stylesheet" href="/css/fonts.css" />
|
|
<link rel="stylesheet" href="https://acorneroftheweb.com/css/theme-override.css">
|
|
<header>
|
|
|
|
<nav>
|
|
<ul>
|
|
|
|
|
|
<li class="pull-left ">
|
|
<a href="https://acorneroftheweb.com">~/acorneroftheweb</a>
|
|
</li>
|
|
|
|
|
|
<li class="pull-left ">
|
|
<a href="/categories/">~/categories</a>
|
|
</li>
|
|
|
|
|
|
<li class="pull-left ">
|
|
<a href="/tags/">~/tags</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li class="pull-right">
|
|
<a href="/index.xml">~/subscribe</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<br/>
|
|
|
|
<div class="article-meta">
|
|
<h1><span class="title">“I am bad at reading”</span></h1>
|
|
|
|
<h2 class="date">2023/03/04</h2>
|
|
<p class="terms">
|
|
|
|
|
|
Categories: <a href="/categories/servers">Servers</a>
|
|
|
|
|
|
|
|
Tags: <a href="/tags/documentation">Documentation</a> <a href="/tags/servers">Servers</a>
|
|
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="content-wrapper">
|
|
<main>
|
|
|
|
<div id="outline-container-headline-1" class="outline-2">
|
|
<h2 id="headline-1">
|
|
Setting up servers
|
|
</h2>
|
|
<div id="outline-text-headline-1" class="outline-text-2">
|
|
<p>So recently, I have been setting up servers for my committee at uni and my own home server since I am transferring from a vps.
|
|
Doing this, I have tried out using <a href="https://github.com/hashicorp/nomad/">Nomad</a> and <a href="https://github.com/hashicorp/consul/">Consul</a> instead of ssh'ing to the server and running <code>docker-compose up</code> or even launching the services manually.
|
|
This approach has seeing how the docker logs look easier and I know that reverse proxy will be solved by itself.</p>
|
|
<p>
|
|
The issues arise when I try to understand why thing aren't working in the tools used however.
|
|
Docker-compose is kinda self contained, but both Nomad and Consul work as an overarching tool so trying to find out errors with them is harder.</p>
|
|
</div>
|
|
</div>
|
|
<div id="outline-container-headline-2" class="outline-2">
|
|
<h2 id="headline-2">
|
|
The latest issues
|
|
</h2>
|
|
<div id="outline-text-headline-2" class="outline-text-2">
|
|
<p>So, two days ago, I was trying to setup Jellyfin on my own server, but it started acting up in a weird way.
|
|
Services were shutting down as expected Nomad, but on the Consul side, it would just add on more and more services.
|
|
This made the reverse proxy Traefik not work or sending traffic to the wrong container.
|
|
Logging into the server via ssh and using the <code>deregister</code> command of Consul resulted in not finding the services.
|
|
After hours of searching I found <a href="https://github.com/hashicorp/consul/issues/16351">this github issue</a> which made me able to manually deregister services.</p>
|
|
<p>
|
|
This was a temporary fix, I had to get to the root issue of the problem.
|
|
So today I sat down to try and figure things out.
|
|
Searching and searching for the issues, I find out that the problems are arising from the tokens used due to permissions.
|
|
But trying to find out how the permissions work, I am dumbfounded.
|
|
Reading through <a href="https://developer.hashicorp.com/consul/docs/security/acl/acl-policies">this</a> gives me nothing that helps me figure out how to actually use it.
|
|
It feels like you have to be into the entire system and know a bit of everything to even be able to use it.</p>
|
|
</div>
|
|
</div>
|
|
<div id="outline-container-headline-3" class="outline-2">
|
|
<h2 id="headline-3">
|
|
After the fact
|
|
</h2>
|
|
<div id="outline-text-headline-3" class="outline-text-2">
|
|
<p>It got fixed eventually, but the threshold to get into certain systems feels overwhelming to me.
|
|
I am way more of getting the bare system, or it might be a bit more like the Unix philosophy of doing 1 thing good.
|
|
That way, the documentation of that program can be short and to the point rather than explain an entire ecosystem.
|
|
It would be harder to set up the communication between software though, so I understand why it exists, but I easily get frustrated by it.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<a href="/"> >> Home</a>
|
|
</main>
|
|
</div>
|
|
<footer>
|
|
|
|
<script>
|
|
(function() {
|
|
function center_el(tagName) {
|
|
var tags = document.getElementsByTagName(tagName), i, tag;
|
|
for (i = 0; i < tags.length; i++) {
|
|
tag = tags[i];
|
|
var parent = tag.parentElement;
|
|
|
|
if (parent.childNodes.length === 1) {
|
|
|
|
if (parent.nodeName === 'A') {
|
|
parent = parent.parentElement;
|
|
if (parent.childNodes.length != 1) continue;
|
|
}
|
|
if (parent.nodeName === 'P') parent.style.textAlign = 'center';
|
|
}
|
|
}
|
|
}
|
|
var tagNames = ['img', 'embed', 'object'];
|
|
for (var i = 0; i < tagNames.length; i++) {
|
|
center_el(tagNames[i]);
|
|
}
|
|
})();
|
|
</script>
|
|
|
|
|
|
<hr/>
|
|
Open-Source | <a href="https://git.acorneroftheweb.com/pingu/blog">Git</a>
|
|
|
|
</footer>
|
|
</body>
|
|
</html>
|
|
|