Migration Failing

Moderator: crythias

Locked
BenI
Znuny newbie
Posts: 72
Joined: 18 Mar 2014, 13:09
Znuny Version: 5.0.19
Real Name: Ben Ipinge
Company: Telecom Namibia

Migration Failing

Post by BenI »

Good day,

We are busy migrating from OTRS 4.0.11 to 5, we are using the upgrade material https://otrs.github.io/doc/manual/admin ... ading.html, and we are now at point 6.1. However, when we run

Code: Select all

su -c "scripts/DBUpdate-to-5.pl" -s /bin/bash otrs
database update script, we receive the following error:

Code: Select all

Step 7 of 16: Migrate notifications to event based notifications...[Tue Nov  3 09:05:20 2015] DBUpdate-to-5.pl: Use of uninitialized value within %NotificationListReverse in hash element at scripts/DBUpdate-to-5.pl line 1099.
Can't use an undefined value as a HASH reference at scripts/DBUpdate-to-5.pl line 1190.
What are we doing wrong?

Regards,
BenI
Znuny newbie
Posts: 72
Joined: 18 Mar 2014, 13:09
Znuny Version: 5.0.19
Real Name: Ben Ipinge
Company: Telecom Namibia

Re: Migration Failing

Post by BenI »

I managed to get the DB update script to run with errors after exiting the console and logging in again. I ran this command again without trying any user switch switch

Code: Select all

su -c "scripts/DBUpdate-to-5.pl" -s /bin/bash otrs
and the migration script completed with these errors

Code: Select all

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_MigrateConfigs Line: 1546
   Module: scripts/DBUpdate-to-5.pl Line: 158

...done.
--- FilterText modules......done.
done.

Step 11 of 16: Add TicketZoom menu cluster configurations...ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

ERROR: OTRS-DBUpdate-to-5.pl-03 Perl: 5.16.3 OS: linux Time: Tue Nov  3 15:23:59 2015

 Message: Can't write /opt/otrs/Kernel/Config/Files/ZZZAuto.pm: Permission denied

 Traceback (20547):
   Module: Kernel::System::SysConfig::ConfigItemUpdate Line: 405
   Module: main::_AddZoomMenuClusters Line: 1663
   Module: scripts/DBUpdate-to-5.pl Line: 158

...done.
done.
Which seems like a permission issue.

Can we continue to refresh the configuration caches and deleting caches?
BenI
Znuny newbie
Posts: 72
Joined: 18 Mar 2014, 13:09
Znuny Version: 5.0.19
Real Name: Ben Ipinge
Company: Telecom Namibia

Re: Migration Failing

Post by BenI »

I decided to continue with Step 7 and ran the following commands to delete and rebuild the cache

Code: Select all

su -c "bin/otrs.Console.pl Maint::Config::Rebuild" -s /bin/bash otrs
su -c "bin/otrs.Console.pl Maint::Cache::Delete" -s /bin/bash otrs
I then started the services as per Step 8 and it appears to have all the necessary data as it was before.
BenI
Znuny newbie
Posts: 72
Joined: 18 Mar 2014, 13:09
Znuny Version: 5.0.19
Real Name: Ben Ipinge
Company: Telecom Namibia

Re: Migration Failing

Post by BenI »

Everything seems to be in working condition.

Hope this helps someone else.
Locked