-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Macos M1 storage lima "rancher-desktop-bridged_en0_vmnet.stderr.log" is 264GB and "diffdisk" is 102GB #1942
Comments
The The log file size is certainly unexpected; is there anything in particular that may have caused a lot of traffic to your containers? I think the log file should get deleted (and recreated) when you restart Rancher Desktop. Otherwise you can also delete it manually. But please don't delete the |
Not really? I have mostly been building images using buildx that download a lot of dependencies. But nothing crazy. edit: I have also been doing a lot of terraform in the containers. |
Same error, most lines is $pwd
/Users/user1/Library/Application Support/rancher-desktop/lima/_networks
$ tail -n100000 rancher-desktop-bridged_en0_vmnet.stderr.log | sort | uniq -c | sort -g
50000 _on_vmnet_packets_available(): vmnet_return_t VMNET_TOO_MANY_PACKETS
50000 vmnet_read: No buffer space available
$ ll rancher-desktop-bridged_en0_vmnet.stderr.log
-rw-r--r-- 1 user1 128099798874 5 30 14:09 rancher-desktop-bridged_en0_vmnet.stderr.log |
Just ran into the same issue; 490GB disk space used by the vmnet err log file. I had Rancher Desktop running in the background (both moby and kubernetes activated), but I had no containers running yet afaik, so my guess is it doesn't have anything to do with network traffic related to user deployed workloads / containers. |
I have also noticed that |
There is no way to shrink the diffdisk filesize on the host; it will grow until it reaches the max size (100GB) and then you will get out-of-disk errors from inside the VM. Pruning images helps to reclaim space inside the volume, so it can be reused instead of committing addition host disk space, so is still a good practice. The diffdisk is conceptually a sparse file, so blocks that have never been written to inside the VM are not allocated on the host. But once the block has been created, there is no way to release it back to the host. |
Hmm, we do ship This would be a totally manual process of course. |
I believe I tried this before, and it didn't work on macOS. I think I saw some comments that this only works on Linux. It should be possible though to create a second volume, that will be mounted into the VM, and then copy the filesystem over, so it will only grow to the size required by the current files. Then you can reboot with just the new disk mounted as the data volume and delete the old one. But the other problem is that most likely the user will not have enough space to even create a sparse copy of the existing disk; the time when you investigate pruning the image is when the host disk has almost run out, so even creating a 50GB sparse disk from a full 100GB disk might be impossible. |
Especially if their log files (rancher-desktop-bridged_en0_vmnet.stderr.log) fill up the whole drive ;) |
Yes, but that is a separate issue. The log files can be deleted at any time to make space; they will be re-created automatically.
Yes, that is correct. I don't know why they grow that fast for you; I can't remember seeing anybody else reporting this. When you restart the machine, and then restart Rancher Desktop, are all the excessive logs gone? Side note: once the diagnostics system is implemented, we should have a check for total log size and provide an automatic fix to delete or rotate them. |
The |
Yes, There is one option suggested above to reduce this maximum size in the very beginning when you set up Rancher Desktop. |
@aminmkhan, is it safe to just delete the |
It is safer to do a "Factory Reset" (on the Troubleshooting page). You will lose all your settings and images though. |
Got affected by this as well Some statistics for a 140GB log: there were only 3 kinds of lines present
With first 2 kinds going one after another (1,2,1,2,1,2...), and most of "No space left on device" just being spammed at the end of the log. My hunch is that Rancher doesn't handle out-of-memory/out-of-storage issue very gracefully, thus stucking into an endless cycle of
Nonetheless, log rotation should be enough to at least limit this problem. |
I'm also affected by this. Multiple times now. I really like to use Rancher Desktop, but this is a real bummer. Every time I do “Factory Reset” to get |
@seisenreich Any large log files you can safely delete when restarting Rancher Desktop, I think. How much free space you have on M1 Mac after “Factory Reset” of Rancher Desktop? Because you can use the option in configuration file to reduce the maximum size (100 GB default) of |
Have the same issues on my M1 mac - my diffdisk file is currently 107 GB and growing. My image volumes only take up a fraction of that amount of space so I don't understand why all this disk space is being used up. I need to keep the data in my container volumes so I don't want to lose that by doing a factory reset. |
@jandubois There is a limit of 100 GB for the diffdisk, so it is surprising it grew beyond that. I would recommend to run Rancher Desktop will return unused space in the |
Actual Behavior
My M1 Pro Macbook filled up storage with over 360GB of rancher-desktop related data in a couple weeks.
The two really large files are
/Users//Library/Application Support/rancher-desktop/lima/0/diffdisk
/Users//Library/Application Support/rancher-desktop/lima/_networks/rancher-desktop-bridged_en0_vmnet.stderr.log
The only error in the log file is repeated till 264GB size:
_on_vmnet_packets_available(): vmnet_return_t VMNET_TOO_MANY_PACKETS
vmnet_read: No buffer space available
Steps to Reproduce
No clue, check if your storage is full and track down the culprit.
Result
Files are too large and fill up storage. Probably shouldnt be happening.
Expected Behavior
Smaller files
Additional Information
No response
Rancher Desktop Version
1.2.1
Rancher Desktop K8s Version
1.22.7
Which container runtime are you using?
moby (docker cli)
What operating system are you using?
macOS
Operating System / Build Version
macOS 12.3 M1
What CPU architecture are you using?
arm64 (Apple Silicon)
Linux only: what package format did you use to install Rancher Desktop?
No response
Windows User Only
No response
The text was updated successfully, but these errors were encountered: