[SOLVED] Package Manager Error

Moderator: crythias

Locked
MargauxG
Znuny newbie
Posts: 68
Joined: 11 Apr 2014, 16:14
Znuny Version: 3.0.11
Real Name: Margaux Grandhomme
Company: Haulotte Group
Location: France

[SOLVED] Package Manager Error

Post by MargauxG »

Hello,

We are currently testing OTRS 3.2.9, installed on an Ubuntu server. The installation seemed to have succeeded but when I log on the Web Interface, I cannot open the Package Manager. The error is in the attachment.
I am worried I will have to reinstall all OTRS...
Is there any way to get only the package manager ? Like for a package, I just have to download it from an ftp link ?
You do not have the required permissions to view the files attached to this post.
Last edited by MargauxG on 16 May 2014, 12:20, edited 2 times in total.
OTRS 3.0.11 with ITSM, CMDB, FAQ...
Windows Server 2008 R2
Testing OTRS 3.2.16 and 3.3.1 on Ubuntu server with MSSQL
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Pakage Manager Error

Post by jojo »

check the apache error log!
"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
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: Pakage Manager Error

Post by reneeb »

Please look at the error log of the webserver (for apache under linux you can find it at /var/log/apache2/error.log or /var/log/httpd/error.log - depending on your OS)...
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
MargauxG
Znuny newbie
Posts: 68
Joined: 11 Apr 2014, 16:14
Znuny Version: 3.0.11
Real Name: Margaux Grandhomme
Company: Haulotte Group
Location: France

Re: Package Manager Error

Post by MargauxG »

