This repository was archived by the owner on Feb 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 168
This repository was archived by the owner on Feb 13, 2019. It is now read-only.
Docker container crashes on "view in browser" #525
Copy link
Copy link
Closed
Description
Note that this error can be replicated on a system with docker installed and using the contents of the following repo:
https://github.com/alexchesser/aspnet-docker-sample
steps:
- clone repo (or run
yo aspnetwith WebApplication as the destination) cd WebApplication- EDIT ./Dockerfile - replace
FROM microsoft/aspnet:1.0.0-rc1withFROM microsoft/latest - run
docker build -t chesser-is-super-cool .(OK, the tag is optional) - run
docker run -P -d chesser-is-super-cool curl http://192.168.100.99:5000(from host system) or run on docker as demonstrated below
PS C:\Users\Alex\www\aspnet-docker\WebApplication> dk run -p 5000:5000 aspnet_boilerplate
info: Microsoft.Data.Entity.Storage.Internal.RelationalCommandBuilderFactory[1]
Executed DbCommand (3ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
PRAGMA foreign_keys=ON;
info: Microsoft.Data.Entity.Storage.Internal.RelationalCommandBuilderFactory[1]
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT COUNT(*) FROM "sqlite_master" WHERE "name" = '__EFMigrationsHistory' AND "type" = 'table';
info: Microsoft.Extensions.DependencyInjection.DataProtectionServices[0]
User profile is available. Using '/root/.local/share/ASP.NET/DataProtection-Keys' as key repository; keys will not be encrypted at rest.
Hosting environment: Production
Now listening on: http://*:5000/
Application started. Press Ctrl+C to shut down.
PS C:\Users\Alex\www\aspnet-docker\WebApplication> dm ssh default
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/
_ _ ____ _ _
| |__ ___ ___ | |_|___ \ __| | ___ ___| | _____ _ __
| '_ \ / _ \ / _ \| __| __) / _` |/ _ \ / __| |/ / _ \ '__|
| |_) | (_) | (_) | |_ / __/ (_| | (_) | (__| < __/ |
|_.__/ \___/ \___/ \__|_____\__,_|\___/ \___|_|\_\___|_|
Boot2Docker version 1.9.1, build master : cef800b - Fri Nov 20 19:33:59 UTC 2015
Docker version 1.9.1, build a34a1d5
docker@default:~$ curl http://localhost:5000
curl: (52) Empty reply from server
docker@default:~$
SEE ERROR RESULTS:
info: Microsoft.Data.Entity.Storage.Internal.RelationalCommandBuilderFactory[1]
Executed DbCommand (3ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
PRAGMA foreign_keys=ON;
info: Microsoft.Data.Entity.Storage.Internal.RelationalCommandBuilderFactory[1]
Executed DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT COUNT(*) FROM "sqlite_master" WHERE "name" = '__EFMigrationsHistory' AND "type" = 'table';
info: Microsoft.Extensions.DependencyInjection.DataProtectionServices[0]
User profile is available. Using '/root/.local/share/ASP.NET/DataProtection-Keys' as key repository; keys will not be encrypted at rest.
Hosting environment: Production
Now listening on: http://*:5000/
Application started. Press Ctrl+C to shut down.
info: Microsoft.AspNet.Hosting.Internal.HostingEngine[1]
Request starting HTTP/1.1 GET http://localhost/
Unhandled Exception:
System.EntryPointNotFoundException: sqlite3_close_v2
at (wrapper managed-to-native) Microsoft.Data.Sqlite.Interop.NativeMethods:sqlite3_close_v2 (intptr)
at Microsoft.Data.Sqlite.Interop.Sqlite3Handle.ReleaseHandle () [0x00000] in <filename unknown>:0
at System.Runtime.InteropServices.SafeHandle.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
at System.Runtime.InteropServices.SafeHandle.Finalize () [0x00000] in <filename unknown>:0
Metadata
Metadata
Assignees
Labels
No labels