Corsinvest / cv4pve-autosnap

Automatic snapshot tool for Proxmox VE
https://www.corsinvest.it/cv4pve
GNU General Public License v3.0
414 stars 51 forks source link

Upgrade from eve4pve-autosnap to cv4pve-autosnap #19

Closed plant75 closed 5 years ago

plant75 commented 5 years ago

Hello, what is the best way to upgrade from eve4pve to cv4pve ? We have a multi node cluster and i have notice eve4pve doas'nt delete old snap any more.. Maybe: dpkg -r eve4pve-autosnap_0.1.8all.deb dpkg -i cv4pve-autosnap?.?.?-?_all.deb

hav i to delete the old cron file ? ( /etc/pve/eve/autosnap/eve4pve-autosnap.cron )

Many Thanks

franklupo commented 5 years ago

Hi, The new version works directly with the native Web APIs. It is no longer necessary to install it internally to the Proxmox VE host but it can be on an external host. The new version works on all available VM/CT, so if you see all the VMs / CTs, in a cluster from any node you see all the VMs / CTs

Remove old version uninstall and remove cron files Best regards

woody4165 commented 5 years ago

I'm trying to install cv4pve-autosnap on the root proxmox

I downloaded https://github.com/Corsinvest/cv4pve-autosnap/releases/download/v1.2.0/cv4pve-autosnap.1.2.0.debian-x64.deb and tried dpkg -i cv4pve-autosnap.1.2.0.debian-x64.deb but I get

root@pve:~# dpkg -i cv4pve-autosnap.1.2.0.debian-x64.deb 
Selecting previously unselected package cv4pve-autosnap.
(Reading database ... 43391 files and directories currently installed.)
Preparing to unpack cv4pve-autosnap.1.2.0.debian-x64.deb ...
Unpacking cv4pve-autosnap (1.2.0) ...
dpkg: dependency problems prevent configuration of cv4pve-autosnap:
 cv4pve-autosnap depends on libssl0.9.8 | libssl1.0.0 | libssl1.0.1 | libssl1.0.2; however:
  Package libssl0.9.8 is not installed.
  Package libssl1.0.0 is not installed.
  Package libssl1.0.1 is not installed.
  Package libssl1.0.2 is not installed.

dpkg: error processing package cv4pve-autosnap (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 cv4pve-autosnap

I've tried to install via apt-get install libssl1.0.2 but I get

root@pve:~# apt-get install libssl1.0.2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libssl1.0.2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libssl1.0.2' has no installation candidate

any suggestion?

Thanks

franklupo commented 5 years ago

sudo apt install --fix-broken

woody4165 commented 5 years ago

thanks, already done, but same situation

root@pve:~# apt install --fix-broken
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 70 not upgraded.
root@pve:~# dpkg -i cv4pve-autosnap.1.2.0.debian-x64.deb 
Selecting previously unselected package cv4pve-autosnap.
(Reading database ... 43391 files and directories currently installed.)
Preparing to unpack cv4pve-autosnap.1.2.0.debian-x64.deb ...
Unpacking cv4pve-autosnap (1.2.0) ...
dpkg: dependency problems prevent configuration of cv4pve-autosnap:
 cv4pve-autosnap depends on libssl0.9.8 | libssl1.0.0 | libssl1.0.1 | libssl1.0.2; however:
  Package libssl0.9.8 is not installed.
  Package libssl1.0.0 is not installed.
  Package libssl1.0.1 is not installed.
  Package libssl1.0.2 is not installed.

dpkg: error processing package cv4pve-autosnap (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 cv4pve-autosnap
franklupo commented 5 years ago

sudo apt install --fix-broken

After dpkg not before.

woody4165 commented 5 years ago

thanks again.

in this case the command remove cv4pve-autosnap

root@pve:~# dpkg -i cv4pve-autosnap.1.2.0.debian-x64.deb 
(Reading database ... 43583 files and directories currently installed.)
Preparing to unpack cv4pve-autosnap.1.2.0.debian-x64.deb ...
Unpacking cv4pve-autosnap (1.2.0) over (1.2.0) ...
dpkg: dependency problems prevent configuration of cv4pve-autosnap:
 cv4pve-autosnap depends on libssl0.9.8 | libssl1.0.0 | libssl1.0.1 | libssl1.0.2; however:
  Package libssl0.9.8 is not installed.
  Package libssl1.0.0 is not installed.
  Package libssl1.0.1 is not installed.
  Package libssl1.0.2 is not installed.

dpkg: error processing package cv4pve-autosnap (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 cv4pve-autosnap
root@pve:~# apt install --fix-broken
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  cv4pve-autosnap
0 upgraded, 0 newly installed, 1 to remove and 70 not upgraded.
1 not fully installed or removed.
After this operation, 75.4 MB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 43582 files and directories currently installed.)
Removing cv4pve-autosnap (1.2.0) ...
root@pve:~# 
franklupo commented 5 years ago

Which version of proxmox use?

woody4165 commented 5 years ago

It's latest, Virtual Environment 6.0-4

franklupo commented 5 years ago

root@pve01:~# pveversion pve-manager/6.0-7/28984024 (running kernel: 5.0.21-1-pve)

I install now without problem

root@pve01:~# dpkg -i cv4pve-autosnap.1.2.0.debian-x64.deb Selecting previously unselected package cv4pve-autosnap. (Reading database ... 74551 files and directories currently installed.) Preparing to unpack cv4pve-autosnap.1.2.0.debian-x64.deb ... Unpacking cv4pve-autosnap (1.2.0) ... Setting up cv4pve-autosnap (1.2.0) ...

woody4165 commented 5 years ago

I've tried to upgrade to 6.0-7, but i didn't.

My version is pve-manager/6.0-4/2a719255 (running kernel: 5.0.15-1-pve)

I tried also via cli with apt dist-upgrade

Maybe you have the Enterprise version, while I have the free version.

I will wait and see.

Thanks

woody4165 commented 5 years ago

Hi

I've upgraded to 6.0-7 but I still have same issue

root@pve:~# dpkg -i cv4pve-autosnap.1.2.0.debian-x64.deb 
Selecting previously unselected package cv4pve-autosnap.
(Reading database ... 49824 files and directories currently installed.)
Preparing to unpack cv4pve-autosnap.1.2.0.debian-x64.deb ...
Unpacking cv4pve-autosnap (1.2.0) ...
dpkg: dependency problems prevent configuration of cv4pve-autosnap:
 cv4pve-autosnap depends on libssl0.9.8 | libssl1.0.0 | libssl1.0.1 | libssl1.0.2; however:
  Package libssl0.9.8 is not installed.
  Package libssl1.0.0 is not installed.
  Package libssl1.0.1 is not installed.
  Package libssl1.0.2 is not installed.

dpkg: error processing package cv4pve-autosnap (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 cv4pve-autosnap
root@pve:~# apt install --fix-broken
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  cv4pve-autosnap
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 75.4 MB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 50015 files and directories currently installed.)
Removing cv4pve-autosnap (1.2.0) ...
root@pve:~# pveversion
pve-manager/6.0-7/28984024 (running kernel: 5.0.21-1-pve)

Is there a way to install the missing package manually?

I can try to backup my VM (only one) and try to reinstall, but consider that I've already installed Proxmox from scratch just before install this tool.

Should I downgrade to Proxmox version 5?

Thanks

franklupo commented 5 years ago

In any case you can execute autosnap external Pve.

franklupo commented 5 years ago

the new version in development will be a single file