Help Upgrade from 3.3.9 to 4.0.3

Moderator: crythias

Locked
zotrs
Znuny newbie
Posts: 4
Joined: 24 Nov 2014, 23:16
Znuny Version: 3.3.9

Help Upgrade from 3.3.9 to 4.0.3

Post by zotrs »

i followed this guide to the letter, and while i am able to login trying to go to dashboard or tickets results in error 500.
Rooobaaat
Znuny wizard
Posts: 432
Joined: 11 Sep 2014, 16:28
Znuny Version: OTRS 5.0.x

Re: Help Upgrade from 3.3.9 to 4.0.3

Post by Rooobaaat »

update you additional addons via the packagemanager in a commandshell ;)
My english is better than your german :P

"Produktiv": OTRS: 5.0.x, OTRS::ITSM 5.0.x
"Testing": OTRS 6 git
OS: Debian 8.0 (Jessie)
Apache2.4.10/MySQL 5.5.41
zotrs
Znuny newbie
Posts: 4
Joined: 24 Nov 2014, 23:16
Znuny Version: 3.3.9

Re: Help Upgrade from 3.3.9 to 4.0.3

Post by zotrs »

i am not using any add ons.
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: Help Upgrade from 3.3.9 to 4.0.3

Post by reneeb »

Internal server errors are usually reported in the webserver logs.
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
Tekin
Znuny newbie
Posts: 4
Joined: 20 May 2014, 15:01
Znuny Version: 3.3.7
Real Name: Tekin Birdüzen

Re: Help Upgrade from 3.3.9 to 4.0.3

Post by Tekin »

I have the same problem. Using OTRS 3.3.8 without problems with lighttpd but as soon as I switch to 4.0.3 I only get to see a Server Error 500. No additional plugins activated and nothing to be found inside the error.log of lighttpd.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Help Upgrade from 3.3.9 to 4.0.3

Post by jojo »

check the webserver error 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
pituca
Znuny advanced
Posts: 131
Joined: 09 Jan 2013, 02:50
Znuny Version: 5.0.9
Company: OmniRedes

Re: Help Upgrade from 3.3.9 to 4.0.3

Post by pituca »

You dont have ITSM installed? if yes then you need to upgrade via command line.

Ruben
OTRS 5.0.9, , ITSM 5.0.9, MySQL, Ubuntu 14.04, Apache2
Tekin
Znuny newbie
Posts: 4
Joined: 20 May 2014, 15:01
Znuny Version: 3.3.7
Real Name: Tekin Birdüzen

Re: Help Upgrade from 3.3.9 to 4.0.3

Post by Tekin »

jojo wrote:check the webserver error logs
Tekin wrote:...and nothing to be found inside the error.log of lighttpd.
I have the feeling that you didn't read what I wrote...
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Help Upgrade from 3.3.9 to 4.0.3

Post by jojo »

Well without errors in the log it is difficult to help. Are you using CGI or fcgi? Everything configured to use utf-8
"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
Tekin
Znuny newbie
Posts: 4
Joined: 20 May 2014, 15:01
Znuny Version: 3.3.7
Real Name: Tekin Birdüzen

Re: Help Upgrade from 3.3.9 to 4.0.3

Post by Tekin »

With an error that occurs in the error.log I would have a hint on what is going wrong. But all i see is just the Server Error 500 and no entry inside the log.

I guess I use fcgi. Where can I see what I use?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Help Upgrade from 3.3.9 to 4.0.3

Post by jojo »

check your lighthttpd config

Please note that your config is not so common, apache2+mod_perl or nginx are used more often
"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
Tekin
Znuny newbie
Posts: 4
Joined: 20 May 2014, 15:01
Znuny Version: 3.3.7
Real Name: Tekin Birdüzen

Re: Help Upgrade from 3.3.9 to 4.0.3

Post by Tekin »

Yeah but when I run OTRS with Apache it slows down the whole community that also runs on the same server. That is why I put OTRS 2 and later OTRS 3 together with lighttpd.

I retried OTRS 4 and checked if really lighttpd answers. Inside the header rows I see lighttpd/1.4.32.
The conf is

Code: Select all

# /usr/share/doc/lighttpd-doc/simple-vhost.txt

