Solved

How can I get Acumatica to recognize an existing Instance on a new machine?

  • 24 October 2022
  • 2 replies
  • 131 views

I'm currently trying to test some of Acumatica's command line functionalities. I created an Instance on a computer through the CLI Tool, and then copied the instance + database over to a different machine. I got the site running by starting it directly with IIS and up until now it’s been running succesfully.

However, I am now trying to upgrade the site through the CLI Tool, and Acumatica doesn’t seem to recognize the site's existence. Is there any workaround to get Acumatica to detect the site so that I can run the upgrade/other additional commands?

I’m attaching an image for reference on the error I’m getting.

 

Just to be clear, I can only manage this machine through CLI.

EDIT: 
this is the command I ran to start the Site with IIS
New-WebApplication -Site 'Default Web Site' -Name 'Acumatica21.1' -physicalPath 'C:\AcumaticaInstances\Acumatica21.1')

icon

Best answer by efrainsanchez06 25 October 2022, 23:24

View original

2 replies

I found the solution!

The acumatica wizard searches for the instance information in the registry files. You can set them by using the following commands:
 

new-itemproperty -path ('HKLM:\software\acumatica erp\' + %YOUR_INSTANCE_NAME%) -name Path -value %YOUR_INSTANCE_PATH%;

new-itemproperty -path ('HKLM:\software\acumatica erp\' + %YOUR_INSTANCE_NAME%) -name Type -value %YOUR_SITE_TYPE%;

new-itemproperty -path ('HKLM:\software\acumatica erp\' + %YOUR_INSTANCE_NAME%) -name VirtDirName -value %YOUR_VIRT_DIR_NAME%;

new-itemproperty -path ('HKLM:\software\acumatica erp\' + %YOUR_INSTANCE_NAME%) -name WebSiteName -value %YOUR_SITE%;

 

Userlevel 7
Badge

Thank you for sharing your solution with the community @efrainsanchez06 !

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved