Fehler beim Upgrade auf OTRS 4

Hilfe zu Znuny Problemen aller Art
Locked
dschenk
Znuny newbie
Posts: 40
Joined: 07 Feb 2013, 16:47
Znuny Version: 3.3.1
Real Name: Dieter Schenk
Company: Rodlauer Computer

Fehler beim Upgrade auf OTRS 4

Post by dschenk »

Hallo
das update db script liefert mir den folgenden fehler

Can't use string ("") as a HASH ref while "strict refs" in use at scripts/DBUpdate-to-4.pl line 580.

kann mir jemand sagen wie ich das umgehe ?
wir verwenden oracle
danke lg
Dieter

im. Detail:
otrs@eotrs2 $ scripts/DBUpdate-to-4.pl

Migration started...

Step 1 of 15: Refresh configuration cache...
If you see warnings about 'Subroutine Load redefined', that's fine, no need to worry!
done.

Step 2 of 15: Check framework version... [Mon Sep 28 17:20:03 2015] DBUpdate-to-4.pl: Subroutine Load redefined at /opt/otrs/Kernel/Config/Files/ZZZAuto.pm line 7.
done.

Step 3 of 15: Migrate FontAwesome icons... done.

Step 4 of 15: Migrate ProcessManagement EntityIDs...
Process EntityIDs Migration Reference
PROCESS:
P3 Process-4b23861433eba51ade5ea00cd2c5cb94
P4 Process-b5911ebbb9a63deac362795e75f13c18

ACTIVITY:
A8 Activity-ed7662bc30b516cefc7038e24284ec30
A9 Activity-66a86a42d505b558ebaa3e932624f07d

ACTIVITY DIALOG:
AD4 ActivityDialog-dacdc396918802dac4b30814f9023c42
AD5 ActivityDialog-48ce0f9de4ccce5f164a299dfc02b5cd

TRANSITION:
T3 Transition-971bbfc4523b98a463086b00e2c5e21d

TRANSITION ACTION:
TA4 TransitionAction-ca6e259bb246d37106c586fbdf389e9c


Can't use string ("") as a HASH ref while "strict refs" in use at scripts/DBUpdate-to-4.pl line 580.
otrs@eotrs2 $ scripts/DBUpdate-to-4.pl

Migration started...

Step 1 of 15: Refresh configuration cache...
If you see warnings about 'Subroutine Load redefined', that's fine, no need to worry!
done.

Step 2 of 15: Check framework version... [Mon Sep 28 17:20:25 2015] DBUpdate-to-4.pl: Subroutine Load redefined at /opt/otrs/Kernel/Config/Files/ZZZAuto.pm line 7.
done.

Step 3 of 15: Migrate FontAwesome icons... done.

Step 4 of 15: Migrate ProcessManagement EntityIDs...
Process EntityIDs Migration Reference
PROCESS:
P3 Process-a5fa5b09216d957a1a5a5e659bd01894
P4 Process-0b17a85905b017afe6ad5fdc95ed89a3

ACTIVITY:
A8 Activity-a4d785c554fc91a7d062828ea08adbf8
A9 Activity-cbf093c248ad15c5f176323c1ef32d6e

ACTIVITY DIALOG:
AD4 ActivityDialog-c4aabb699041f55ed9b79a5eb7b3f162
AD5 ActivityDialog-b9d15befed48e253f1c14a477354cbc1

TRANSITION:
T3 Transition-6eac66d2cbce49f58beacec53ae4d3e9

TRANSITION ACTION:
TA4 TransitionAction-e53c6e789778a116e2fe60e1097ea608


Can't use string ("") as a HASH ref while "strict refs" in use at scripts/DBUpdate-to-4.pl line 580.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Fehler beim Upgrade auf OTRS 4

Post by RStraub »

Du schreibst nicht genau welche Version, ausgehend von der neusten wäre das diese Zeile:
https://github.com/OTRS/otrs/blob/rel-4 ... -4.pl#L580

Zumindest hat's was mit der Migration von Process-Entitäts IDs zu Unique IDs zu tun.

Ggf. habt ihr nicht ganz saubere Übergänge- /Übergangsaktionen.

Helfen würde es, wenn du aus deiner Version uns die Zeile 580 zeigst.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
dschenk
Znuny newbie
Posts: 40
Joined: 07 Feb 2013, 16:47
Znuny Version: 3.3.1
Real Name: Dieter Schenk
Company: Rodlauer Computer

Re: Fehler beim Upgrade auf OTRS 4

Post by dschenk »

hallo danke für die antwort
wir verwenden 4.0.12 und Oracle
hier ein ausschnitt - zeile 580
580 for my $ActivityEntityID ( sort keys %{ $Process->{Config}->{Path} } ) {

lg
Dieter

570 my $AttributeEntityID = $Process->{Config}->{"Start$Attribute"};
571 my $NewAttributeEntityID = $EntityLookup{$Attribute}->{$AttributeEntityID};
572 if ( !$NewAttributeEntityID ) {
573 die "Error: No new EntityID was created for $Attribute: $AttributeEntityID";
574 }
575 $Process->{Config}->{"Start$Attribute"} = $NewAttributeEntityID;
576 }
577
578 # set process path
579 my %NewPath;
580 for my $ActivityEntityID ( sort keys %{ $Process->{Config}->{Path} } ) {
581
582 # set new activity EntityID in process path
583 my $NewActivityEntityID = $EntityLookup{Activity}->{$ActivityEntityID};
584 if ( !$NewActivityEntityID ) {
585 die "Error: No new EntityID was created for Activity: $ActivityEntityID";
586 }
587
588 $NewPath{$NewActivityEntityID} = {};
589
590 # check if original action has configuration (e.g. last activity might be empty)
591 my $Activity = $Process->{Config}->{Path}->{$ActivityEntityID};
592
593 if ( IsHashRefWithData($Activity) ) {
594 for my $TransitionEntityID ( sort keys %{$Activity} ) {
595 my $Transition = $Activity->{$TransitionEntityID};
596 my $NewTransition;
597
598
dschenk
Znuny newbie
Posts: 40
Joined: 07 Feb 2013, 16:47
Znuny Version: 3.3.1
Real Name: Dieter Schenk
Company: Rodlauer Computer

Re: Fehler beim Upgrade auf OTRS 4

Post by dschenk »

behoben - falsche Berechtigungen auf die var verzeichnisse
Locked