-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After importing from 13.0.118, the widgets were imported as pages. #302
Comments
Hi @FernandoMartins1970, thanks for report. Appsettings.json in description has error in it, i assume that was due to redacting connection strings/paths/etc.? Can You send me full migration log to email [email protected] or at least version filtered to errors? (if log is large feel free to zip/rar/7z) appsettings.json:{
"Logging": {
"LogLevel": {
"Default": "Information",
"System": "Warning",
"Microsoft": "Warning"
},
"File": {
"LogLevel": {
"Default": "Trace",
"System": "Error",
"Microsoft": "Error",
"Microsoft.EntityFrameworkCore": "Information",
"Migration.Toolkit": "Trace",
"Kentico.Xperience.UMT": "Trace",
"Migration.Toolkit.Common.Services.BulkCopy": "Trace"
},
// this one
"pathFormat": "logs/migration.tool.log",
"OutputTemplate": "{Timestamp:o} ({SourceContext}) [{Level:u3}] {Message} ({EventId:x8}){NewLine}{Exception}"
}
},
... Can You post screen of old page tree vs new page tree? (difference might give me a clue) |
Hi @tkrch { |
Hello Thomás
Just making sure that you reached my email
Thank you
Fernando Martins
Web Developer
www.inorbital.com<http://www.inorbital.com/>
[cid:77435a88-ba09-4988-96e3-f2e4345a17bf]
…________________________________
From: Tomáš Krch ***@***.***>
Sent: November 19, 2024 8:17 PM
To: Kentico/xperience-by-kentico-kentico-migration-tool ***@***.***>
Cc: Fernando Martins: Inorbital ***@***.***>; Mention ***@***.***>
Subject: Re: [Kentico/xperience-by-kentico-kentico-migration-tool] After importing from 13.0.118, the widgets were imported as pages. (Issue #302)
Hi @FernandoMartins1970<https://github.com/FernandoMartins1970>, thanks for report. Appsettings.json in description has error in it, i assume that was due to redacting connection strings/paths/etc.?
Can You send me full migration log to email ***@***.******@***.***> or at least version filtered to errors? (if log is large feel free to zip/rar/7z)
appsettings.json:
{
"Logging": {
"LogLevel": {
"Default": "Information",
"System": "Warning",
"Microsoft": "Warning"
},
"File": {
"LogLevel": {
"Default": "Trace",
"System": "Error",
"Microsoft": "Error",
"Microsoft.EntityFrameworkCore": "Information",
"Migration.Toolkit": "Trace",
"Kentico.Xperience.UMT": "Trace",
"Migration.Toolkit.Common.Services.BulkCopy": "Trace"
},
// this one
"pathFormat": "logs/migration.tool.log",
"OutputTemplate": "{Timestamp:o} ({SourceContext}) [{Level:u3}] {Message} ({EventId:x8}){NewLine}{Exception}"
}
},
...
—
Reply to this email directly, view it on GitHub<#302 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BNCE4XQOP76IRLO2LCGUKWD2BPPLXAVCNFSM6AAAAABSCT6R2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBXGEYDSNJYGE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi @FernandoMartins1970, email reached me, after log review: i couldn't see any trace or debug entries in log (only warnings, errors, info), i have sent You update appsettings.json through email. I highly recommend to setup Source instance API discovery errors like this: Please check setting With trace log i will see what is happening. |
Hi, Just dropping in to comment, that the inverse of allowing pages to be transformed into widgets is a use-case I've come across previously. |
Hello Thomás
The issue continues.
I have changed each page and form component in my base code as shown below.
In K13 I change the code from
[EditingComponent(TextAreaComponent.IDENTIFIER, Order = 2, Label ="Text")]
to
[EditingComponent(TextAreaComponent.IDENTIFIER, Order = 2)]
[EditingComponentProperty(nameof(TextAreaProperties.Label), "Text")]
I have imported again and I got the same issues.
1.
Migration.Tool.Source.Handlers.MigratePagesCommandHandler[0] Cannot migrate url for document '1608' / node '1608'
2.
Migration.Tool.Source.Mappers.ContentItemMapper[0] Error while migrating field 'HeaderBackground' value ~/INO/media/Images/Banners/IINO-18_CTA_V01.png?ext=.png
In this case the event log complaint about the illegal character ("~")
3.
And the widgets were imported as a page.
Is there something else to do?
I am attaching the log files
Fernando Martins
Web Developer
www.inorbital.com<http://www.inorbital.com/>
[cid:fba80ecb-7949-4637-8eed-50f8dbe3e0aa]
…________________________________
From: Tomáš Krch ***@***.***>
Sent: November 22, 2024 4:12 AM
To: Kentico/xperience-by-kentico-kentico-migration-tool ***@***.***>
Cc: Fernando Martins: Inorbital ***@***.***>; Mention ***@***.***>
Subject: Re: [Kentico/xperience-by-kentico-kentico-migration-tool] After importing from 13.0.118, the widgets were imported as pages. (Issue #302)
Hi @FernandoMartins1970<https://github.com/FernandoMartins1970>, email reached me, after log review:
i couldn't see any trace or debug entries in log (only warnings, errors, info), i have sent You update appsettings.json through email.
I highly recommend to setup Source instance API discovery<https://github.com/Kentico/xperience-by-kentico-kentico-migration-tool/blob/master/Migration.Tool.CLI/README.md#source-instance-api-discovery>
errors like this: Cannot migrate url for document '2' / node '2', source instance context is not available or set-up correctly will be solved.
Please check setting Settings.KxCmsDirPath it seems like MT fails to find images. You can check where MT search for image by log review and search for "Suggestion: If you have a backup, copy it to the filesystem on path"
With trace log i will see what is happening.
—
Reply to this email directly, view it on GitHub<#302 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BNCE4XT7GAIFAVUO66HAFIT2B3YQ5AVCNFSM6AAAAABSCT6R2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJTGI3TKOBZGI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hello Anthony
Did you find the solution?
Fernando Martins
Web Developer
www.inorbital.com<http://www.inorbital.com/>
[cid:d7498749-d16b-4775-9cdb-758b4d4a636c]
…________________________________
From: Anthony Marquez ***@***.***>
Sent: November 25, 2024 10:54 AM
To: Kentico/xperience-by-kentico-kentico-migration-tool ***@***.***>
Cc: Fernando Martins: Inorbital ***@***.***>; Mention ***@***.***>
Subject: Re: [Kentico/xperience-by-kentico-kentico-migration-tool] After importing from 13.0.118, the widgets were imported as pages. (Issue #302)
Hi,
Just dropping in to comment, that the inverse of allowing pages to be transformed into widgets is a use-case I've come across previously.
—
Reply to this email directly, view it on GitHub<#302 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BNCE4XV3LI7XHYQSZTHU45D2CNB4RAVCNFSM6AAAAABSCT6R2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJYGQYDAOBQGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@FernandoMartins1970 email received, but i can't see any logs attached. If logfiles are too big, can you upload logfiles somewhere i can reach them?
other way is to share anonymized/sanitized database and i will run migration to see what happens exactly. @Sapphirress do we have any place where logfiles/database can be safely uploaded? |
I am adding another email that you told me.
Let me know if you received the file now.
Fernando Martins
Web Developer
www.inorbital.com<http://www.inorbital.com/>
[cid:6d805804-bffe-44b5-bb9d-aded64734738]
…________________________________
From: Tomáš Krch ***@***.***>
Sent: November 25, 2024 8:54 PM
To: Kentico/xperience-by-kentico-kentico-migration-tool ***@***.***>
Cc: Fernando Martins: Inorbital ***@***.***>; Mention ***@***.***>
Subject: Re: [Kentico/xperience-by-kentico-kentico-migration-tool] After importing from 13.0.118, the widgets were imported as pages. (Issue #302)
@FernandoMartins1970<https://github.com/FernandoMartins1970> email received, but i can't see any logs attached. If logfiles are too big, can you upload logfiles somewhere i can reach them?
1. You need to configure Source instance API discovery<https://github.com/Kentico/xperience-by-kentico-kentico-migration-tool/blob/master/Migration.Tool.CLI/README.md#source-instance-api-discovery> in order to solve error Cannot migrate url for document '2' / node '2', source instance context is not available or set-up correctly will be solved. otherwise, migration tool cannot migrate full url without information loss
2. in order to solve this error i need to know form control that was used for value input and other information stored in Trace log
3. weird, but from trace log (when i receive) i can see why widgets were migrated as pages
other way is to share anonymized/sanitized database and i will run migration to see what happens exactly.
@Sapphirress<https://github.com/Sapphirress> do we have any place where logfiles/database can be safely uploaded?
—
Reply to this email directly, view it on GitHub<#302 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BNCE4XWMXXYJM7OY4H67WR32CPIDXAVCNFSM6AAAAABSCT6R2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJZGQYTONBSGY>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@FernandoMartins1970 confirmed, logs in correct verbosity received |
Let me know when you can take a look on them and what I need to do to fix the issues.
Thank you
Fernando Martins
Web Developer
www.inorbital.com<http://www.inorbital.com/>
[cid:a74b782d-47eb-40fd-9f52-f7aff199f8ba]
…________________________________
From: Tomáš Krch ***@***.***>
Sent: November 25, 2024 9:58 PM
To: Kentico/xperience-by-kentico-kentico-migration-tool ***@***.***>
Cc: Fernando Martins: Inorbital ***@***.***>; Mention ***@***.***>
Subject: Re: [Kentico/xperience-by-kentico-kentico-migration-tool] After importing from 13.0.118, the widgets were imported as pages. (Issue #302)
@FernandoMartins1970<https://github.com/FernandoMartins1970> confirmed, logs in correct verbosity received
—
Reply to this email directly, view it on GitHub<#302 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BNCE4XQQN7JO4SEE656PCP32CPPVNAVCNFSM6AAAAABSCT6R2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJZGU2DMNRVHE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@FernandoMartins1970 i will look into it today |
[like] Fernando Martins: Inorbital reacted to your message:
…________________________________
From: Tomáš Krch ***@***.***>
Sent: Tuesday, November 26, 2024 12:03:36 PM
To: Kentico/xperience-by-kentico-kentico-migration-tool ***@***.***>
Cc: Fernando Martins: Inorbital ***@***.***>; Mention ***@***.***>
Subject: Re: [Kentico/xperience-by-kentico-kentico-migration-tool] After importing from 13.0.118, the widgets were imported as pages. (Issue #302)
@FernandoMartins1970<https://github.com/FernandoMartins1970> i will look into it today
—
Reply to this email directly, view it on GitHub<#302 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BNCE4XSZKPHPR6JKLEZLID32CRPRRAVCNFSM6AAAAABSCT6R2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBQGU2DGMBTGI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@FernandoMartins1970 i managed to successfully simulate some issue and working on fix. I will notify when fix preview is available |
Thank you Thomás.
Fernando Martins
Web Developer
www.inorbital.com<http://www.inorbital.com/>
[cid:00c92f58-9568-4377-ae89-6c222c5d17ae]
…________________________________
From: Tomáš Krch ***@***.***>
Sent: November 26, 2024 5:20 PM
To: Kentico/xperience-by-kentico-kentico-migration-tool ***@***.***>
Cc: Fernando Martins: Inorbital ***@***.***>; Mention ***@***.***>
Subject: Re: [Kentico/xperience-by-kentico-kentico-migration-tool] After importing from 13.0.118, the widgets were imported as pages. (Issue #302)
@FernandoMartins1970<https://github.com/FernandoMartins1970> i managed to successfully simulate some issue and working on fix. I will notify when fix preview is available
—
Reply to this email directly, view it on GitHub<#302 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BNCE4XWAGNHZPHUWXEXS37T2CTX4DAVCNFSM6AAAAABSCT6R2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBSGA2DQNRSGA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@FernandoMartins1970 can you try migration with git branch |
Hello Thomás
I am still could see the same errors running the code from the branch fix/302_issues.
I am attaching the log files.
Some consideration that I did before to reply you.
1.
For this branch, I needed to upload the project and db version from 29.6.0 to 29.7.0
2.
I tried to run the CLI commands from command prompt(Windows), PowerShell command prompt, and from Visual Studio (Developer Command Prompt). All ways I got the same error message.
Fernando Martins
Web Developer
www.inorbital.com<http://www.inorbital.com/>
[cid:f59db484-839a-4e5e-878d-8dc6ea5fa78c]
…________________________________
From: Tomáš Krch ***@***.***>
Sent: November 26, 2024 7:41 PM
To: Kentico/xperience-by-kentico-kentico-migration-tool ***@***.***>
Cc: Fernando Martins: Inorbital ***@***.***>; Mention ***@***.***>
Subject: Re: [Kentico/xperience-by-kentico-kentico-migration-tool] After importing from 13.0.118, the widgets were imported as pages. (Issue #302)
@FernandoMartins1970<https://github.com/FernandoMartins1970> can you try migration with git branch fix/302_issues (PR #309<#309>), delete old log, record new log and send log to me? I will check if expected improvements occurred.
—
Reply to this email directly, view it on GitHub<#302 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BNCE4XSSL7C5BNIUTJFINGL2CUIM7AVCNFSM6AAAAABSCT6R2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBSGM2TCMZVHE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Thanks for additional tests @FernandoMartins1970, i will try to continue with analysis as soon as possible. |
Hello Thomás,
Any update?
Fernando Martins
Web Developer
www.inorbital.com<http://www.inorbital.com/>
[cid:106687a1-b9fe-42b7-86de-d3745a6b23cf]
…________________________________
From: Tomáš Krch ***@***.***>
Sent: November 27, 2024 9:04 PM
To: Kentico/xperience-by-kentico-kentico-migration-tool ***@***.***>
Cc: Fernando Martins: Inorbital ***@***.***>; Mention ***@***.***>
Subject: Re: [Kentico/xperience-by-kentico-kentico-migration-tool] After importing from 13.0.118, the widgets were imported as pages. (Issue #302)
Thanks for additional tests @FernandoMartins1970<https://github.com/FernandoMartins1970>, i will try to continue with analysis as soon as possible.
—
Reply to this email directly, view it on GitHub<#302 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BNCE4XWOITWHFI3OKG6IRVT2CZ22TAVCNFSM6AAAAABSCT6R2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBVGEZDCMBQGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@FernandoMartins1970 for further investigation we would need your backups. Could you please share your email so I can send you instructions where/how to upload them? Thanks! Lukáš |
Sure Lucas.
My email is ***@***.***
Fernando Martins
Web Developer
www.inorbital.com<http://www.inorbital.com/>
[cid:69537232-d404-4bdd-b9f7-09e7065797a4]
…________________________________
From: giorgioLUK ***@***.***>
Sent: December 5, 2024 3:42 AM
To: Kentico/xperience-by-kentico-kentico-migration-tool ***@***.***>
Cc: Fernando Martins: Inorbital ***@***.***>; Mention ***@***.***>
Subject: Re: [Kentico/xperience-by-kentico-kentico-migration-tool] After importing from 13.0.118, the widgets were imported as pages. (Issue #302)
@FernandoMartins1970<https://github.com/FernandoMartins1970> for further investigation we would need your backups.
Could you please share your email so I can send you instructions where/how to upload them?
Thanks!
Lukáš
—
Reply to this email directly, view it on GitHub<#302 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BNCE4XV6SSPB6CIYSO54PJT2EAGYFAVCNFSM6AAAAABSCT6R2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJZGYZTGNRSHA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Brief bug description
Every single widget in K13, turned a page on Xperience. Is it correct? Now, I got some duplicates pages, but I realized that content is coming from a widget in a page.
Repro steps
appsettings.json
". However, I could see this character on SQL. The Xperience log I could see many errors like this/Project/media/Images/Image.png"2024-11-14T11:52:18.5501868-05:00 (Migration.Tool.Source.Mappers.ContentItemMapper) [ERR] Error while migrating field '"OGImage"' value "
It was imported on Xperience SQL with the same string "~/Project/media/Images/Image.png"
Expected behavior
Only show the page imported. The images not imported broken these pages as well.
Test environment
Screenshots
The text was updated successfully, but these errors were encountered: