Upgrading from 2.4.8 to 3.0.8 on Server 2008 w/mssql DB
Moderator: crythias
-
- Znuny newbie
- Posts: 4
- Joined: 08 Nov 2010, 21:19
- Znuny Version: 2.3.2
Upgrading from 2.4.8 to 3.0.8 on Server 2008 w/mssql DB
I am upgrading from OTRS 2.4.8 to 3.0.8 on Windows Server 2008 with a mssql DB on a separate server. I understand how to backup my old system and then uninstall the version 2.4.8. But I can't find any documentation that will help me figure out how to get the new installation "talking" to my mssql DB again. What I have tried so far is installing the new version then replacing the Config.pm file. No dice. Tried installing it as if it is a "new" install, letting it create it's own new DB with mysql then replacing the Config.pm file, still now dice. I always end up with a permissions error for otrs@localhost.
Can anyone point me to documentation or give me step by step installation instructions to get me up and running again?
Can anyone point me to documentation or give me step by step installation instructions to get me up and running again?
Robyn
OTRS 3.0.8
Windows Virtual Server 2008
mssql
OTRS 3.0.8
Windows Virtual Server 2008
mssql
-
- Znuny superhero
- Posts: 723
- Joined: 10 Oct 2007, 14:30
- Znuny Version: 3.0
- Location: Hamburg, Germany
Re: Upgrading from 2.4.8 to 3.0.8 on Server 2008 w/mssql DB
Please read the UPGRADING file in your OTRS 3.0.8 homedir carefully!
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
-
- Znuny newbie
- Posts: 4
- Joined: 08 Nov 2010, 21:19
- Znuny Version: 2.3.2
Re: Upgrading from 2.4.8 to 3.0.8 on Server 2008 w/mssql DB
Right in the beginning of the instructions UPGRADING in C:\Program Files\OTRS|OTRS\ it says:
These instructions are for people upgrading OTRS from "2.4" to "3.0", and applies both for RPM and source code (tarball) upgrades.
Aren't both of those upgrades for Linux?
I am not seeing any instructions for Windows users with an external mssql database.
These instructions are for people upgrading OTRS from "2.4" to "3.0", and applies both for RPM and source code (tarball) upgrades.
Aren't both of those upgrades for Linux?
I am not seeing any instructions for Windows users with an external mssql database.
Robyn
OTRS 3.0.8
Windows Virtual Server 2008
mssql
OTRS 3.0.8
Windows Virtual Server 2008
mssql
-
- Znuny superhero
- Posts: 723
- Joined: 10 Oct 2007, 14:30
- Znuny Version: 3.0
- Location: Hamburg, Germany
Re: Upgrading from 2.4.8 to 3.0.8 on Server 2008 w/mssql DB
Just take these steps and do it under windows.
At the very least what you have forgotten is to set permissions, RebuildConfig and DeleteCache. Did you run the migration scripts before starting Apache/IIS?
At the very least what you have forgotten is to set permissions, RebuildConfig and DeleteCache. Did you run the migration scripts before starting Apache/IIS?
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
-
- Znuny newbie
- Posts: 4
- Joined: 08 Nov 2010, 21:19
- Znuny Version: 2.3.2
Re: Upgrading from 2.4.8 to 3.0.8 on Server 2008 w/mssql DB
These are the steps I took:
1. Backed up
Kernel/Config.pm
Kernel/Config/GenericAgent.pm
Kernel/Config/Files/ZZZAuto.pm
and also saved the c:/Program Files/OTRS/OTRS folder to my desktop
I did not back up the database because it is not on the OTRS server but on an mssql server being backed up regularly
2. Uninstalled OTRS 2.4.8
3. Installed OTRS 3.0.9
I did not run the Web Installer
stopped the Apache 2.2 service
4. Copied the original files from previous installation back:
Kernel/Config.pm
Kernel/Config/GenericAgent.pm
Kernel/Config/Files/ZZZAuto.pm
5. Set file permissions by running bin/otrs.SetPermissions.pl perl script
6. run the migration script: at scripts/DBUpdate-to-3.0.pl
applied the database changes at: scripts/DBUpdate-to-3.0-post.mssql.sql
Refreshed the configuration cache and delete caches by running perl script in: bin/otrs.RebuildConfig.pl and bin/otrs.DeleteCache.pl
Restarted services:
Apache 2.2
Cron Service
used the OTRS Agent Interface icon to launch http://localhost/otrs/index.pl
Tried logging in as my original user from previous install and received the message:
Panic, user authenticated but no user data can be found in OTRS DB!! Perhaps the user is invalid
Tried logging in as otrs password hot and received the message:
Login failed! Your username or password was entered incorrectly
Tried logging in as root@localhost no password and received the error and with password root and received the message: Login failed! Your username or password was entered incorrectly
Tried logging in as root@localhost password root and received the message: Panic, user authenticated but no user data can be found in OTRS DB!! Perhaps the user is invalid
I checked the ODBC OTRS SQL Server connection and was able to successfully connect to the mssql database with my original installation otrs user configuration.
Not sure what to do next
1. Backed up
Kernel/Config.pm
Kernel/Config/GenericAgent.pm
Kernel/Config/Files/ZZZAuto.pm
and also saved the c:/Program Files/OTRS/OTRS folder to my desktop
I did not back up the database because it is not on the OTRS server but on an mssql server being backed up regularly
2. Uninstalled OTRS 2.4.8
3. Installed OTRS 3.0.9
I did not run the Web Installer
stopped the Apache 2.2 service
4. Copied the original files from previous installation back:
Kernel/Config.pm
Kernel/Config/GenericAgent.pm
Kernel/Config/Files/ZZZAuto.pm
5. Set file permissions by running bin/otrs.SetPermissions.pl perl script
6. run the migration script: at scripts/DBUpdate-to-3.0.pl
applied the database changes at: scripts/DBUpdate-to-3.0-post.mssql.sql
Refreshed the configuration cache and delete caches by running perl script in: bin/otrs.RebuildConfig.pl and bin/otrs.DeleteCache.pl
Restarted services:
Apache 2.2
Cron Service
used the OTRS Agent Interface icon to launch http://localhost/otrs/index.pl
Tried logging in as my original user from previous install and received the message:
Panic, user authenticated but no user data can be found in OTRS DB!! Perhaps the user is invalid
Tried logging in as otrs password hot and received the message:
Login failed! Your username or password was entered incorrectly
Tried logging in as root@localhost no password and received the error and with password root and received the message: Login failed! Your username or password was entered incorrectly
Tried logging in as root@localhost password root and received the message: Panic, user authenticated but no user data can be found in OTRS DB!! Perhaps the user is invalid
I checked the ODBC OTRS SQL Server connection and was able to successfully connect to the mssql database with my original installation otrs user configuration.
Not sure what to do next
Robyn
OTRS 3.0.8
Windows Virtual Server 2008
mssql
OTRS 3.0.8
Windows Virtual Server 2008
mssql
-
- Znuny expert
- Posts: 250
- Joined: 12 Oct 2010, 01:35
- Znuny Version: 3.0.9
- Company: LRS Health
Re: Upgrading from 2.4.8 to 3.0.8 on Server 2008 w/mssql DB
Everything looks to be in order...
It seems OTRS cannot talk to the MSSQL, is something like OTRS\scripts\apache2-perl-startup.pl not set-up correctly for your database?
btw, otrs.SetPermissions.pl is for linux only
It seems OTRS cannot talk to the MSSQL, is something like OTRS\scripts\apache2-perl-startup.pl not set-up correctly for your database?
btw, otrs.SetPermissions.pl is for linux only
OTRS: 3.0.9 & ITSM 3.0.4 - OS: Windows 7 - DB: MySQL - Heaps of random/useful hacks 
[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText

[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText
-
- Znuny superhero
- Posts: 723
- Joined: 10 Oct 2007, 14:30
- Znuny Version: 3.0
- Location: Hamburg, Germany
Re: Upgrading from 2.4.8 to 3.0.8 on Server 2008 w/mssql DB
I am not sure whether these changes were in between 2.3 to 2.4 or from 2.4 to 3.0, but some fields in the mapping as well as user table has been renamed. Have a look at your db structure and make sure it matches the one from your config.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
-
- Znuny newbie
- Posts: 4
- Joined: 08 Nov 2010, 21:19
- Znuny Version: 2.3.2
Re: Upgrading from 2.4.8 to 3.0.8 on Server 2008 w/mssql DB
Got it! almost
Here the breakdown again of what I did. (I am still having issues with the ZZZAuto.pm file.)
These are the steps I took:
1. Backed up
Kernel/Config.pm
Kernel/Config/GenericAgent.pm
Kernel/Config/Files/ZZZAuto.pm
and also saved the c:/Program Files/OTRS/OTRS folder to my desktop
I did not back up the database because it is not on the OTRS server but on an mssql server being backed up regularly
2. Uninstalled OTRS 2.4.8
3. Installed OTRS 3.0.9
I did not run the Web Installer
stopped the Apache 2.2 service and Cron service
4. Copied the original files from previous installation back:
Kernel/Config.pm
Kernel/Config/GenericAgent.pm
Kernel/Config/Files/ZZZAuto.pm -(I had to remove this one and restore the original from the new installation. See below)
5. Applied the database changes by running the following scripts on the mssql server: scripts/DBUpdate-to-3.0-post.mssql.sql and scripts/DBUpdate-to-3.0-post.mssql.sql
Restarted services:
Apache 2.2
Cron Service
After restoring the Kernel/Config/Files/ZZZAuto.pm - When I would try and create a new ticket I would receive the error message:
Core.Agent.CustomerSearch is undefined
(?)()@http://help/otrs/index.pl?Action=AgentTicketPhone:708
Ready((function (j, s) {return new b.fn.init(j, s);}))@http://help/otrs-web/js/js-cache/Common ... ab1.js:582
trigger()@http://help/otrs-web/js/js-cache/Common ... fab1.js:37
trigger([object Event])@http://help/otrs-web/js/js-cache/Common ... fab1.js:37
and I lose my connection to the LDAP for the from customer field. Not sure what I am missing for that yet but if I figure it out I will update the forum.
I had to remove the ZZZAuto.pm from the previous installation and restore the original from the new installation which removed any customization I had to the tickets but allowed me to create a new ticket successfully.
Here the breakdown again of what I did. (I am still having issues with the ZZZAuto.pm file.)
These are the steps I took:
1. Backed up
Kernel/Config.pm
Kernel/Config/GenericAgent.pm
Kernel/Config/Files/ZZZAuto.pm
and also saved the c:/Program Files/OTRS/OTRS folder to my desktop
I did not back up the database because it is not on the OTRS server but on an mssql server being backed up regularly
2. Uninstalled OTRS 2.4.8
3. Installed OTRS 3.0.9
I did not run the Web Installer
stopped the Apache 2.2 service and Cron service
4. Copied the original files from previous installation back:
Kernel/Config.pm
Kernel/Config/GenericAgent.pm
Kernel/Config/Files/ZZZAuto.pm -(I had to remove this one and restore the original from the new installation. See below)
5. Applied the database changes by running the following scripts on the mssql server: scripts/DBUpdate-to-3.0-post.mssql.sql and scripts/DBUpdate-to-3.0-post.mssql.sql
Restarted services:
Apache 2.2
Cron Service
After restoring the Kernel/Config/Files/ZZZAuto.pm - When I would try and create a new ticket I would receive the error message:
Core.Agent.CustomerSearch is undefined
(?)()@http://help/otrs/index.pl?Action=AgentTicketPhone:708
Ready((function (j, s) {return new b.fn.init(j, s);}))@http://help/otrs-web/js/js-cache/Common ... ab1.js:582
trigger()@http://help/otrs-web/js/js-cache/Common ... fab1.js:37
trigger([object Event])@http://help/otrs-web/js/js-cache/Common ... fab1.js:37
and I lose my connection to the LDAP for the from customer field. Not sure what I am missing for that yet but if I figure it out I will update the forum.
I had to remove the ZZZAuto.pm from the previous installation and restore the original from the new installation which removed any customization I had to the tickets but allowed me to create a new ticket successfully.
Robyn
OTRS 3.0.8
Windows Virtual Server 2008
mssql
OTRS 3.0.8
Windows Virtual Server 2008
mssql
-
- Znuny expert
- Posts: 250
- Joined: 12 Oct 2010, 01:35
- Znuny Version: 3.0.9
- Company: LRS Health
Re: Upgrading from 2.4.8 to 3.0.8 on Server 2008 w/mssql DB
Delete your caches? OTRS/var/tmp
OTRS: 3.0.9 & ITSM 3.0.4 - OS: Windows 7 - DB: MySQL - Heaps of random/useful hacks 
[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText

[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText
-
- Znuny superhero
- Posts: 723
- Joined: 10 Oct 2007, 14:30
- Znuny Version: 3.0
- Location: Hamburg, Germany
Re: Upgrading from 2.4.8 to 3.0.8 on Server 2008 w/mssql DB
At 5) you run the same SQL twice and you are missing the DBUpdate-to-3.0.pl script. See your UPGRADING file in OTRS root, point 9). Run this script as OTRS user!
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems