Update to latest version from Github

Hi Sebastian,

I deployed the earlier version of Squidex CMS on Azure around November 2018.

Currently I want to update the site to latest version from Github so I deployed the latest version from github on Azure and point it to our database.

I can logged in to the site but it’s very slow and got a lot of 500 internal errors.

I suspect that the database would need an update. Could I ask is there any changes to database recently ? also if it has, How could I migrate the database to match the latest version from Github please?

Best Regards,
Kasidit Khamfoo

Hi, it should run the migration automatically. Can you check the version in the migration collection?

There is only one document in migration collection.

_id
:
“Default”
IsLocked
:
false
Version
:
13

Should I re-install the CMS again ?

Ok, this looks fine.

Can you check the logs and send me the exceptions or the full log file?

Sorry for late reply. I tried the fresh install with new database and still got the same issues.

Here is the log file.

Logs

{
“logLevel”: “Information”,
“message”: “Application started”,
“environment”: {
“allusersprofile”: “D:\local\ProgramData”,
“appdata”: “D:\local\AppData”,
“appinsightsInstrumentationkey”: “2ae10a61-dffe-4e57-8491-424854db59ed”,
“applicationinsightsagentExtensionVersion”: “~2”,
“appsettingAppinsightsInstrumentationkey”: “2ae10a61-dffe-4e57-8491-424854db59ed”,
“appsettingApplicationinsightsagentExtensionVersion”: “~2”,
“appsettingAspnetcoreEnvironment”: “Production”,
“appsettingRemotedebuggingversion”: “15.0.28010.00”,
“appsettingScmtype”: “None”,
“appsettingWebsiteAuthAutoAad”: “False”,
“appsettingWebsiteAuthEnabled”: “False”,
“appsettingWebsiteAuthLogoutPath”: “/.auth/logout”,
“appsettingWebsiteSiteName”: “avinor-community-cms-dev”,
“appsettingXdtMicrosoftapplicationinsightsMode”: “default”,
“appPoolConfig”: “C:\DWASFiles\Sites\avinor-community-cms-dev\Config\applicationhost.config”,
“appPoolId”: “avinor-community-cms-dev”,
“aspnetcoreEnvironment”: “Production;Production”,
“aspnetcoreHostingstartupassemblies”: “Microsoft.AspNetCore.Server.IISIntegration”,
“aspnetcoreIisHttpauth”: “anonymous;”,
“assets:maxresults”: “200”,
“assets:maxsize”: “5242880”,
“assetstore:azureblob:connectionstring”: “UseDevelopmentStorage=true”,
“assetstore:azureblob:containername”: “squidex-assets”,
“assetstore:exposesourceurl”: “False”,
“assetstore:folder:path”: “Assets”,
“assetstore:googlecloud:bucket”: “squidex-assets”,
“assetstore:mongodb:bucket”: “fs”,“assetstore:mongodb:database”: “SquidexAssets”,
“assetstore:type”: “Folder”,
“azureJetty93Cmdline”: “-Djava.net.preferIPv4Stack=true -Djetty.port=%HTTP_PLATFORM_PORT% -Djetty.base=“D:\Program Files (x86)\jetty-distribution-9.3.25.v20180904” -Djetty.webapps=“d:\home\site\wwwroot\webapps” -jar “D:\Program Files (x86)\jetty-distribution-9.3.25.v20180904\start.jar” etc\jetty-logging.xml”,
“azureJetty93Home”: “D:\Program Files (x86)\jetty-distribution-9.3.25.v20180904”,
“azureJetty9Cmdline”: “-Djava.net.preferIPv4Stack=true -Djetty.port=%HTTP_PLATFORM_PORT% -Djetty.base=“D:\Program Files (x86)\jetty-distribution-9.1.0.v20131115” -Djetty.webapps=“d:\home\site\wwwroot\webapps” -jar “D:\Program Files (x86)\jetty-distribution-9.1.0.v20131115\start.jar” etc\jetty-logging.xml”,
“azureJetty9Home”: “D:\Program Files (x86)\jetty-distribution-9.1.0.v20131115”,
“azureTomcat7Cmdline”: “-Dport.http=%HTTP_PLATFORM_PORT% -Djava.util.logging.config.file=“D:\Program Files (x86)\apache-tomcat-7.0.50\conf\logging.properties” -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dsite.logdir=“d:/home/LogFiles/” -Dsite.tempdir=“d:\home\site\workdir” -classpath “D:\Program Files (x86)\apache-tomcat-7.0.50\bin\bootstrap.jar;D:\Program Files (x86)\apache-tomcat-7.0.50\bin\tomcat-juli.jar” -Dcatalina.base=“D:\Program Files (x86)\apache-tomcat-7.0.50” -Djava.io.tmpdir=“d:\home\site\workdir” org.apache.catalina.startup.Bootstrap”,
“azureTomcat7Home”: “D:\Program Files (x86)\apache-tomcat-7.0.50”,
“azureTomcat85Cmdline”: “-Djava.net.preferIPv4Stack=true -Dcatalina.instance.name=%WEBSITE_INSTANCE_ID% -Dport.http=%HTTP_PLATFORM_PORT% -Djava.util.logging.config.file=“D:\Program Files (x86)\apache-tomcat-8.5.34\conf\logging.properties” -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dsite.logdir=“d:/home/LogFiles/” -Dsite.tempdir=“d:\home\site\workdir” -classpath “D:\Program Files (x86)\apache-tomcat-8.5.34\bin\bootstrap.jar;D:\Program Files (x86)\apache-tomcat-8.5.34\bin\tomcat-juli.jar” -Dcatalina.base=“D:\Program Files (x86)\apache-tomcat-8.5.34” -Djava.io.tmpdir=“d:\home\site\workdir” org.apache.catalina.startup.Bootstrap”,
“azureTomcat85Home”: “D:\Program Files (x86)\apache-tomcat-8.5.34”,
“azureTomcat8Cmdline”: “-Dport.http=%HTTP_PLATFORM_PORT% -Djava.util.logging.config.file=“D:\Program Files (x86)\apache-tomcat-8.0.23\conf\logging.properties” -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dsite.logdir=“d:/home/LogFiles/” -Dsite.tempdir=“d:\home\site\workdir” -classpath “D:\Program Files (x86)\apache-tomcat-8.0.23\bin\bootstrap.jar;D:\Program Files (x86)\apache-tomcat-8.0.23\bin\tomcat-juli.jar” -Dcatalina.base=“D:\Program Files (x86)\apache-tomcat-8.0.23” -Djava.io.tmpdir=“d:\home\site\workdir” org.apache.catalina.startup.Bootstrap”,
“azureTomcat8Home”: “D:\Program Files (x86)\apache-tomcat-8.0.23”,
“azureTomcat90Cmdline”: “-Djava.net.preferIPv4Stack=true -Dcatalina.instance.name=%WEBSITE_INSTANCE_ID% -Dport.http=%HTTP_PLATFORM_PORT% -Djava.util.logging.config.file=“D:\Program Files (x86)\apache-tomcat-9.0.12\conf\logging.properties” -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dsite.logdir=“d:/home/LogFiles/” -Dsite.tempdir=“d:\home\site\workdir” -classpath “D:\Program Files (x86)\apache-tomcat-9.0.12\bin\bootstrap.jar;D:\Program Files (x86)\apache-tomcat-9.0.12\bin\tomcat-juli.jar” -Dcatalina.base=“D:\Program Files (x86)\apache-tomcat-9.0.12” -Djava.io.tmpdir=“d:\home\site\workdir” org.apache.catalina.startup.Bootstrap”,
“azureTomcat90Home”: “D:\Program Files (x86)\apache-tomcat-9.0.12”,
“commonprogramfiles”: “D:\Program Files\Common Files”,
“commonprogramfiles(x86)”: “D:\Program Files (x86)\Common Files”,
“commonprogramw6432”: “D:\Program Files\Common Files”,
“computername”: “RD0003FFDB29C8”,
“comspec”: “D:\Windows\system32\cmd.exe”,
“content:maxresults”: “200”,
“contentscontroller:enablesurrogatekeys”: “True”,
“contentscontroller:maxitemsforsurrogatekeys”: “200”,
“dotnetHostingOptimizationCache”: “D:\DotNetCache”,
“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:geteventstore:configuration”: “ConnectTo=tcp://admin:changeit@localhost:1113; HeartBeatTimeout=500; MaxReconnections=-1”,
“eventstore:geteventstore:prefix”: “squidex”,
“eventstore:geteventstore:projectionhost”: “localhost”,“eventstore:mongodb:database”: “Squidex”,
“eventstore:type”: “MongoDb”,
“healthz:gc:threshold”: “4096”,
“home”: “D:\home”,
“homeExpanded”: “C:\DWASFiles\Sites\avinor-community-cms-dev\VirtualDirectory0”,
“identity:allowpasswordauth”: “True”,
“identity:githubclient”: “”,
“identity:googleclient”: “”,
“identity:lockautomatically”: “False”,
“identity:microsoftclient”: “”,
“identity:oidcauthority”: “”,
“identity:oidcclient”: “”,
“identity:oidcname”: “OIDC”,
“identity:oidcsecret”: “”,
“identity:privacyurl”: “https://squidex.io/privacy”,
“javaHome”: “D:\Program Files\Java\zulu8.31.0.2-jre8.0.181-win_x64”,
“key”: “Value”,
“localappdata”: “D:\local\LocalAppData”,
“localExpanded”: “C:\DWASFiles\Sites\avinor-community-cms-dev”,
“logging:colors”: “True”,
“logging:human”: “True”,
“microsoftappinsightsManagedhttpmodulepath”: “D:\Program Files (x86)\SiteExtensions\ApplicationInsightsAgent\2.8.9\fmk\Microsoft.ApplicationInsights.RedfieldIISModule.dll”,
“microsoftappinsightsManagedhttpmoduletype”: “Microsoft.ApplicationInsights.RedfieldIISModule.RedfieldIISModule”,
“mode:isreadonly”: “False”,
“numberOfProcessors”: “1”,
“orleans:clustering”: “MongoDb”,
“os”: “Windows_NT”,
“path”: “D:\Program Files (x86)\nodejs;D:\Windows\system32;D:\Windows;D:\Windows\System32\Wbem;D:\Windows\System32\WindowsPowerShell\v1.0\;D:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;;D:\Program Files (x86)\dotnet;D:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;E:\base\x64;E:\base\x86;D:\Packages\GuestAgent\GuestAgent\LegacyRuntime\x64;D:\Packages\GuestAgent\GuestAgent\LegacyRuntime\x86;D:\Program Files\dotnet;;D:\Program Files (x86)\Git\cmd;D:\Program Files (x86)\PHP\v5.6;D:\Python27;”,
“pathext”: “.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY”,
“processorArchitecture”: “AMD64”,
“processorIdentifier”: “Intel64 Family 6 Model 63 Stepping 2, GenuineIntel”,
“processorLevel”: “6”,
“processorRevision”: “3f02”,
“programdata”: “D:\local\ProgramData”,
“programfiles”: “D:\Program Files”,
“programfiles(x86)”: “D:\Program Files (x86)”,
“programw6432”: “D:\Program Files”,
“psmodulepath”: “D:\Program Files\WindowsPowerShell\Modules;D:\Windows\system32\WindowsPowerShell\v1.0\Modules;D:\Program Files\WindowsPowerShell\Modules\;D:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\;D:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement\;D:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\Storage\;D:\Program Files\Microsoft Message Analyzer\PowerShell\”,
“public”: “D:\Users\Public”,
“regionName”: “West Europe”,
“remotedebuggingbitversion”: “vx64”,
“remotedebuggingport”: “”,
“remotedebuggingversion”: “15.0.28010.00”,
“robots:text”: “User-agent: \nAllow: /api/assets/”,
“scmtype”: “None”,
“siteBitness”: “AMD64”,“store:mongodb:contentdatabase”: “SquidexContent”,
“store:mongodb:database”: “Squidex”,
“store:type”: “MongoDb”,
“systemdrive”: “D:”,
“systemroot”: “D:\Windows”,
“temp”: “D:\local\Temp”,
“tmp”: “D:\local\Temp”,
“twitter:clientid”: “”,
“twitter:clientsecret”: “”,
“ui:map:googlemaps:key”: “AIzaSyCkjO2u4NWa8tQ5ngZ3Mc4RB8wSlP3zIH8”,
“ui:map:type”: “OSM”,
“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} ext\.* \d{0,4}$",
“ui:regexsuggestions:slug”: "^[a-z0-9]+(\-[a-z0-9]+)
$",
“ui:regexsuggestions:url”: "^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\.
~:\/?#%[\]@!\$&’\(\)\*\+,;=.]+$”,
“urls:baseurl”: “https://avinor-community-cms-dev.azurewebsites.net”,
“urls:enforcehttps”: “True”,
“userdomain”: “WORKGROUP”,
“username”: “RD0003FFDB29C8$”,
“userprofile”: “D:\local\UserProfile”,
“websiteAuthAutoAad”: “False”,
“websiteAuthEnabled”: “False”,
“websiteAuthEncryptionKey”: “986CBC2EFAD02324A8D32601DC51A4F0DED778552E417CCCE82E513D4336E253”,
“websiteAuthLogoutPath”: “/.auth/logout”,
“websiteAuthSigningKey”: “CD7B6ABC4C3728639B7843849947513480D36381A10DB3C60FE89208DE45E1D8”,
“websiteComputeMode”: “Dedicated”,
“websiteContainerReady”: “1”,
“websiteCurrentStampname”: “waws-prod-am2-241d”,
“websiteDynamicCache”: “1”,
“websiteElasticScalingEnabled”: “0”,
“websiteFrameworkJit”: “1”,
“websiteHomeStampname”: “waws-prod-am2-241”,
“websiteHostname”: “avinor-community-cms-dev.azurewebsites.net”,
“websiteHttploggingEnabled”: “0”,
“websiteIisSiteName”: “avinor-community-cms-dev”,
“websiteInstanceId”: “616cc12b0b70760b71529287890af1858096c98f608173e6f9e590a9042ed73e”,
“websiteLocalcacheEnabled”: “False”,
“websiteOwnerName”: “4691a5d4-df30-4f1a-a8e7-c2f8a5f587a6+Avinor-DEV-WestEuropewebspace”,
“websiteProactiveAutohealEnabled”: “True”,
“websiteRelays”: “”,
“websiteResourceGroup”: “avinor-dev”,
“websiteRewriteTable”: “”,
“websiteScmAlwaysOnEnabled”: “0”,
“websiteScmSeparateStatus”: “1”,
“websiteSiteName”: “avinor-community-cms-dev”,
“websiteSku”: “Basic”,
“websiteVolumeType”: “PrimaryStorageVolume”,
“websocketConcurrentRequestLimit”: “350”,
“windir”: “D:\Windows”,
“windowsTracingFlags”: “”,
“windowsTracingLogfile”: “”,
“xdtMicrosoftapplicationinsightsMode”: “default”,
“xenon”: “0”
},
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “2cb3c060-9e63-4873-8116-e18e5dd516bc”
},
“timestamp”: “2019-01-28T01:07:31Z”
}

