Autopublish applications after upgrade
2141
Views
22
Comments
On our RadarOn our Radar
Install Processes

Hi everybody.


I don't know wheter this is an idea or a question, or maybe we don't know a tool exist for this situation.


We, at my company, are quite new working with Outsystems Platform. Some few days ago I did a minor upgrade from 9.0.0.2 to 9.0.0.19 version. Following the Upgrade Guide is a straightforward process but there is a point where things can become complicated: we have to republish every application and module manually, being specially carefull with dependencies.


I think it would be really nice that this process could be automated as a taks performed inside the platform.


What do you think?

It would be nice if it was part of the upgrade process. After doing it once or twice it isn't too bad to just make the solution and re-publish it, but I agree that making it automatic (or an option to do it as part of the upgrade) would be great.

J.Ja

Hi Johannes,


Currently, the platform does require the republish of the applications after an upgrade. Since O10, the whole installation process can automated using the Unattended Installation API. You can check it here.  

The OSPTool has a command that allow you to republish the entire factory without the need of create an solution first:

  • outsystems_common_path\OSPTool.com /PublishFactory hostname username password

This doesn't solve possible problems with broken dependencies between the versions but allow you to automate the upgrade process.


Does this address your concerns?

Changed the status to
Implemented
on 19 Apr 2018

I will mark this as implemented with the deliver of an Unattended Installation API that allow you to automate all the process including the republish of the factory. Drop us a line or submit a new idea if there is something in your mind that you like us to improve.

Best regards

I don't think that telling people to write a bunch of code and somehow test it to get an unattended installation is what people asked for. That's a nice thing to have in a large very enterprise/DevOps environment, but that does NOT describe most current customers. Especially since so many on-prem customers only upgrade a few times a year. The "cost" to automate this process is far higher than the cost of doing it manually.

If there is an idea for "we want an API for an unattended installation/upgrade" that should get marked as "implemented",  but what people are asking for here was not a method to automate upgrades, but a way to make manual upgrades easier.

J.Ja

Changed the status to
On our RadarOn our radar

Thanks for your feedback JJ. That was exactly the kind of answer or feedback that I wanted when I first reply to the thread.

We will keep this marked as in our radar to keep discussing this topic.

Cheers

Merged this idea with 'Automate the platform upgrade process' (created on 06 Feb 2019 20:44:48 by John Williams)

Currently after an environment upgrade we are asked to republish all espaces as per the instruction on this page

https://success.outsystems.com/Support/Enterprise_Customers/Upgrading/Upgrade_your_applications_to_a_new_OutSystems_Platform_version

In our environment we have over 1000 espaces and every time we follow those instructions and try to add all espaces to a solution  there is a significant delay followed by and "Internal Error" most likely due to timeouts (Yes we have raised a support ticket). We then have to add every espace in groups of around 10 which takes hours due to the delay between each add.

It would be far simpler if there was an automated upgrade process that simply republished any espace that had not been published since the last upgrade.

This isn't a new issue by the way, so far I've done around 4 platform upgrades and not one of them has gone without some sort of error, including this particular error.



This comment was:
- originally posted on idea 'Automate the platform upgrade process' (created on 06 Feb 2019 by John Williams)
- merged to idea 'Autopublish applications after upgrade' on 07 Feb 2019 20:21:35 by Justin James
2014-02-07 17-02-43
Vasco Pessanha
Changed the category to
Install Processes


This comment was:
- originally posted on idea 'Automate the platform upgrade process' (created on 06 Feb 2019 by John Williams)
- merged to idea 'Autopublish applications after upgrade' on 07 Feb 2019 20:21:35 by Justin James

Hi John,

Thank you for your contribution. We merged your idea with a previous one that already existed with the same purpose.

