MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

Catalin,

( see my last post on page 3 as well )

I think I might have found the reason why your agents are not showing up...
-
In the Agent_Settings file, the manager computer name has "\administrator" behind it - I don't think that is the name of the computer:
-
AI_wrongManagerComputerName.PNG
AI_wrongManagerComputerName.PNG (15.91 KiB) Viewed 12729 times
-
-
I think it should be just this:
-
AI_ServerManagerComputerName.PNG
AI_ServerManagerComputerName.PNG (15.08 KiB) Viewed 12729 times
-
-
So your settings file should look like this:
-
<?xml version="1.0" encoding="utf-8"?>
<AgentMachine>
<AgentInfo port="443">
<ManagerIP primary="WIN-N8MH1OCCOTD" secondary="" />

<Timeouts connect="1" reconnect="10" timeout="10">
<!--day="0" => Sunday hour="14" => 2:00pm-->
<Updater day="3" hour="8" minute="0" />
</Timeouts>

</AgentInfo>
</AgentMachine>
-
-
another thing that may be happening is your manager computer name may not be able to be resolved by your network...
you might try using the Manager IP address instead:
-
<ManagerIP primary="192.168.1.1" secondary="" />
-
( whatever it really is... )
-
-
I really need the Error.log file from the manager to see why the manager is not responding to our status requests (from page 3 of this post)
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: upgrading service now shows two versions in programs and features

Hello Mike,

Thank you for your followup on this.

I have managed to successfully make this work. The problem was indeed the computer name, as I was doing the following:

- on the server machine, open PowerShell:

Code: Select all

whoami
which returns the following:

Code: Select all

computerName\userName
I was actually copying the whole result (including the userName), instead of just the computer name. This was my fault and I'm not quite sure how I overlooked this. Thank you for bringing this to my attention.

I was also able to replicate the behavior on my end.

Unfortunately, the log file does not tell us much about what is going on and neither does the error itself (1316).

To further test this, I have reverted the virtual machine, reinstalled the agent service and then tried to manually upgrade it, using the "4.3.45" version of the .MSI with the following command line:

Code: Select all

msiexec /i <path_to_4.3.45_MSI> /qn
I've used the "/qn" parameter as I observed that you also do the upgrade silently.

Everything worked as expected in this case, the product being succesfully installed.

I feel like we are close of isolating this issue.

From what I could notice, you do not use our predefined support for the updater, meaning that you do this manually. If possible, could you please give me some more details about how you are doing this? When restarting the service, it looks like it verifies the XML settings file and then does something which I was not able to find out what it does. At first, I thought that it creates a scheduled task that downloads and installs the product. However, after looking in the task scheduler, I could not find any task created.

With that being said, could you please (quickly) explain to me what happens "behind" in this upgrade process?

In addition to that, could you please let me know the exact command line used to launch the product (the command line I have used can be seen above)? As it can be seen, I have added only the /qn parameter.

And least but not last, could you please try to manually launch the setup (the upgraded one) with the same command line as me and let me know if it works on your machine?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

Catalin,

Thanks for the update... looks like you are making progress on this... awesome!

To answer to your question, quickly, the Agent service runs a timer (according to the settings you changed in the agent_settings.xml file).
When the timer expires, the agent contacts the server, (via the manager) and if there is an upgrade available, it is downloaded to the agent "updates" folder
-
C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Updates
-
-
- Everything about this process is logged in the agent's Main.log file
-
The download/save entry of the file looks something like this
-
[2020-03-04 12:20:04.2301][Agent.Agent][Saved binary 'AgentService.4.3.34.0.Install.37.msi' to C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Updates\AgentService.4.3.34.0.Install.37.msi]
-
-
( in fact, if the upgrade process fired off ... you will find the 'upgrade' MSI file in that folder )
-
-
The process starting entry looks something like this:
-
[2020-03-04 12:20:04.2301][Agent.Agent][_RunUpater : Starting 'msiexec /i "C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Updates\AgentService.4.3.34.0.Install.37.msi" AGENT_SVC_IP_PRIMARY=Desktop2776 AGENT_SVC_PORT=443 ROAMINGPROFILE_TYPE=RoamingProfile /qn /lv "C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Logs\AgentService.4.3.34.0.Install.37.msi_install.log"']
-
-
You should be able to copy the process start command line (above), starting from msiexec and ending with the path to the install log, and run it on your machine eg:
-
msiexec /i "C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Updates\AgentService.4.3.34.0.Install.37.msi" AGENT_SVC_IP_PRIMARY=Desktop2776 AGENT_SVC_PORT=443 ROAMINGPROFILE_TYPE=RoamingProfile /qn /lv "C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Logs\AgentService.4.3.34.0.Install.37.msi_install.log"
-
Let me know if you need anything else
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

Do you have everything you need at this point?
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: upgrading service now shows two versions in programs and features

Hello Mike,

I may have found the culprit here.

However, I will need you to test this scenario as you will need to modify the content of your service.

Could you please modify your service so it starts the installation process with the following command line:

Code: Select all

msiexec /i <path_to_msi> /qn ALLUSERS=1 <rest_of_your_properties_here>
then rebuild your service and the projects and retest this scenario?

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

this is it:

ALLUSERS=1


So to confirm, this is how the command line will be structured ( of course without the // and all on one line )

// msiexec
// /i "c:\program files\Cetrus\4.0\Cetrus Agent Service\Updates\AgentService.4.0.314.0.Install.324.msi"
// /qn ALLUSERS=1
// AGENT_SVC_IP_PRIMARY=ManagerComputerName
// AGENT_SVC_PORT=ppppp
// ROAMINGPROFILE_TYPE=type
// /lv "c:\program files\Cetrus\4.0\Cetrus Agent Service\Logs\AgentService.4.0.314.0.Install.324.msi_install.log"
Last edited by MLiss@Cetrus.com on Wed Apr 01, 2020 3:51 pm, edited 2 times in total.
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

Quick question:

I have put this back into the advanced installer portion of our build process

SetVersion %dep.Pm4_AgentService.system.Major%.%dep.Pm4_AgentService.system.Minor%.%dep.Pm4_AgentService.system.build.number%.%dep.Pm4_AgentService.system.Revision%
Rebuild
Save
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

I have built two versions of the service for you to test as well.

4.3.46.0.Install.49 - Primary install
4.3.47.0.Install.50 - auto upgrade install
-
-
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

tested install on our end - fail
-
command line was this:
-
msiexec /i "C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Updates\AgentService.4.3.47.0.Install.50.msi" /qn ALLUSERS=1 AGENT_SVC_IP_PRIMARY=cetrus06qa AGENT_SVC_PORT=443 ROAMINGPROFILE_TYPE=static /lv "C:\Program Files\Cetrus\4.3\Cetrus Agent Service\Logs\AgentService.4.3.47.0.Install.50.msi_install.log"
-
NO changes to the .aip file were made
-
install log attached
-
Please test on your end as well.
Attachments
AgentService.4.3.47.0.Install.50.msi_install.log
(288.56 KiB) Downloaded 994 times
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: upgrading service now shows two versions in programs and features

Hello Mike,

I've tried testing this just now and it seems there is a problem with the upgrade process, it never kicks in (the higher version is never downloaded).

I have had a look over the website --> "Computers" and I could notice the AgentService is no longer added there (as it was with the previous versions).

I believe this is affecting the upgrade scenario.

I've repeated the exact same steps as before:

- installed the 46 version (it installed as expected)

- stopped the service

- modified the XML file

- restarted the service

Could you please have a look on your end and let me know if everything is ok?

Once we sort this out, I'll start testing right away.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

Catalin,

Did you re-install the manager? if so, did you select server 4 ?
Is the Manager service running? If so, is there an error log. If so, please attach it to me.

I am not getting any response from the Manager service when I sent it a status message.
ManagerStatus.PNG
ManagerStatus.PNG (16.09 KiB) Viewed 12692 times
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: upgrading service now shows two versions in programs and features

Hello Mike,

No, I did not reinstall the Manager.

Since I have a VM with it already installed, I thought it is not needed to re-install it.

I will proceed in reinstalling it right now and will retest this scenario.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

Catalin,

The manager is responding now.
-
ManagerStatus.PNG
ManagerStatus.PNG (13.31 KiB) Viewed 12690 times
-
-
I am getting status... but I do not see any agents connected to it:
-
ManagerStatus_Agent.PNG
ManagerStatus_Agent.PNG (19.39 KiB) Viewed 12689 times
-
Last edited by MLiss@Cetrus.com on Thu Apr 02, 2020 3:31 pm, edited 1 time in total.
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

Catalin,

During the Agent install, did you set the manager computer name to : WIN-N8MH1OCCOTD
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: upgrading service now shows two versions in programs and features

Hello Mike,

I've performed the first test and I reproduced the issue.

There is currently no agent connected to it as I reverted the machine to perform some further test.

Will notify you with what I find.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”