Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 6.x > Installation and deployment > Deploying Hot Fix 23 to a Production Server View modes: 
User avatar
Member
Member
renato.silva-bigroup.com - 3/28/2012 8:40:37 PM
   
Deploying Hot Fix 23 to a Production Server
I managed to upgrade my development environment (on my local PC) from 6.04 to 6.23 (SP1) with no major drama.

However, I tried to deploy the upgraded Kentico to the host (Windows 2008) by extracting the Installation files and sending them via FTP to the server - and for some reason the extracted files were 6.04.

Does anyone have a 'How to guide' that explains how to do incremental changes on the production server, or can explin what process I should be following?

Thanks

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/29/2012 1:14:15 AM
   
RE:Deploying Hot Fix 23 to a Production Server
Hi,

Could you please describe the exact steps? Have you read the instructions document and the section how to create/prepare the files structure for deployment to other server?

Best regards,
Juraj Ondrus

User avatar
Member
Member
renato.silva-bigroup.com - 6/26/2012 2:34:40 AM
   
RE:Deploying Hot Fix 23 to a Production Server - now to Hot Fix 38
Hi Juraj,

Here we go again. I need to upgrade the production server again.

I know how to extract the files and ftp them to the correct location on the server.
However, I have a live site there (an e-shop).

When I upgrade the local host instance, it backs up the database, recreates all the database objects, as well as the files.

However, how can I do exactly the same on the productoin server?

Furthermore, if I export the site onto a zip file, updgrade files and recreate the database, it crashes when I try to reimport the site - how do I prevent that?

Thanks

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/26/2012 9:30:33 AM
   
RE:Deploying Hot Fix 23 to a Production Server - now to Hot Fix 38
Hi,

If you cannot run the hotfix utility on the live server, you need to create the backups manually - copy the project folder somewhere and create the DB backup using the SQL management studio.

Regarding the second issue - what exactly you mean by it crashes? Do you have any more details what is going on e.g. an error message?

Best regards,
Juraj Ondrus

User avatar
Member
Member
renato.silva-bigroup.com - 6/26/2012 10:40:10 AM
   
RE:Deploying Hot Fix 23 to a Production Server - now to Hot Fix 38
I would like to explore two areas:

- the server is running windows 2008 - I can only access it via Ftp, and I can copy files onto it. is there a version of IM that I can install on the server.... Or that can reach the server from my pc?

- for the "copy the project" folder option... i have a site on the production server that i want to preserve. i would like yo have a clear picture of the steps i need to follow in order to upgrade it. Should it be?

1) export site from site manager (onto zip file)
2) backup database via sql mgr and backup project file just in case
3) copy project files from pc to prod server, via ftp

now i should have a db on the server which is incompatible with the new project files.
What should be my next steps?

Assuming i would now recreate the database from scratch and reimport the site from the site backup... Would i not have a conflict between the exported site and the new cms version?

Thanks.


User avatar
Member
Member
renato.silva-bigroup.com - 6/26/2012 10:42:04 AM
   
RE:Deploying Hot Fix 23 to a Production Server - now to Hot Fix 38
Regarding the crash, i will post the exact error message the next time i have a problem retoring a site,

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/26/2012 4:38:15 PM
   
RE:Deploying Hot Fix 23 to a Production Server - now to Hot Fix 38
Hi,

If you have the access only via FTP, then you need to use the deployment option to apply the hotfix.

The export of the site is not necessary if you are having a full DB backup.
Once you have copied the deployment files to the server, you need to also apply the SQL script over the database. It is mentioned in the instructions as an important note:

"The Hotfix Utility in deployment mode only creates files necessary for updating your web project. It does not update your database. In order to update the database, run the SQL script from the SQL folder located in the Hotfix installation folder."


Best regards,
Juraj Ondrus

User avatar
Member
Member
renato.silva-bigroup.com - 6/26/2012 6:13:57 PM
   
RE:Deploying Hot Fix 23 to a Production Server - now to Hot Fix 38
Thanks for the information, Juraj.

i am having some problems finding the instructions above. CouLd you please send me a link to them?

