Skip to content

warning: preserving the entire environment is not supported, -E is ignored #5283

@khteh

Description

@khteh

Where does this warning message come from and how to get rid of it?

Summary

$ m stop
warning: preserving the entire environment is not supported, `-E` is ignored
Stopped.
warning: preserving the entire environment is not supported, `-E` is ignored
ctr: failed to dial "/var/snap/microk8s/common/run/containerd.sock": connection error: desc = "transport: error while dialing: dial unix /var/snap/microk8s/common/run/containerd.sock: connect: connection refused"
warning: preserving the entire environment is not supported, `-E` is ignored
ctr: failed to dial "/var/snap/microk8s/common/run/containerd.sock": connection error: desc = "transport: error while dialing: dial unix /var/snap/microk8s/common/run/containerd.sock: connect: connection refused"
warning: preserving the entire environment is not supported, `-E` is ignored
ctr: failed to dial "/var/snap/microk8s/common/run/containerd.sock": connection error: desc = "transport: error while dialing: dial unix /var/snap/microk8s/common/run/containerd.sock: connect: connection refused"
warning: preserving the entire environment is not supported, `-E` is ignored
Stopped.
warning: preserving the entire environment is not supported, `-E` is ignored
 $ k version -o yaml
clientVersion:
  buildDate: "2025-10-10T10:06:47Z"
  compiler: gc
  gitCommit: 93248f9ae092f571eb870b7664c534bfc7d00f03
  gitTreeState: clean
  gitVersion: v1.34.1
  goVersion: go1.24.6
  major: "1"
  minor: "34"
  platform: linux/amd64
kustomizeVersion: v5.7.1
serverVersion:
  buildDate: "2025-10-10T10:07:48Z"
  compiler: gc
  emulationMajor: "1"
  emulationMinor: "34"
  gitCommit: 93248f9ae092f571eb870b7664c534bfc7d00f03
  gitTreeState: clean
  gitVersion: v1.34.1
  goVersion: go1.24.6
  major: "1"
  minCompatibilityMajor: "1"
  minCompatibilityMinor: "33"
  minor: "34"
  platform: linux/amd64
$ m inspect
warning: preserving the entire environment is not supported, `-E` is ignored
/snap/microk8s/8491/inspect.sh: line 7: /actions/common/utils.sh: No such file or directory
/snap/microk8s/8491/inspect.sh: line 480: exit_if_not_root: command not found
Inspecting system
Inspecting Certificates
Could not open file or uri for loading certificate from /certs/ca.crt
40675CB2257B0000:error:16000069:STORE routines:ossl_store_get0_loader_int:unregistered scheme:../crypto/store/store_register.c:237:scheme=file
40675CB2257B0000:error:80000002:system library:file_open:No such file or directory:../providers/implementations/storemgmt/file_store.c:267:calling stat(/certs/ca.crt)
Unable to load certificate
WARNING:  This deployments certificates will expire in $days days. 
Either redeploy MicroK8s or attempt a refresh with "microk8s refresh-certs"
Inspecting services
/snap/microk8s/8491/inspect.sh: line 503: is_strict: command not found
/snap/microk8s/8491/inspect.sh: line 23: is_strict: command not found
  Service snap.microk8s.daemon-cluster-agent is running
/snap/microk8s/8491/inspect.sh: line 23: is_strict: command not found
 FAIL:  Service snap.microk8s.daemon-containerd is not running
For more details look at: sudo journalctl -u snap.microk8s.daemon-containerd
/snap/microk8s/8491/inspect.sh: line 23: is_strict: command not found
  Service snap.microk8s.daemon-kubelite is running
/snap/microk8s/8491/inspect.sh: line 23: is_strict: command not found
 FAIL:  Service snap.microk8s.daemon-flanneld is not running
For more details look at: sudo journalctl -u snap.microk8s.daemon-flanneld
/snap/microk8s/8491/inspect.sh: line 23: is_strict: command not found
 FAIL:  Service snap.microk8s.daemon-etcd is not running
For more details look at: sudo journalctl -u snap.microk8s.daemon-etcd
/snap/microk8s/8491/inspect.sh: line 23: is_strict: command not found
 FAIL:  Service snap.microk8s.daemon-apiserver-proxy is not running
For more details look at: sudo journalctl -u snap.microk8s.daemon-apiserver-proxy
/snap/microk8s/8491/inspect.sh: line 23: is_strict: command not found
  Service snap.microk8s.daemon-apiserver-kicker is running
  Copy service arguments to the final report tarball
cp: cannot stat '/args': No such file or directory
Inspecting AppArmor configuration
/snap/microk8s/8491/inspect.sh: line 54: is_strict: command not found
Gathering system information
  Copy processes list to the final report tarball
  Copy disk usage information to the final report tarball
  Copy memory usage information to the final report tarball
  Copy server uptime to the final report tarball
  Copy openSSL information to the final report tarball
/snap/microk8s/8491/inspect.sh: line 109: is_strict: command not found
  Copy snap list to the final report tarball
  Copy VM name (or none) to the final report tarball
  Copy current linux distribution to the final report tarball
  Copy asnycio usage and limits to the final report tarball
  Copy inotify max_user_instances and max_user_watches to the final report tarball
  Copy network configuration to the final report tarball
/snap/microk8s/8491/inspect.sh: line 84: is_strict: command not found
Inspecting kubernetes cluster
  Inspect kubernetes cluster
/snap/microk8s/8491/inspect.sh: line 137: is_strict: command not found
cp: cannot stat '/bom.json': No such file or directory

/snap/microk8s/8491/inspect.sh: line 195: is_strict: command not found
/snap/microk8s/8491/inspect.sh: line 223: is_strict: command not found
/snap/microk8s/8491/inspect.sh: line 291: is_strict: command not found
/snap/microk8s/8491/inspect.sh: line 311: is_strict: command not found
/snap/microk8s/8491/inspect.sh: line 325: is_strict: command not found
/snap/microk8s/8491/inspect.sh: line 369: is_strict: command not found
WARNING:  Maximum number of inotify user watches is less than the recommended value of 1048576. 
	  Increase the limit with: 
	  	 echo fs.inotify.max_user_watches=1048576 | sudo tee -a /etc/sysctl.conf
	  	 sudo sysctl --system
Building the report tarball
gzip: /inspection-report-20251031_104459.tar: No such file or directory
  Report tarball is at /inspection-report-20251031_104459.tar.gz
$ m version
MicroK8s v1.34.1 revision 8491

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions