Starts in:
0 DAY
0 HR
33 MIN
1 SEC
Starts in:
0 D
0 H
33 M
1 S
Open Closed

Add CmsKit to upgraded site from 4.2, and other errors #1361


User avatar
0
chofoza created
  • ABP Framework version: v4.3.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

Hi, I am having multiple issues with an upgrade from 4.2 to 4.3 and trying to add the CMS modules. My abp CLI and suite are both at the latest version.

When I add CmsKit or CmsKit.Pro it fails during step 2 of 4:

[1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... error Command failed. Exit code: 128 Command: git Arguments: ls-remote --tags --heads ssh://git@github.com/seonim-ryu/Squire.git Directory: [web project folder] Output: Host key verification failed. fatal: Could not read from remote repository.

I can see the Nuget dependencies in all my projects, but my database does not have any cms tables in it, and the menu doesn't appear. I have tried adding the relevant "EnableAll" code to the GlobalFeatureConfigurator in Domain.Shared but it didn't do anything. I also ran the DbMigrator project and it ran successfully, but didn't add any tables.

I also tried to add the file management module and had the same error about Squire.git.

I also get the following error when I click on Settings in the Administrator menu (all other menu pages are ok)

DependencyResolutionException: None of the constructors found with 'Volo.Abp.Autofac.AbpAutofacConstructorFinder' on type 'Volo.Abp.SettingManagement.Web.Pages.SettingManagement.Components.EmailSettingGroup.EmailSettingGroupViewComponent' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.SettingManagement.IEmailSettingsAppService emailSettingsAppService' of constructor 'Void .ctor(Volo.Abp.SettingManagement.IEmailSettingsAppService)'.

I've done a full "update all packages" through abp suite and obviously don't get any compiler errors. I did also follow the upgrade doc from 4.2 to 4.3 so those steps have also been implemented.

I've considered creating a new project and moving my custom code across, but I'll need to use the new db layout and therefore would lose my live data. I could possibly migrate data but I don't know if that will work for identity columns and foreign keys.

Has anyone seen these problems before and have I missed something simple?


5 Answer(s)
  • User Avatar
    1
    ilkayilknur created

    Hello @chofoza, The error you're getting on step 2 isn't looking related to the ABP. You might want to try yarn and gulp commands before adding the CMS-Kit module. It looks like they're related to your development environment.

    Regarding the setup process, please follow the steps on the CMS-Kit Module page.

    After enabling both CMS Kit and CMS Kit Pro features, you need to create a migration and then run the DbMigrator. Can you please follow these steps and let us know if issues still exist?

  • User Avatar
    0
    chofoza created

    Thank you so much @ilkayilknur. Your suggestions helped me get there!

    Running yarn and gulp didn't help. yarn continues to fail at the same places in step 2 even now that everything is working. But while I was scrutinising the errors I saw a problem: I am running on MacOS and store my projects in my iCloud drive, and that folder pathname has a space in it (/Mobile Documents/) which the add-module update couldn't deal with. I moved everything to another folder, and the add-module step completed. Although the yarn command fails at step 2, the abp command is trying to continue, but was also failing because of the space - moving to a different folder allowed the entire process to complete, including automatically running the db migrations.

    Next problem was I still could not see the tables, and no menu (despite the message during install that it had run, and me running it manually through command line as well as running DbMigrator). Eventually I realised that the db migration had run on the live connection string and not in my dev environment, so I ran the command line tool specifying my local connection string, and that then worked.

    Still no menu. I had previously checked a test project against my existing one and all the relevant cms code had been added so the add-module command did add nearly everything properly. I copied the content.Menu.SetSubItemOrder from the test project into the MenuContributor. It didn't work but also only sounds it sets the order to an already added item... Eventually realised my role didn't have permissions on the CmsKit - so obvious but it took me ages.

    So then I could see the menu, and actually access the page and blog lists! But when I tried to add a new page I got an error about a missing tui-editor library. I copied the entire wwwroot/libs folder from my test project over to this one, and then it started working. I created and can view a page. I assume all the missing libs were from step 2 of the yarn process. I don't know what steps 3 and 4 do but everything appears to be working!

    It's been a hell of a morning. Thank you for your help and I hope this helps someone else.

  • User Avatar
    0
    chofoza created

    Only problem is I am still getting this error when clicking Administration > Settings.

    DependencyResolutionException: None of the constructors found with 'Volo.Abp.Autofac.AbpAutofacConstructorFinder' on type 'Volo.Abp.SettingManagement.Web.Pages.SettingManagement.Components.EmailSettingGroup.EmailSettingGroupViewComponent' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.SettingManagement.IEmailSettingsAppService emailSettingsAppService' of constructor 'Void .ctor(Volo.Abp.SettingManagement.IEmailSettingsAppService)'.

    Any ideas?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    See : https://github.com/abpframework/abp/pull/7669

    You need to install SettingManagement module's all package.

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06