[SOLVED] I accidentally deleted "CIFSPlugin.pm"

JohnB17

Member
Feb 21, 2021
18
0
6
43
I accidentally deleted "CIFSPlugin.pm" and now it says this when I try to start one of my VMs:

Code:
Can't locate PVE/Storage/CIFSPlugin.pm in @INC (you may need to install the PVE::Storage::CIFSPlugin module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/PVE/Storage.pm line 32, <DATA> line 755.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Storage.pm line 32, <DATA> line 755.
Compilation failed in require at /usr/share/perl5/PVE/GuestHelpers.pm line 7, <DATA> line 755.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/GuestHelpers.pm line 7, <DATA> line 755.
Compilation failed in require at /usr/share/perl5/PVE/CLI/qm.pm line 20, <DATA> line 755.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/CLI/qm.pm line 20, <DATA> line 755.
Compilation failed in require at /usr/sbin/qm line 6, <DATA> line 755.
BEGIN failed--compilation aborted at /usr/sbin/qm line 6, <DATA> line 755.

How can I undo my mistake?
 
Actually, I figured I could just install Proxmox Virtual Environment into a VM, then copy the file off of the vhd.
 
FYI, if that ever happens again you can also just reinstall the package:

Bash:
apt update
apt install --reinstall libpve-storage-perl

If you're unsure which package then first search the file <-> package map:

Bash:
dpkg -S CIFSPlugin.pm
# or if ambiguous, then with the full path:
dpkg -S /usr/share/perl5/PVE/Storage/CIFSPlugin.pm
 
  • Like
Reactions: kofik
Actually, I tried
Bash:
apt install --reinstall libpve-storage-perl
but it had errored out, so that's why I went the vm route.
 

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!