Problema na exibição da interface e acesso ao Sistema OTRS

Post Reply
marianapinheiro
Znuny newbie
Posts: 4
Joined: 22 Jun 2012, 13:53
Znuny Version: Version 3.1
Real Name: Mariana
Company: JFPE

Problema na exibição da interface e acesso ao Sistema OTRS

Post by marianapinheiro »

Olá pessoal,

o meu problema está (pra mim) meio complicado até de entender e explicar.

Eu estava utilizando o sistema em localhost e ele funcionava perfeitamente, estava testando as funcionalidades para instalar de vez aqui na empresa porém... houve uma queda de energia aqui no departamento e depois que tudo voltou ao normal o sistema volta para mim com essa cara (na imagem anexa). E, no momento da queda, eu não estava modificando nenhuma configuração de interface, estava apenas criando um ticket.
Eu já verifiquei o apache e o postgresql ambos estão funcionando corretamente e testei no Firefox e no Chromium mais estáveis. Não sei se dá para perceber na imagem mas, os botões de login e enviar estão desabilitados mesmo com os campos preenchidos.

Eu estou perdida sem saber porque a interface está só com o HTML e não há mais conexão com nada (já que não me permite tentar logar)...
Se alguém entendeu meu problema e puder me ajudar, agradeço muito!!

Obrigada!!
You do not have the required permissions to view the files attached to this post.
nicollas
Znuny newbie
Posts: 25
Joined: 07 May 2012, 19:32
Znuny Version: 3.1.2
Real Name: Nicollas Soares Viggiano
Company: CEPAM

Re: Problema na exibição da interface e acesso ao Sistema OT

Post by nicollas »

tenta reiniciar todos serviços do OTRS, e talvez ate o servidor.
Depois q reiniciar os serviços do OTRS vai la nos Logs e veja se ocorreu algum erro com alguma das ferramentas q o OTRS utiliza.
marianapinheiro
Znuny newbie
Posts: 4
Joined: 22 Jun 2012, 13:53
Znuny Version: Version 3.1
Real Name: Mariana
Company: JFPE

Re: Problema na exibição da interface e acesso ao Sistema OT

Post by marianapinheiro »

Poxa, não funcionou...
Executei os comandos e rodei novamente e deu na mesma coisa...

# service cron stop
# service apache2 stop
# /etc/init.d/mysql stop
# service cron start
# service apache2 start
/etc/init.d/mysql start


