Unable to Login 3.2.0.Beta4

Moderator: crythias

Locked
andreabignozzi
Znuny newbie
Posts: 8
Joined: 10 Dec 2012, 20:22
Znuny Version: 3.1.6
Real Name: Andrea Bignozzi
Company: Nest2 s.p.a.

Unable to Login 3.2.0.Beta4

Post by andreabignozzi »

I'm working with 3.1.7 without any problem.
In the same machine (test, debian) I installed from scratch then new 3.2.0.beta4, with a new db, to make some test and try the new functions.
I get no errors, and every think seems working, but when a connect to index.pl to login, the login button (entra) is disabled, no way to click it.
I try the customer.pl with the same result, and then installer.pl where there is non button at all!
I try different browsers :
Explore8 (Windwos xp) :

Dettagli errore pagina Web

Agente utente: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Mon, 24 Dec 2012 10:54:07 UTC


Messaggio: Proprietà o metodo non supportati dall'oggetto
Linea: 236
Carattere: 1
Codice: 0
URI: http://webdev.nest2.com/otrs/index.pl


Messaggio: Proprietà o metodo non supportati dall'oggetto
Linea: 276
Carattere: 1
Codice: 0
URI: http://webdev.nest2.com/otrs/index.pl


Messaggio: Proprietà o metodo non supportati dall'oggetto
Linea: 289
Carattere: 1
Codice: 0
URI: http://webdev.nest2.com/otrs/index.pl

Safari 6.0.2
No errors but same problem

Chrome Versione 23.0.1271.97 m
no errors but same problem

Making a bit of debug, I see the page runs a js that disable buttons until all js are loaded, maybe some things goes wrong?
Some hints?

Regards
Last edited by andreabignozzi on 24 Dec 2012, 13:33, edited 3 times in total.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Unable to Login 3.2.0.Beta2

Post by jojo »

did you deleted all caches, are the permissions of the directory correct. check the apache logs
"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
andreabignozzi
Znuny newbie
Posts: 8
Joined: 10 Dec 2012, 20:22
Znuny Version: 3.1.6
Real Name: Andrea Bignozzi
Company: Nest2 s.p.a.

Re: Unable to Login 3.2.0.Beta4

Post by andreabignozzi »

chache and permission set...


bin/otrs.RebuildConfig.pl
bin/otrs.DeleteCache.pl
bin/otrs.SetPermissions.pl /opt/otrs --otrs-user=otrs --web-user=www-data --otrs-group=otrs --web-group=www-data
bin/otrs.SetPermissions.pl <1.9> - set OTRS file permissions
Copyright (C) 2001-2012 xxx, http://otrs.org/
Setting permissions on /opt/otrs
Setting permissions on /opt/otrs/var
Setting permissions on /opt/otrs/bin/*
Setting permissions on /opt/otrs/scripts/*.pl
Setting permissions on /opt/otrs/scripts/tools/*.pl
Setting permissions on Kernel/Config.pm
Setting owner rw and group ro permissions on /opt/otrs/

/etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting ..

This is the Apache Log...

ERROR: OTRS-CGI-10 Perl: 5.10.1 OS: linux Time: Thu Dec 27 09:47:40 2012

Message: Can't write '/opt/otrs/var/httpd/htdocs/js/js-cache//ModuleJS_4c8ebfc739dbda314f4795c2f24e6a81.js': Permission denied

RemoteAddress: 10.1.1.162
RequestURI: /otrs/index.pl

Traceback (28292):
Module: Kernel::System::Main::FileWrite (v1.67) Line: 444
Module: Kernel::System::Loader::MinifyFiles (v1.23) Line: 246
Module: Kernel::Output::HTML::LayoutLoader::_HandleJSList (v1.41) Line: 608
Module: Kernel::Output::HTML::LayoutLoader::LoaderCreateAgentJSCalls (v1.41) Line: 300
Module: Kernel::Output::HTML::Layout::Login (v1.418) Line: 1066
Module: Kernel::System::Web::InterfaceAgent::Run (v1.73) Line: 634
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 46
Module: (eval) (v1.93) Line: 204
Module: ModPerl::RegistryCooker::run (v1.93) Line: 204
Module: ModPerl::RegistryCooker::default_handler (v1.93) Line: 170
Module: ModPerl::Registry::handler (v1.99) Line: 31

[Thu Dec 27 09:47:40 2012] [error] [client 10.1.1.162] File does not exist: /opt/otrs/var/httpd/htdocs/js/js-cache/CommonJS_c45fe513151ea821e09a5ff064c0d093.js, referer: http://webdev.nest2.com/otrs/index.pl
[Thu Dec 27 09:47:40 2012] [error] [client 10.1.1.162] File does not exist: /opt/otrs/var/httpd/htdocs/js/js-cache/ModuleJS_4c8ebfc739dbda314f4795c2f24e6a81.js, referer: http://webdev.nest2.com/otrs/index.pl

maybe some permission is really missing...

chown www-data:www-data /opt/otrs/var/httpd/htdocs/js/js-cache/

now buttons works again...

let me have some test.

regards
andreabignozzi
Znuny newbie
Posts: 8
Joined: 10 Dec 2012, 20:22
Znuny Version: 3.1.6
Real Name: Andrea Bignozzi
Company: Nest2 s.p.a.

Re: Unable to Login 3.2.0.Beta4

Post by andreabignozzi »

Solved.

otrs.SetPermission.pl does not work if launched from a SymLynk...


lrwxrwxrwx 1 root root 16 27 dic 09.41 otrs -> otrs-3.2.0.beta4
drwxr-xr-x 8 root root 4096 24 dic 11.09 otrs-3.1.7
drwxr-xr-x 8 root root 4096 24 dic 13.37 otrs-3.2.0.beta4

If I run the script from /opt/otrs (symlink) the script gives non errors but do not alter any permission.
If I run the script from otrs-3.2.0.beta4, everything is right.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Unable to Login 3.2.0.Beta4

Post by jojo »

this is a nown issue on debian based systems
"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
Locked