Cannot see attachment after upgrade to OTRS 5

Moderator: crythias

Locked
akis
Znuny newbie
Posts: 7
Joined: 07 Apr 2016, 10:47
Znuny Version: 5.0.9

Cannot see attachment after upgrade to OTRS 5

Post by akis »

Hi,

After upgrade from 3.3.14 -> 4.0.16 -> 5.0.9 I cannot see any attachments.

I have also wired error messages in the log:
error OTRS-CGI-66 No State for open found!
error OTRS-CGI-66 Unknown column 'disposition' in 'field list', SQL: '

Someone have an idea to help me?
akis
Znuny newbie
Posts: 7
Joined: 07 Apr 2016, 10:47
Znuny Version: 5.0.9

Re: Cannot see attachment after upgrade to OTRS 5

Post by akis »

I also see this error in the Apache error log /var/log/apache2/error.log

DBD::mysql::st execute failed: Unknown column 'disposition' in 'field list' at /opt/otrs//Kernel/System/DB.pm line 666.
ERROR: OTRS-CGI-66 Perl: 5.14.2 OS: linux Time: Thu Apr 7 10:40:56 2016

Message: Unknown column 'disposition' in 'field list', SQL: '
SELECT filename, content_type, content_size, content_id, content_alternative,
disposition
FROM article_attachment
WHERE article_id = ?
ORDER BY filename, id'
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: Cannot see attachment after upgrade to OTRS 5

Post by reneeb »

Did you run all the Update-to-x.pl and *.sql scripts during the upgrade process? That column was added in March 2014
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
akis
Znuny newbie
Posts: 7
Joined: 07 Apr 2016, 10:47
Znuny Version: 5.0.9

Re: Cannot see attachment after upgrade to OTRS 5

Post by akis »

May I forgott scripts/DBUpdate-to-4........
Any ideas who I can fix this?
akis
Znuny newbie
Posts: 7
Joined: 07 Apr 2016, 10:47
Znuny Version: 5.0.9

Re: Cannot see attachment after upgrade to OTRS 5

Post by akis »

I solved the problem

Something went wrong with the DBUpdate-to-4.mysql.sql script

I added manually following to commands or tables to my mysql database:
ALTER TABLE web_upload_cache ADD disposition VARCHAR (15) NULL;
ALTER TABLE article_attachment ADD disposition VARCHAR (15) NULL;

After this two additional tables the attachment is again available.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Cannot see attachment after upgrade to OTRS 5

Post by jojo »

you should revert to your 3.3 database and run the migration again. there might be still other issues...
"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
akis
Znuny newbie
Posts: 7
Joined: 07 Apr 2016, 10:47
Znuny Version: 5.0.9

Re: Cannot see attachment after upgrade to OTRS 5

Post by akis »

do you know how I can revert my database to 3.3?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Cannot see attachment after upgrade to OTRS 5

Post by jojo »

restore your backup
"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
akis
Znuny newbie
Posts: 7
Joined: 07 Apr 2016, 10:47
Znuny Version: 5.0.9

Re: Cannot see attachment after upgrade to OTRS 5

Post by akis »

The problem is that our OTRS system is already online and few new tickets are created. Other ideas?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Cannot see attachment after upgrade to OTRS 5

Post by jojo »

thats the only clean solution...
"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
Charmacas
Znuny advanced
Posts: 103
Joined: 18 Jan 2016, 10:27
Znuny Version: 5.0.26 on Debian 8

Re: Cannot see attachment after upgrade to OTRS 5

Post by Charmacas »

akis wrote:The problem is that our OTRS system is already online and few new tickets are created. Other ideas?
You always should have a test system or at least a backup. And you should revert as fast as possible because if more problems occur the difference of data will become bigger.
akis
Znuny newbie
Posts: 7
Joined: 07 Apr 2016, 10:47
Znuny Version: 5.0.9

Re: Cannot see attachment after upgrade to OTRS 5

Post by akis »

I checked the .sql script and all tables and Foreign Key are in the database.
I also checked the apache, OTRS and mysql log. The system runs actually without any error.
Locked