{
“logLevel”: “Information”,
“message”: “Starting IdentityServer4 version 2.3.2.0”,
“version”: “2.3.2.0”,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “2cb3c060-9e63-4873-8116-e18e5dd516bc”
},
“timestamp”: “2019-01-28T01:07:43Z”,
“category”: “IdentityServer4.Startup”
}

{
“logLevel”: “Information”,
“message”: “Using the default authentication scheme Identity.Application for IdentityServer”,
“scheme”: “Identity.Application”,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “2cb3c060-9e63-4873-8116-e18e5dd516bc”
},
“timestamp”: “2019-01-28T01:07:44Z”,
“category”: “IdentityServer4.Startup”
}

{
“logLevel”: “Information”,
“elapsedRequestMs”: 1342,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “2cb3c060-9e63-4873-8116-e18e5dd516bc”
},
“web”: {
“requestId”: “cf4aa15e-f7cf-4b6c-a773-5c2a1d277e5f”,
“requestPath”: “/images/loader-white.gif”,
“requestMethod”: “GET”
},
“timestamp”: “2019-01-28T01:07:45Z”
}

{
“logLevel”: “Information”,
“message”: “Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryEndpoint for /.well-known/openid-configuration”,
“endpointType”: “IdentityServer4.Endpoints.DiscoveryEndpoint”,
“url”: “/.well-known/openid-configuration”,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “2cb3c060-9e63-4873-8116-e18e5dd516bc”
},
“web”: {
“requestId”: “5851ff0e-cf20-4453-8bb8-7d741d5d6f56”,
“requestPath”: “/.well-known/openid-configuration”,
“requestMethod”: “GET”
},
“timestamp”: “2019-01-28T01:07:48Z”,
“category”: “IdentityServer4.Hosting.IdentityServerMiddleware”
}

