-
Notifications
You must be signed in to change notification settings - Fork 61
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
Sitecore.Ship does not work with Sitecore 8.2 Update 1 for Azure Deployment #66
Comments
Thanks for the heads up, will address. Black mark for Sitecore SemVer policy adherence ;-) |
For fixing this issue in Sitecore.Ship, possible workaround could be: Modify 'Sitecore.Ship.Infrastructure.Update.UpdatePackageRunner' class in Sitecore.Ship.Infrastructure project by replacing entries = UpdateHelper.Install(installationInfo, logger, out historyPath); with using (new SecurityDisabler()) Build the Sitecore.Ship.Infrastructure Project and replace the Sitecore.Ship.Infrastructure.dll in you website. This will allow to use the simple package installation mode. |
Fancy submitting a pull request?
Thanks for the insight, much appreciated.
…On 27 Dec 2016 14:53, "Muhammad Naeem Ashraf" ***@***.***> wrote:
For fixing this issue in Sitecore.Ship, possible workaround could be:
Modify 'Sitecore.Ship.Infrastructure.Update.UpdatePackageRunner' class in
Sitecore.Ship.Infrastructure project by replacing
entries = UpdateHelper.Install(installationInfo, logger, out historyPath);
with
using (new SecurityDisabler())
{
bool flag;
DiffInstaller installer = new DiffInstaller(installationInfo.Action);
entries = installer.InstallPackage(installationInfo.Path,
installationInfo.Mode, logger, new List(), "rollbackPackage.rlb", out flag,
ref historyPath);
}
Build the Sitecore.Ship.Infrastructure Project and replace the
Sitecore.Ship.Infrastructure.dll in you website.
This will allow to use the simple package installation mode.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#66 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABnDonAIhG7gJ5BqJvy1TOFlZJhWmgKpks5rMMP-gaJpZM4LWFm3>
.
|
…or Azure Deployment
Pull request submitted - #69 Please let me know if I can do anything else. |
@kevinobee could you please merge this and update the nuget package? |
@kevinobee I did the above changes and it worked for me 8.2 update 3 |
I had a different problem with the Marketplace deployment.
To work around, patched the <configuration xmlns:x="http://www.sitecore.net/xmlconfig/">
<sitecore>
<sc.variable name="tempFolder">
<x:attribute name="value">/temp</x:attribute>
</sc.variable>
</sitecore>
</configuration> |
None of the items gets deployed to Sitecore.
The log below is quiet misleading as looking at this the package should have been installed but actually not.
Sitecore.Ship throws exception here:
var installationInfo = GetInstallationInfo(packagePath);
entries = UpdateHelper.Install(installationInfo, logger, out historyPath); ,<-- silently fails i.e .doesn't return any error and doesn't install package as well.
Logs:
INFO:Installing package: D:\home\site\wwwroot\App_Data\data\temp\d34cb1db-dcef-4dc7-9159-576c2876dfaa.update
INFO:Installation Mode: Install
INFO:Installation of package 'D:\home\site\wwwroot\App_Data\data\temp\d34cb1db-dcef-4dc7-9159-576c2876dfaa.update' has been finished.
INFO:Post installation step for the package 'D:\home\site\wwwroot\App_Data\data\temp\d34cb1db-dcef-4dc7-9159-576c2876dfaa.update' has been executed.
22/12/2016-11:36 PM: Starting PostDeployActions
22/12/2016-11:36 PM: Exception Could not find file 'D:\home\site\wwwroot_DEV\DeployedItems.xml'.(FileNotFoundException):
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReaderImpl.FinishInitUriString()
at System.Xml.XmlTextReaderImpl..ctor(String uriStr, XmlReaderSettings settings, XmlParserContext context, XmlResolver uriResolver)
at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext)
at System.Xml.Linq.XElement.Load(String uri, LoadOptions options)
at HedgehogDevelopment.SitecoreProject.PackageInstallPostProcessor.DoPostDeployActions.Run(ITaskOutput output, NameValueCollection metaData)
P.S. On my investigation, I found that Sitecore 8.2 update 1 uses Sitecore.update.dll(version 2.0). UpdateHelper.Install() function has been modified that breaks the package deployment from Sitecore.Ship.
The text was updated successfully, but these errors were encountered: