[SOLVED] Script failed to send data (using IIS)

Moderator: crythias

Locked
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

[SOLVED] Script failed to send data (using IIS)

Post by HervE »

Hello forum,

In my Firefox browser, using IIS, http://localhost:8080/otrs/index.pl only leads to the sentence: Script failed to send data.

So I cheked PerlEx logfile "PerlEx-Err-002.log":
*** 'C:\otrs\OTRS\bin\cgi-bin\index.pl' log message at: 2014/09/10 09:55:10
'C:\otrs\OTRS\bin\cgi-bin\index.pl' script produced no output

*** 'C:\otrs\OTRS\bin\cgi-bin\index.pl' log message at: 2014/09/10 09:59:14
Precompiler: Execute Error:
Filename:[C:\otrs\OTRS\bin\cgi-bin\index.pl]
Package:[PerlEx::Precompiler::c_::otrs::otrs::bin::cgi2dbin::index_pl]
Params[]
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: C:/otrs/OTRS/bin/Custom C:/otrs/OTRS/bin/Kernel/cpan-lib C:/otrs/OTRS/bin C:/otrs/OTRS/bin/cgi-bin/../../Custom C:/otrs/OTRS/bin/cgi-bin/../../Kernel/cpan-lib C:/otrs/OTRS/bin/cgi-bin/../.. C:/Perl/site/lib C:/Perl/lib .) at (eval 69) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: CSV, DBM, ExampleP, File, Gofer, ODBC, Oracle, Pg, Proxy, SQLite, Sponge.
at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/System/DB.pm line 252.
But still don't understand what the problem is.

Could anybody help please?

Best regards,
HervE
Last edited by HervE on 12 Sep 2014, 11:33, edited 1 time in total.
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: otrs/index.pl => Script failed to send data (using IIS)

Post by RStraub »

Can't locate DBD/mysql.pm in @INC
This hints that the needed file (driver in this case) is not found in the Perl path.

To test if that would resolve your issue you can export the variable:

export PERL5LIB=path/to/DBD-folder
(note that you shouldn't directly point to mysql.pm)

edit:
Oh, you're on windows. I don't know how to add something to the perl path there ;)
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: otrs/index.pl => Script failed to send data (using IIS)

Post by HervE »

Thanks for your answer.
RStraub wrote:This hints that the needed file (driver in this case) is not found in the Perl path.
To test if that would resolve your issue you can export the variable:
export PERL5LIB=path/to/DBD-folder
How can this be done?
RStraub wrote:(note that you shouldn't directly point to mysql.pm)
What do you mean? I didn't modify anything from standard configuration.

Does it mean Perl cannot manage to C:\otrs\OTRS\Kernel\System\DB\mysql.pm?

Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: otrs/index.pl => Script failed to send data (using IIS)

Post by RStraub »

I just googled how to, according to this blog:
http://perlmaven.com/how-to-change-inc- ... -locations

you should try:

Code: Select all

set PERL5LIB = C:\otrs\OTRS\Kernel\System\
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: otrs/index.pl => Script failed to send data (using IIS)

Post by HervE »

Thanks.

I did it:
C:\>echo %PERL5LIB%
C:\otrs\OTRS\Kernel\System\

C:\>
But got the same log:
*** 'C:\otrs\OTRS\bin\cgi-bin\index.pl' log message at: 2014/09/10 14:22:42
'C:\otrs\OTRS\bin\cgi-bin\index.pl' script produced no output

*** 'C:\otrs\OTRS\bin\cgi-bin\index.pl' log message at: 2014/09/10 14:22:43
Precompiler: Execute Error:
Filename:[C:\otrs\OTRS\bin\cgi-bin\index.pl]
Package:[PerlEx::Precompiler::c_::otrs::otrs::bin::cgi2dbin::index_pl]
Params[]
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: C:/otrs/OTRS/bin/Custom C:/otrs/OTRS/bin/Kernel/cpan-lib C:/otrs/OTRS/bin C:/otrs/OTRS/bin/cgi-bin/../../Custom C:/otrs/OTRS/bin/cgi-bin/../../Kernel/cpan-lib C:/otrs/OTRS/bin/cgi-bin/../.. C:/Perl/site/lib C:/Perl/lib .) at (eval 69) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: CSV, DBM, ExampleP, File, Gofer, ODBC, Oracle, Pg, Proxy, SQLite, Sponge.
at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/System/DB.pm line 252.
Wasn't "C:\otrs\OTRS\Kernel\System\" supposed to appear right after "@INC contains: "?

Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: otrs/index.pl => Script failed to send data (using IIS)

