Error during AJAX communication. Status: error, Error: Bad G

Moderator: crythias

Locked
nazdnr
Znuny newbie
Posts: 8
Joined: 25 Mar 2013, 00:56
Znuny Version: 3.2.3

Error during AJAX communication. Status: error, Error: Bad G

Post by nazdnr »

Hello,


We just installed OTRS using this configuration

Nginx and FCGIWrap on Ubuntu.

The modules needed for perl are also all installed.

Now everything works fine except the Customer Information Tab which comes up with this error and a loading box: Error during AJAX communication. Status: error, Error: Bad Gateway

We tried to check all the logs of the system but seems like it doesnt send any request to OTRS log and crashes before that.

Was reading the whole forum but didnt find anything useful.

Would appreciate all helps.

Thanks
iamhawks
Znuny newbie
Posts: 3
Joined: 25 Mar 2013, 13:10
Znuny Version: 3.2.3

Re: Error during AJAX communication. Status: error, Error: B

Post by iamhawks »

crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Error during AJA.. error, Error: Bad Gateway

Post by crythias »

BTW: The
Me, too. It's specific to Customer Information Center.

I've got it narrowed down to: otrs/var/httpd/htdocs/js/Core.Agent.CustomerInformationCenterSearch.js

Code: Select all

        Core.AJAX.FunctionCall(
            Core.Config.Get('CGIHandle'),
            Data,
            function (HTML) {
                // if the waiting dialog was cancelled, do not show the search
                //  dialog as well
                if (!$('.Dialog:visible').length) {
                    return;
                }

                Core.UI.Dialog.ShowContentDialog(HTML, Core.Config.Get('SearchMsg'), '10px', 'Center', true, undefined, true);
                TargetNS.InitAutocomplete( $("#AgentCustomerInformationCenterSearchCustomerID"), 'SearchCustomerID' );
                TargetNS.InitAutocomplete( $("#AgentCustomerInformationCenterSearchCustomerUser"), 'SearchCustomerUser' );

            }, 'html'
        );
    };
But I can't isolate it further than that at the moment.
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
iamhawks
Znuny newbie
Posts: 3
Joined: 25 Mar 2013, 13:10
Znuny Version: 3.2.3

Re: Error during AJAX communication. Status: error, Error: B

Post by iamhawks »

May be that problem depends of web server? I,m using Nginx...
Anybody, who use Nginx, please, post You config of virtual server.
Last edited by iamhawks on 01 Apr 2013, 17:52, edited 1 time in total.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Error during AJAX communication. Status: error, Error: B

Post by crythias »

I built an nginx vm to test what you're encountering and verify that it's occuring in my test.
Bug Report: http://bugs.otrs.org/show_bug.cgi?id=9316
Please add yourself to cc on it.
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
kklajnszmit
Znuny newbie
Posts: 1
Joined: 14 Apr 2013, 17:02
Znuny Version: 3.2.x
Real Name: Krzysztof Klajnszmit
Company: Sejf Danych

Re: Error during AJAX communication. Status: error, Error: B

Post by kklajnszmit »

Hello,
I have the same problem on Debian 6 system with nginx 1.28 . When I try to open "Customer Information Center" link I get these error:
"Error during AJAX communication. Status: error, Error: Bad Gateway".
There is no errors in nginx error.log file .

Did You find any solution for the problem ?
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: Error during AJAX communication. Status: error, Error: B

Post by bayerex »

I have the same error, testing out OTRS 3.2.5 for Windows 7

Have uninstalled 3.2.5 and installed 3.2.4 without issues.
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
svens
Znuny newbie
Posts: 2
Joined: 28 Apr 2013, 18:10
Znuny Version: 3.2.6
Real Name: Sven

Re: Error during AJAX communication. Status: error, Error: B

Post by svens »

Hello there

is there any solution found for this problem
Error during AJAX communication. Status: error, Error:internal server error

i ve installed on debian 7 from tar.gz files
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: Error during AJAX communication. Status: error, Error: B

Post by reneeb »

@svens: See your other post...

@kklajnszmit see viewtopic.php?f=53&t=19852&p=78031&hilit=nginx#p78031
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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Error during AJAX communication. Status: error, Error: B

Post by crythias »

@reneeb, there's no solution for this. No logs to troubleshoot. It's a javascript error that's only a problem within the browser.
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
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: Error during AJAX communication. Status: error, Error: B

Post by reneeb »

Can you run the WebConsole in Firefox and check which requests are sent?
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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Error during AJAX communication. Status: error, Error: B

Post by crythias »

Code: Select all

[08:07:53.690] GET http://192.168.1.28/otrs-web/skins/Agent/default/img/loader.gif [HTTP/1.1 200 OK 1ms]
[08:07:54.007] [ERROR] CommunicationError: Error during AJAX communication. Status: error, Error: Bad Gateway
in Core.Debug.js, this is the line that is highlighted

Code: Select all

TargetNS.Log=DebugConsole?function(){DebugLog.apply(DebugConsole,arguments);}:function(){};TargetNS.CheckDependency=function(TargetNamespace,Required,RequiredLabel,Silent){var RequiredEval,ErrorMessage;try{RequiredEval=eval('try{ typeof '+Required+'} catch (E) {}');}
That's it. really.

(There is no GET request because this is a javascript "onclick" that doesn't hit the "GET" yet.)
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
Locked