{
“logLevel”: “Information”,
“elapsedRequestMs”: 573,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “2cb3c060-9e63-4873-8116-e18e5dd516bc”
},
“web”: {
“requestId”: “5851ff0e-cf20-4453-8bb8-7d741d5d6f56”,
“requestPath”: “/identity-server/.well-known/openid-configuration”,
“requestMethod”: “GET”
},
“timestamp”: “2019-01-28T01:07:48Z”
}

{
“logLevel”: “Information”,
“message”: “Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryKeyEndpoint for /.well-known/openid-configuration/jwks”,
“endpointType”: “IdentityServer4.Endpoints.DiscoveryKeyEndpoint”,
“url”: “/.well-known/openid-configuration/jwks”,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “2cb3c060-9e63-4873-8116-e18e5dd516bc”
},
“web”: {
“requestId”: “fe905aca-5555-4af2-ab7f-d7e698c4224c”,
“requestPath”: “/.well-known/openid-configuration/jwks”,
“requestMethod”: “GET”
},
“timestamp”: “2019-01-28T01:07:49Z”,
“category”: “IdentityServer4.Hosting.IdentityServerMiddleware”
}

{
“logLevel”: “Information”,
“elapsedRequestMs”: 186,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “2cb3c060-9e63-4873-8116-e18e5dd516bc”
},
“web”: {
“requestId”: “fe905aca-5555-4af2-ab7f-d7e698c4224c”,
“requestPath”: “/identity-server/.well-known/openid-configuration/jwks”,
“requestMethod”: “GET”
},
“timestamp”: “2019-01-28T01:07:49Z”
}

