mirror of
https://github.com/Corsinvest/cv4pve-autosnap.git
synced 2026-04-25 17:05:48 +03:00
[GH-ISSUE #37] Problems on Proxmox 6.2 #36
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-autosnap#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MH2410 on GitHub (Aug 14, 2020).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/37
Hi,
I try to run the tool locally on my Proxmox server but I am running in connection issues.
This is what I have tried:
/usr/local/bin/cv4pve-autosnap --host=127.0.0.1 --username=snap@pve --password=pwd --vmid=all snap --label='daily' --keep=7
/usr/local/bin/cv4pve-autosnap --host=127.0.0.1 --username=snap@pve --password=pwd --vmid=all snap --label='weekly' --keep=4
/usr/local/bin/cv4pve-autosnap --host=127.0.0.1 --username=snap@pve --password=pwd --vmid=all snap --label='monthly' --keep=2
/usr/local/bin/cv4pve-autosnap --host=127.0.0.1 --username=root@pam --password=pwd --vmid=all snap --label='daily' --keep=7
/usr/local/bin/cv4pve-autosnap --host=127.0.0.1 --username=root@pam --password=pwd --vmid=all snap --label='weekly' --keep=4
/usr/local/bin/cv4pve-autosnap --host=127.0.0.1 --username=root@pam --password=pwd --vmid=all snap --label='monthly' --keep=2
Everytime I get an "Problem connection!" message.
I also tried to use localhost or the regular IP.
@franklupo commented on GitHub (Aug 15, 2020):
Hi,
Add --debug parameter and attach output
@MH2410 commented on GitHub (Aug 17, 2020):
Thanks a lot for you replay, this si the output:
/usr/local/bin/cv4pve-autosnap --host=localhost --username=root@pam --password='PWD' --vmid=all snap --label='daily' --keep=7 --debug
Method: POST, Url: https://localhost:8006/api2/json/access/ticket
Parameters:
password : PWD
username : root
realm : pam
Problem connection!
/usr/local/bin/cv4pve-autosnap --host=IP --username=root@pam --password='PWD' --vmid=all snap --label='daily' --keep=7 --debug
Method: POST, Url: https://IP:8006/api2/json/access/ticket
Parameters:
password : PWD
username : root
realm : pam
@franklupo commented on GitHub (Aug 17, 2020):
HI,
can you execute outside Proxmox VE?
Best regards
@MH2410 commented on GitHub (Aug 17, 2020):
Same output on a virtual Debian Buster:
/etc/nrpe.d# /usr/local/bin/cv4pve-autosnap --host=localhost --username=root@pam --password='PWD' --vmid=all snap --label='daily' --keep=7 --debug
Method: POST, Url: https://localhost:8006/api2/json/access/ticket
Parameters:
password : PWD
username : root
realm : pam
Problem connection!
@franklupo commented on GitHub (Aug 17, 2020):
Hi,
use default port 8006?
@MH2410 commented on GitHub (Aug 19, 2020):
Yes, I have downloaded the tool made it executable and tried to set the snapshots for the individual hosts with the command.
@franklupo commented on GitHub (Aug 19, 2020):
which URL do you use for the web connection?
@MH2410 commented on GitHub (Aug 27, 2020):
Sorry for the delay.
https://IP:8006/#v1:0:18:4:::::::
https://Hostname:8006/#v1:0:18:4:::::::
could the realm be the issue? realm : pam
@franklupo commented on GitHub (Aug 27, 2020):
Download the latest version and run with --debug.
I have improved error logs.
Best regards
@franklupo commented on GitHub (Sep 3, 2020):
News?
@MH2410 commented on GitHub (Sep 4, 2020):
Sorry for the delay, this ist the output with the new version:
Problem connection!
================ EXCEPTION ================
System.ApplicationException
Problem connection!
at Corsinvest.ProxmoxVE.Api.Shell.Helpers.CommandOptionExtension.ClientTryLogin(CommandLineApplication command)
at Corsinvest.ProxmoxVE.AutoSnap.ShellCommands.CreateApp(CommandLineApplication parent)
at Corsinvest.ProxmoxVE.AutoSnap.ShellCommands.<>c__DisplayClass9_1.b__1()
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass144_0.b__0(CancellationToken _)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Corsinvest.ProxmoxVE.Api.Shell.Helpers.ShellHelper.ExecuteConsoleApp(CommandLineApplication app, String[] args)
@franklupo commented on GitHub (Sep 4, 2020):
you also used the --debug parameter?
@franklupo commented on GitHub (Sep 7, 2020):
You have enabled firewall?
@MH2410 commented on GitHub (Sep 7, 2020):
Yes I have executed the command incl. the --debug option.
I am using the pve firewall. (Template for host and clients).
But the scripts should run local on each host.
On Mon, Sep 7, 2020 at 10:22 AM Daniele Corsini notifications@github.com
wrote:
@MH2410 commented on GitHub (Sep 12, 2020):
Same problem with disabled FW:
./cv4pve-autosnap --host=127.0.0.1 --username=root@pam
--password='********' --vmid=all snap --label='daily' --keep=7 --debug
Method: POST, Url: https://127.0.0.1:8006/api2/json/access/ticket
Parameters:
password : ********
username : root
realm : pam
Problem connection!
================ EXCEPTION ================
System.ApplicationException
Problem connection!
at
Corsinvest.ProxmoxVE.Api.Shell.Helpers.CommandOptionExtension.ClientTryLogin(CommandLineApplication
command)
at
Corsinvest.ProxmoxVE.AutoSnap.ShellCommands.CreateApp(CommandLineApplication
parent)
at
Corsinvest.ProxmoxVE.AutoSnap.ShellCommands.<>c__DisplayClass9_1.b__1()
at
McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass144_0.b__0(CancellationToken
_)
at
McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[]
args, CancellationToken cancellationToken)
at
McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[]
args)
at
Corsinvest.ProxmoxVE.Api.Shell.Helpers.ShellHelper.ExecuteConsoleApp(CommandLineApplication
app, String[] args)
@zozito commented on GitHub (Oct 16, 2020):
Hi have the same issue here with Proxmox Virtual Environment 6.2-12
cv4pve-autosnap --host='127.0.0.1', --username=root@pam --password=MyfantasticPW --vmid='100' snap --label='hourly' --keep=12 --debug
Problem connection!
================ EXCEPTION ================
System.ApplicationException
Problem connection!
at Corsinvest.ProxmoxVE.Api.Shell.Helpers.CommandOptionExtension.ClientTryLogin(CommandLineApplication command)
at Corsinvest.ProxmoxVE.AutoSnap.ShellCommands.CreateApp(CommandLineApplication parent)
at Corsinvest.ProxmoxVE.AutoSnap.ShellCommands.<>c__DisplayClass9_1.b__1()
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass144_0.b__0(CancellationToken _)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Corsinvest.ProxmoxVE.Api.Shell.Helpers.ShellHelper.ExecuteConsoleApp(CommandLineApplication app, String[] args)
@franklupo commented on GitHub (Oct 19, 2020):
Test new version. I imporve the log. Use the parameter --debug and attach result.
Bets regards
@zozito commented on GitHub (Oct 22, 2020):
I've tested a new version and there is the output
cv4pve-autosnap --version
Automatic snapshot VM/CT with retention (Made in Italy)
1.9.10
=================================================================
cv4pve-autosnap --host='127.0.0.1', --username=root@pam --password=MyfantasticPW --vmid='100' snap --label='hourly' --keep=1 --debug
Problem connection!
================ EXCEPTION ================
System.ApplicationException
Problem connection!
at Corsinvest.ProxmoxVE.Api.Shell.Helpers.CommandOptionExtension.ClientTryLogin(CommandLineApplication command)
at Corsinvest.ProxmoxVE.AutoSnap.ShellCommands.CreateApp(CommandLineApplication parent)
at Corsinvest.ProxmoxVE.AutoSnap.ShellCommands.<>c__DisplayClass9_1.b__1()
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass144_0.b__0(CancellationToken _)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Corsinvest.ProxmoxVE.Api.Shell.Helpers.ShellHelper.ExecuteConsoleApp(CommandLineApplication app, String[] args)
===============================================================================
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
If i can do more to help you, please guide me.
Thank you
@franklupo commented on GitHub (Oct 22, 2020):
But the Proxmox VE is installed on ubuntu?
@zozito commented on GitHub (Oct 22, 2020):
No, the IP is just and example, with the real IP I got the same error.
The CV4PVE are running in one container with ubuntu 20.04
thank you
@franklupo commented on GitHub (Oct 23, 2020):
Can install dotnet core and try?
https://docs.microsoft.com/it-it/dotnet/core/install/linux-ubuntu#2004-
@zozito commented on GitHub (Oct 23, 2020):
I instaled the dotnet core and got the same error
@franklupo commented on GitHub (Oct 27, 2020):
Hi,
download zip https://www.transfernow.net/MrnCvJ102020
Contains all files dotnet and cv4pve-autosnap.
Try cv4pve-autosnap
best regards
@zozito commented on GitHub (Oct 29, 2020):
Hi Frank,
Thank you for all your support.
There is the output with the zip file you had sended
root@CV4PVE:~/cv4# sudo /root/cv4/cv4pve-autosnap --host='127.0.0.1', --username=root@pam --password=MyfantasticPW --vmid='100' snap --label='hourly' --keep=1 --debug
Problem connection!
================ EXCEPTION ================
System.ApplicationException
Problem connection!
at Corsinvest.ProxmoxVE.Api.Shell.Helpers.CommandOptionExtension.ClientTryLogin(CommandLineApplication command)
at Corsinvest.ProxmoxVE.AutoSnap.ShellCommands.CreateApp(CommandLineApplication parent) in C:\Users\Daniele\source\repos\OpenSource\ProxmoxVE\cv4pve-autosnap\src\Corsinvest.ProxmoxVE.AutoSnap\ShellCommands.cs:line 55
at Corsinvest.ProxmoxVE.AutoSnap.ShellCommands.<>c__DisplayClass9_1.b__1() in C:\Users\Daniele\source\repos\OpenSource\ProxmoxVE\cv4pve-autosnap\src\Corsinvest.ProxmoxVE.AutoSnap\ShellCommands.cs:line 139
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass144_0.b__0(CancellationToken _)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Corsinvest.ProxmoxVE.Api.Shell.Helpers.ShellHelper.ExecuteConsoleApp(CommandLineApplication app, String[] args)
@zozito commented on GitHub (Nov 7, 2020):
hi @franklupo i downgrade the ubuntu version for 18.04lts and the last relase run without problems.
Just remember, all the tests and errors i got is on ubuntu 20.04lts
thank you
@franklupo commented on GitHub (Nov 7, 2020):
I'm figuring out if there are any missing files for Ubuntu 20.04
Thank you
@liberodark commented on GitHub (Apr 6, 2021):
have same error on my side PVE 6.3 (Only work locally) :
@franklupo commented on GitHub (Apr 15, 2021):
Hi,
You have a firewall?
@franklupo commented on GitHub (Apr 28, 2021):
In this version use ICMP for test connection available. In the next version we only use port check.