We are trying to upgrade our umbraco project ( v8.02) to the latest version (8.1). But after starting the upgrade, an error occurs. (See screenshot + logging for details.
What can we do to fix this issue?
Arie
{
"@t": "2019-07-11T08:25:32.2442674Z",
"@mt": "Database configuration failed",
"@l": "Error",
"@x": "Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.\r\n at Newtonsoft.Json.JsonTextReader.ParseValue() in //Src/Newtonsoft.Json/JsonTextReader.cs:line 1706\r\n at Newtonsoft.Json.JsonTextReader.Read() in //Src/Newtonsoft.Json/JsonTextReader.cs:line 419\r\n at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) in //Src/Newtonsoft.Json/JsonReader.cs:line 1195\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) in //Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs:line 196\r\n at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) in //Src/Newtonsoft.Json/JsonSerializer.cs:line 907\r\n at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) in //Src/Newtonsoft.Json/JsonConvert.cs:line 828\r\n at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) in //Src/Newtonsoft.Json/JsonConvert.cs:line 786\r\n at Umbraco.Core.Migrations.Upgrade.V810.ConvertTinyMceAndGridMediaUrlsToLocalLink.Migrate() in d:\a\1\s\src\Umbraco.Core\Migrations\Upgrade\V81_0\ConvertTinyMceAndGridMediaUrlsToLocalLink.cs:line 42\r\n at Umbraco.Core.Migrations.MigrationBase.Umbraco.Core.Migrations.IMigration.Migrate() in d:\a\1\s\src\Umbraco.Core\Migrations\MigrationBase.cs:line 73\r\n at Umbraco.Core.Migrations.MigrationPlan.Execute(IScope scope, String fromState, IMigrationBuilder migrationBuilder, ILogger logger) in d:\a\1\s\src\Umbraco.Core\Migrations\MigrationPlan.cs:line 309\r\n at Umbraco.Core.Migrations.Upgrade.Upgrader.Execute(IScopeProvider scopeProvider, IMigrationBuilder migrationBuilder, IKeyValueService keyValueService, ILogger logger) in d:\a\1\s\src\Umbraco.Core\Migrations\Upgrade\Upgrader.cs:line 67\r\n at Umbraco.Core.Migrations.Install.DatabaseBuilder.UpgradeSchemaAndData(MigrationPlan plan) in d:\a\1\s\src\Umbraco.Core\Migrations\Install\DatabaseBuilder.cs:line 498",
"SourceContext": "Umbraco.Core.Migrations.Install.DatabaseBuilder",
"ProcessId": 15720,
"ProcessName": "iisexpress",
"ThreadId": 36,
"AppDomainId": 2,
"AppDomainAppId": "-",
"MachineName": "-",
"Log4NetLevel": "ERROR",
"HttpRequestNumber": 9,
"HttpRequestId": "ba191e89-f044-4b22-b687-d15034e01132"
}
I had something similar, It was related to the Multi URL Picker (link picker). It was something to do with the internal link that was selected. In my case, my site was small enough for me to remove the link first and then re-apply it.
Maybe check to make sure no document has been deleted that was linked to an internal page via Multi Url Picker
I was having this same issue. I solved by reinstalling the following packages in this order and rebuilding 2 times. Yes, 2 times. I was able to reproduce it by undoing my changes and I needed 2 rebuilds again. The following packages must have the same versioning (in web - holds views and core - holds controllers), in my case is 8.1.0 and I was upgrading from 8.0.1:
AutoMapper 8.1.0
UmbracoCms 8.1.0 (this just for the web project)
UmbracoCms.Web 8.1.0
UmbracoCms.Core 8.1.0
Umbraco.ModelsBuilder 8.1.0
Umbraco.ModelsBuilder.Api 8.1.0
Everything is running as expected
Happy to walk through this with you if you need so.
Error while upgrading umbraco 8.02 to 8.1
Hi,
We are trying to upgrade our umbraco project ( v8.02) to the latest version (8.1). But after starting the upgrade, an error occurs. (See screenshot + logging for details.
What can we do to fix this issue?
Arie
{ "@t": "2019-07-11T08:25:32.2442674Z", "@mt": "Database configuration failed", "@l": "Error", "@x": "Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.\r\n at Newtonsoft.Json.JsonTextReader.ParseValue() in //Src/Newtonsoft.Json/JsonTextReader.cs:line 1706\r\n at Newtonsoft.Json.JsonTextReader.Read() in //Src/Newtonsoft.Json/JsonTextReader.cs:line 419\r\n at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) in //Src/Newtonsoft.Json/JsonReader.cs:line 1195\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) in //Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs:line 196\r\n at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) in //Src/Newtonsoft.Json/JsonSerializer.cs:line 907\r\n at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) in //Src/Newtonsoft.Json/JsonConvert.cs:line 828\r\n at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) in //Src/Newtonsoft.Json/JsonConvert.cs:line 786\r\n at Umbraco.Core.Migrations.Upgrade.V810.ConvertTinyMceAndGridMediaUrlsToLocalLink.Migrate() in d:\a\1\s\src\Umbraco.Core\Migrations\Upgrade\V81_0\ConvertTinyMceAndGridMediaUrlsToLocalLink.cs:line 42\r\n at Umbraco.Core.Migrations.MigrationBase.Umbraco.Core.Migrations.IMigration.Migrate() in d:\a\1\s\src\Umbraco.Core\Migrations\MigrationBase.cs:line 73\r\n at Umbraco.Core.Migrations.MigrationPlan.Execute(IScope scope, String fromState, IMigrationBuilder migrationBuilder, ILogger logger) in d:\a\1\s\src\Umbraco.Core\Migrations\MigrationPlan.cs:line 309\r\n at Umbraco.Core.Migrations.Upgrade.Upgrader.Execute(IScopeProvider scopeProvider, IMigrationBuilder migrationBuilder, IKeyValueService keyValueService, ILogger logger) in d:\a\1\s\src\Umbraco.Core\Migrations\Upgrade\Upgrader.cs:line 67\r\n at Umbraco.Core.Migrations.Install.DatabaseBuilder.UpgradeSchemaAndData(MigrationPlan plan) in d:\a\1\s\src\Umbraco.Core\Migrations\Install\DatabaseBuilder.cs:line 498", "SourceContext": "Umbraco.Core.Migrations.Install.DatabaseBuilder", "ProcessId": 15720, "ProcessName": "iisexpress", "ThreadId": 36, "AppDomainId": 2, "AppDomainAppId": "-", "MachineName": "-", "Log4NetLevel": "ERROR", "HttpRequestNumber": 9, "HttpRequestId": "ba191e89-f044-4b22-b687-d15034e01132" }
Hi Arie,
I had something similar, It was related to the Multi URL Picker (link picker). It was something to do with the internal link that was selected. In my case, my site was small enough for me to remove the link first and then re-apply it.
Maybe check to make sure no document has been deleted that was linked to an internal page via Multi Url Picker
Hi,
thanks for the answer.
We are not using the Multi URL Picker at the moment , so it seems to be something else..
No problem,
Looking further at your stack trace I'm wondering if it might be more related to the RichTextEditor in your instance.
ConvertTinyMceAndGridMediaUrlsToLocalLink
Are there perhaps any Rich Text fields with links to internal docs or media?
Sorry I can't be of more help, hopefully that might give you some clues though.
Thanks, Luke
Thanks, this is a bug we've just identified as well, I created an issue for it: https://github.com/umbraco/Umbraco-CMS/issues/5846
Thanks for the response. When do you expect to release this bugfix?
Also, i've checked the umbracoDataType table, but all entries have json/null values.
I was having this same issue. I solved by reinstalling the following packages in this order and rebuilding 2 times. Yes, 2 times. I was able to reproduce it by undoing my changes and I needed 2 rebuilds again. The following packages must have the same versioning (in web - holds views and core - holds controllers), in my case is 8.1.0 and I was upgrading from 8.0.1: AutoMapper 8.1.0 UmbracoCms 8.1.0 (this just for the web project) UmbracoCms.Web 8.1.0 UmbracoCms.Core 8.1.0 Umbraco.ModelsBuilder 8.1.0 Umbraco.ModelsBuilder.Api 8.1.0 Everything is running as expected
Happy to walk through this with you if you need so.
is working on a reply...