Thanks
Renato

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/26/2012 7:24:07 PM
   
RE:Deploying Hot Fix 23 to a Production Server - now to Hot Fix 38
Hi,

If you have downloaded and installed the hotfix exe file, the instructions are in the installation directory you have selected. By default it should be c:\Program Files (x86)\KenticoCMS\6.0\Hotfix60_XX\ or when using the KIm locally: c:\ProgramData\KIM\Hot6_0_XX\

Best regards,
Juraj Ondrus

User avatar
Member
Member
renato.silva-bigroup.com - 6/26/2012 7:32:20 PM
   
RE:Deploying Hot Fix 23 to a Production Server - now to Hot Fix 38
Hi Juraj,

Thanks for the quick reply.

In fact, I updated my local version using the Installation Manager's Hotfix tool.

So, for the server I will download the .exe. and follow the instructions... all clear now.

And one more question..... are the hotfixes cumulative (i.e. to go from 24 to 38 I need to apply 25, 26, 27... until 38) or can I go straight to 38?

Thanks again for all the support.

Cheers
Renato

User avatar
Kentico Support
Kentico Support
kentico_radekm2 - 6/27/2012 1:03:07 AM
   
RE:Deploying Hot Fix 23 to a Production Server - now to Hot Fix 38
Hello.

Yes, they are cumulative, so you can apply the latest hotfix only.

Best Regards,
Radek Macalik

User avatar
Member
Member
Ren - 9/27/2012 4:20:38 PM
   
RE:Deploying Hot Fix 23 to a Production Server - now to Hot Fix 38
After I applied hotfix 51 via the method proposed above and and run SQL, I got the error below:

"Server Error in '/' Application.
--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'CMSPages_logon'.

Source Error:


Line 1: <%@ Page Language="C#" AutoEventWireup="true" Inherits="CMSPages_logon" Theme="Default"
Line 2: Codebehind="logon.aspx.cs" %>
Line 3:


Source File: /CMSPages/logon.aspx Line: 1 "

Have I missed anything?

User avatar
Member
Member
Ren - 9/28/2012 3:15:24 AM
   
RE:Deploying Hot Fix 23 to a Production Server - now to Hot Fix 38
I have deleted the temporary ASP.NET files to no avail.

I was hoping that by now someone would have a suggestion on how to address this.

Thannks

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 9/28/2012 8:51:42 AM
   
RE:Deploying Hot Fix 23 to a Production Server - now to Hot Fix 38
Hello,

Could you please try to change the page directive from:


<%@ Page Language="C#" AutoEventWireup="true" Inherits="CMSPages_logon" Theme="Default" Codebehind="logon.aspx.cs" %>

to:

<%@ Page Language="C#" AutoEventWireup="true" Inherits="CMSPages_logon" Theme="Default" CodeFile="logon.aspx.cs" %>


Additionally, does the Inherits="CMSPages_logon" attribute correspond with the class used in the code behind file?

Best regards,
Boris Pocatko

User avatar
Member
Member
Ren - 9/28/2012 7:37:45 PM
   
RE:Deploying Hot Fix 23 to a Production Server - now to Hot Fix 38
Thank you Boris, it does work.

I had to change 100s of files to get the upgrade to work (had to use a bulk update tool).

When I created the Hotfix export files, I used the option /deploy for asp.net 4 (my host uses .net 4).

Would there be a way for me to create the files with CodePage instead of Codebehind to start with?

Is there a way to incorporate that change in the Hotfix process?

Thanks
Renato

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/1/2012 3:51:58 AM
   
RE:Deploying Hot Fix 23 to a Production Server - now to Hot Fix 38
Hi,

it seems like you would installed web application on your development server and web project on your live server.

The option would be to create web project on your development server instead. It is recommended installation option in the installer. This way the files would be created with the CodeFile in its markup.

Then if you create the export or apply the hotfix it would have correct format.

Another idea is if you did not moved files from the hotfix manually. It contains files for both, web project and web application. It is converted according to your correct project version.

To apply hotfix without problems you can use Kentico Upgrade and Hotfix Utility.

Best regards,
Ivana Tomanickova