Post by RStraub »

Phew - really, I have no experience with OTRS on windows. My then next idea whould be the output of the script:
~pathToOtrs/bin/otrs.CheckModules.pl

and see that DBD::mysql and DBI is installed.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: otrs/index.pl => Script failed to send data (using IIS)

Post by HervE »

Thanks, and good idea!

Actually I ran CheckModules twice:

1) using the Perl version I downloaded from ActivePerl, and here is the result:
CheckModules (ActivePerl).png
Inbetween, I got this strange pop-up:
CheckModules - OCI.dll missing (ActivePerl).png
It's in French, but clear enough: OCI.dll is missing on my computer, and I should reinstall the program (really? reinstall Perl again?)

2) using the Perl natively version embedded in OTRS Windows installer, called StrawberryPerl, and the result is far much better:
CheckModules (StrawberryPerl).png
Actually I didn't tell you my OTRS works fine on Apache, but now I want to have it running on IIS, that's why.

Regards,
HervE
You do not have the required permissions to view the files attached to this post.
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: otrs/index.pl => Script failed to send data (using IIS)

Post by jojo »

switch to Linux. Windows for OTRS is and will stay crap
"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
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: otrs/index.pl => Script failed to send data (using IIS)

Post by HervE »

Just impossible.

By the way, OTRS in general should be careful enough not to cut itself from the Windows people.

To tell you my story a bit, I installed and used OTRS at a customer's under Windows during 2 years, and I think I did something beautiful and it worked fine.
Now I am about to install it at a new customer's, who is "full Microsoft". So using Windows of course, but also IIS, and SQL Server, is highly recommended.

I feel like I'm close to it, but still need a little help, from time to time.
All the help I can get from this forum is, as usual, very very appreciated!

Best regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: otrs/index.pl => Script failed to send data (using IIS)

Post by jojo »

as I said. Get rid of windows. Managed or appliances should also be a possible solution for windows users
"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
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: otrs/index.pl => Script failed to send data (using IIS)

Post by HervE »

I switched to Debug mode and got this in otrs.log:
[Wed Sep 10 17:47:29 2014][Debug][Kernel::System::Web::InterfaceAgent::new][84] Global handle started...
[Wed Sep 10 17:47:29 2014][Debug][Kernel::System::Main::Require][161] Module: Kernel/System/DB/mysql.pm loaded!
[Wed Sep 10 17:47:29 2014][Debug][Kernel::System::DB::new][223] DB.pm->Connect: DSN: DBI:mysql:database=otrs;host=localhost, User: otrs, Pw: 0V6Dlbs4Dd56YP, DB Type: mysql;
[Wed Sep 10 17:47:29 2014][Debug][Kernel::System::DB::DESTROY][1588] DB.pm->Disconnect
[Wed Sep 10 17:47:29 2014][Debug][Kernel::System::Web::InterfaceAgent::DESTROY][920] Global handle stopped.
Does it tell more?

Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: otrs/index.pl => Script failed to send data (using IIS)

Post by HervE »

Hello,

Although it works fine with Apache, I installed DBD::mysql (because it was stated as "Not installed").

Now I've got something with IIS, although not completely what's expected. This is a raw HTML view:
IIS HTML view.png
When I click on a blue link... nothing appears, as if I hadn't clicked at all.
Sounds strange.

Has anyone an explanation and/or a way out?

Best regards,
HervE
You do not have the required permissions to view the files attached to this post.
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: otrs/index.pl => Script failed to send data (using IIS)

Post by RStraub »

You said you're using strawberry perl - you might want to search the forum, because I saw alot (!) of threads regarding the shipped perl when running OTRS on windows.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: otrs/index.pl => Script failed to send data (using IIS)

Post by HervE »

Hello forum,

This is solved!
I was missing an important configuration in IIS: add a virtual directory with the alias otrs-web, pointing to C:\otrs\OTRS\var\httpd\htdocs

Now it works fine even with IIS!

Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
Locked