freenas-proxmox icon indicating copy to clipboard operation
freenas-proxmox copied to clipboard

Unable to remove freenas-proxmox

Open lucasblack29 opened this issue 1 year ago • 0 comments
trafficstars

So while attempting to install this plugin to my two Proxmox nodes using the provided method (apt install freenas-proxmox), I misunderstood my browser caching the PVE web interface causing the FreeNAS-API option to not show up in the dropdown as the install failing. In the confusion I followed another older guide which involves patching PVE files manually (guide) which after some retrospection is a VERY bad idea.

Now one of my proxmox machine is incapable of uninstalling freenas-proxmox or reinstalling it because the post-uninstall script keeps failing with the following logs

Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
  freenas-proxmox
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 130306 files and directories currently installed.)
Removing freenas-proxmox (2.2.0-1) ...
Reinstalling original Proxmox VE files
Restarting pvedaemon...
Can't locate PVE/Storage/LunCmd/FreeNAS.pm in @INC (you may need to install the PVE::Storage::LunCmd::FreeNAS module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/share/perl5/PVE/Storage/ZFSPlugin.pm line 13, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Storage/ZFSPlugin.pm line 13, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/Storage.pm line 39, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Storage.pm line 39, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/GuestHelpers.pm line 8, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/GuestHelpers.pm line 8, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/API2.pm line 8, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/API2.pm line 8, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/Service/pvedaemon.pm line 8, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Service/pvedaemon.pm line 8, <DATA> line 960.
Compilation failed in require at /usr/bin/pvedaemon line 11, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/bin/pvedaemon line 11, <DATA> line 960.
dpkg: error processing package freenas-proxmox (--remove):
 installed freenas-proxmox package post-removal script subprocess returned error exit status 2
dpkg: too many errors, stopping
Errors were encountered while processing:
 freenas-proxmox
Processing was halted because there were too many errors.

While another one of my node doesn't seem to suffer that fatal of an error and can add the ZFS over iSCSI storage, but attempting to migrate my existing VM disks to the storage, it always errors out with the following logs

Warning: volblocksize (4096) is less than the default minimum block size (16384).
To reduce wasted space a volblocksize of 16384 is recommended.
TASK ERROR: storage migration failed: freenas: unknown iscsi provider. Available [comstar, istgt, iet, LIO] at /usr/share/perl5/PVE/Storage/ZFSPlugin.pm line 35.

Any assistance is appreciated. Thank you

lucasblack29 avatar Aug 10 '24 19:08 lucasblack29