Ok, so I run the script with that port:
rchevalier@icollect:~/GraphSchemaTools/GraphSchema.Examples/AuthorPosts$ ./graphschema.sh init-dgraph --schema-file AuthorPosts.graphql --dgraph-alpha “0.0.0.0: 8080” --force --verbose
This is returned…
Installing schema file /data/AuthorPosts.graphql into Dgraph alpha “0.0.0.0:8080”.
Reading /data/AuthorPosts.graphql.
Preparing schema.
Generating Dgraph schema.
Connecting to Dgraph “0.0.0.0:8080”.
Error executing GraphSchema command.
Last caught error is (other errors may have been logged) :
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> Grpc.Core.RpcException: Status(StatusCode=Unavailabl e, Detail=“Name resolution failure”)
at Grpc.Core.Internal.AsyncCall2.UnaryCall(TRequest msg) at Grpc.Core.DefaultCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method
2 method, String host, CallOptions options, TRequest request)
at Grpc.Core.Interceptors.InterceptingCallInvoker.b__3_0[TRequest,TResponse](TRequest req, ClientInterceptorContext2 ctx) at Grpc.Core.ClientBase.ClientBaseConfiguration.ClientBaseConfigurationInterceptor.BlockingUnaryCall[TRequest,TResponse](TRequest request, ClientInterceptorC ontext
2 context, BlockingUnaryCallContinuation2 continuation) at Grpc.Core.Interceptors.InterceptingCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method
2 method, String host, CallOptions options, TRequest request)
at Api.Dgraph.DgraphClient.CheckVersion(Check request, CallOptions options)
at Api.Dgraph.DgraphClient.CheckVersion(Check request, Metadata headers, Nullable1 deadline, CancellationToken cancellationToken) at DgraphDotNet.GRPCConnection.CheckVersion() at DgraphDotNet.DgraphClient.CheckVersion() at GraphSchema.Commands.InitDgraphCommand.OnExecute(CommandLineApplication app) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.Invoke(MethodInfo method, Object instance, Object[] arguments) in C:\projects\com mandlineutils\src\CommandLineUtils\Conventions\ExecuteMethodConvention.cs:line 86 at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.OnExecute(ConventionContext context) in C:\projects\commandlineutils\src\CommandL ineUtils\Conventions\ExecuteMethodConvention.cs:line 64 at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.<>c__DisplayClass0_0.<<Apply>b__0>d.MoveNext() in C:\projects\commandlineutils\sr c\CommandLineUtils\Conventions\ExecuteMethodConvention.cs:line 25 --- End of stack trace from previous location where exception was thrown --- at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass126_0.<OnExecute>b__0() in C:\projects\commandlineutils\src\CommandLineUtils\ CommandLineApplication.cs:line 505 at GraphSchema.Program.Main(String[] args) Error executing GraphSchema command. Arguments were "init-dgraph --schema-file /data/AuthorPosts.graphql --dgraph-alpha “0.0.0.0:8080” --force --verbose" Last caught exception (other errors may have been logged). System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Grpc.Core.RpcException: Status(StatusCode=Unavailabl e, Detail="Name resolution failure") at Grpc.Core.Internal.AsyncCall
2.UnaryCall(TRequest msg)
at Grpc.Core.DefaultCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method2 method, String host, CallOptions options, TRequest request) at Grpc.Core.Interceptors.InterceptingCallInvoker.<BlockingUnaryCall>b__3_0[TRequest,TResponse](TRequest req, ClientInterceptorContext
2 ctx)
at Grpc.Core.ClientBase.ClientBaseConfiguration.ClientBaseConfigurationInterceptor.BlockingUnaryCall[TRequest,TResponse](TRequest request, ClientInterceptorC ontext2 context, BlockingUnaryCallContinuation
2 continuation)
at Grpc.Core.Interceptors.InterceptingCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method2 method, String host, CallOptions options, TRequest request) at Api.Dgraph.DgraphClient.CheckVersion(Check request, CallOptions options) at Api.Dgraph.DgraphClient.CheckVersion(Check request, Metadata headers, Nullable
1 deadline, CancellationToken cancellationToken)
at DgraphDotNet.GRPCConnection.CheckVersion()
at DgraphDotNet.DgraphClient.CheckVersion()
at GraphSchema.Commands.InitDgraphCommand.OnExecute(CommandLineApplication app)
— End of inner exception stack trace —
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.Invoke(MethodInfo method, Object instance, Object arguments) in C:\projects\com mandlineutils\src\CommandLineUtils\Conventions\ExecuteMethodConvention.cs:line 86
at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.OnExecute(ConventionContext context) in C:\projects\commandlineutils\src\CommandL ineUtils\Conventions\ExecuteMethodConvention.cs:line 64
at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.<>c__DisplayClass0_0.<b__0>d.MoveNext() in C:\projects\commandlineutils\sr c\CommandLineUtils\Conventions\ExecuteMethodConvention.cs:line 25
— End of stack trace from previous location where exception was thrown —
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass126_0.b__0() in C:\projects\commandlineutils\src\CommandLineUtils\ CommandLineApplication.cs:line 505
at GraphSchema.Program.Main(String args)