I have been testing out this code on Docker EE 17.03.1 on Windows Server 2016 - the 'docker-compose' build step works perfectly, but the 'docker-compose' up command fails as follows:
Is there something I've missed that will get this running correctly?
Kind regards,
James
PS C:\Users\Administrator\Documents\dotnet-musicstore> docker-compose -f .\docker-compose.windows.yml up
Starting dotnetmusicstore_db_1
Starting dotnetmusicstore_web_1
Attaching to dotnetmusicstore_db_1, dotnetmusicstore_web_1
db_1 | VERBOSE: Starting SQL Server
db_1 | VERBOSE: Changing SA login credentials
db_1 | VERBOSE: Started SQL Server.
web_1 | C:\Users\ContainerAdministrator\.nuget\packages\internal.aspnetcore.sdk\1.0.1-rc2-15218\build\Git.targets(15,5)
: warning : Unable to determine active git branch. [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
web_1 | C:\Users\ContainerAdministrator\.nuget\packages\internal.aspnetcore.sdk\1.0.1-rc2-15218\build\Git.targets(32,5)
: warning : Property 'CommitHash' was not set [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
web_1 | warn: Microsoft.EntityFrameworkCore.Infrastructure.IModelValidator[1]
web_1 | No type was specified for the decimal column 'Price' on entity type 'Album'. This will cause values to be
silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type
that can accomadate all the values using 'ForSqlServerHasColumnType()'. To configure this warning use the DbContextOpti
onsBuilder.ConfigureWarnings API (event id 'SqlServerEventId.DefaultDecimalTypeWarning'). ConfigureWarnings can be used
when overriding the DbContext.OnConfiguring method or using AddDbContext on the application service provider.
web_1 | warn: Microsoft.EntityFrameworkCore.Infrastructure.IModelValidator[1]
web_1 | No type was specified for the decimal column 'Total' on entity type 'Order'. This will cause values to be
silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type
that can accomadate all the values using 'ForSqlServerHasColumnType()'. To configure this warning use the DbContextOpti
onsBuilder.ConfigureWarnings API (event id 'SqlServerEventId.DefaultDecimalTypeWarning'). ConfigureWarnings can be used
when overriding the DbContext.OnConfiguring method or using AddDbContext on the application service provider.
web_1 | warn: Microsoft.EntityFrameworkCore.Infrastructure.IModelValidator[1]
web_1 | No type was specified for the decimal column 'UnitPrice' on entity type 'OrderDetail'. This will cause va
lues to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server c
olumn type that can accomadate all the values using 'ForSqlServerHasColumnType()'. To configure this warning use the DbC
ontextOptionsBuilder.ConfigureWarnings API (event id 'SqlServerEventId.DefaultDecimalTypeWarning'). ConfigureWarnings ca
n be used when overriding the DbContext.OnConfiguring method or using AddDbContext on the application service provider.
web_1 | Hosting environment: Production
web_1 | Content root path: C:\MusicStore\samples\MusicStore
web_1 | Now listening on: http://0.0.0.0:5000
web_1 | Application started. Press Ctrl+C to shut down.
web_1 | fail: Microsoft.AspNetCore.Server.Kestrel[0]
web_1 | UvConnectionCb
web_1 | System.MissingMethodException: Method not found: 'System.IO.Pipelines.ReadableBufferAwaitable System.IO.Pipelin
es.IPipeReader.ReadAsync()'.
web_1 | at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.SocketOutput.<StartWrites>d__27.MoveNext()
web_1 | at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
web_1 | at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.SocketOutput.StartWrites()
web_1 | at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.SocketOutput..ctor(IPipe pipe, KestrelThread thread, Uv
StreamHandle socket, Connection connection, String connectionId, IKestrelTrace log)
web_1 | at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.Connection..ctor(ListenerContext context, UvStreamHandl
e socket)
web_1 | at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.Listener.DispatchConnection(UvStreamHandle socket)
web_1 | at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.Listener.OnConnection(UvStreamHandle listenSocket, Int3
2 status)
web_1 | at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.Listener.ConnectionCallback(UvStreamHandle stream, Int3
2 status, Exception error, Object state)
web_1 | at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvStreamHandle.UvConnectionCb(IntPtr handle, Int3
2 status)
web_1 |
web_1 | Unhandled Exception: System.AggregateException: An error occurred while writing to logger(s). (The collection h
as been marked as complete with regards to additions.) ---> System.InvalidOperationException: The collection has been ma
rked as complete with regards to additions.
web_1 | at System.Collections.Concurrent.BlockingCollection`1.TryAddWithNoTimeValidation(T item, Int32 millisecondsT
imeout, CancellationToken cancellationToken)
web_1 | at Microsoft.Extensions.Logging.Console.Internal.ConsoleLoggerProcessor.EnqueueMessage(LogMessageEntry messa
ge)
web_1 | at Microsoft.Extensions.Logging.Console.ConsoleLogger.WriteMessage(LogLevel logLevel, String logName, Int32
eventId, String message, Exception exception)
web_1 | at Microsoft.Extensions.Logging.Console.ConsoleLogger.Log[TState](LogLevel logLevel, EventId eventId, TState
state, Exception exception, Func`3 formatter)
web_1 | at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Excepti
on exception, Func`3 formatter)
web_1 | --- End of inner exception stack trace ---
web_1 | at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Excepti
on exception, Func`3 formatter)
web_1 | at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelTrace.Log[TState](LogLevel logLevel, EventId eventId,
TState state, Exception exception, Func`3 formatter)
web_1 | at Microsoft.Extensions.Logging.LoggerExtensions.LogCritical(ILogger logger, String message, Object[] args)
web_1 | at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelEngine.Dispose()
web_1 | at Microsoft.AspNetCore.Server.Kestrel.KestrelServer.Dispose()
web_1 | at Microsoft.Extensions.DependencyInjection.ServiceProvider.Dispose()
web_1 | at Microsoft.AspNetCore.Hosting.Internal.WebHost.Dispose()
web_1 | at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host, CancellationToken token, String shutdow
nMessage)
web_1 | at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
web_1 | at MusicStore.Program.Main(String[] args) in C:\MusicStore\samples\MusicStore\Program.cs:line 52
dotnetmusicstore_web_1 exited with code 1
Gracefully stopping... (press Ctrl+C again to force)
Stopping dotnetmusicstore_db_1 ...
Killing dotnetmusicstore_db_1 ...
ERROR: Aborting.
PS C:\Users\Administrator\Documents\dotnet-musicstore> ^C
PS C:\Users\Administrator\Documents\dotnet-musicstore> docker version
Client:
Version: 17.03.1-ee-3
API version: 1.27
Go version: go1.7.5
Git commit: 3fcee33
Built: Thu Mar 30 19:31:22 2017
OS/Arch: windows/amd64
Server:
Version: 17.03.1-ee-3
API version: 1.27 (minimum version 1.24)
Go version: go1.7.5
Git commit: 3fcee33
Built: Thu Mar 30 19:31:22 2017
OS/Arch: windows/amd64
Experimental: false
Hi there,
I have been testing out this code on Docker EE 17.03.1 on Windows Server 2016 - the 'docker-compose' build step works perfectly, but the 'docker-compose' up command fails as follows:
Is there something I've missed that will get this running correctly?
Kind regards,
James