Giter VIP home page Giter VIP logo

dynamics365configuration's People

Contributors

avishnyakov avatar shurick81 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

avishnyakov

dynamics365configuration's Issues

Optionally output installation process in real time

Install process takes around 30-70 minutes depending on the resources. It would be nice to pull installation logs in real time.

One trick which can be useful is below. It can be adapted into the install process to monitor it in real time.

# pull logs in the real time
Get-Content $path -Wait
``

Install-Dynamics365Server does the pulling of the job status, it could potentially read $path, compare new lines added, and the push int the console output in -verbose mode or with special flag.

Unattended installs would surely benefit from this feature.

Output or capture errors during failed installs

It would be nice if this module could output or capture errors during the installation process.

Currently, install process fails without explanation:

Installation job finished but the product is still not installed. Current product version installed is 'Could not load 
    crm: Microsoft.Crm.PowerShell PSSnapin'

It can be improved in various ways:

  • capturing errors from the install log file, and then outputting them into the console in case of failure
$path = "install-log-path"
Get-Content $path | Select-String -Pattern "Error" -SimpleMatch
  • providing a variable in Install-Dynamics365Server where to save the logs
    That way, install scripts can know about the installation log file and process it in case of failure.

Finally, Install-Dynamics365Server behaviour on failure should be known:

  • is it non-0 return value?
  • is it an exception?

Checksum Error when Downloading `SQLNCli2012SP4` Resource

    azure-arm: Install-Dynamics365Prerequisite -Prerequisite SQLNCli2012SP4 -DynamicsPrerequisiteFilePath .
==> azure-arm: Hash does not match A391BF631CCA15E5CEB4BD6B5D17EAE4B1EA25C3
    azure-arm: 10/31/2020 09:16:25 Downloading https://download.microsoft.com/download/F/3/C/F3C64941-22A0-47E9-BC9B-1A19B4CA3E88/ENU/x64/sqlncli.msi to C:\Users\packer\AppData\Local\Temp\a8dd7fab-3673-4f71-9335-a4e3db253b89\sqlncli.msi
    azure-arm: 10/31/2020 09:16:25 Calculating hash for C:\Users\packer\AppData\Local\Temp\a8dd7fab-3673-4f71-9335-a4e3db253b89\sqlncli.msi
    azure-arm: Hash of the downloaded file: 987E185CFB57FEBAC85770ABCCC6DEFB62DE0B4A
    azure-arm: 10/31/2020 09:16:25 Hash does not match A391BF631CCA15E5CEB4BD6B5D17EAE4B1EA25C3
==> azure-arm: At C:\Program
==> azure-arm: Files\WindowsPowerShell\Modules\Dynamics365Configuration\2.0.0\DownloadAndUnpack-Dynamics365Resource.psm1:68 char:21
==> azure-arm: + ...                    Throw "Hash does not match $expectedFileChecksum";
==> azure-arm: +                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> azure-arm:     + CategoryInfo          : OperationStopped: (Hash does not m...D17EAE4B1EA25C3:String) [], RuntimeException
==> azure-arm:     + FullyQualifiedErrorId : Hash does not match A391BF631CCA15E5CEB4BD6B5D17EAE4B1EA25C3
==> azure-arm:

Install-Dynamics365Prerequisite -Prerequisite SQLSysClrTypes2016 causes 404 error

Install-Dynamics365Prerequisite -Prerequisite SQLSysClrTypes2016 -DynamicsPrerequisiteFilePath .
       11/01/2020 08:52:49 Downloading https://download.microsoft.com/download/8/7/2/872BCECA-C849-4B40-8EBE-21D48CDF1456/ENU/x64/SQLSysClrTypes.msi to C:\Users\vagrant\AppData\Local\Temp\d8646e3f-1a83-4e12-bfe7-66816f947a7a\SQLSysClrTypes.msi
       The remote server returned an error: (404) Not Found.

Install-Dynamics365ReportingExtensions

Command

