Author Topic: Webadmin Internal Server Error  (Read 11840 times)

mike59999

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
Webadmin Internal Server Error
« on: October 30, 2014, 10:11:15 pm »
Hi,

we have upgraded our Zentyal Installation from 3.5 to 4.0 today.
All Moduls are working but the Webinterface is no longer reachable.
As soon i connect to the Webinterface i get the message "Internal Server Error".
There are some erros in the Logfile "zentyal.webadmin-uwsgi.log" that is attached in this thread.
Can someone help us to get the Webinterface running again?

With best regards,

Michael Darsane

EDIT: A Bugtrackerticket is open under https://tracker.zentyal.org/issues/2456
« Last Edit: October 30, 2014, 10:15:16 pm by mike59999 »

mike59999

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
Re: Webadmin Internal Server Error
« Reply #1 on: October 30, 2014, 11:55:07 pm »
I have found a work around for the moment, it's not the perfect solution.

1. Open the File "/usr/share/perl5/EBox/WebAdmin/PSGI.pm"
2. Go to the end of the File and remove the following part.

    if ($@) {
        throw EBox::Exceptions::Internal("Cannot load $pkgName: $@");
    }


3. Restart the Webadmin Service with "/etc/init.d/zentyal webadmin restart".

The modified file is in the attachment.

mateusz.stepien

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Webadmin Internal Server Error
« Reply #2 on: November 12, 2014, 12:44:55 am »
Thank you. That works.

cpamungkas26

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Webadmin Internal Server Error
« Reply #3 on: November 12, 2014, 06:20:16 am »
Thanks, That work for me to

ian

  • Community Council Member
  • Zen Samurai
  • *****
  • Posts: 296
  • Karma: +10/-1
    • View Profile
    • Familie site
Re: Webadmin Internal Server Error
« Reply #4 on: November 12, 2014, 10:31:17 am »
There is still an error in the webadmin, in the submenu users and computers there are twoo links with errors.
This issue is already mented in the error reporting of Zentyal.

This issue occured afther the upgrade from release 4.0 to de final upgrade of 4.0

Best regards,
Ian

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: Webadmin Internal Server Error
« Reply #5 on: November 12, 2014, 01:11:26 pm »
I have found a work around for the moment, it's not the perfect solution.

1. Open the File "/usr/share/perl5/EBox/WebAdmin/PSGI.pm"
2. Go to the end of the File and remove the following part.

    if ($@) {
        throw EBox::Exceptions::Internal("Cannot load $pkgName: $@");
    }


3. Restart the Webadmin Service with "/etc/init.d/zentyal webadmin restart".

The modified file is in the attachment.

Removing that only hides the real error, it's not a proper fix.

Please we need the contents of /var/log/zentyal/zentyal.log (and probably also /var/log/zentyal/error.log) to see the real error in order to diagnose it and fix it.

This has to be some corner case because in all our tests the upgrades have been successful.
Zentyal Server Lead Developer

kcurtis

  • Zen Apprentice
  • *
  • Posts: 48
  • Karma: +5/-0
    • View Profile
Re: Webadmin Internal Server Error
« Reply #6 on: November 12, 2014, 04:06:17 pm »
Removing that only hides the real error, it's not a proper fix.

Please we need the contents of /var/log/zentyal/zentyal.log (and probably also /var/log/zentyal/error.log) to see the real error in order to diagnose it and fix it.

This has to be some corner case because in all our tests the upgrades have been successful.

Here is the logs from one of our servers with the issue. Hope it helps

haraldxps

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Webadmin Internal Server Error
« Reply #7 on: November 12, 2014, 04:22:35 pm »
I do also have the same problem. Upgraded today and only I only get Internal Server Error in the Admin Web administration.

But I did the upgrade thru the Webadmin console.
« Last Edit: November 12, 2014, 04:34:37 pm by haraldxps »

trvaa

  • Zen Apprentice
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: Webadmin Internal Server Error
« Reply #8 on: November 12, 2014, 04:42:09 pm »

Removing that only hides the real error, it's not a proper fix.

Please we need the contents of /var/log/zentyal/zentyal.log (and probably also /var/log/zentyal/error.log) to see the real error in order to diagnose it and fix it.

This has to be some corner case because in all our tests the upgrades have been successful.

More of us over here on duplication of topic:

https://forum.zentyal.org/index.php/topic,23815.0.html
« Last Edit: November 12, 2014, 05:06:01 pm by trvaa »

haraldxps

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Webadmin Internal Server Error
« Reply #9 on: November 12, 2014, 04:55:11 pm »
Here is the logs




I have found a work around for the moment, it's not the perfect solution.

1. Open the File "/usr/share/perl5/EBox/WebAdmin/PSGI.pm"
2. Go to the end of the File and remove the following part.

    if ($@) {
        throw EBox::Exceptions::Internal("Cannot load $pkgName: $@");
    }


3. Restart the Webadmin Service with "/etc/init.d/zentyal webadmin restart".

The modified file is in the attachment.

Removing that only hides the real error, it's not a proper fix.

Please we need the contents of /var/log/zentyal/zentyal.log (and probably also /var/log/zentyal/error.log) to see the real error in order to diagnose it and fix it.

This has to be some corner case because in all our tests the upgrades have been successful.