{
“logLevel”: “Warning”,
“message”: “AllActiveSilos SiloStatusOracle.GetApproximateSiloStatuses empty”,
“eventId”: {
“id”: 100506
},
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “10c8c3b8-f256-4288-89b0-372a8270b7bb”
},
“web”: {
“requestId”: “957bdd39-877b-4f13-9178-4aa788c6d56e”,
“requestPath”: “/apps/test/schemas”,
“requestMethod”: “GET”,
“routeValues”: {
“area”: “Api”,
“action”: “GetSchemas”,
“controller”: “Schemas”
}
},
“timestamp”: “2019-01-28T01:07:50Z”,
“category”: “Orleans.Runtime.Catalog”
}

{
“logLevel”: “Warning”,
“message”: “AllActiveSilos SiloStatusOracle.GetApproximateSiloStatuses empty”,
“eventId”: {
“id”: 100506
},
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “10c8c3b8-f256-4288-89b0-372a8270b7bb”
},
“web”: {
“requestId”: “957bdd39-877b-4f13-9178-4aa788c6d56e”,
“requestPath”: “/apps/test/schemas”,
“requestMethod”: “GET”,
“routeValues”: {
“area”: “Api”,
“action”: “GetSchemas”,
“controller”: “Schemas”
}
},
“timestamp”: “2019-01-28T01:07:51Z”,
“category”: “Orleans.Runtime.Catalog”
}

