-
-
Save philippdrebes/1f7009627f7049f7d01fe9d5587010fb to your computer and use it in GitHub Desktop.
squidex k8s deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2019-07-22T16:50:46.474+0000 I NETWORK [conn1] received client metadata from 10.244.1.15:44515 conn1: { driver: { name: "mongo-csharp-driver", version: "2.8.1.0" }, os: { type: "Linux", name: "Linux 4.19.0-0.bpo.5-amd64 #1 SMP Debian 4.19.37-4~bpo9+1 (2019-06-19)", architecture: "x86_64", version: "4.19.0-0.bpo.5-amd64" }, platform: ".NET Core 4.6.27110.04" } | |
2019-07-22T16:51:48.509+0000 I - [conn1] end connection 10.244.1.15:44515 (1 connection now open) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: squidex-mongo | |
labels: | |
name: squidex-mongo | |
spec: | |
ports: | |
- port: 27017 | |
targetPort: 27017 | |
selector: | |
role: mongo | |
clusterIP: None | |
--- | |
apiVersion: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: squidex-mongo | |
spec: | |
selector: | |
matchLabels: | |
role: mongo # has to match .spec.template.metadata.labels | |
serviceName: "squidex-mongo" | |
replicas: 3 | |
template: | |
metadata: | |
labels: | |
role: mongo # has to match .spec.selector.matchLabels | |
spec: | |
terminationGracePeriodSeconds: 10 | |
containers: | |
- name: squidex-mongo | |
image: mongo:3.4 | |
command: | |
- mongod | |
- "--replSet" | |
- rs0 | |
- "--bind_ip" | |
- 0.0.0.0 | |
- "--smallfiles" | |
- "--noprealloc" | |
ports: | |
- containerPort: 27017 | |
volumeMounts: | |
- name: squidex-mongo-pvc | |
mountPath: /data/db | |
- name: mongo-sidecar | |
image: cvallance/mongo-k8s-sidecar | |
env: | |
- name: MONGO_SIDECAR_POD_LABELS | |
value: "role=mongo" | |
volumeClaimTemplates: | |
- metadata: | |
name: squidex-mongo-pvc | |
annotations: | |
volume.beta.kubernetes.io/storage-class: "do-block-storage" | |
spec: | |
accessModes: [ "ReadWriteOnce" ] | |
resources: | |
requests: | |
storage: 5Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Secret | |
apiVersion: v1 | |
metadata: | |
name: squidex-secrets | |
stringData: | |
IDENTITY__ADMINEMAIL: "my-email@gmail.com" | |
IDENTITY__ADMINPASSWORD: "some-password" | |
IDENTITY__GOOGLECLIENT: "clientid.apps.googleusercontent.com" | |
IDENTITY__GOOGLESECRET: "my-secret" | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: squidex | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: squidex | |
spec: | |
containers: | |
- name: squidex | |
image: squidex/squidex:latest | |
imagePullPolicy: Always | |
ports: | |
- containerPort: 80 | |
env: | |
- name: URLS__BASEURL | |
value: "https://baseurl.ch" | |
- name: URLS__ENFORCEHTTPS | |
value: "true" | |
- name: LOGGING__HUMAN | |
value: "true" | |
- name: EVENTSTORE__MONGODB__CONFIGURATION | |
value: "mongodb://squidex-mongo-0.squidex-mongo:27017,squidex-mongo-1.squidex-mongo:27017,squidex-mongo-2.squidex-mongo:27017/" | |
- name: EVENTSTORE__MONGODB__DATABASE | |
value: "Squidex" | |
- name: STORE__MONGODB__CONFIGURATION | |
value: "mongodb://squidex-mongo-0.squidex-mongo:27017,squidex-mongo-1.squidex-mongo:27017,squidex-mongo-2.squidex-mongo:27017/" | |
- name: STORE__MONGODB__DATABASE | |
value: "Squidex" | |
- name: STORE__MONGODB__CONTENTDATABASE | |
value: "SquidexContent" | |
- name: IDENTITY__GOOGLECLIENT | |
valueFrom: | |
secretKeyRef: | |
name: squidex-secrets | |
key: IDENTITY__GOOGLECLIENT | |
- name: IDENTITY__GOOGLESECRET | |
valueFrom: | |
secretKeyRef: | |
name: squidex-secrets | |
key: IDENTITY__GOOGLESECRET | |
- name: IDENTITY__MICROSOFTCLIENT | |
value: "" | |
- name: IDENTITY__MICROSOFTSECRET | |
value: "" | |
- name: IDENTITY__ALLOWPASSWORDAUTH | |
value: "false" | |
- name: IDENTITY__LOCKAUTOMATICALLY | |
value: "false" | |
- name: IDENTITY__ADMINEMAIL | |
valueFrom: | |
secretKeyRef: | |
name: squidex-secrets | |
key: IDENTITY__ADMINEMAIL | |
- name: IDENTITY__ADMINPASSWORD | |
valueFrom: | |
secretKeyRef: | |
name: squidex-secrets | |
key: IDENTITY__ADMINPASSWORD | |
terminationGracePeriodSeconds: 60 | |
revisionHistoryLimit: 2 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: squidex | |
labels: | |
name: squidex | |
spec: | |
ports: | |
- port: 80 | |
targetPort: 80 | |
selector: | |
app: squidex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"logLevel": "Error", | |
"message": "An error occurred while reading the key ring.", | |
"eventId": { | |
"id": 48 | |
}, | |
"exception": { | |
"type": "System.AggregateException", | |
"message": "One or more errors occurred. (A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : \"1\", ConnectionMode : \"Automatic\", Type : \"ReplicaSet\", State : \"Connected\", Servers : [{ ServerId: \"{ ClusterId : 1, EndPoint : \"Unspecified/squidex-mongo-0.squidex-mongo:27017\" }\", EndPoint: \"Unspecified/squidex-mongo-0.squidex-mongo:27017\", State: \"Connected\", Type: \"ReplicaSetGhost\", WireVersionRange: \"[0, 5]\", LastUpdateTimestamp: \"2019-07-22T16:58:02.9843129Z\" }, { ServerId: \"{ ClusterId : 1, EndPoint : \"Unspecified/squidex-mongo-1.squidex-mongo:27017\" }\", EndPoint: \"Unspecified/squidex-mongo-1.squidex-mongo:27017\", State: \"Connected\", Type: \"ReplicaSetGhost\", WireVersionRange: \"[0, 5]\", LastUpdateTimestamp: \"2019-07-22T16:58:02.6639114Z\" }, { ServerId: \"{ ClusterId : 1, EndPoint : \"Unspecified/squidex-mongo-2.squidex-mongo:27017\" }\", EndPoint: \"Unspecified/squidex-mongo-2.squidex-mongo:27017\", State: \"Connected\", Type: \"ReplicaSetGhost\", WireVersionRange: \"[0, 5]\", LastUpdateTimestamp: \"2019-07-22T16:58:02.7141994Z\" }] }.)", | |
"stackTrace": " at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)\n at Squidex.Domain.Users.DefaultXmlRepository.GetAllElements() in /src/src/Squidex.Domain.Users/DefaultXmlRepository.cs:line 45\n at Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager.GetAllKeys()\n at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingProvider.CreateCacheableKeyRingCore(DateTimeOffset now, IKey keyJustAdded)\n at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingProvider.GetCurrentKeyRingCore(DateTime utcNow)" | |
}, | |
"app": { | |
"name": "Squidex", | |
"version": "3.0.0.0", | |
"sessionId": "07dc639f-a86b-4024-affa-edb4e291e0f1" | |
}, | |
"timestamp": "2019-07-22T16:58:03Z", | |
"category": "Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingProvider" | |
} | |
{ | |
"logLevel": "Information", | |
"message": "Application started", | |
"environment": { | |
"aspnetcoreUrls": "http://+:80", | |
"assets:defaultpagesize": "200", | |
"assets:defaultpagesizegraphql": "20", | |
"assets:maxresults": "200", | |
"assets:maxsize": "5242880", | |
"assetstore:azureblob:connectionstring": "UseDevelopmentStorage=true", | |
"assetstore:azureblob:containername": "squidex-assets", | |
"assetstore:exposesourceurl": "False", | |
"assetstore:folder:path": "Assets", | |
"assetstore:ftp:password": "", | |
"assetstore:ftp:path": "Assets", | |
"assetstore:ftp:serverhost": "", | |
"assetstore:ftp:serverport": "21", | |
"assetstore:ftp:username": "", | |
"assetstore:googlecloud:bucket": "squidex-assets", | |
"assetstore:mongodb:bucket": "fs", | |
"assetstore:mongodb:configuration": "mongodb://localhost", | |
"assetstore:mongodb:database": "SquidexAssets", | |
"assetstore:type": "Folder", | |
"contents:defaultpagesize": "200", | |
"contents:defaultpagesizegraphql": "20", | |
"contents:maxresults": "200", | |
"contentscontroller:enablesurrogatekeys": "True", | |
"contentscontroller:maxitemsforsurrogatekeys": "200", | |
"dotnetRunningInContainer": "true", | |
"dotnetSystemGlobalizationInvariant": "true", | |
"email:notifications:existinguserbody": "Dear User,\r\n\r\n$ASSIGNER_NAME ($ASSIGNER_EMAIL) has invited you to join App $APP_NAME at Squidex Headless CMS.\r\n\r\nLogin or reload the Management UI to see the App.\r\n\r\nThank you very much,\r\nThe Squidex Team\r\n\r\n<<Start now!>> [$UI_URL]", | |
"email:notifications:existingusersubject": "[Squidex CMS] You have been invited to join App $APP_NAME", | |
"email:notifications:newuserbody": "Welcome to Squidex\r\nDear User,\r\n\r\n$ASSIGNER_NAME ($ASSIGNER_EMAIL) has invited you to join Project (also called an App) $APP_NAME at Squidex Headless CMS. Login with your Github, Google or Microsoft credentials to create a new user account and start editing content now.\r\n\r\nThank you very much,\r\nThe Squidex Team\r\n\r\n<<Start now!>> [$UI_URL]", | |
"email:notifications:newusersubject": "You have been invited to join Project $APP_NAME at Squidex CMS", | |
"email:smtp:enablessl": "True", | |
"email:smtp:password": "", | |
"email:smtp:port": "465", | |
"email:smtp:sender": "hello@squidex.io", | |
"email:smtp:server": "", | |
"email:smtp:username": "", | |
"etags:strong": "False", | |
"eventpublishers:alltorabbitmq:configuration": "amqp://guest:guest@localhost/", | |
"eventpublishers:alltorabbitmq:enabled": "False", | |
"eventpublishers:alltorabbitmq:eventsfilter": ".*", | |
"eventpublishers:alltorabbitmq:exchange": "squidex", | |
"eventpublishers:alltorabbitmq:type": "RabbitMq", | |
"eventstore:cosmosdb:configuration": "https://localhost:8081", | |
"eventstore:cosmosdb:database": "Squidex", | |
"eventstore:cosmosdb:masterkey": "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==", | |
"eventstore:geteventstore:configuration": "ConnectTo=tcp://admin:changeit@localhost:1113; HeartBeatTimeout=500; MaxReconnections=-1", | |
"eventstore:geteventstore:prefix": "squidex", | |
"eventstore:geteventstore:projectionhost": "localhost", | |
"eventstore:mongodb:configuration": "mongodb://squidex-mongo-0.squidex-mongo:27017,squidex-mongo-1.squidex-mongo:27017,squidex-mongo-2.squidex-mongo:27017/", | |
"eventstore:mongodb:database": "Squidex", | |
"eventstore:type": "MongoDb", | |
"exposedconfiguration:version": "squidex:version", | |
"healthz:gc:threshold": "4096", | |
"home": "/root", | |
"hostname": "squidex-57dfd98569-hbmdm", | |
"identity:adminclientid": "", | |
"identity:adminclientsecret": "", | |
"identity:adminemail": "my-email@gmail.com", | |
"identity:adminpassword": "some-string", | |
"identity:allowpasswordauth": "false", | |
"identity:githubclient": "", | |
"identity:githubsecret": "", | |
"identity:googleclient": "somestring.apps.googleusercontent.com", | |
"identity:googlesecret": "my-secret", | |
"identity:lockautomatically": "false", | |
"identity:microsoftclient": "", | |
"identity:microsoftsecret": "", | |
"identity:oidcauthority": "", | |
"identity:oidcclient": "", | |
"identity:oidcname": "OIDC", | |
"identity:oidcsecret": "", | |
"identity:privacyurl": "https://squidex.io/privacy", | |
"kubernetesPort": "tcp://10.245.0.1:443", | |
"kubernetesPort443Tcp": "tcp://10.245.0.1:443", | |
"kubernetesPort443TcpAddr": "10.245.0.1", | |
"kubernetesPort443TcpPort": "443", | |
"kubernetesPort443TcpProto": "tcp", | |
"kubernetesServiceHost": "10.245.0.1", | |
"kubernetesServicePort": "443", | |
"kubernetesServicePortHttps": "443", | |
"languages:custom": "", | |
"logging:colors": "True", | |
"logging:human": "true", | |
"mode:isreadonly": "False", | |
"news:appname": "squidex-website", | |
"news:clientid": "squidex-website:default", | |
"news:clientsecret": "secret", | |
"nginxIngressControllerPort": "tcp://10.245.67.80:80", | |
"nginxIngressControllerPort443Tcp": "tcp://10.245.67.80:443", | |
"nginxIngressControllerPort443TcpAddr": "10.245.67.80", | |
"nginxIngressControllerPort443TcpPort": "443", | |
"nginxIngressControllerPort443TcpProto": "tcp", | |
"nginxIngressControllerPort80Tcp": "tcp://10.245.67.80:80", | |
"nginxIngressControllerPort80TcpAddr": "10.245.67.80", | |
"nginxIngressControllerPort80TcpPort": "80", | |
"nginxIngressControllerPort80TcpProto": "tcp", | |
"nginxIngressControllerServiceHost": "10.245.67.80", | |
"nginxIngressControllerServicePort": "80", | |
"nginxIngressControllerServicePortHttp": "80", | |
"nginxIngressControllerServicePortHttps": "443", | |
"nginxIngressDefaultBackendPort": "tcp://10.245.0.116:80", | |
"nginxIngressDefaultBackendPort80Tcp": "tcp://10.245.0.116:80", | |
"nginxIngressDefaultBackendPort80TcpAddr": "10.245.0.116", | |
"nginxIngressDefaultBackendPort80TcpPort": "80", | |
"nginxIngressDefaultBackendPort80TcpProto": "tcp", | |
"nginxIngressDefaultBackendServiceHost": "10.245.0.116", | |
"nginxIngressDefaultBackendServicePort": "80", | |
"nginxIngressDefaultBackendServicePortHttp": "80", | |
"orleans:clustering": "Development", | |
"orleans:gatewayport": "40000", | |
"orleans:siloport": "11111", | |
"path": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", | |
"plugins:0": "Squidex.Extensions.dll", | |
"rebuild:apps": "False", | |
"rebuild:assets": "False", | |
"rebuild:contents": "False", | |
"rebuild:indexes": "False", | |
"rebuild:rules": "False", | |
"rebuild:schemas": "False", | |
"robots:text": "User-agent: *\nAllow: /api/assets/*", | |
"squidexPort": "tcp://10.245.7.197:80", | |
"squidexPort80Tcp": "tcp://10.245.7.197:80", | |
"squidexPort80TcpAddr": "10.245.7.197", | |
"squidexPort80TcpPort": "80", | |
"squidexPort80TcpProto": "tcp", | |
"squidexServiceHost": "10.245.7.197", | |
"squidexServicePort": "80", | |
"store:mongodb:configuration": "mongodb://squidex-mongo-0.squidex-mongo:27017,squidex-mongo-1.squidex-mongo:27017,squidex-mongo-2.squidex-mongo:27017/", | |
"store:mongodb:contentdatabase": "SquidexContent", | |
"store:mongodb:database": "Squidex", | |
"store:mongodb:engine": "MongoDb", | |
"store:type": "MongoDb", | |
"translations:deeplauthkey": "", | |
"ui:hidenews": "False", | |
"ui:hideonboarding": "False", | |
"ui:map:googlemaps:key": "key", | |
"ui:map:type": "OSM", | |
"ui:onlyadminscancreateapps": "False", | |
"ui:redirecttologin": "False", | |
"ui:regexsuggestions:email": "^[a-zA-Z0-9.!#$%&’*+\\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$", | |
"ui:regexsuggestions:phone": "^\\(*\\+*[1-9]{0,3}\\)*-*[1-9]{0,3}[-. /]*\\(*[2-9]\\d{2}\\)*[-. /]*\\d{3}[-. /]*\\d{4} *e*x*t*\\.* *\\d{0,4}$", | |
"ui:regexsuggestions:slug": "^[a-z0-9]+(\\-[a-z0-9]+)*$", | |
"ui:regexsuggestions:url": "^(?:http(s)?:\\/\\/)?[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\._~:\\/?#%[\\]@!\\$&'\\(\\)\\*\\+,;=.]+$", | |
"ui:showinfo": "False", | |
"urls:baseurl": "https://baseurl.ch", | |
"urls:enforcehttps": "true" | |
}, | |
"app": { | |
"name": "Squidex", | |
"version": "3.0.0.0", | |
"sessionId": "07dc639f-a86b-4024-affa-edb4e291e0f1" | |
}, | |
"timestamp": "2019-07-22T16:58:03Z" | |
} | |
Application startup exception: System.AggregateException: One or more errors occurred. (A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : "1", ConnectionMode : "Automatic", Type : "ReplicaSet", State : "Connected", Servers : [{ ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/squidex-mongo-0.squidex-mongo:27017" }", EndPoint: "Unspecified/squidex-mongo-0.squidex-mongo:27017", State: "Connected", Type: "ReplicaSetGhost", WireVersionRange: "[0, 5]", LastUpdateTimestamp: "2019-07-22T16:58:33.9576450Z" }, { ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/squidex-mongo-1.squidex-mongo:27017" }", EndPoint: "Unspecified/squidex-mongo-1.squidex-mongo:27017", State: "Connected", Type: "ReplicaSetGhost", WireVersionRange: "[0, 5]", LastUpdateTimestamp: "2019-07-22T16:58:34.1803346Z" }, { ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/squidex-mongo-2.squidex-mongo:27017" }", EndPoint: "Unspecified/squidex-mongo-2.squidex-mongo:27017", State: "Connected", Type: "ReplicaSetGhost", WireVersionRange: "[0, 5]", LastUpdateTimestamp: "2019-07-22T16:58:34.2280893Z" }] }.) ---> System.TimeoutException: A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : "1", ConnectionMode : "Automatic", Type : "ReplicaSet", State : "Connected", Servers : [{ ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/squidex-mongo-0.squidex-mongo:27017" }", EndPoint: "Unspecified/squidex-mongo-0.squidex-mongo:27017", State: "Connected", Type: "ReplicaSetGhost", WireVersionRange: "[0, 5]", LastUpdateTimestamp: "2019-07-22T16:58:33.9576450Z" }, { ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/squidex-mongo-1.squidex-mongo:27017" }", EndPoint: "Unspecified/squidex-mongo-1.squidex-mongo:27017", State: "Connected", Type: "ReplicaSetGhost", WireVersionRange: "[0, 5]", LastUpdateTimestamp: "2019-07-22T16:58:34.1803346Z" }, { ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/squidex-mongo-2.squidex-mongo:27017" }", EndPoint: "Unspecified/squidex-mongo-2.squidex-mongo:27017", State: "Connected", Type: "ReplicaSetGhost", WireVersionRange: "[0, 5]", LastUpdateTimestamp: "2019-07-22T16:58:34.2280893Z" }] }. | |
at MongoDB.Driver.Linq.MongoQueryProviderImpl`1.Execute(Expression expression) | |
at MongoDB.Driver.Linq.MongoQueryProviderImpl`1.Execute[TResult](Expression expression) | |
at System.Linq.Queryable.Any[TSource](IQueryable`1 source) | |
at Squidex.Areas.IdentityServer.Config.IdentityServerExtensions.<>c__DisplayClass1_1.<<UseMyAdmin>b__0>d.MoveNext() in /src/src/Squidex/Areas/IdentityServer/Config/IdentityServerExtensions.cs:line 48 | |
--- End of inner exception stack trace --- | |
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) | |
at Squidex.Areas.IdentityServer.Config.IdentityServerExtensions.UseMyAdmin(IServiceProvider services) in /src/src/Squidex/Areas/IdentityServer/Config/IdentityServerExtensions.cs:line 72 | |
at Squidex.Areas.IdentityServer.Startup.ConfigureIdentityServer(IApplicationBuilder app) in /src/src/Squidex/Areas/IdentityServer/Startup.cs:line 20 | |
at Squidex.WebStartup.Configure(IApplicationBuilder app) in /src/src/Squidex/WebStartup.cs:line 139 | |
--- End of stack trace from previous location where exception was thrown --- | |
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app) | |
at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication() | |
---> (Inner Exception #0) System.TimeoutException: A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : "1", ConnectionMode : "Automatic", Type : "ReplicaSet", State : "Connected", Servers : [{ ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/squidex-mongo-0.squidex-mongo:27017" }", EndPoint: "Unspecified/squidex-mongo-0.squidex-mongo:27017", State: "Connected", Type: "ReplicaSetGhost", WireVersionRange: "[0, 5]", LastUpdateTimestamp: "2019-07-22T16:58:33.9576450Z" }, { ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/squidex-mongo-1.squidex-mongo:27017" }", EndPoint: "Unspecified/squidex-mongo-1.squidex-mongo:27017", State: "Connected", Type: "ReplicaSetGhost", WireVersionRange: "[0, 5]", LastUpdateTimestamp: "2019-07-22T16:58:34.1803346Z" }, { ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/squidex-mongo-2.squidex-mongo:27017" }", EndPoint: "Unspecified/squidex-mongo-2.squidex-mongo:27017", State: "Connected", Type: "ReplicaSetGhost", WireVersionRange: "[0, 5]", LastUpdateTimestamp: "2019-07-22T16:58:34.2280893Z" }] }. | |
at MongoDB.Driver.Linq.MongoQueryProviderImpl`1.Execute(Expression expression) | |
at MongoDB.Driver.Linq.MongoQueryProviderImpl`1.Execute[TResult](Expression expression) | |
at System.Linq.Queryable.Any[TSource](IQueryable`1 source) | |
at Squidex.Areas.IdentityServer.Config.IdentityServerExtensions.<>c__DisplayClass1_1.<<UseMyAdmin>b__0>d.MoveNext() in /src/src/Squidex/Areas/IdentityServer/Config/IdentityServerExtensions.cs:line 48<--- | |
{ | |
"logLevel": "Fatal", | |
"message": "Application startup exception", | |
"eventId": { | |
"id": 6 | |
}, | |
"exception": { | |
"type": "System.AggregateException", | |
"message": "One or more errors occurred. (A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : \"1\", ConnectionMode : \"Automatic\", Type : \"ReplicaSet\", State : \"Connected\", Servers : [{ ServerId: \"{ ClusterId : 1, EndPoint : \"Unspecified/squidex-mongo-0.squidex-mongo:27017\" }\", EndPoint: \"Unspecified/squidex-mongo-0.squidex-mongo:27017\", State: \"Connected\", Type: \"ReplicaSetGhost\", WireVersionRange: \"[0, 5]\", LastUpdateTimestamp: \"2019-07-22T16:58:33.9576450Z\" }, { ServerId: \"{ ClusterId : 1, EndPoint : \"Unspecified/squidex-mongo-1.squidex-mongo:27017\" }\", EndPoint: \"Unspecified/squidex-mongo-1.squidex-mongo:27017\", State: \"Connected\", Type: \"ReplicaSetGhost\", WireVersionRange: \"[0, 5]\", LastUpdateTimestamp: \"2019-07-22T16:58:34.1803346Z\" }, { ServerId: \"{ ClusterId : 1, EndPoint : \"Unspecified/squidex-mongo-2.squidex-mongo:27017\" }\", EndPoint: \"Unspecified/squidex-mongo-2.squidex-mongo:27017\", State: \"Connected\", Type: \"ReplicaSetGhost\", WireVersionRange: \"[0, 5]\", LastUpdateTimestamp: \"2019-07-22T16:58:34.2280893Z\" }] }.)", | |
"stackTrace": " at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)\n at Squidex.Areas.IdentityServer.Config.IdentityServerExtensions.UseMyAdmin(IServiceProvider services) in /src/src/Squidex/Areas/IdentityServer/Config/IdentityServerExtensions.cs:line 72\n at Squidex.Areas.IdentityServer.Startup.ConfigureIdentityServer(IApplicationBuilder app) in /src/src/Squidex/Areas/IdentityServer/Startup.cs:line 20\n at Squidex.WebStartup.Configure(IApplicationBuilder app) in /src/src/Squidex/WebStartup.cs:line 139\n--- End of stack trace from previous location where exception was thrown ---\n at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)\n at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()" | |
}, | |
"app": { | |
"name": "Squidex", | |
"version": "3.0.0.0", | |
"sessionId": "07dc639f-a86b-4024-affa-edb4e291e0f1" | |
}, | |
"timestamp": "2019-07-22T16:58:34Z", | |
"category": "Microsoft.AspNetCore.Hosting.Internal.WebHost" | |
} | |
Unhandled Exception: System.AggregateException: One or more errors occurred. (A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : "1", ConnectionMode : "Automatic", Type : "ReplicaSet", State : "Connected", Servers : [{ ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/squidex-mongo-0.squidex-mongo:27017" }", EndPoint: "Unspecified/squidex-mongo-0.squidex-mongo:27017", State: "Connected", Type: "ReplicaSetGhost", WireVersionRange: "[0, 5]", LastUpdateTimestamp: "2019-07-22T16:58:33.9576450Z" }, { ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/squidex-mongo-1.squidex-mongo:27017" }", EndPoint: "Unspecified/squidex-mongo-1.squidex-mongo:27017", State: "Connected", Type: "ReplicaSetGhost", WireVersionRange: "[0, 5]", LastUpdateTimestamp: "2019-07-22T16:58:34.1803346Z" }, { ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/squidex-mongo-2.squidex-mongo:27017" }", EndPoint: "Unspecified/squidex-mongo-2.squidex-mongo:27017", State: "Connected", Type: "ReplicaSetGhost", WireVersionRange: "[0, 5]", LastUpdateTimestamp: "2019-07-22T16:58:34.2280893Z" }] }.) ---> System.TimeoutException: A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : "1", ConnectionMode : "Automatic", Type : "ReplicaSet", State : "Connected", Servers : [{ ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/squidex-mongo-0.squidex-mongo:27017" }", EndPoint: "Unspecified/squidex-mongo-0.squidex-mongo:27017", State: "Connected", Type: "ReplicaSetGhost", WireVersionRange: "[0, 5]", LastUpdateTimestamp: "2019-07-22T16:58:33.9576450Z" }, { ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/squidex-mongo-1.squidex-mongo:27017" }", EndPoint: "Unspecified/squidex-mongo-1.squidex-mongo:27017", State: "Connected", Type: "ReplicaSetGhost", WireVersionRange: "[0, 5]", LastUpdateTimestamp: "2019-07-22T16:58:34.1803346Z" }, { ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/squidex-mongo-2.squidex-mongo:27017" }", EndPoint: "Unspecified/squidex-mongo-2.squidex-mongo:27017", State: "Connected", Type: "ReplicaSetGhost", WireVersionRange: "[0, 5]", LastUpdateTimestamp: "2019-07-22T16:58:34.2280893Z" }] }. | |
at MongoDB.Driver.Linq.MongoQueryProviderImpl`1.Execute(Expression expression) | |
at MongoDB.Driver.Linq.MongoQueryProviderImpl`1.Execute[TResult](Expression expression) | |
at System.Linq.Queryable.Any[TSource](IQueryable`1 source) | |
at Squidex.Areas.IdentityServer.Config.IdentityServerExtensions.<>c__DisplayClass1_1.<<UseMyAdmin>b__0>d.MoveNext() in /src/src/Squidex/Areas/IdentityServer/Config/IdentityServerExtensions.cs:line 48 | |
--- End of inner exception stack trace --- | |
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) | |
at Squidex.Areas.IdentityServer.Config.IdentityServerExtensions.UseMyAdmin(IServiceProvider services) in /src/src/Squidex/Areas/IdentityServer/Config/IdentityServerExtensions.cs:line 72 | |
at Squidex.Areas.IdentityServer.Startup.ConfigureIdentityServer(IApplicationBuilder app) in /src/src/Squidex/Areas/IdentityServer/Startup.cs:line 20 | |
at Squidex.WebStartup.Configure(IApplicationBuilder app) in /src/src/Squidex/WebStartup.cs:line 139 | |
--- End of stack trace from previous location where exception was thrown --- | |
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app) | |
at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication() | |
at Microsoft.AspNetCore.Hosting.Internal.WebHost.StartAsync(CancellationToken cancellationToken) | |
at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String shutdownMessage) | |
at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token) | |
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host) | |
at Squidex.Program.Main(String[] args) in /src/src/Squidex/Program.cs:line 22 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment