OTRS 6 Upgrade - JSDataInsert: not found

Moderator: crythias

Post Reply
ruzzetto

OTRS 6 Upgrade - JSDataInsert: not found

Post by ruzzetto »

Hi All!
just trying to test new otrs 6 beta. Installation was fine but when i try to open login page (for agents) i have an issue like image attacched.
Anyone could help me?
You do not have the required permissions to view the files attached to this post.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by jojo »

did you do a clean install or a migration? If a migration: any errors in the script? any packages installed?
"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
ruzzetto

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by ruzzetto »

RPM installer gave me a lot of errors related to DB, but i think it was correct because the script to update DB was the next step. Script was fine excepts for a third party packages.......
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by jojo »

so please try the migration with a vanilla installation
"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
ruzzetto

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by ruzzetto »

jojo wrote:with a vanilla installation
....how? :)
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by jojo »

remove all modules before migration (it is a beta, so not intented for production use). Also no modules are migrated to OTRS6 actually
"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
ruzzetto

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by ruzzetto »

...unfortunately I have no much time spending in testing. Better to revert to backup...
root
Administrator
Posts: 3931
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by root »

After restating you should upgrade all package, even the 3rd party via shell.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
pfipf
Znuny advanced
Posts: 123
Joined: 14 Jul 2017, 09:30
Znuny Version: 6 Free
Real Name: Günter
Company: KIT

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by pfipf »

Hi,

I have the same problem after updating to OTRS 6.
When running bin/otrs.Console.pl Admin::Package::UpgradeAll I get this error message:
Error: Can't locate object method "PackageUpgradeAllIsRunning" via package "Kernel::System::Package" at /opt/otrs/Kernel/System/Console/Command/Admin/Package/UpgradeAll.pm line 44.

In article viewtopic.php?f=62&t=37305&p=156939&hil ... nd#p156939 it is said, one should update all packages via shell.
How can I do this?

Any help is welcome.

Thanks a lot.

G.
root
Administrator
Posts: 3931
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by root »

Hi,

Did you tried tyo install them one by one?
What's the output of

Code: Select all

bin/otrs.Console.pl Admin::Package::RepositoryList
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
pfipf
Znuny advanced
Posts: 123
Joined: 14 Jul 2017, 09:30
Znuny Version: 6 Free
Real Name: Günter
Company: KIT

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by pfipf »

Hi,
I followed the steps from http://doc.otrs.com/doc/manual/admin/6. ... ating.html.
During the update I got these messages several times:
Kernel::Config::Files::Acl_Adminkonto has no Load() method. at /opt/otrs/Kernel/Config/Defaults.pm line 1967.
Kernel::Config::Files::Znuny4OTRSAttachmentMultiUpload has no Load() method. at /opt/otrs/Kernel/Config/Defaults.pm line 1967.

Then I ran this command: bin/otrs.Console.pl Admin::Package::UpgradeAll and got some errors about packages that are not available for OTRS 6 (Znuny4OTRS-AttachmentMultiUpload).

I didn't care about the additional packages as this document says
"You can use the command below to update all installed packages. This works for all packages that are available from online repositories. You can update other packages later via the package manager (this requires a running OTRS Daemon). " Hence I believed I can manage the packages after the update within the package manager tool.

bin/otrs.Console.pl Admin::Package::RepositoryList displays a long list with packages from Znuny public, OTRS free and perl services

Guenter
root
Administrator
Posts: 3931
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by root »

pfipf wrote:
Then I ran this command: bin/otrs.Console.pl Admin::Package::UpgradeAll and got some errors about packages that are not available for OTRS 6 (Znuny4OTRS-AttachmentMultiUpload).
This on is not needed anymore with OTRS 6, uninstall it via otrs.Console.pl
pfipf wrote: I didn't care about the additional packages as this document says
"You can use the command below to update all installed packages. This works for all packages that are available from online repositories. You can update other packages later via the package manager (this requires a running OTRS Daemon). " Hence I believed I can manage the packages after the update within the package manager tool.

bin/otrs.Console.pl Admin::Package::RepositoryList displays a long list with packages from Znuny public, OTRS free and perl services
For each package to upgrade use the Install: information from the output as the package URL to upgrade.

hth,
Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
pfipf
Znuny advanced
Posts: 123
Joined: 14 Jul 2017, 09:30
Znuny Version: 6 Free
Real Name: Günter
Company: KIT

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by pfipf »

<<This on is not needed anymore with OTRS 6, uninstall it via otrs.Console.pl

Well, I tried this but I can't find the right URL for running the uninstall. This package is not listed in the output of RepositoryList.

<<For each package to upgrade use the Install: information from the output as the package URL to upgrade.

I tried the Install for the Znuny repo and got this error:
Kernel::Config::Files::Acl_Adminkonto has no Load() method. at /opt/otrs/Kernel/Config/Defaults.pm line 1967.
Kernel::Config::Files::Znuny4OTRSAttachmentMultiUpload has no Load() method. at /opt/otrs/Kernel/Config/Defaults.pm line 1967.
Kernel::Config::Files::Acl_Adminkonto has no Load() method. at /opt/otrs/Kernel/Config/Defaults.pm line 1967.
Kernel::Config::Files::Znuny4OTRSAttachmentMultiUpload has no Load() method. at /opt/otrs/Kernel/Config/Defaults.pm line 1967.
Error: Can't locate object method "WriteDefault" via package "Kernel::System::SysConfig" at /opt/otrs/Custom/Kernel/System/Package.pm line 997.

So there are again the problems with getting rid of Znuny4OTRS-AttachmentMultiUpload and the Acl_Adminkonto I guess

Guenter
pfipf
Znuny advanced
Posts: 123
Joined: 14 Jul 2017, 09:30
Znuny Version: 6 Free
Real Name: Günter
Company: KIT

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by pfipf »

Hi,
I just tried to install the FAQ feature.
There was another error occuring now:
Kernel::Config::Files::Acl_Adminkonto has no Load() method. at /opt/otrs/Kernel/Config/Defaults.pm line 1967.
Kernel::Config::Files::Znuny4OTRSAttachmentMultiUpload has no Load() method. at /opt/otrs/Kernel/Config/Defaults.pm line 1967.
Kernel::Config::Files::Acl_Adminkonto has no Load() method. at /opt/otrs/Kernel/Config/Defaults.pm line 1967.
Kernel::Config::Files::Znuny4OTRSAttachmentMultiUpload has no Load() method. at /opt/otrs/Kernel/Config/Defaults.pm line 1967.

ERROR: OTRS-otrs.Console.pl-Admin::Package::Install-63 Perl: 5.16.3 OS: linux Time: Tue Feb 13 10:43:35 2018

But it may be a follow-up of the Znuny4OTRSAttachmentMultiUpload thing.

Guenter
pfipf
Znuny advanced
Posts: 123
Joined: 14 Jul 2017, 09:30
Znuny Version: 6 Free
Real Name: Günter
Company: KIT

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by pfipf »

Hi,

I have access to the system again. The admin page is available now.
I hope to fix the rest via the admin page now.

Thanks a lot for you help so far.

Guenter
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by reneeb »

How did you upgrade? There seems to be a mix of OTRS5 code and OTRS6 code:
Error: Can't locate object method "WriteDefault" via package "Kernel::System::SysConfig" at /opt/otrs/Custom/Kernel/System/Package.pm line 997.
Error: Can't locate object method "PackageUpgradeAllIsRunning" via package "Kernel::System::Package" at /opt/otrs/Kernel/System/Console/Command/Admin/Package/UpgradeAll.pm line 44.
That indicates that the Kernel::System::Package module is old. Can you run

Code: Select all

perl bin/otrs.Console.pl Admin::Package::FileSearch Kernel/System/Package.pm
?

Can you remove the Kernel/Config/Files/Znuny4OTRSAttachmentMultiUpload.pm file? And add a subroutine Load() to the Acl module...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
pfipf
Znuny advanced
Posts: 123
Joined: 14 Jul 2017, 09:30
Znuny Version: 6 Free
Real Name: Günter
Company: KIT

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by pfipf »

Hi,

Kernel::Config::Files::Acl_Adminkonto has no Load() method. at /opt/otrs/Kernel/Config/Defaults.pm line 1967.
Searching in installed OTRS packages...
+----------------------------------------------------------------------------+
| File: Custom/Kernel/System/Package.pm
| Name: Znuny4OTRS-Repo
| Version: 6.0.14
| Vendor: Znuny GmbH
| URL: http://znuny.com/
| License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, November 2007
+----------------------------------------------------------------------------+
Done.

This is the result.

And I get this message Kernel::Config::Files::Acl_Adminkonto has no Load() method. at /opt/otrs/Kernel/Config/Defaults.pm line 1967. every minute via mail

Guenter
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by reneeb »

reneeb wrote:And add a subroutine Load() to the Acl module...

If you post the module, we can give you hints how the module should look like...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by reneeb »

pfipf wrote:Hi,

Kernel::Config::Files::Acl_Adminkonto has no Load() method. at /opt/otrs/Kernel/Config/Defaults.pm line 1967.
Searching in installed OTRS packages...
+----------------------------------------------------------------------------+
| File: Custom/Kernel/System/Package.pm
| Name: Znuny4OTRS-Repo
| Version: 6.0.14
| Vendor: Znuny GmbH
| URL: http://znuny.com/
| License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, November 2007
+----------------------------------------------------------------------------+
Done.

This is the result.

And I get this message Kernel::Config::Files::Acl_Adminkonto has no Load() method. at /opt/otrs/Kernel/Config/Defaults.pm line 1967. every minute via mail

Guenter
Did you upgrade Znuny4OTRS-Repo? In the 6.0.x versions there is an updated Kernel/System/Package.pm...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
pfipf
Znuny advanced
Posts: 123
Joined: 14 Jul 2017, 09:30
Znuny Version: 6 Free
Real Name: Günter
Company: KIT

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by pfipf »

<<If you post the module, we can give you hints how the module should look like...

I don't use this module. I have played around with it in the past. But the one rule I had is disabled. Hence I don't understand what is going wrong.
Can I delete this ACL rule?

Guenter
pfipf
Znuny advanced
Posts: 123
Joined: 14 Jul 2017, 09:30
Znuny Version: 6 Free
Real Name: Günter
Company: KIT

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by pfipf »

Yes. I did this:

bin/otrs.Console.pl Admin::Package::Install https://addons.znuny.com/api/addon_repos/public:5693
pfipf
Znuny advanced
Posts: 123
Joined: 14 Jul 2017, 09:30
Znuny Version: 6 Free
Real Name: Günter
Company: KIT

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by pfipf »

Hi,

Some more problems occurred:
- @reneeb: The templates menu is not available any longer
- when trying to submit a new ticket and select a customer user I get the error message attached. After closing the pop-up window everythings seems working fine.
- legacy tickets are not accessible any longer: an internal server error occurrs
- a lot of config settings got lost, e.g. SMIME certification

Thanks.
Guenter
You do not have the required permissions to view the files attached to this post.
pfipf
Znuny advanced
Posts: 123
Joined: 14 Jul 2017, 09:30
Znuny Version: 6 Free
Real Name: Günter
Company: KIT

Re: OTRS 6 Upgrade - JSDataInsert: not found

Post by pfipf »

A reboot of the whole system including OS fixed at least these problems:

- when trying to submit a new ticket and select a customer user I get the error message attached. After closing the pop-up window everythings seems working fine.
- legacy tickets are not accessible any longer: an internal server error occurrs

Guenter
Post Reply