Quando fui no log não apareceu nenhum erro... ou eu não identifiquei...
Jun 22 11:17:01 teste-Infoway-SM-3330 CRON[4459]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 22 11:39:01 teste-Infoway-SM-3330 CRON[4504]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete)
Jun 22 11:39:01 teste-Infoway-SM-3330 postfix/pickup[4148]: 1CCC1E008D: uid=0 from=<root>
Jun 22 11:39:01 teste-Infoway-SM-3330 postfix/cleanup[4512]: 1CCC1E008D: message-id=<20120622143901.1CCC1E008D@teste-Infoway-SM-3330>
Jun 22 11:39:01 teste-Infoway-SM-3330 postfix/qmgr[1949]: 1CCC1E008D: from=<root@teste-Infoway-SM-3330>, size=925, nrcpt=1 (queue active)
Jun 22 11:39:01 teste-Infoway-SM-3330 postfix/local[4514]: 1CCC1E008D: to=<root@teste-Infoway-SM-3330>, orig_to=<root>, relay=local, delay=0.22, delays=0.14/0.01/0/0.07, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Jun 22 11:39:01 teste-Infoway-SM-3330 postfix/qmgr[1949]: 1CCC1E008D: removed
Jun 22 12:09:01 teste-Infoway-SM-3330 CRON[4568]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete)
Jun 22 12:09:01 teste-Infoway-SM-3330 postfix/pickup[4148]: 35A82E008D: uid=0 from=<root>
Jun 22 12:09:01 teste-Infoway-SM-3330 postfix/cleanup[4576]: 35A82E008D: message-id=<20120622150901.35A82E008D@teste-Infoway-SM-3330>
Jun 22 12:09:01 teste-Infoway-SM-3330 postfix/qmgr[1949]: 35A82E008D: from=<root@teste-Infoway-SM-3330>, size=925, nrcpt=1 (queue active)
Jun 22 12:09:01 teste-Infoway-SM-3330 postfix/local[4578]: 35A82E008D: to=<root@teste-Infoway-SM-3330>, orig_to=<root>, relay=local, delay=0.21, delays=0.15/0.01/0/0.05, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Jun 22 12:09:01 teste-Infoway-SM-3330 postfix/qmgr[1949]: 35A82E008D: removed
Jun 22 12:17:01 teste-Infoway-SM-3330 CRON[4613]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 22 12:39:01 teste-Infoway-SM-3330 CRON[4662]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete)
Jun 22 12:39:01 teste-Infoway-SM-3330 postfix/pickup[4609]: 51C36E008D: uid=0 from=<root>
Jun 22 12:39:01 teste-Infoway-SM-3330 postfix/cleanup[4670]: 51C36E008D: message-id=<20120622153901.51C36E008D@teste-Infoway-SM-3330>
Jun 22 12:39:01 teste-Infoway-SM-3330 postfix/qmgr[1949]: 51C36E008D: from=<root@teste-Infoway-SM-3330>, size=925, nrcpt=1 (queue active)
Jun 22 12:39:01 teste-Infoway-SM-3330 postfix/local[4672]: 51C36E008D: to=<root@teste-Infoway-SM-3330>, orig_to=<root>, relay=local, delay=0.2, delays=0.15/0.01/0/0.04, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Jun 22 12:39:01 teste-Infoway-SM-3330 postfix/qmgr[1949]: 51C36E008D: removed
Jun 22 13:01:14 teste-Infoway-SM-3330 postfix/pickup[4609]: 0536CE008D: uid=1001 from=<mariana>
Jun 22 13:01:14 teste-Infoway-SM-3330 postfix/cleanup[4776]: 0536CE008D: message-id=<20120622160114.0536CE008D@teste-Infoway-SM-3330>
Jun 22 13:01:14 teste-Infoway-SM-3330 postfix/qmgr[1949]: 0536CE008D: from=<mariana@teste-Infoway-SM-3330>, size=545, nrcpt=1 (queue active)
Jun 22 13:01:14 teste-Infoway-SM-3330 postfix/local[4778]: 0536CE008D: to=<root@teste-Infoway-SM-3330>, orig_to=<root>, relay=local, delay=0.22, delays=0.16/0.01/0/0.06, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Jun 22 13:01:14 teste-Infoway-SM-3330 postfix/qmgr[1949]: 0536CE008D: removed
Jun 22 13:05:04 teste-Infoway-SM-3330 kernel: [20339.760863] audit_printk_skb: 48 callbacks suppressed
Jun 22 13:05:04 teste-Infoway-SM-3330 kernel: [20339.760866] type=1400 audit(1340381104.291:28): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=4844 comm="apparmor_parser"
Jun 22 13:05:06 teste-Infoway-SM-3330 /etc/mysql/debian-start[4889]: Upgrading MySQL tables if necessary.
Jun 22 13:05:06 teste-Infoway-SM-3330 /etc/mysql/debian-start[4892]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored
Jun 22 13:05:06 teste-Infoway-SM-3330 /etc/mysql/debian-start[4892]: Looking for 'mysql' as: /usr/bin/mysql
Jun 22 13:05:06 teste-Infoway-SM-3330 /etc/mysql/debian-start[4892]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
ricardo_Barboza
Znuny newbie
Posts: 18
Joined: 25 Mar 2012, 23:08
Znuny Version: 30102
Real Name: Ricardo Barboza
Company: Espaço Progresso Informática Ltda.

Re: Problema na exibição da interface e acesso ao Sistema OT

Post by ricardo_Barboza »

Não sei se vai te ajudar, mas eu já vi esta situação ococrrer.

Estava tentando fazer com que o TRS iniciasse no root e não no /otrs e ao modificar o otrs.conf consegui ele me abriu o site desta forma.