Install-Dynamics365ReportingExtensions `
    -MediaDir c:\DynamicsResources\Dynamics365Server90RTMSve\SrsDataConnector `
    -ConfigDBServer $env:COMPUTERNAME\SQLInstance01 `
    -InstanceName SSRS `
    -LogFilePath c:\tmp\Dynamics365ServerReportingExtensionsInstallLog.txt `
    -LogFilePullIntervalInSeconds 15 `
    -LogFilePullToOutput

Getting this error

Error| Check ReportServerValidator : Failure: Unable to validate SQL Server Reporting Services Report Server
installation. Please check that it is correctly installed on the local machine.

SQL SSRS 2017 is provisioned, web site is available.

Install-Dynamics365Server fails if non-ascii characters provided

If any characters in some parameters, for example in user account passwords, are not from the ascii list, the installation fails.

The log output:

10:01:28|   Info| === Setup bootstrap logging started 1/30/2021 10:01:28 AM ===
10:01:28|   Info| Bootstrap version: 9.0.2.3034.
10:01:28|   Info| User: _crmadmin.
10:01:28|Warning| Cannot check for reboot required for updates:  Could not obtain ISystemInformation object. hr=0x80070005
10:01:28|   Info| No pending reboot detected
10:01:28|   Info| ConfigFileName:  C:\Users\_CRMAD~1\AppData\Local\Temp\98b78c52-cc7f-44fa-834a-23db66d44256.xml
10:01:28|   Info| Clean up the BITS downloader.

10:01:28|   Info| === Setup bootstrap logging ended 1/30/2021 10:01:28 AM ===

In the C:\Users\<install_account>\AppData\Roaming\Microsoft\MSCRM\Logs\crmsetup.log file you can find the following output:

10:01:28|   Info| === Setup bootstrap logging started 1/30/2021 10:01:28 AM ===
10:01:28|   Info| Bootstrap version: 9.0.2.3034.
10:01:28|   Info| User: _crmadmin.
10:01:28|   Info| Invoked with command line: "C:\Install\Dynamics\Dynamics365Server90RTMEnu\SetupServer.exe" /Q /config C:\Users\_CRMAD~1\AppData\Local\Temp\98b78c52-cc7f-44fa-834a-23db66d44256.xml /L C:\Users\_crmadmin\AppData\Roaming\Microsoft\MSCRM\Logs\CRMInstallationLog_2021-01-30-10-01-26Z.txt 
10:01:28|   Info| Running C:\Install\Dynamics\Dynamics365Server90RTMEnu\SetupServer.exe
10:01:28|   Info| Loading bootstrap library C:\Install\Dynamics\Dynamics365Server90RTMEnu\ServerSetup.dll
10:01:28|   Info| Dynamics 365 is not currently installed.
10:01:28|   Info| Closing bootstrap library C:\Install\Dynamics\Dynamics365Server90RTMEnu\ServerSetup.dll
10:01:28|   Info| Error 0x00000003 encountered when trying to find the MSP update file.
10:01:28|   Info| No MSP update will be installed.
10:01:28|   Info| Beginning to parse configuration file 'C:\Users\_CRMAD~1\AppData\Local\Temp\98b78c52-cc7f-44fa-834a-23db66d44256.xml'
10:01:28|   Info| Found product element: server
10:01:28|   Info| Found patch element
10:01:28|   Info|    Update=False
10:01:28|   Info| End of patch element
10:01:28|  Error| Error parsing config file(HRESULT = 0xC00CEE2B) (ConfigFileParse.h:CConfigFileParser::Parse:435).
10:01:28|   Info| Clean up the BITS downloader.

10:01:28|  Error| Error parsing config file, Error, OK
10:01:28|   Info| InputResult: No Input
10:01:28|   Info| Uninitializing COM.
10:01:28|   Info| Uninitialized COM.
10:01:28|   Info| Clean up the BITS downloader.

10:01:28|   Info| === Setup bootstrap logging ended 1/30/2021 10:01:28 AM ===

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.