Regarding your comment in concrete, I would like to ask you a couple of questions:

  1. You mentioned that during the republishing of your factory, a publication that evolves all content (around 1000 eSpaces), you end up on getting Internal Errors. Can you elaborate what kind of error or message does it show?
  2. Currently, there is a way to trigger that operation (republish the whole factory) via OSPTool. You can find the documentation of that API here.  Let me speculate a bit: imagine that after an update when the installation of the Service Center ended, you were prompted if you want to republish all factory for that environment? (something that you need to do since it's a mandatory step from the installation checklist). Do you think that having it more visible and actionable would help?

Cheers!

Hi Tiago, 

For point 1, That was the exact error message, just "Internal Error" nothing else. Support helped me with the actual issue in the end, there was a timeout during the addition of all espaces, most likely due to the number of espaces and the size of the espace version entities.

For Point 2, yes that would help, however what would be far more useful is for the dev environments to just automatically proceed with the republish as part of the platform upgrade. During this upgrade process it took me over 15 hours (no I'm not exaggerating, included having to restart half way due to the IIS app pool being recycled by support troubleshooting the first issue)

Because the republish is mandatory it would save lot of time and outage if support could just trigger the process for us after they finish the base environment upgrade.   Not for Production though, I agree that we need a lot more control and transparency for that environment.

Thanks for your insights John.

Just to clarify, in this particular case, you are talking about an environment hosted in our OutSystems Cloud right?

Yes this is a cloud hosted system.

Merged this idea with 'Add new feature for automatically publish the factory after Platform Server upgrade' (created on 01 Jul 2021 11:07:44 by André Nunes)

Based on a recent experience, our servers were upgraded to the latest version of Platform Server (11.12). Since it was a Flexible Upgrade, there was a pre-compilation of the factory. 

However, for this specific version jump, there was the need to republish the factory right after the upgrade was done since the upgrade introduced a new fix, but if our modules were not running the updated version, it was introducing a problem with our AD login. The solution to this problem was to republish the factory.

Going back to the suggestion, I think it would be good if there was a switch controller to toggle between automatically publishing or stay in the compilation stage. For cases like the one I described, it would be ideal, since normally the upgrades are done during the night period and it's difficult to be present at the moment the upgrade finishes, to manually republish the factory. 



This comment was:
- originally posted on idea 'Add new feature for automatically publish the factory after Platform Server upgrade' (created on 01 Jul 2021 by André Nunes)
- merged to idea 'Autopublish applications after upgrade' on 03 Jul 2021 03:09:51 by Justin James
Merged this idea with 'PaaS Upgrades should automatically republish all modules' (created on 14 Aug 2018 13:40:02 by Justin James)

Upgrading the PaaS Environment should automatically republish all modules, so we don't get error messages about "this module has not been published since the last server upgrade" and the difficulties in publishing consumers of those modules that results.

J.Ja



This comment was:
- originally posted on idea 'PaaS Upgrades should automatically republish all modules' (created on 14 Aug 2018 by Justin James)
- merged to idea 'Autopublish applications after upgrade' on 03 Jul 2021 03:10:40 by Justin James

Should this depend on how significant the upgrade is, i.e. minor upgrades = yes, major upgrades (or breaking changes) = no?



This comment was:
- originally posted on idea 'PaaS Upgrades should automatically republish all modules' (created on 14 Aug 2018 by Justin James)
- merged to idea 'Autopublish applications after upgrade' on 03 Jul 2021 03:10:40 by Justin James

It should be dev environment only, and it shouldn't matter because if there are breaking changes, your dev environment is going to be a mess anyways.

J.Ja



This comment was:
- originally posted on idea 'PaaS Upgrades should automatically republish all modules' (created on 14 Aug 2018 by Justin James)
- merged to idea 'Autopublish applications after upgrade' on 03 Jul 2021 03:10:40 by Justin James
2018-05-09 09-20-09
Paulo Costa
Changed the category to
Cloud
and the status to
On our RadarOn our radar

Changing this to "cloud" and placing it under our radar.



This comment was:
- originally posted on idea 'PaaS Upgrades should automatically republish all modules' (created on 14 Aug 2018 by Justin James)
- merged to idea 'Autopublish applications after upgrade' on 03 Jul 2021 03:10:40 by Justin James
Merged this idea with 'Automatic factory publish after server upgrade' (created on 04 Mar 2021 10:17:16 by João Rafael Capucha)

This comment was:
- originally posted on idea 'PaaS Upgrades should automatically republish all modules' (created on 14 Aug 2018 by Justin James)
- merged to idea 'Autopublish applications after upgrade' on 03 Jul 2021 03:10:40 by Justin James

Hello,


The idea here is that Outsystems automatically publish the factory after a server upgrade. Step by step the idea is:

  1. Download all factory
  2. Upgrade the server version
  3. Publish all the factory
    1. If goes well, OK to client
    2. Else roll back with the downloaded version.

This idea came up due to three or four teams, containing 4 or 5 peopple each team, loosing a morning of work after a server upgrade. Lucky one of the teams has a lot of experience and solve the issue in one morning, but it could be avoided and if those persons weren't there it would be another support case for Outsystems.

Thanks



This comment was:
- originally posted on idea 'Automatic factory publish after server upgrade' (created on 04 Mar 2021 by João Rafael Capucha)
- merged to idea 'PaaS Upgrades should automatically republish all modules' on 07 Mar 2021 19:41:53 by Justin James


This comment was:
- originally posted on idea 'PaaS Upgrades should automatically republish all modules' (created on 14 Aug 2018 by Justin James)
- merged to idea 'Autopublish applications after upgrade' on 03 Jul 2021 03:10:40 by Justin James

I'm wondering, It is so basic and almost all the users faced this issue at least once by now. Why no one thought of putting this as an idea. (Asking myself as well)

+1 to the idea.



This comment was:
- originally posted on idea 'Automatic factory publish after server upgrade' (created on 04 Mar 2021 by João Rafael Capucha)
- merged to idea 'PaaS Upgrades should automatically republish all modules' on 07 Mar 2021 19:41:53 by Justin James


This comment was:
- originally posted on idea 'PaaS Upgrades should automatically republish all modules' (created on 14 Aug 2018 by Justin James)
- merged to idea 'Autopublish applications after upgrade' on 03 Jul 2021 03:10:40 by Justin James