Edo

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Webadmin Internal Server Error
« Reply #10 on: November 12, 2014, 08:44:54 pm »
Same problem after upgrading from 3.5 to 4
$grep ERROR /var/log/zentyal/zentyal.log
2014/11/12 11:29:35 ERROR> EventDaemon.pm:265 EBox::EventDaemon::_loadModules - Error loading watcher class: EBox::Event::Watcher::EBackup Can't locate EBox/Event/Watcher/EBackup.pm in @INC (you may need to install the EBox::Event::Watcher::EBackup module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at (eval 193) line 2, <GEN0> line 11.
2014/11/12 11:29:35 ERROR> ConfigureDispatchers.pm:325 EBox::Events::Model::ConfigureDispatchers::acquireURL - When loading dispatcher EBox::Event::Dispatcher::ControlCenter: Can't locate EBox/Event/Dispatcher/ControlCenter.pm in @INC (you may need to install the EBox::Event::Dispatcher::ControlCenter module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at (eval 188) line 2, <GEN0> line 4.
2014/11/12 11:29:38 ERROR> Software.pm:126 EBox::Util::Software::isSecUpdate - E: Error: BrokenCount > 0 is not in APT cache at E: Error: BrokenCount > 0 is not in APT cache at /usr/share/perl5/EBox/Util/Software.pm line 126
2014/11/12 11:29:39 ERROR> Service.pm:1001 EBox::Module::Service::restartService - Error restarting service: Can't locate object method "autodiscoveryCerts" via package "EBox::OpenChange" at /usr/share/perl5/EBox/WebAdmin.pm line 948, <GEN0> line 12.
2014/11/12 11:29:39 ERROR> Service.pm:1003 EBox::Module::Service::restartService - Can't locate object method "autodiscoveryCerts" via package "EBox::OpenChange" at /usr/share/perl5/EBox/WebAdmin.pm line 948, <GEN0> line 12.
2014/11/12 11:29:40 ERROR> GlobalImpl.pm:845 EBox::GlobalImpl::modInstance - Error loading class: EBox::SysInfo error: Can't locate EBox/Report/RAID.pm in @INC (you may need to install the EBox::Report::RAID module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /usr/share/perl5/EBox/SysInfo.pm line 41.
2014/11/12 11:31:44 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command /sbin/start 'zentyal.webadmin-nginx' failed.
2014/11/12 11:31:44 ERROR> Service.pm:1001 EBox::Module::Service::restartService - Error restarting service: root command /sbin/start 'zentyal.webadmin-nginx' failed.
2014/11/12 11:31:44 ERROR> Service.pm:1003 EBox::Module::Service::restartService - root command /sbin/start 'zentyal.webadmin-nginx' failed.
sysadmin@dclnx1:~$ netstat -tulpen | grep 80
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 127.0.0.1:6380          0.0.0.0:*               LISTEN      108        7593        -
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      0          28707       -
tcp6       0      0 :::4369   

Cross posted on the bug tracker : https://tracker.zentyal.org/issues/2545
« Last Edit: November 13, 2014, 05:30:39 pm by Edo »
Zentyal CE 4.0.5

soso

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Webadmin Internal Server Error
« Reply #11 on: November 12, 2014, 10:39:21 pm »
I have found a work around for the moment, it's not the perfect solution.

1. Open the File "/usr/share/perl5/EBox/WebAdmin/PSGI.pm"
2. Go to the end of the File and remove the following part.

    if ($@) {
        throw EBox::Exceptions::Internal("Cannot load $pkgName: $@");
    }


3. Restart the Webadmin Service with "/etc/init.d/zentyal webadmin restart".

The modified file is in the attachment.

Thanks a lot, works for me.

haraldxps

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Webadmin Internal Server Error
« Reply #12 on: November 13, 2014, 12:28:00 pm »
That works for me to :)

I have found a work around for the moment, it's not the perfect solution.

1. Open the File "/usr/share/perl5/EBox/WebAdmin/PSGI.pm"
2. Go to the end of the File and remove the following part.

    if ($@) {
        throw EBox::Exceptions::Internal("Cannot load $pkgName: $@");
    }


3. Restart the Webadmin Service with "/etc/init.d/zentyal webadmin restart".

The modified file is in the attachment.

Thanks a lot, works for me.

trvaa

  • Zen Apprentice
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: Webadmin Internal Server Error
« Reply #13 on: November 16, 2014, 11:13:18 am »

kruemelluna0

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: Webadmin Internal Server Error
« Reply #14 on: March 05, 2015, 08:43:01 am »
Yesterday I've got the Webadmin Internal Server Error after I installed some new Softeware-modules in Zentyal 4.0. (Modules "Mail an Groupware" and "Openchange")

First I did the dirty fix removing the line 

Code: [Select]
if ($@) {
        throw EBox::Exceptions::Internal("Cannot load $pkgName: $@");
    }

and my Webadmin-Inerface worked well.

But today I've looked at the Zentyal-Error-Log and the Error was:
Code: [Select]
2015/03/04 15:37:50 [error] 22373#0: *1 open() "/usr/share/zentyal/www/images/package-icons/zentyal-common.png" failed
(2: No such file or directory), client: 192.168.2.50, server: , request: "GET /data/images/package-icons/zentyal-common.png HTTP/1.1",
host: "192.168.2.1:8443", referrer: "https://192.168.2.1:8443/Software/EBox"

There is realy no "zentyal-common.png" in the Package-icons Directory!

I
« Last Edit: March 05, 2015, 08:45:21 am by kruemelluna0 »