That is all I have in this file :
[Sun Apr 27 06:38:44 2014] [notice] Apache/2.2.22 (Ubuntu) mod_perl/2.0.5 Perl/v5.14.2 co$
[Mon Apr 28 13:34:03 2014] [error] [client 192.168.100.139] File does not exist: /var/www$
[Mon Apr 28 13:34:03 2014] [error] [client 192.168.100.139] File does not exist: /var/www$
[Mon Apr 28 13:34:16 2014] [error] slurp_filename('/var/www/otrs') / opening: (2) No such$
[Mon Apr 28 13:35:16 2014] [error] [client 192.168.100.139] Attempt to serve directory: /$
[Mon Apr 28 13:36:18 2014] -e: DBD::ODBC::st execute failed: [unixODBC][FreeTDS][SQL Serv$
[Mon Apr 28 13:36:18 2014] -e: [unixODBC][FreeTDS][SQL Server]Statement(s) could not be p$
ERROR: OTRS-CGI-10 Perl: 5.14.2 OS: linux Time: Mon Apr 28 13:36:18 2014

Message: [unixODBC][FreeTDS][SQL Server]Invalid object name 'valid'. (SQL-42S02) [state $
[unixODBC][FreeTDS][SQL Server]Statement(s) could not be prepared. (SQL-42000), SQL: 'SEL$

RemoteAddress: 192.168.100.139
RequestURI: /otrs/index.pl

Traceback (29051):
Module: Kernel::System::Valid::ValidList (OTRS 3.2.9) Line: 111
Module: Kernel::System::Valid::ValidLookup (OTRS 3.2.9) Line: 149
Module: Kernel::System::Valid::ValidIDsGet (OTRS 3.2.9) Line: 189
Module: Kernel::System::Auth::DB::Auth (OTRS 3.2.9) Line: 87
Module: Kernel::System::Auth::Auth (OTRS 3.2.9) Line: 186



No more recent post whereas I tried to open the Package Manager today...
Last edited by MargauxG on 30 Apr 2014, 11:15, edited 1 time in total.
OTRS 3.0.11 with ITSM, CMDB, FAQ...
Windows Server 2008 R2
Testing OTRS 3.2.16 and 3.3.1 on Ubuntu server with MSSQL
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Pakage Manager Error

Post by jojo »

you are using a linux based system with MS SQL Database?
"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
MargauxG
Znuny newbie
Posts: 68
Joined: 11 Apr 2014, 16:14
Znuny Version: 3.0.11
Real Name: Margaux Grandhomme
Company: Haulotte Group
Location: France

Re: Pakage Manager Error

Post by MargauxG »

Yes, we are using Microsoft SQL Server Management Studio 2012 to be precise.
We had to change our database (that should be the error in the log file) but now we can log with no problem.
OTRS 3.0.11 with ITSM, CMDB, FAQ...
Windows Server 2008 R2
Testing OTRS 3.2.16 and 3.3.1 on Ubuntu server with MSSQL
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Pakage Manager Error

Post by jojo »

Linux with MS SQL Database is not supported.
"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
MargauxG
Znuny newbie
Posts: 68
Joined: 11 Apr 2014, 16:14
Znuny Version: 3.0.11
Real Name: Margaux Grandhomme
Company: Haulotte Group
Location: France

Re: Pakage Manager Error

Post by MargauxG »

Then how can I log, see all my previous tickets and all my customers ?
OTRS 3.0.11 with ITSM, CMDB, FAQ...
Windows Server 2008 R2
Testing OTRS 3.2.16 and 3.3.1 on Ubuntu server with MSSQL
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Pakage Manager Error

Post by jojo »

use mysql, postgres or oracle instead
"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
MargauxG
Znuny newbie
Posts: 68
Joined: 11 Apr 2014, 16:14
Znuny Version: 3.0.11
Real Name: Margaux Grandhomme
Company: Haulotte Group
Location: France

Re: Package Manager Error

Post by MargauxG »

The ODBC driver should bypass this problem...
Also, we do have the mssql packages installed on our server.
OTRS 3.0.11 with ITSM, CMDB, FAQ...
Windows Server 2008 R2
Testing OTRS 3.2.16 and 3.3.1 on Ubuntu server with MSSQL
MargauxG
Znuny newbie
Posts: 68
Joined: 11 Apr 2014, 16:14
Znuny Version: 3.0.11
Real Name: Margaux Grandhomme
Company: Haulotte Group
Location: France

Re: Package Manager Error

Post by MargauxG »

After re-reading the Admin Manual at http://otrs.github.io/doc/manual/admin/ ... f-database, I was wondering why the installation of MSSQL is described if it is not compatible...
OTRS 3.0.11 with ITSM, CMDB, FAQ...
Windows Server 2008 R2
Testing OTRS 3.2.16 and 3.3.1 on Ubuntu server with MSSQL
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Package Manager Error

Post by jojo »

MS SQL can only be used on Windows via ODBC. But it is not suggested to use it because of very bad performance
"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
MargauxG
Znuny newbie
Posts: 68
Joined: 11 Apr 2014, 16:14
Znuny Version: 3.0.11
Real Name: Margaux Grandhomme
Company: Haulotte Group
Location: France

Re: Package Manager Error

Post by MargauxG »

MSSQL is not installed on Linux. It is remote connection. For that we used unixODBC and Freetds. The connexion is established, I can add data from the Web interface (e.g. a service). So MSSQL works just fine.
The only moment when I get an error is when I click on Package Manager. In the System Log, the errors are :

[Tue May 6 10:53:30 2014][Error][Kernel::System::XML::XMLParse][771] C-Parser:
not well-formed (invalid token) at line 50, column 71, byte 2648 at /usr/lib/perl5/XML/Parser.pm line 187
!
[Tue May 6 10:53:30 2014][Error][Kernel::System::XML::XMLParse][772] XML::Parser produced errors. I use XML::Parser::Lite as fallback!
[Tue May 6 10:53:30 2014][Error][Kernel::System::AuthSession::DB::DESTROY][534] [unixODBC][FreeTDS][SQL Server]Invalid cursor state (SQL-24000), SQL: 'INSERT INTO sessions (session_id, data_key, $
[Tue May 6 10:53:30 2014][Error][Kernel::System::AuthSession::DB::DESTROY][549] [unixODBC][FreeTDS][SQL Server]Invalid cursor state (SQL-24000), SQL: '
DELETE FROM sessions
WHERE session_id = ?
AND data_key = ?
AND id <= ?'


I can't find anything wrong with the Kernel files, same with the Parser file.
Is there any way to solve theses problems ?
OTRS 3.0.11 with ITSM, CMDB, FAQ...
Windows Server 2008 R2
Testing OTRS 3.2.16 and 3.3.1 on Ubuntu server with MSSQL
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Package Manager Error

Post by crythias »

What do Search Results for the error tell you about what's happening?
For instance, freetds has some issues with loops.
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
MargauxG
Znuny newbie
Posts: 68
Joined: 11 Apr 2014, 16:14
Znuny Version: 3.0.11
Real Name: Margaux Grandhomme
Company: Haulotte Group
Location: France

Re: Package Manager Error

Post by MargauxG »

That's the problem, none of the results correspond to my problem. At first I thought it was a rights problem, then I found that otrs could delete session, so that wasn't it. Then I thought it was database space problem but it was not since it is a dynamic space.
I've been looking for answer on the web for 3 days and found nothing.
Every time it is the same error. I'm starting to think that I'll have to reinstall everything.
OTRS 3.0.11 with ITSM, CMDB, FAQ...
Windows Server 2008 R2
Testing OTRS 3.2.16 and 3.3.1 on Ubuntu server with MSSQL
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Package Manager Error

Post by jojo »

As I said: Using a linux OTRS server with a MS SQL server is not supported as there is no fully working driver for the database connection
"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
MargauxG
Znuny newbie
Posts: 68
Joined: 11 Apr 2014, 16:14
Znuny Version: 3.0.11
Real Name: Margaux Grandhomme
Company: Haulotte Group
Location: France

Re: [SOLVED] Package Manager Error

Post by MargauxG »

I ran ./otrs.PackageManager -a reinstall-all and it worked. So it didn't come from our database.
Conclusion : MSSQL works fine with Linux.
OTRS 3.0.11 with ITSM, CMDB, FAQ...
Windows Server 2008 R2
Testing OTRS 3.2.16 and 3.3.1 on Ubuntu server with MSSQL
Locked