Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sitecore package install never ends

Tags:

sitecore

I got an interesting problem. When I install a Sitecore package the user interface never gets updated when the package is fully installed. The Sitecore package installation is hanging.

In the Sitecore logs I see:

ManagedPoolThread #18 11:36:00 INFO  Installing item: items/master/sitecore/system/Tasks/Schedules/Portals/Default/{BEA47CD0-C3B3-4EFD-A781-997292620312}/nl/1/xml
ManagedPoolThread #18 11:36:00 INFO  Installing item: items/master/sitecore/system/Tasks/Schedules/Portals/Default/foobar/{4E0129CF-1C03-4BC8-B049-7D641D46797C}/en/1/xml
ManagedPoolThread #18 11:36:00 INFO  Installing item: items/master/sitecore/system/Tasks/Schedules/Portals/Default/foobar/{4E0129CF-1C03-4BC8-B049-7D641D46797C}/nl/1/xml
ManagedPoolThread #18 11:36:00 INFO  Installing of blob values has been finished. Installed: 3 Skipped: 0
ManagedPoolThread #18 11:36:00 INFO  Committing files.
ManagedPoolThread #11 11:36:00 INFO  Job started: WatchStatus

This indicates that everything is installed correctly but in Sitecore the loading bar is still running. Does anybody know what can cause this because the logs are empty.

like image 974
Hans Leautaud Avatar asked Jun 11 '13 09:06

Hans Leautaud


People also ask

How do I install a package on Sitecore?

Log in to your Sitecore content management site. Select Control Panel. From the administration menu, select Install a package. Click Upload a package, and then select Choose files.

How many types of merge can be done while installing package in Sitecore?

There are 3 options: Overwrite, Merge and Skip, with Merge having some sub-options.

What is Sitecore update package?

Sitecore packages simplify the complex task of deploying changes to multiple environments in a way that is both consistent and repeatable; this lowers the cost of development while simultaneously increasing reliability.


2 Answers

After a lot of research in Sitecore.Kernel.dll I found the solution. After the "INFO Committing files." log entry there was another entry: "Job started: WatchStatus". This Job never ended.

The ItemInstaller is responsible for the "Installing item:" logs and the BlobInstaller is responsible for the "Installing of blob values has been finished" log. In the InstallPackageForm class, the function WatchForInstallationStatus() is responsible for the "Job started: WatchStatus" logmessage. This function starts a new thread in which it checks the status of the package installation which is stored in the temp folder. In my case, the IIS_IUSRS role did not have write rights on the temp folder. After I changed it, it worked.

This is what the log file should look like:

ManagedPoolThread #7 12:45:57 INFO  Committing files.
ManagedPoolThread #11 12:45:57 INFO  Job started: WatchStatus
ManagedPoolThread #7 12:45:57 INFO  Job ended: Install (units processed: )
ManagedPoolThread #11 12:45:58 INFO  Job ended: WatchStatus (units processed: )
ManagedPoolThread #8 12:45:58 INFO  Job started: InstallSecurity
ManagedPoolThread #8 12:45:58 INFO  Installing security from package: <package>
like image 108
Hans Leautaud Avatar answered Nov 02 '22 20:11

Hans Leautaud


After the default installation of 8.0 Update 4 you need to run mongo manually.

The easiest way is to install mongo by default and run it from command prompt as: mongod.exe --dbpath c:\example_of_my_mongo_database_dir

The best way is to install it as a windows service - http://mikerobbins.co.uk/2015/02/02/install-mongodb-as-a-windows-service-for-sitecore/

As soon as you do that - you'll be able to install the packages without any problem.

like image 35
Martin Miles Avatar answered Nov 02 '22 20:11

Martin Miles