Author Topic: [SOLVED]Webserver error following upgrade  (Read 2066 times)

mervyn

  • Zen Apprentice
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
[SOLVED]Webserver error following upgrade
« on: March 27, 2011, 03:40:28 pm »
Core version 2.0.16.
Installed Webserver upgrade 2.0.4 this morning, now unable to start webserver.
Log entry:
Quote
2011/03/27 09:36:32 ERROR> RestartService.pm:57 EBox::CGI::EBox::RestartService::__ANON__ - Restart of EBox::WebServer=HASH($
Global symbol "$hostname" requires explicit package name at (eval 1468) line 17.
Global symbol "$portNumber" requires explicit package name at (eval 1468) line 22.
Global symbol "$hostname" requires explicit package name at (eval 1468) line 27.
Stack:
  [/usr/share/perl5/HTML/Mason/Interp.pm:636]
  [/usr/share/perl5/EBox/Module/Base.pm:923]
  [/usr/share/perl5/Error.pm:416]
  [/usr/share/perl5/EBox/Module/Base.pm:928]
  [/usr/share/perl5/EBox/Module/Service.pm:778]
  [/usr/share/perl5/EBox/WebServer.pm:389]
  [/usr/share/perl5/EBox/WebServer.pm:352]
  [/usr/share/perl5/EBox/Module/Base.pm:816]
  [/usr/share/perl5/EBox/Module/Service.pm:680]
  [/usr/share/perl5/EBox/Module/Service.pm:708]
  [/usr/share/perl5/Error.pm:416]
  [/usr/share/perl5/EBox/Module/Service.pm:715]
  [/usr/share/perl5/EBox/CGI/EBox/RestartService.pm:53]
login as: mervyn
mervyn@192.168.55.11's password:
Linux ngnet-last 2.6.32-30-server #59-Ubuntu SMP Tue Mar 1 22:46:09 UTC 2011 x86                                             _64 GNU/Linux
Ubuntu 10.04.2 LTS
  
  [/usr/share/perl5/EBox/Module/Service.pm:715]
  [/usr/share/perl5/EBox/CGI/EBox/RestartService.pm:53]
  [/usr/share/perl5/Error.pm:416]
  [/usr/share/perl5/EBox/CGI/EBox/RestartService.pm:59]
  [/usr/share/perl5/EBox/CGI/Base.pm:262]
  [/usr/share/perl5/Error.pm:416]
  [/usr/share/perl5/EBox/CGI/Base.pm:278]
  [/usr/share/perl5/EBox/CGI/Run.pm:120]
  [/usr/share/ebox/cgi/ebox.cgi:35]
  [/usr/share/perl5/Error.pm:416]
  [/usr/share/ebox/cgi/ebox.cgi:108]
  [/usr/lib/perl5/ModPerl/RegistryCooker.pm:204]
  [/usr/lib/perl5/ModPerl/RegistryCooker.pm:170]
  [/usr/lib/perl5/ModPerl/Registry.pm:31]
  [-e:0]
2011/03/27 09:37:14 INFO> Log.pm:118 EBox::Event::Dispatcher::Log::send - $VAR1 = bless( {
                 'source' => 'state',
                 'compMessage' => undef,
                 'level' => 'info',
                 'dispatchers' => [
                                    'any'
                                  ],
                 'timestamp' => 1301233034,
                 'message' => 'Zentyal is up and running'
               }, 'EBox::Event' );



« Last Edit: March 28, 2011, 12:14:34 pm by mervyn »

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: Webserver error following upgrade
« Reply #1 on: March 27, 2011, 05:41:25 pm »
I can't reproduce this. Could you provide more info about your exact webserver configuration (ssl, public_html, virtual hosts, ...) ?
Zentyal Server Lead Developer

mervyn

  • Zen Apprentice
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Webserver error following upgrade
« Reply #2 on: March 27, 2011, 09:05:08 pm »
No virtual hosts.

Only change from initial installation is in default.mas where I have a different root page.

Default.mas
Quote
%args>
  $hostname
  $portNumber
</%args>
ServerName <% $hostname %>
<VirtualHost *:<% $portNumber %>>
        ServerAdmin webmaster@<% $hostname %>

        DocumentRoot /mnt/ngnet_share/www/public_html/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /mnt/ngnet_share/www/public_html/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                Allow from all
        </Directory>
 

No ssl changes either.

However apache2 is working fine in spite of the apparent inability to start webserver in Zentyal control but this time I had to manually write the changes to default in sites-available.

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: Webserver error following upgrade
« Reply #3 on: March 27, 2011, 10:27:47 pm »
It seems you have broken the syntax of the .mas file. There is a "<" missing on the beginning of the file (it should be "<%args>").
Zentyal Server Lead Developer

mervyn

  • Zen Apprentice
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: [SOLVED]Webserver error following upgrade
« Reply #4 on: March 28, 2011, 12:15:31 pm »
That's it, thank you my silly mistake!!!