question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"microk8s.kubectl" failed: cannot create transient scope: DBus error "System.Error.E2BIG"

See original GitHub issue

Problem description

When trying to execute any of the microk8s commands I get:

internal error, please report: running "microk8s.kubectl" failed: cannot create transient scope: DBus error "System.Error.E2BIG": [Argument list too long]

After some time of cluster activity the microk8s fails with the above error. This error effectively prevents from doing any operations with microk8s command, including the microk8s inspect, microk8s.start/stop or microk8s.kubectl. It seems that the only solution is to restart the system and the cluster comes back to a healthy state again. However, after couple of hours it goes back to the failed state again.

Interestingly enough, it seems that the services inside the cluster ARE working and responding – I can query them and so on, they are working as expected, but I cannot check their state or logs.

System data

microk8s: 1.15/1.17 stable (both had the same problem occuring) System: Ubuntu 18.04.1

Comments

  • Three of the services that run in the cluster mounts on the disk
  • Other commands on that server are working fine, it’s just the microk8s that crashes with this error.
  • I tried to increase the ulimit size but it didn’t help and I’m not too keen on doing that indefinitely.

Is there a way to at least recover the system permanently from that state? I tried restarting each of the services from here: https://microk8s.io/docs/configuring-services Only one did help: systemctl restart snap.microk8s.daemon-containerd, but the cluster falls back into the same failed state (DBus error) couple of seconds after restarting the containerd service – so eventually it didn’t help.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:18

github_iconTop GitHub Comments

1reaction
LemurPwnedcommented, May 24, 2021

@robotrapta yes, you linked the issue here 😃

0reactions
bboozzoocommented, Mar 23, 2022

I’ve provided some info in https://forum.snapcraft.io/t/dbus-error-system-error-e2big-error/29227/2, if possible please capture the session bus traffic, as well as the journal.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"microk8s.kubectl" failed: cannot create transient scope: DBus ...
Problem description When trying to execute any of the microk8s commands I get: internal error, please report: running "microk8s.kubectl" ...
Read more >
DBus error "System.Error.E2BIG" error - snap - snapcraft.io
Upon running spt I get internal error, please report: running "spt" failed: cannot create transient scope: DBus error "System.Error.E2BIG": [ ...
Read more >
Bug #1926192 “unable to run any juju commands”
The /usr/bin/snap sends a request to systemd --user instance to create a transient scope for it. Basically a dbus call to org.freedesktop.
Read more >
Troubleshooting - MicroK8s
If a pod is not behaving as expected, the first port of call should be the logs. First determine the resource identifier for...
Read more >
Pods fail to start with "Failed to start transient scope unit
11:00:00 AM Warning Failed Create Pod Container unable to ensure pod container exists: failed to create container for [kubepods burstable ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found