Skip to content
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

host does not support IPv6 addr. #34

Open
limitcool opened this issue Jul 5, 2024 · 9 comments
Open

host does not support IPv6 addr. #34

limitcool opened this issue Jul 5, 2024 · 9 comments

Comments

@limitcool
Copy link

ERROR: One or more errors occurred.

@franklupo
Copy link
Member

Hi,
Can you explain better?

best regards

@limitcool
Copy link
Author

cv4pve-pepper --host [*]:8006 --viewer pve.vv --api-token *

I used ipv6 addr as the parameter for the host, and the above error was returned.

ERROR: One or more errors occurred.

@franklupo
Copy link
Member

cv4pve-pepper --host [*]:8006 --viewer pve.vv --api-token *

I used ipv6 addr as the parameter for the host, and the above error was returned.

ERROR: One or more errors occurred.

you can run with --debug and attach the logo. Be careful that it also contains the passwords in clear.

@limitcool
Copy link
Author

ERROR: One or more errors occurred. (No such host is known.)
ERROR: No such host is known.
================ EXCEPTION ================
System.AggregateException
One or more errors occurred. (No such host is known.)
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout)
   at Corsinvest.ProxmoxVE.Api.Extension.Utils.ClientHelper.TryHostAndPort(String hostsAndPorts, Int32 defaultPort, Boolean checkPort, Int32 timeout, String& host, Int32& port)
   at Corsinvest.ProxmoxVE.Api.Extension.Utils.ClientHelper.GetClientFromHA(String hostsAndPortHA, Int32 timeout)
   at Corsinvest.ProxmoxVE.Api.Extension.Utils.ClientHelper.GetClientAndTryLoginAsync(String hostsAndPortHA, String username, String password, String apiToken, Boolean validateCertificate, ILoggerFactory loggerFactory, Int32 timeout)
   at Corsinvest.ProxmoxVE.Api.Shell.Helpers.CommandOptionExtension.ClientTryLoginAsync(Command command, ILoggerFactory loggerFactory)
   at Program.<>c__DisplayClass0_0.<<<Main>$>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context)
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__5_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()
fail: Program[0]
      One or more errors occurred. (No such host is known.)
      System.AggregateException: One or more errors occurred. (No such host is known.)
       ---> System.Net.Sockets.SocketException (11001): No such host is known.
         at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
         at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
         at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
      --- End of stack trace from previous location ---
         at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task task)
         --- End of inner exception stack trace ---
         at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
         at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
         at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout)
         at Corsinvest.ProxmoxVE.Api.Extension.Utils.ClientHelper.TryHostAndPort(String hostsAndPorts, Int32 defaultPort, Boolean checkPort, Int32 timeout, String& host, Int32& port)
         at Corsinvest.ProxmoxVE.Api.Extension.Utils.ClientHelper.GetClientFromHA(String hostsAndPortHA, Int32 timeout)
         at Corsinvest.ProxmoxVE.Api.Extension.Utils.ClientHelper.GetClientAndTryLoginAsync(String hostsAndPortHA, String username, String password, String apiToken, Boolean validateCertificate, ILoggerFactory loggerFactory, Int32 timeout)
         at Corsinvest.ProxmoxVE.Api.Shell.Helpers.CommandOptionExtension.ClientTryLoginAsync(Command command, ILoggerFactory loggerFactory)
         at Program.<>c__DisplayClass0_0.<<<Main>$>b__0>d.MoveNext()
      --- End of stack trace from previous location ---
         at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context)
         at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
      --- End of stack trace from previous location ---
         at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
      --- End of stack trace from previous location ---
         at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
      --- End of stack trace

@franklupo
Copy link
Member

Hi,
but [*] is not a valid ip or dns.

@limitcool
Copy link
Author

The content indicated by [*] is the IPv6 address: [2001:0db8:85a3:0000:0000:8a2e:0370:7334]

@franklupo
Copy link
Member

Ping work?

@limitcool
Copy link
Author

Ping work?

Yes, I can access my Proxmox VE backend via the web interface, but I'm unable to access it using cv4pve-pepper.
[2001:0db8:85a3:0000:0000:8a2e:0370:7334]" is a randomly generated IPv6 address; I'm just showing you the format I'm using. I'm confident that the actual IPv6 address I'm using is valid. I've tried accessing it with "http://[********]", but that didn't work either.

@franklupo
Copy link
Member

Are you using cv4pve-pepper outside of Proxmox?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants