Closed fxlxx closed 1 year ago
Hi @fxlxx
thanks for the report. 1) Regarding the /otp/otrs path issue. I think you missed the correct setting for $HOME in you Kernel/Config.pm - could this be the case?
2) The error does only note already existing columns.
OAuth2Token: Column dbcrud_uuid in table oauth2_token... Column already exists
To explain this a bit more: The migration performs a check for certain columns from older Znuny packages and tries to migrate them. So a simple select is performed to check for them.
Like this one:
Jun 24 10:21:55 lxtts MigrateToZnuny6_5.pl-10[20637]: [Error][Kernel::System::DBCRUD::MigrateUUIDDatabaseTableColumns][Line:1828]: Unknown column 'database_backend_uuid' in 'field list', SQL: 'SELECT database_backend_uuid FROM oauth2_token LIMIT 1'
The column is not known because you did not had this package installed. But, the column (with a slightly different name - we removed the z4o prefix) is already available from an earlier version. We can not find the column => No migration is necessary.
So everything is fine, except maybe your $Home path in the Config.pm
Johannes
Hi @hanneshal
I think you missed the correct setting for $HOME in you Kernel/Config.pm - could this be the case?
From Kernel/Config.pm
$Self->{Home} = '/opt/otrs';
This should not be the problem.
Environment
Actual behaviour
https://doc.znuny.org/znuny_lts/releases/installupdate/update/update-6.5.html#
(Note: Update instructions are still for 6.5.2)
During the update process from version 6.5.1 to 6.5.3, errors occurred while executing the scripts/MigrateToZnuny6_5.pl script. However, despite the errors and creating the folder /opt/otrs/var/run after the failed first try, the migration script was successfully completed.
First try, missing folder /opt/otrs/var/run
Created the folder /opt/otrs/var/run and run script a second time:
From /var/log/syslog :
Checking the tables the fields do indeed not exist (example oauth2_token)
How to reproduce
Run upgrade process and scripts/MigrateToZnuny6_5.pl