Re: [OTRS] JavaScriptError: Cannot call method 'Init' of undefined
Ali Umair <[email protected]> Fri, 10 Apr 2015 11:39:16 +0500
| Newsgroups | gmane.comp.otrs.devel |
|---|---|
| Message-ID | <[email protected]> |
Michel,
If i run otrs.LoaderCache.pl of otrs 3.3.5 on my current
version otrs 3.0.6. then this cache problem is fixed or i need do change
something more than this???
Actually from my analysis for otrs running on two nodes (request
balancing through F5) hurdle is ticket number generation which on
TicketCounter log of the file system. I move the logic of ticket number
generation from file system to database. Now both nodes get ticket
number from database. i have code for this if you need i can share.
Ali
On 4/9/2015 12:16 AM, Michiel Beijen wrote:
> Especially for this scenario, since version 3.3.5 the
> otrs.LoaderCache.pl script has the --generate option. Run it on both
> nodes; and you will be able to log in just fine. You could call via a
> cron job or after installs and upgrades on all your nodes.
> But as Johannes mentioned, to do a load balanced setup which actually
> makes sense, it takes a lot of thought and planning. It's not
> something that works out-of-the box with the default setup.
>
> --
> Michiel
>
> On Wed, Apr 8, 2015 at 8:54 PM, Johannes Nickel
> <[email protected]> wrote:
>> There you have your problem. OTRS minimizes the JS and CSS Files, these
>> files are generated via local scripts, each per machine. It's the same for
>> the cache files and scripts. You can't yours simply load balance OTRS. There
>> are several steps you have to look after.
>>
>> Regards
>>
>>
>>
>>
>> On Wednesday, April 8, 2015, Ali Umair <[email protected]> wrote:
>>> My otrs application run on single node fine, but when run otrs application
>>> on nodes two nodes for load balancing, after that i am getting this
>>> exception on login page. I try to execute script of deletecache, loadcache
>>> and rebuild config but error is still persist...
>>>
>>> Ali
>>>
>>> On 4/8/2015 12:34 PM, Renee B wrote:
>>>
>>> Did you upgrade your OTRS or is it the initial installation?
>>>
>>> On 08.04.2015 07:57, Ali Umair wrote:
>>>
>>> Hi,
>>>
>>> - Browser *(Client Browser firfox and chrome)*
>>> - OS *(Client browser linx and OTRS running on Linux)*
>>> - OTRS Version *(3.0.6)*
>>> - What Host (Linux, Win) *Host is linux*
>>> - Webserver *(Apache)*
>>> - Is anything in the logs (apache / nginx error log) and OTRS Log that
>>> maybe related to you action
>>> - when does the error occur?
>>> *
>>> When i hit on Login page.... Too Old browser message displayed and on
>>> alert bo javascript message displayed of "*TypeError: Cannot call
>>> method 'Init' of undefined*" in common JS file
>>>
>>> In error log:*
>>>
>>> [Sat Mar 28 23:44:11 2015] [error] [;] File does not exist:
>>>
>>> /opt/iplOTRS/var/httpd/htdocs/skins/Agent/default/css-cache/CommonCSS_f0d8130800dc2d7b6a226b692b4a8776.css,
>>> referer:
>>>
>>> https://support.innovative-pk.com/otrs/index.pl?Action=AgentTicketSearch;Subaction=Search;Profile=last-search;SortBy=Age;OrderBy=Down;TakeLastSearch=1;StartHit=1;TicketID=161936
>>> [Sat Mar 28 23:44:13 2015] [error] [;] File does not exist:
>>>
>>> /opt/iplOTRS/var/httpd/htdocs/js/js-cache/CommonJS_26da628935b53a24253a5f2450c56db2.js,
>>> referer:
>>>
>>> https://support.innovative-pk.com/otrs/index.pl?Action=AgentTicketSearch;Subaction=Search;Profile=last-search;SortBy=Age;OrderBy=Down;TakeLastSearch=1;StartHit=1;TicketID=161936
>>> [Sat Mar 28 23:44:22 2015] [error] [;] File does not exist:
>>>
>>> /opt/iplOTRS/var/httpd/htdocs/js/js-cache/CommonJS_26da628935b53a24253a5f2450c56db2.js,
>>> referer: https://support.innovative-pk.com/otrs/index.pl
>>>
>>>
>>>
>>>
>>> --
>>>
>>> --
>>>
>>> Best Regards
>>>
>>> Ali Umair
>>>
>>>
>> _______________________________________________
>> OTRS mailing list: dev - Webpage: http://otrs.org/
>> Archive: http://lists.otrs.org/pipermail/dev
>> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
> _______________________________________________
> OTRS mailing list: dev - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/dev
> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
>
--
--
*Best Regards*
*Ali Umair | Software Engineer *
*i**2**c**Pakistan*| 04-Old FCC, Ferozepur Road, Lahore, PAKISTAN
Ph: 0092-42-111 000 911 X 171 | Cell: +92-334-4556898
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev