Umgebungsvariable SSL_CERT_FILE

kiwi

Active Member
Oct 10, 2017
6
0
41
57
Hallo zusammen,

anscheinend wird beim Verbinden in ein lxc Container mit pct enter seit neuestem die Umgebungsvariable

SSL_CERT_FILE=/usr/lib/ssl/cert.pem

gesetzt. Ein Debian und Ubuntu Container stört sich daran anscheinend nicht, aber bei Alpine Linux führt es dazu,
dass bei einer SSL Verbindung (z.B. mit wget, curl oder apk) aufgebaut werden kann.

Kann mir einer helfen, wo das ggf. konfiguriert werden kann?

Danke und Gruß
Kiwi
 
Hallo Kiwi,

als Workaround kannst du erst mal lxc-attach -n <vmid> benutzen, das ist was pct in dem Hintergrund auch macht.
Die Variable ist ein Nebeneffekt aus einer anderen Ecke der Codebase und sollte wahrscheinlich nicht an den Container weitergegeben werden.
Es wäre super wenn du dazu einen Bug in unserem Bugzilla[0] aufmachen kannst, dann bekommst du auch per Mail Updates wenn der Fehler behoben wird.

[0] https://bugzilla.proxmox.com/
 
Last edited:
Hallo Folke,

danke für den Tipp mit lxc-attach, aber mittlerweile habe ich auch herausgefunden, dass es auch mit pct exec dazu kommt
und mein script, das automatisch alle linux container aktualisiert (mit z.B. pct exec 234 -- apk update) funktionert auch nicht mehr.

Ich habe jetzt mal den Bug in Bugzilla geöffnet - mal sehen was die Spezialisten dazu sagen :)

Gruß
Kiwi
 
Ich hab heute morgen nen Patch fertig gemacht, kann aber noch etwas dauern bis der in Produktion landet.
Bis dahin gibt's auch für pct exec nen Workaround:
Code:
lxc-attach -n <vmid> -- <command>
# Also zum Beispiel
lxc-attach -n 134 -- ash -c "apk update && apk upgrade"
 
  • Like
Reactions: marissachan

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!