OTRS 2.4.15 vs. Perl 5.18 (vor UPGRADE)

Hilfe zu Znuny Problemen aller Art
Locked
Schojo
Znuny expert
Posts: 181
Joined: 03 Jul 2007, 11:53
Znuny Version: 6.0.30
Real Name: Matthias
Location: /opt/otrs/

OTRS 2.4.15 vs. Perl 5.18 (vor UPGRADE)

Post by Schojo »

Moin zusammen,
ich habe auf einem neuen ubuntu Server 14.04.3 LTS einen apache2 und mysql-server installiert um dort ein OTRS 2.4.15 zu installieren.
Das sind Vorbereitungen zum Upgrade auf OTRS 5
Ich habe nun das Problem, dass ich den apache2 mit dem OTRS Include script nicht ans Laufen bekommen.
Sobald ich die *.conf Datei ins sites-enabled/ verlinke, will der nicht mehr starten.
Folgende Fehlermeldung:

Code: Select all

[Mon Nov 09 16:51:15.347116 2015] [perl:error] [pid 301] syntax error at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1092, near "$ArrayElement qw(Group GroupRo)"\nsyntax error at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1093, near "]{FrontendModuleReg"\nsyntax error at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1093, near "]{"\nGlobal symbol "$ArrayElement" requires explicit package name at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1093.\nGlobal symbol "$Self" requires explicit package name at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1095.\nGlobal symbol "$ArrayElement" requires explicit package name at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1096.\nGlobal symbol "$Index" requires explicit package name at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1098.\nGlobal symbol "%ItemHash" requires explicit package name at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1099.\nGlobal symbol "%ItemHash" requires explicit package name at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1101.\nGlobal symbol "$ArrayElement" requires explicit package name at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1101.\nGlobal symbol "$Index" requires explicit package name at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1101.\nGlobal symbol "%Data" requires explicit package name at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1112.\nGlobal symbol "%Data" requires explicit package name at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1113.\nGlobal symbol "%ItemHash" requires explicit package name at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1116.\nGlobal symbol "%Data" requires explicit package name at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1120.\nGlobal symbol "%ItemHash" requires explicit package name at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1121.\nGlobal symbol "$Index" requires explicit package name at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1121.\nGlobal symbol "$Self" requires explicit package name at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1127.\nsyntax error at /opt/otrs/Kernel/Modules/AdminSysConfig.pm line 1133, near "$ArrayElement qw(Group GroupRo)"\n/opt/otrs/Kernel/Modules/AdminSysConfig.pm has too many errors.\nCompilation failed in require at /opt/otrs/scripts/apache2-perl-startup.pl line 178.\nBEGIN failed--compilation aborted at /opt/otrs/scripts/apache2-perl-startup.pl line 178.\nCompilation failed in require at (eval 2) line 1.\n
[Mon Nov 09 16:51:15.347207 2015] [perl:error] [pid 301] Can't load Perl file: /opt/otrs/scripts/apache2-perl-startup.pl for server S230OT02.itservice.net:0, exiting...
Nehme ich die Verlinkung raus funktioniert alles wunderbar. Also der Apache. Ich musste auch in der HTMLConfig.pm schon eine Zeile anpassen, damit das neue Perl das versteht. Installiert ist perl-5.18 und auf dem produktiven Server 5.14.2
Jegliche Google-Versuche zum Thema downgrade sind bisher gescheitert...

Hat hier Jemand ne Idee? Ich wollte den neuen Server aufsetzen, über restore.pl unseren produktiven Stand reinladen und von da aus mit dem UPGRADE loslegen.

Gruß, schojo
produktiv_vm: OTRS 6.0.30 - ubuntu Server 18.04.5 LTS - mysql-server 5.7.33
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS 2.4.15 vs. Perl 5.18 (vor UPGRADE)

Post by jojo »

der Apache muss für die Migration nicht laufen. Eine OTRS 2.4. wird nicht mit dem PERL Stand suaber funktionieren.

Vorschlag:
OTRS 3.0.latest installieren
2.4er Datenbank Dump einspielen
Config der 2.4. kopieren
-> Migration auf die 3.0 starten

Von der restore.pl würde ich immer tunlichst die Finger weglassen!
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Schojo
Znuny expert
Posts: 181
Joined: 03 Jul 2007, 11:53
Znuny Version: 6.0.30
Real Name: Matthias
Location: /opt/otrs/

Re: OTRS 2.4.15 vs. Perl 5.18 (vor UPGRADE)

Post by Schojo »

jojo wrote:der Apache muss für die Migration nicht laufen. Eine OTRS 2.4. wird nicht mit dem PERL Stand suaber funktionieren.

