Reputation: 4212
Just completed a trail run of Kentico 11 upgrade to Kentico 12, using https://docs.kentico.com/k12sp/installation/upgrading-to-kentico-12
The company website is ASP.NET MVC.
The upgrade process updated Kentico CMS code and the database.
Upgrade completed without any issues.
All media libraries are gone. There are no folders in Kentico's Media Library app.
Connections strings in web.config for both Kentico CMS and MVC app are correct. Both deployed to local IIS 10.
**
Is there any way to copy them from Kentico 11 database?
**
Any help greatly appreciated!
EDIT 1
Kentico 11 database has the media libraries, but is not showing any library files in the CMS app; same thing with Kentico 12 CMS app.
The files are present in the MEDIA_FILE tables of both database. The table data matches exactly with the Kentico 12 database.
Then why are they not showing up in the CMS App of either K11 or K12??
EDIT 2
File system folder structure of media library under MVC site: https://i.sstatic.net/Ixc2B.jpg
Settings > System > Files > Storage screenshot: https://i.sstatic.net/0qvos.jpg
Settings > Content > Media > Storage screenshot: https://i.sstatic.net/o3BbS.jpg
Upvotes: 0
Views: 575
Reputation: 6117
MVC uses web farms to sync media libraries from the CMS install to the MVC website.
Are your files are actually in the file system under the original location.
did you change the site's code name. If you did this will cause problems with the location of the files for the media libaray as the media library uses the site's code name as a starting folder path in the file system.
Check the database. Query the database tables media_library
and 'media_files' and see if your media libraries and files are still there. If they are, then simply find your media files and put them back in the file system in the proper location.
If all those are good, check the Web Farm app in Kentico and see how many web farm servers are in the table. If you see 2, then you should be good.
If the web farms servers are good, check the web farm tasks in Kentico. If there are none or some in there, great. Query the web farm tables and look for orphaned tasks. They will be orphaned if the server's ID is on a task but the server does not exist. You will need to delete those orphaned tasks manually in the database as they won't show in the table anywhere.
Upvotes: 1