Skip to content

Instantly share code, notes, and snippets.

View dhilgarth's full-sized avatar

Daniel Hilgarth dhilgarth

View GitHub Profile
@dhilgarth
dhilgarth / debugging swarm network.md
Last active October 19, 2024 01:59
Troubleshoot Docker Swarm Network issues

See moby/moby#47728 for context.

Issue 1: Packets sent to wrong node

I've just had the case that the networkDB looked correct, but the packages were still being routed to the wrong node.

Details: Node S, running the source container, has IP 172.17.2.2 Node T, running the target container, has IP 172.16.3.2

2019-10-18T12:34:33.562209200Z time="2019-10-18T12:34:33Z" level=error msg="failed to decode agent output of `docker_grafana-data` : illegal base64 data at input byte 0 -> `{\"type\":\"success\",\"content\":{\"backup\":{\"stdout\":\"{\\\"message_type\\\":\\\"status\\\",\\\"percent_done\\\":0,\\\"total_files\\\":1,\\\"total_bytes\\\":479232}\\n{\\\"message_type\\\":\\\"status\\\",\\\"percent_done\\\":0,\\\"total_files\\\":1,\\\"total_bytes\\\":479232,\\\"current_files\\\":[\\\"/var/lib/docker/volumes/docker_grafana-data/_data/grafana.db\\\"]}\\n{\\\"message_type\\\":\\\"status\\\",\\\"percent_done\\\":1,\\\"total_files\\\":1,\\\"total_bytes\\\":479232,\\\"bytes_done\\\":479232,\\\"current_files\\\":[\\\"/var/lib/docker/volumes/docker_grafana-data/_data/grafana.db\\\"]}\\n{\\\"message_type\\\":\\\"status\\\",\\\"percent_done\\\":1,\\\"total_files\\\":1,\\\"total_bytes\\\":479232,\\\"bytes_done\\\":479232,\\\"current_files\\\":[\\\"/var/lib/docker/volumes/docker_grafana-data/_data/grafana.db\\\"]}\\n{\\\"message
@dhilgarth
dhilgarth / LoadingInterceptorConfig.ts
Created December 18, 2018 08:46
Passing meta data for interceptors to Angular HttpClient
export class LoadingInterceptorConfig {
constructor(public disableLoadingIndicator: boolean = false) {
}
}
@dhilgarth
dhilgarth / ReadGitVersionInformation.cs
Last active September 13, 2018 20:34
Facade to read GitVersionInformation injected by GitTools\GitVersion MSBuild task
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
namespace ReadGitVersionInformation
{
public interface IGitVersionInformation
{
PS C:\Windows\system32> choco install --noop ncrunch-vs2013
Chocolatey v0.9.10-alpha1
_ Chocolatey:ChocolateyInstallCommand - Noop Mode _
Chocolatey would have used NuGet to install packages (if they are not already installed):
ncrunch-vs2013
ncrunch-vs2013 v2.16.0.13
Would have run 'C:\Users\Daniel Hilgarth\AppData\Local\Temp\Chocolatey\TempInstalls_20151010_185251_7254\ncrunch-vs2013\tools\chocolateyInstall.ps1':
$packageName = 'ncrunch-vs2013'
$url = 'http://downloads.ncrunch.net/NCrunch_VS2013_2.16.0.13.msi'
[
{
"id": 278385355,
"name": "the_iformbuilder_mobile_platform_has_been_used_to_conduct_all_ki",
"label": "The form below demonstrates a simple inspection form that could be applied to any industry.",
"data_type": 16,
"widget_type": null
},
{
"id": 278385358,