{
“logLevel”: “Information”,
“action”: “ActivateDomainObject”,
“domainObjectType”: “AppGrain”,
“domainObjectKey”: “a6c96a07-e1f3-4847-a4d6-9cc5972d4396”,
“elapsedMs”: 426,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “10c8c3b8-f256-4288-89b0-372a8270b7bb”
},
“web”: {
“requestId”: “957bdd39-877b-4f13-9178-4aa788c6d56e”,
“requestPath”: “/apps/test/schemas”,
“requestMethod”: “GET”,
“routeValues”: {
“area”: “Api”,
“action”: “GetSchemas”,
“controller”: “Schemas”
}
},
“timestamp”: “2019-01-28T01:07:52Z”
}

{
“logLevel”: “Warning”,
“message”: “AllActiveSilos SiloStatusOracle.GetApproximateSiloStatuses empty”,
“eventId”: {
“id”: 100506
},
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “10c8c3b8-f256-4288-89b0-372a8270b7bb”
},
“web”: {
“requestId”: “957bdd39-877b-4f13-9178-4aa788c6d56e”,
“requestPath”: “/apps/test/schemas”,
“requestMethod”: “GET”,
“routeValues”: {
“area”: “Api”,
“action”: “GetSchemas”,
“controller”: “Schemas”
}
},
“timestamp”: “2019-01-28T01:07:52Z”,
“category”: “Orleans.Runtime.Catalog”
}

{
“logLevel”: “Warning”,
“message”: “AllActiveSilos SiloStatusOracle.GetApproximateSiloStatuses empty”,
“eventId”: {
“id”: 100506
},
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “10c8c3b8-f256-4288-89b0-372a8270b7bb”
},
“web”: {
“requestId”: “957bdd39-877b-4f13-9178-4aa788c6d56e”,
“requestPath”: “/apps/test/schemas”,
“requestMethod”: “GET”,
“routeValues”: {
“area”: “Api”,
“action”: “GetSchemas”,
“controller”: “Schemas”
}
},
“timestamp”: “2019-01-28T01:07:52Z”,
“category”: “Orleans.Runtime.Catalog”
}

{
“logLevel”: “Information”,
“action”: “ActivateDomainObject”,
“domainObjectType”: “SchemaGrain”,
“domainObjectKey”: “26328e8e-006c-4399-b43b-e116c970f89b”,
“elapsedMs”: 100,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “10c8c3b8-f256-4288-89b0-372a8270b7bb”
},
“web”: {
“requestId”: “957bdd39-877b-4f13-9178-4aa788c6d56e”,
“requestPath”: “/apps/test/schemas”,
“requestMethod”: “GET”,
“routeValues”: {
“area”: “Api”,
“action”: “GetSchemas”,
“controller”: “Schemas”
}
},
“timestamp”: “2019-01-28T01:07:52Z”
}

{
“logLevel”: “Warning”,
“message”: “AllActiveSilos SiloStatusOracle.GetApproximateSiloStatuses empty”,
“eventId”: {
“id”: 100506
},
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “10c8c3b8-f256-4288-89b0-372a8270b7bb”
},
“web”: {
“requestId”: “957bdd39-877b-4f13-9178-4aa788c6d56e”,
“requestPath”: “/apps/test/schemas”,
“requestMethod”: “GET”,
“routeValues”: {
“area”: “Api”,
“action”: “GetSchemas”,
“controller”: “Schemas”
}
},
“timestamp”: “2019-01-28T01:07:52Z”,
“category”: “Orleans.Runtime.Catalog”
}