Vorschlag:
OTRS 3.0.latest installieren
2.4er Datenbank Dump einspielen
Config der 2.4. kopieren
-> Migration auf die 3.0 starten

Von der restore.pl würde ich immer tunlichst die Finger weglassen!
ist die restore.pl echt so schlecht?
schiebe mir gerade das backup rüber. hatte sowas wie du sagst schon vor...einfach die DB sauber importieren und dann eben ohne web weitermachen.
oder eben mit den 2.4er scripts die DB sauber anzulegen, da der installer.pl ja nie gelaufen ist auf der maschine.
legt der außer config.pm und datenbank denn noch mehr an?
produktiv_vm: OTRS 6.0.30 - ubuntu Server 18.04.5 LTS - mysql-server 5.7.33
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: OTRS 2.4.15 vs. Perl 5.18 (vor UPGRADE)

Post by wurzel »

Hi,

das restore.pl ist nicht soooo schlecht. Braucht aber 'ne leere Datenbank. Manchmal ist es schneller, wenn man manuell dumped/restored. Für Migrationen nehme ich das Skript nicht, wohl aber für Disaster Recovery.

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Schojo
Znuny expert
Posts: 181
Joined: 03 Jul 2007, 11:53
Znuny Version: 6.0.30
Real Name: Matthias
Location: /opt/otrs/

Re: OTRS 2.4.15 vs. Perl 5.18 (vor UPGRADE)

Post by Schojo »

bei der Installation von 3.0.22 kommt nun übrigens wieder der HTMLUtils.pm Fehler.
Bei der Syntaxkontrolle per perl -cw bin/cgi-bin/index.pl kommt folgendes:

Code: Select all

defined(@array) is deprecated at /opt/otrs/bin/cgi-bin/../../Kernel/cpan-lib/CGI.pm line 528.
        (Maybe you should just omit the defined()?)
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm: In '(?...)', splitting the initial '(?' is deprecated in regex; marked by <-- HERE in m/
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:         (                                          # $1 greater-than and less-than sign
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:             > | < | \s+ | \#{6} |
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:             (?: &[a-zA-Z0-9]+; )                   # get html entities
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:         )
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:         (                                          # $2
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:             (?:                                    # http or only www
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 (?: (?: http s? | ftp ) :\/\/) |   # http://,https:// and ftp://
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 (?: (?: www | ftp ) \.)            # www. and ftp.
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:             )
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:         )
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:         (                                          # $3
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:             (?: [a-z0-9\-]+ \. )*                  # get subdomains, optional
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:             [a-z0-9\-]+                            # get top level domain
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:             (?:                                    # file path element
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 [\/\.]
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 | [a-zA-Z0-9\-]
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:             )*
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:             (?:                                    # param string
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 [\?]                               # if param string is there, "?" must be present
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 [a-zA-Z0-9&;=%]*                   # param string content, this will also catch entities like &
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:             )?
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:             (?:                                    # link hash string
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 [\#]                               #
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 [a-zA-Z0-9&;=%]*                   # hash string content, this will also catch entities like &
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:             )?
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:         )
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:         (                                          # $4
[b][Tue Nov 10 12:24:47 2015] HTMLUtils.pm:             ? <-- HERE =(?:[/b]
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 [\?,;!\.\)] (?: \s | $ )           # \)\s this construct is because of bug# 2450
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 | \"
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 | \]
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 | \s+
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 | '
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 | >                               # greater-than and less-than sign
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 | <                               # "
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 | (?: &[a-zA-Z0-9]+; )+            # html entities
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:                 | $                                # bug# 2715
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:             )
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:             | \#{6}                                # ending LinkHash
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:         )
[Tue Nov 10 12:24:47 2015] HTMLUtils.pm:     / at /opt/otrs/bin/cgi-bin/../../Kernel/System/HTMLUtils.pm line 855.
bin/cgi-bin/index.pl syntax OK
Sollte ich mich darum kümmern oder ignorieren, da wir eh upgraden?
produktiv_vm: OTRS 6.0.30 - ubuntu Server 18.04.5 LTS - mysql-server 5.7.33
Schojo
Znuny expert
Posts: 181
Joined: 03 Jul 2007, 11:53
Znuny Version: 6.0.30
Real Name: Matthias
Location: /opt/otrs/

Re: OTRS 2.4.15 vs. Perl 5.18 (vor UPGRADE)

Post by Schojo »

Habs so gemacht wie du sagtest:
drop database otrs;
create database otrs;
mysql -f -u root -p --local otrs < DatabaseBackup.sql
...und dann UPGRADING weiter verfolgt.
Sieht bisher gut aus, Freitag dann die Produktiv-VM :)
produktiv_vm: OTRS 6.0.30 - ubuntu Server 18.04.5 LTS - mysql-server 5.7.33
Locked