From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 54FBD1FF39B for ; Mon, 17 Jun 2024 10:13:07 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 01CDC3787A; Mon, 17 Jun 2024 10:13:10 +0200 (CEST) From: Gabriel Goller To: pbs-devel@lists.proxmox.com Date: Mon, 17 Jun 2024 10:12:51 +0200 Message-ID: <20240617081259.73805-2-g.goller@proxmox.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240617081259.73805-1-g.goller@proxmox.com> References: <20240617081259.73805-1-g.goller@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.056 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pbs-devel] [PATCH proxmox v3 1/4] CLI: print fatal errors including causes X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Backup Server development discussion Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" RnJvbTogRmFiaWFuIEdyw7xuYmljaGxlciA8Zi5ncnVlbmJpY2hsZXJAcHJveG1veC5jb20+Cgph cyBhIGZpcnN0IHN0ZXAgb2YgaW1wcm92aW5nIG91ciBlcnJvciBoYW5kbGluZyBzdG9yeSwgcHJp bnRpbmcgY29udGV4dAphbm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AgQEAgLTY3Niw3ICs2NzYsOCBAQCBhc3luYyBmbiBzZXR1cChjb25maWc6 IE9wdGlvbjxTdHJpbmc+LCBfcGFyYW06IFZhbHVlKSAtPiBSZXN1bHQ8KCksIEVycm9yPiB7Cisg ICAgICAgICAgICAgICAgIEFjdGlvbjo6QWRkTWlycm9yID0+IHsKKyAgICAgICAgICAgICAgICAg ICAgIGZvciBtaXJyb3JfY29uZmlnIGluIGFjdGlvbl9hZGRfbWlycm9yKCZjb25maWcpPyB7Cisg ICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGlkID0gbWlycm9yX2NvbmZpZy5pZC5jbG9uZSgp OworICAgIC0gICAgICAgICAgICAgICAgICAgIG1pcnJvcjo6aW5pdCgmbWlycm9yX2NvbmZpZyk/ OworICAgICsgICAgICAgICAgICAgICAgICAgIG1pcnJvcjo6aW5pdCgmbWlycm9yX2NvbmZpZykK KyAgICArICAgICAgICAgICAgICAgICAgICAgICAgLndpdGhfY29udGV4dCh8fCBmb3JtYXQhKCJG YWlsZWQgdG8gaW5pdGlhbGl6ZSBtaXJyb3IgJ3tpZH0nIikpPzsKKyAgICAgICAgICAgICAgICAg ICAgICAgICBjb25maWcuc2V0X2RhdGEoJmlkLCAibWlycm9yIiwgbWlycm9yX2NvbmZpZyk/Owor ICAgICAgICAgICAgICAgICAgICAgICAgIHNhdmVfY29uZmlnKCZjb25maWdfZmlsZSwgJmNvbmZp Zyk/OworICAgICAgICAgICAgICAgICAgICAgICAgIHByaW50bG4hKCJDb25maWcgZW50cnkgJ3tp ZH0nIGFkZGVkIik7CisgICAgZGlmZiAtLWdpdCBhL3NyYy9wb29sLnJzIGIvc3JjL3Bvb2wucnMK KyAgICBpbmRleCAzZGE4YzA4Li5lY2YzZjZmIDEwMDY0NAorICAgIC0tLSBhL3NyYy9wb29sLnJz CisgICAgKysrIGIvc3JjL3Bvb2wucnMKKyAgICBAQCAtNyw3ICs3LDcgQEAgdXNlIHN0ZDo6ewor ICAgICAgICAgcGF0aDo6e1BhdGgsIFBhdGhCdWZ9LAorICAgICB9OworCisgICAgLXVzZSBhbnlo b3c6OntiYWlsLCBmb3JtYXRfZXJyLCBFcnJvcn07CisgICAgK3VzZSBhbnlob3c6OntiYWlsLCBm b3JtYXRfZXJyLCBDb250ZXh0LCBFcnJvcn07CisgICAgIHVzZSBuaXg6Ont1bmlzdGQsIE5peFBh dGh9OworCisgICAgIHVzZSBwcm94bW94X2FwdDo6ZGViODIyOjpDaGVja1N1bXM7CisgICAgQEAg LTQ1LDEwICs0NSwxMiBAQCBpbXBsIFBvb2wgeworICAgICAgICAgICAgIH0KKworICAgICAgICAg ICAgIGlmICFwb29sLmV4aXN0cygpIHsKKyAgICAtICAgICAgICAgICAgY3JlYXRlX3BhdGgocG9v bCwgTm9uZSwgTm9uZSk/OworICAgICsgICAgICAgICAgICBjcmVhdGVfcGF0aChwb29sLCBOb25l LCBOb25lKQorICAgICsgICAgICAgICAgICAgICAgLndpdGhfY29udGV4dCh8fCBmb3JtYXQhKCJG YWlsZWQgdG8gY3JlYXRlIHBvb2wgZGlyIHtwb29sOj99IikpPzsKKyAgICAgICAgICAgICB9CisK KyAgICAtICAgICAgICBjcmVhdGVfcGF0aChsaW5rX2RpciwgTm9uZSwgTm9uZSk/OworICAgICsg ICAgICAgIGNyZWF0ZV9wYXRoKGxpbmtfZGlyLCBOb25lLCBOb25lKQorICAgICsgICAgICAgICAg ICAud2l0aF9jb250ZXh0KHx8IGZvcm1hdCEoIkZhaWxlZCB0byBjcmVhdGUgbGluayBkaXIge2xp bmtfZGlyOj99IikpPzsKKworICAgICAgICAgICAgIE9rKFNlbGYgeworICAgICAgICAgICAgICAg ICBwb29sX2RpcjogcG9vbC50b19wYXRoX2J1ZigpLAorCitXZSdkIGdldCB0aGUgZm9sbG93aW5n IG91dHB1dDo6CisKKyAgICBFcnJvcjogRmFpbGVkIHRvIGluaXRpYWxpemUgbWlycm9yICdkZWJp YW5fYnVsbHNleWVfbWFpbicKKworICAgIENhdXN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W5pdGlh bGl6ZSBtaXJyb3IgJ2RlYmlhbl9idWxsc2V5ZV9tYWluJworCitXaGVuIGFkZGluZyBjb250ZXh0 IHRvIGV4aXN0aW5nIGVycm9yIGhhbmRsaW5nIChvciB3aGVuIHJlcGxhY2luZyBtYW51YWwKK2Nv bnRleHQgYWRkaW5nIHZpYSBmb3JtYXRfZXJyISksIGNhbGwgc2l0ZXMgbmVlZCB0byBiZSBhZGFw dGVkIHRvIGVuc3VyZSB0aGUKK2NhdXNlcyBhcmUgbm90IGFjY2lkZW50YWxseSBoaWRkZW4uCisK ZGlmZiAtLWdpdCBhL3Byb3htb3gtcm91dGVyL3NyYy9jbGkvY29tbWFuZC5ycyBiL3Byb3htb3gt cm91dGVyL3NyYy9jbGkvY29tbWFuZC5ycwppbmRleCA3YTI2ZmZiOS4uZDU1MjJmMTIgMTAwNjQ0 Ci0tLSBhL3Byb3htb3gtcm91dGVyL3NyYy9jbGkvY29tbWFuZC5ycworKysgYi9wcm94bW94LXJv dXRlci9zcmMvY2xpL2NvbW1hbmQucnMKQEAgLTgzLDcgKzgzLDcgQEAgYXN5bmMgZm4gaGFuZGxl X3NpbXBsZV9jb21tYW5kX2Z1dHVyZSgKICAgICAgICAgICAgIH0KICAgICAgICAgfQogICAgICAg ICBFcnIoZXJyKSA9PiB7Ci0gICAgICAgICAgICBlcHJpbnRsbiEoIkVycm9yOiB7fSIsIGVycik7 CisgICAgICAgICAgICBlcHJpbnRsbiEoIkVycm9yOiB7Oj99IiwgZXJyKTsKICAgICAgICAgICAg IHJldHVybiBFcnIoZXJyKTsKICAgICAgICAgfQogICAgIH0KQEAgLTEzNSw3ICsxMzUsNyBAQCBm biBoYW5kbGVfc2ltcGxlX2NvbW1hbmQoCiAgICAgICAgICAgICB9CiAgICAgICAgIH0KICAgICAg ICAgRXJyKGVycikgPT4gewotICAgICAgICAgICAgZXByaW50bG4hKCJFcnJvcjoge30iLCBlcnIp OworICAgICAgICAgICAgZXByaW50bG4hKCJFcnJvcjogezo/fSIsIGVycik7CiAgICAgICAgICAg ICByZXR1cm4gRXJyKGVycik7CiAgICAgICAgIH0KICAgICB9Ci0tIAoyLjQzLjAKCgoKX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcGJzLWRldmVsIG1haWxp bmcgbGlzdApwYnMtZGV2ZWxAbGlzdHMucHJveG1veC5jb20KaHR0cHM6Ly9saXN0cy5wcm94bW94 LmNvbS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vcGJzLWRldmVsCg==