tenho aqui comigo um otrs.conf original, compare e veja se o seu foi alterado:

# --
# added for OTRS (http://otrs.org/)
# $Id: apache2-httpd.include.conf,v 1.18.2.3 2011/04/19 22:09:24 en Exp $
# --

# agent, admin and customer frontend
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"

# activate this if you are using an Oracle database
#SetEnv ORACLE_HOME /path/to/your/oracle/
#SetEnv ORACLE_SID YOUR_SID
#SetEnv NLS_LANG AMERICAN_AMERICA.UTF8
#SetEnv NLS_DATE_FORMAT 'YYYY-MM-DD HH24:MI:SS'

# if mod_perl is used
<IfModule mod_perl.c>

# load all otrs modules
Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl

# Apache::Reload - Reload Perl Modules when Changed on Disk
PerlModule Apache2::Reload
PerlInitHandler Apache2::Reload
PerlModule Apache2::RequestRec

# set mod_perl2 options
<Location /otrs>
# ErrorDocument 403 /otrs/customer.pl
ErrorDocument 403 /otrs/index.pl
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
PerlOptions +SetupEnv
Order allow,deny
Allow from all
</Location>

</IfModule>

# directory settings
<Directory "/opt/otrs/bin/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<Directory "/opt/otrs/var/httpd/htdocs/">
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule mod_headers.c>
<Directory "/opt/otrs/var/httpd/htdocs/skins/*/*/css-cache">
<FilesMatch "\.(css|CSS)$">
Header set Cache-Control "max-age=2592000 must-revalidate"
</FilesMatch>
</Directory>

<Directory "/opt/otrs/var/httpd/htdocs/js/js-cache">
<FilesMatch "\.(js|JS)$">
Header set Cache-Control "max-age=2592000 must-revalidate"
</FilesMatch>
</Directory>
</IfModule>

# MaxRequestsPerChild (so no apache child will be to big!)
MaxRequestsPerChild 4000
marianapinheiro
Znuny newbie
Posts: 4
Joined: 22 Jun 2012, 13:53
Znuny Version: Version 3.1
Real Name: Mariana
Company: JFPE

Re: Problema na exibição da interface e acesso ao Sistema OT

Post by marianapinheiro »

Ricardo, até que tem umas linhas a mais no meu otrs.conf:

<Location /otrs/nph-genericinterface.pl>
PerlOptions -ParseHeaders
</Location>

Não entendi bem o que essas linhas a mais significam... mas comentei e deu na mesma.
Já coloquei de volta mesmo não sabendo o que modificam na execução.
Se alguém ainda tiver sugestões, eu aceito!!
Obrigada, pessoal!!
marianapinheiro
Znuny newbie
Posts: 4
Joined: 22 Jun 2012, 13:53
Znuny Version: Version 3.1
Real Name: Mariana
Company: JFPE

Re: Problema na exibição da interface e acesso ao Sistema OT

Post by marianapinheiro »

Então, pessoal. Consegui resolver.

Eu fui tentar reinstalar o OTRS, daí abri o installer ( http://127.0.0.1/otrs/installer.pl ) e deu este erro:


<![CDATA[
Message:
SecureMode active!

Comment:
If you want to re-run the Installer, disable the SecureMode in the SysConfig

Traceback:
ERROR: OTRS-CGI-10 Perl: 5.14.2 OS: linux Time: Mon Jun 25 10:38:19 2012

Message: SecureMode active!

Traceback (4808):
Module: Kernel::Output::HTML::Layout::Error (v1.381.2.5) Line: 1216
Module: Kernel::System::Web::InterfaceInstaller::Run (v1.6) Line: 124
Module: /opt/otrs/bin/cgi-bin/installer.pl (v1.34) Line: 46

"
]]>


Então procurei como desabilitar o SecureMode e encontrei este link ( http://lists.otrs.org/pipermail/otrs/20 ... 31285.html ).
E foi bem simples... adicionei essa linha no meu Config.pm:

$Self->{SecureMode} = 1;

E voltou a funcionar! (:

Muito obrigada pela ajuda de vocês!! o/
Post Reply