{
“logLevel”: “Information”,
“profiler”: {
“appProvider/GetAppAsync”: {
“elapsedMsTotal”: 1875,
“elapsedMsAvg”: 1875,
“count”: 1
},
“mongoEventStore/QueryAsync”: {
“elapsedMsTotal”: 150,
“elapsedMsAvg”: 75,
“count”: 2
},
“mongoSnapshotStore`2/ReadAsync”: {
“elapsedMsTotal”: 637,
“elapsedMsAvg”: 159,
“count”: 4
},
“appProvider/GetAppIdAsync”: {
“elapsedMsTotal”: 1183,
“elapsedMsAvg”: 1183,
“count”: 1
},
“CalculateEtag”: {
“elapsedMsTotal”: 1,
“elapsedMsAvg”: 1,
“count”: 1
},
“appProvider/GetSchemasAsync”: {
“elapsedMsTotal”: 385,
“elapsedMsAvg”: 385,
“count”: 1
},
“ExecuteResult”: {
“elapsedMsTotal”: 28,
“elapsedMsAvg”: 28,
“count”: 1
},
“ExecuteAction”: {
“elapsedMsTotal”: 558,
“elapsedMsAvg”: 558,
“count”: 1
}
},
“elapsedRequestMs”: 8239,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “2cb3c060-9e63-4873-8116-e18e5dd516bc”
},
“web”: {
“requestId”: “957bdd39-877b-4f13-9178-4aa788c6d56e”,
“requestPath”: “/api/apps/test/schemas”,
“requestMethod”: “GET”
},
“timestamp”: “2019-01-28T01:07:52Z”
}

{
“logLevel”: “Warning”,
“message”: “AllActiveSilos SiloStatusOracle.GetApproximateSiloStatuses empty”,
“eventId”: {
“id”: 100506
},
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “10c8c3b8-f256-4288-89b0-372a8270b7bb”
},
“timestamp”: “2019-01-28T01:07:53Z”,
“category”: “Orleans.Runtime.Catalog”
}

{
“logLevel”: “Warning”,
“message”: “AllActiveSilos SiloStatusOracle.GetApproximateSiloStatuses empty”,
“eventId”: {
“id”: 100506
},
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “10c8c3b8-f256-4288-89b0-372a8270b7bb”
},
“timestamp”: “2019-01-28T01:07:53Z”,
“category”: “Orleans.Runtime.Catalog”
}

{
“logLevel”: “Warning”,
“message”: “AllActiveSilos SiloStatusOracle.GetApproximateSiloStatuses empty”,
“eventId”: {
“id”: 100506
},
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “10c8c3b8-f256-4288-89b0-372a8270b7bb”
},
“timestamp”: “2019-01-28T01:07:53Z”,
“category”: “Orleans.Runtime.Catalog”
}

{
“logLevel”: “Information”,
“profiler”: {
“appProvider/GetSchemaAsyncById”: {
“elapsedMsTotal”: 11,
“elapsedMsAvg”: 11,
“count”: 1
},
“appProvider/GetAppAsync”: {
“elapsedMsTotal”: 9,
“elapsedMsAvg”: 9,
“count”: 1
},
“appProvider/GetSchemaIdAsync”: {
“elapsedMsTotal”: 19,
“elapsedMsAvg”: 19,
“count”: 1
},
“appProvider/GetSchemaAsyncByName”: {
“elapsedMsTotal”: 50,
“elapsedMsAvg”: 50,
“count”: 1
},
“appProvider/GetAppIdAsync”: {
“elapsedMsTotal”: 6,
“elapsedMsAvg”: 6,
“count”: 1
},
“ExecuteResult”: {
“elapsedMsTotal”: 0,
“elapsedMsAvg”: 0,
“count”: 1
},
“ExecuteAction”: {
“elapsedMsTotal”: 87,
“elapsedMsAvg”: 87,
“count”: 1
}
},
“elapsedRequestMs”: 118,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “2cb3c060-9e63-4873-8116-e18e5dd516bc”
},
“web”: {
“requestId”: “41d94584-0883-407f-964e-32e838f1734c”,
“requestPath”: “/api/apps/test/schemas/test”,
“requestMethod”: “GET”
},
“timestamp”: “2019-01-28T01:07:56Z”
}

{
“logLevel”: “Information”,
“profiler”: {
“appProvider/GetAppAsync”: {
“elapsedMsTotal”: 0,
“elapsedMsAvg”: 0,
“count”: 1
},
“appProvider/GetAppIdAsync”: {
“elapsedMsTotal”: 0,
“elapsedMsAvg”: 0,
“count”: 1
},
“ExecuteResult”: {
“elapsedMsTotal”: 0,
“elapsedMsAvg”: 0,
“count”: 1
},
“ExecuteAction”: {
“elapsedMsTotal”: 19,
“elapsedMsAvg”: 19,
“count”: 1
}
},
“elapsedRequestMs”: 26,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “2cb3c060-9e63-4873-8116-e18e5dd516bc”
},
“web”: {
“requestId”: “b8cc085f-cc2c-435d-86cf-ade2e634474c”,
“requestPath”: “/api/apps/test/patterns”,
“requestMethod”: “GET”
},
“timestamp”: “2019-01-28T01:07:56Z”
}

{
“logLevel”: “Error”,
“message”: “Lifecycle observer Orleans.Hosting.SiloBuilderStartupExtensions+StartupTask failed to start due to errors at stage 20000.”,
“eventId”: {
“id”: 100450
},
“exception”: {
“type”: “Squidex.Infrastructure.ConfigurationException”,
“message”: “Cannot access directory D:\Windows\system32\Assets”,
“stackTrace”: " at Squidex.Infrastructure.Assets.FolderAssetStore.InitializeAsync(CancellationToken ct) in E:\7peaks\squidex-master\src\Squidex.Infrastructure\Assets\FolderAssetStore.cs:line 51\r\n at Squidex.Infrastructure.Orleans.InitializerStartup.Execute(CancellationToken cancellationToken) in E:\7peaks\squidex-master\src\Squidex.Infrastructure\Orleans\InitializerStartup.cs:line 34\r\n at Orleans.Runtime.SiloLifecycleSubject.MonitoredObserver.OnStart(CancellationToken ct)"
},
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “10c8c3b8-f256-4288-89b0-372a8270b7bb”
},
“timestamp”: “2019-01-28T01:07:58Z”,
“category”: “Orleans.Runtime.SiloLifecycleSubject”
}

{
“logLevel”: “Error”,
“message”: “Lifecycle start canceled due to errors at stage 20000”,
“eventId”: {
“id”: 100450
},
“exception”: {
“type”: “Squidex.Infrastructure.ConfigurationException”,
“message”: “Cannot access directory D:\Windows\system32\Assets”,
“stackTrace”: " at Squidex.Infrastructure.Assets.FolderAssetStore.InitializeAsync(CancellationToken ct) in E:\7peaks\squidex-master\src\Squidex.Infrastructure\Assets\FolderAssetStore.cs:line 51\r\n at Squidex.Infrastructure.Orleans.InitializerStartup.Execute(CancellationToken cancellationToken) in E:\7peaks\squidex-master\src\Squidex.Infrastructure\Orleans\InitializerStartup.cs:line 34\r\n at Orleans.Runtime.SiloLifecycleSubject.MonitoredObserver.OnStart(CancellationToken ct)\r\n at Orleans.LifecycleSubject.WrapExecution(CancellationToken ct, Func`2 action)\r\n at Orleans.LifecycleSubject.OnStart(CancellationToken ct)"
},
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “10c8c3b8-f256-4288-89b0-372a8270b7bb”
},
“timestamp”: “2019-01-28T01:08:01Z”,
“category”: “Orleans.Runtime.SiloLifecycleSubject”
}