## The document root of a virtual host is document-root =
##   simple-vhost.server-root + $HTTP["host"] + simple-vhost.document-root
server.modules += ( "mod_simple_vhost" )
$HTTP["host"] =~ "^(?i:otrs\.the-domain\.de(?::\d+)?)$" {
     server.document-root = "/opt/otrs/bin/fcgi-bin/"
     server.errorlog             = "/var/log/lighttpd/error-otrs.log"
     fastcgi.debug = 1
}
The logfile only says

Code: Select all

tekin@server1:/var/log/lighttpd$ cat error-otrs.log
2014-12-25 20:00:24: (log.c.166) server started 
2014-12-25 20:00:24: (mod_fastcgi.c.1365) --- fastcgi spawning local 
	proc: /usr/bin/php-cgi 
	port: 0 
	socket /tmp/php.socket 
	max-procs: 1 
2014-12-25 20:00:24: (mod_fastcgi.c.1389) --- fastcgi spawning 
	port: 0 
	socket /tmp/php.socket 
	current: 0 / 1
but this are messages from the start of OTRS and not the moment of the error. Maybe I have the wrong system user and group set inside the fcgi directory? Is there a checklist somewhere with which I can check everything step by step?

Edit.. I did an strace and got to see this

Code: Select all

stat("/opt/otrs/bin/fcgi-bin/index.pl", {st_mode=S_IFREG|0770, st_size=1636, ...}) = 0
open("/opt/otrs/bin/fcgi-bin/index.pl", O_RDONLY) = 7
close(7)                                = 0
stat("/usr/bin/perl", {st_mode=S_IFREG|0755, st_size=10376, ...}) = 0
pipe([7, 8])                            = 0
pipe([9, 10])                           = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f6c8dad89d0) = 16746
close(10)                               = 0
close(7)                                = 0
close(8)                                = 0
epoll_ctl(5, EPOLL_CTL_ADD, 9, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=9, u64=9}}) = 0
fcntl(9, F_SETFD, FD_CLOEXEC)           = 0
fcntl(9, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
wait4(16746, 0x7fffc800f38c, WNOHANG, NULL) = 0
accept(4, 0x7fffc800f860, [112])        = -1 EAGAIN (Resource temporarily unavailable)
epoll_wait(5, {{EPOLLHUP, {u32=9, u64=9}}}, 1025, 1000) = 1
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigreturn(0x11)                      = 1
epoll_ctl(5, EPOLL_CTL_DEL, 9, {0, {u32=0, u64=0}}) = 0
close(9)                                = 0
wait4(16746, [{WIFEXITED(s) && WEXITSTATUS(s) == 255}], WNOHANG, NULL) = 16746
setsockopt(6, SOL_TCP, TCP_CORK, [1], 4) = 0
writev(6, [{"HTTP/1.1 500 Internal Server Err"..., 146}, {"", 0}, {"<?xml version=\"1.0\" encoding=\"is"..., 369}], 3) = 515
maybe this can make you see what my problem is? For me it seems like that something the OTRS perlscript needs is not available.
zotrs
Znuny newbie
Posts: 4
Joined: 24 Nov 2014, 23:16
Znuny Version: 3.3.9

Re: Help Upgrade from 3.3.9 to 4.0.3

Post by zotrs »

This is the only upgrade that has not worked for me.
AndersNorlev
Znuny newbie
Posts: 3
Joined: 05 Jan 2015, 11:30
Znuny Version: Version 4 Free

Re: Help Upgrade from 3.3.9 to 4.0.3

Post by AndersNorlev »

I have problems after upgrade, when i try to change owner and close a case i get this:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/2.2.16 (Debian) Server at 10.110.1.135 Port 80
I have this i in my /var/log/apache2/error.log
[Mon Jan 5 10:33:17 2015] -e: (in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/EventHandler.pm line 170.
[Mon Jan 5 10:33:17 2015] -e: (in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/DB.pm line 583.
[Mon Jan 05 10:33:17 2015] [error] [Mon Jan 5 10:33:17 2015] -e: Got no ConfigObject! at /opt/otrs//Kernel/System/Ticket/Event/SurveySendRequest.pm line 29.\n\t(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/EventHandler.pm line 170.\n\t(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/DB.pm line 583.\n
---------------------
EDIT!!
Solved!
removed package and installed it again, then its workd...
Locked