License file usage in ravendb2

31 views
Skip to first unread message

Carlton Banks

unread,
Apr 19, 2018, 2:26:48 AM4/19/18
to RavenDB - 2nd generation document database
Hi

I am currently trying to install ravendb on a prod server. The licens file I am using, is the same being used for another test/prod server. 

The installation seem to chrash all the time when i pass the license file to the installation. 

Something i found interesting in the log file was this. 

Action start 08:14:02: OpenLicenseFileChooser.
MSI
(c) (AC:A8) [08:14:02:763]: Invoking remote custom action. DLL: C:\Users\prod\AppData\Local\Temp\MSI7901.tmp, Entrypoint: OpenLicenseFileChooser
MSI
(c) (AC!30) [08:14:04:934]: PROPERTY CHANGE: Adding RAVEN_LICENSE_FILE_PATH property. Its value is 'C:\license.xml'.
Action ended 08:14:04: OpenLicenseFileChooser. Return value 1.
MSI
(c) (AC:F0) [08:14:04:950]: Doing action: LicenseFileExists
Action 08:14:04: LicenseFileExists.
Action start 08:14:04: LicenseFileExists.
MSI
(c) (AC:20) [08:14:04:997]: Invoking remote custom action. DLL: C:\Users\prod\AppData\Local\Temp\MSI81BD.tmp, Entrypoint: LicenseFileExists
MSI
(c) (AC!FC) [08:14:05:231]: PROPERTY CHANGE: Deleting RAVEN_LICENSE_VALID property. Its current value is 'False'.
MSI
(c) (AC!FC) [08:14:05:231]: PROPERTY CHANGE: Adding RAVEN_INSTALLER_INFO property. Its value is 'Checking existing license file'.
Action ended 08:14:07: LicenseFileExists. Return value 3.
DEBUG: Error 2896:  Executing action LicenseFileExists failed.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2896. The arguments are: LicenseFileExists, , 
Action ended 08:14:07: WelcomeDlg. Return value 3.
MSI (c) (AC:1C) [08:14:07:281]: Doing action: CustomFatalError
Action 08:14:07: CustomFatalError. 
Action start 08:14:07: CustomFatalError.

The path to the license file is correct, so why does it fail? 

Is there some limitation on the number of test/prod server that can use the license file, and if so, how do i check the number of servers that may use this license file?

And if that is not the case, are there any dependencies i am missing? 
- Does it need acess to the internet?
- does it need something else installed?

Arkadiusz Palinski

unread,
Apr 19, 2018, 3:40:42 AM4/19/18
to rav...@googlegroups.com
Hi,

1) How many test or prod servers is using this license file? One license can be used only on _single_ RavenDB server.
2) What version of .NET Framework you have installed there?
3) Please try running it as the administrator to be sure it's not a missing permission issue.

Thanks,
Arek

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Carlton Banks

unread,
Apr 19, 2018, 3:50:08 AM4/19/18
to RavenDB - 2nd generation document database
Hi 

1) One test and one prod -  But they are connecting to the same server, so no problem there.
2) Both .NET 3.5 and .NET 4.6
3) I have tried running it as admin, same error.. 

Besides that, I have no problem with installing it as a developer - where no license file is required. 
only the prod/test server version in which it performs `LicenseFileExists` seems to cause the problem.  

Carlton Banks

unread,
Apr 19, 2018, 4:02:18 AM4/19/18
to RavenDB - 2nd generation document database
My last comment was in regard to whether i could install a developer version, and then place the license file at the root of my ravendb installation folder,

Since ravendb by default sets the licensepath to ~\license.xml according to https://ravendb.net/docs/article-page/2.5/Csharp/server/administration/license-registration

Arkadiusz Palinski

unread,
Apr 19, 2018, 4:03:53 AM4/19/18
to rav...@googlegroups.com
Please install as dev and then manually copy your license file next to Raven executables:

https://ravendb.net/docs/article-page/3.5/csharp/server/configuration/license-registration

That will be the easiest option.

Arkadiusz Palinski

unread,
Apr 19, 2018, 4:04:26 AM4/19/18
to rav...@googlegroups.com
Yes, exactly.
Reply all
Reply to author
Forward
0 new messages