{
“logLevel”: “Error”,
“message”: “Exception during Silo.Start”,
“eventId”: {
“id”: 100439
},
“exception”: {
“type”: “Orleans.Runtime.OrleansLifecycleCanceledException”,
“message”: “Lifecycle start canceled due to errors at stage 20000”,
“stackTrace”: " at Orleans.LifecycleSubject.OnStart(CancellationToken ct)\r\n at Orleans.Runtime.Scheduler.AsyncClosureWorkItem.Execute()\r\n at Orleans.Runtime.Silo.StartAsync(CancellationToken cancellationToken)"
},
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “10c8c3b8-f256-4288-89b0-372a8270b7bb”
},
“timestamp”: “2019-01-28T01:08:01Z”,
“category”: “Orleans.Runtime.Silo”
}

{
“logLevel”: “Information”,
“message”: “Silo started”,
“elapsedMs”: 17569,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “2cb3c060-9e63-4873-8116-e18e5dd516bc”
},
“timestamp”: “2019-01-28T01:08:01Z”
}

Hosting environment: Production;Production
Content root path: D:\home\site\wwwroot
Application started. Press Ctrl+C to shut down.
{
“logLevel”: “Fatal”,
“message”: “An error occurred starting the application”,
“eventId”: {
“id”: 9
},
“exception”: {
“type”: “System.AggregateException”,
“message”: “One or more errors occurred. (Lifecycle start canceled due to errors at stage 20000) (Cannot access directory D:\Windows\system32\Assets)”,
“stackTrace”: " at Microsoft.AspNetCore.Hosting.Internal.HostedServiceExecutor.ExecuteAsync(Func`2 callback)\r\n at Microsoft.AspNetCore.Hosting.Internal.HostedServiceExecutor.StartAsync(CancellationToken token)"
},
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “2cb3c060-9e63-4873-8116-e18e5dd516bc”
},
“timestamp”: “2019-01-28T01:08:02Z”,
“category”: “Microsoft.AspNetCore.Hosting.Internal.HostedServiceExecutor”
}

{
“logLevel”: “Warning”,
“message”: “UnregisterManyAsync 1 failed.”,
“eventId”: {
“id”: 100502
},
“exception”: {
“type”: “System.InvalidOperationException”,
“message”: “Grain directory is stopping”,
“stackTrace”: " at Orleans.Runtime.GrainDirectory.LocalGrainDirectory.CheckIfShouldForward(GrainId grainId, Int32 hopCount, String operationDescription)\r\n at Orleans.Runtime.GrainDirectory.LocalGrainDirectory.UnregisterOrPutInForwardList(IEnumerable1 addresses, UnregistrationCause cause, Int32 hopCount, Dictionary2& forward, List1 tasks, String context)\r\n at Orleans.Runtime.GrainDirectory.LocalGrainDirectory.UnregisterManyAsync(List1 addresses, UnregistrationCause cause, Int32 hopCount)\r\n at Orleans.Runtime.Scheduler.AsyncClosureWorkItem.Execute()\r\n at Orleans.Runtime.Catalog.FinishDestroyActivations(List`1 list, Int32 number, MultiTaskCompletionSource tcs)"
},
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “10c8c3b8-f256-4288-89b0-372a8270b7bb”
},
“timestamp”: “2019-01-28T01:08:02Z”,
“category”: “Orleans.Runtime.Catalog”
}

{
“logLevel”: “Warning”,
“message”: “UnregisterManyAsync 14 failed.”,
“eventId”: {
“id”: 100502
},
“exception”: {
“type”: “System.InvalidOperationException”,
“message”: “Grain directory is stopping”,
“stackTrace”: " at Orleans.Runtime.GrainDirectory.LocalGrainDirectory.CheckIfShouldForward(GrainId grainId, Int32 hopCount, String operationDescription)\r\n at Orleans.Runtime.GrainDirectory.LocalGrainDirectory.UnregisterOrPutInForwardList(IEnumerable1 addresses, UnregistrationCause cause, Int32 hopCount, Dictionary2& forward, List1 tasks, String context)\r\n at Orleans.Runtime.GrainDirectory.LocalGrainDirectory.UnregisterManyAsync(List1 addresses, UnregistrationCause cause, Int32 hopCount)\r\n at Orleans.Runtime.Scheduler.AsyncClosureWorkItem.Execute()\r\n at Orleans.Runtime.Catalog.FinishDestroyActivations(List`1 list, Int32 number, MultiTaskCompletionSource tcs)"
},
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “10c8c3b8-f256-4288-89b0-372a8270b7bb”
},
“timestamp”: “2019-01-28T01:08:02Z”,
“category”: “Orleans.Runtime.Catalog”
}

{
“logLevel”: “Error”,
“message”: “RunClientMessagePump has thrown exception”,
“eventId”: {
“id”: 100326
},
“exception”: {
“type”: “System.OperationCanceledException”,
“message”: “The operation was canceled.”,
“stackTrace”: " at System.Collections.Concurrent.BlockingCollection1.TryTakeWithNoTimeValidation(T& item, Int32 millisecondsTimeout, CancellationToken cancellationToken, CancellationTokenSource combinedTokenSource)\r\n at System.Collections.Concurrent.BlockingCollection1.TryTake(T& item, Int32 millisecondsTimeout, CancellationToken cancellationToken)\r\n at System.Collections.Concurrent.BlockingCollection`1.Take(CancellationToken cancellationToken)\r\n at Orleans.Runtime.HostedClient.RunClientMessagePump()"
},
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “10c8c3b8-f256-4288-89b0-372a8270b7bb”
},
“timestamp”: “2019-01-28T01:08:02Z”,
“category”: “Orleans.Runtime.HostedClient”
}

Application is shutting down…

I would fix this first:

Cannot access directory D:\\Windows\\system32\\Assets",

Could I ask a suggestion on this issue please ?

I deployed it on azure and use the same setting as the older version. This error is not occurred in older version log file.

Perhaps in an old version there was no check for it. I don’t know.

But there is a setting in appsettings.json where you can override the asset path. You can also configure it with environment variables.

It came out that somehow Azure is not created Assets folder in deployment container. So I changed the asset storage type to Azure Blob. It’s working fine now.

Thank you very much

The directory is strange. why D:\\Windows\\system32\\Assets?

Yes it is. I have no idea why it point to that /Windows/system32. I didn’t make any changes on Assets path.

My older azure install created Assets folder at D:\home\site\wwwroot\Assets.

Have you changed something with the working directory?

No. I didn’t touch the Assets setup before I changed it to azureblob. My pc’s /Windows/system32 is also in C: not D:

This might related to Azure web app service plan tier. The older setup is in S1 but the new one is using Basic1.

This might be, will have another look.