MySQL error

Moderator: crythias

Locked
mustu
Znuny newbie
Posts: 23
Joined: 29 Mar 2011, 05:31
Znuny Version: 3.0.10
Contact:

MySQL error

Post by mustu »

Hi,

I'm getting these error much frequently in my OTRS Log. The Facility column is OTRS-CGI-10

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND st.ticket_lock_id IN (2) AND st.user_id IN (143) AND st.until_time <= 130' at line 1, SQL: 'SELECT DISTINCT count(*) FROM ticket st, queue sq WHERE sq.id = st.queue_id AND st.ticket_state_id IN ( ) AND st.ticket_lock_id IN (2) AND st.user_id IN (143) AND st.until_time <= 1306138992 LIMIT 10000'

This is OTRS v3.0.3. Database is upgraded from 2.3=>2.4=>3.0.

OTRS 2.3 application was dumped and new OTRS 3.0.3 app was setup with the up-graded database. This app+DB is running on CentOS 5.5 Linux.

Screenshot is attached. Any clue?
You do not have the required permissions to view the files attached to this post.
OTRS 3.0.10 + mysql + CentOS 5.6.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: MySQL error

Post by crythias »

This is because you're using a filter that is asking for a state or stateid that no longer exists. Usually, this is because you've renamed states in the state list.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
mustu
Znuny newbie
Posts: 23
Joined: 29 Mar 2011, 05:31
Znuny Version: 3.0.10
Contact:

Re: MySQL error

Post by mustu »

can you kindly brief a bit more. What needs to be done to fix it? I am getting issue of OTRS getting emails but not opening tickets (not permanent but missing few emails after a while). Could this be the reason?
OTRS 3.0.10 + mysql + CentOS 5.6.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: MySQL error

Post by crythias »

If you've changed the names of the states, set them back.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
mustu
Znuny newbie
Posts: 23
Joined: 29 Mar 2011, 05:31
Znuny Version: 3.0.10
Contact:

Re: MySQL error

Post by mustu »

fine i'll look into that..
OTRS 3.0.10 + mysql + CentOS 5.6.
Locked