Author Topic: 2.2rc2: error while browsing logs  (Read 3153 times)

christian

  • Guest
2.2rc2: error while browsing logs
« on: August 28, 2011, 08:28:28 pm »
While trying to look at "full" logs, I got this error message (same accessing FW and Events log)
"An internal error related to a template has occurred. This is a bug, relevant information can be found in the logs."
Notice that looking at summarized log doesn't show any error.

Looking at zentyal.log content, I got this. No analysis done yet  ;)
(I do not post error.log because, as there is no time stamp inside, I'm not able to correlate anything)

2011/08/28 20:21:27 ERROR> Base.pm:358 EBox::CGI::Base::__ANON__ - Error during compilation of <anonymous component>:
Bareword found where operator expected at <anonymous component> line 10, near "1.0 Transitional"
  (Might be a runaway multi-line // string starting on line 5)
   (Missing operator before Transitional?)
String found where operator expected at <anonymous component> line 11, near "EN"
            ""
  (Might be a runaway multi-line "" string starting on line 10)
Bareword found where operator expected at <anonymous component> line 11, near ""
            "http"
   (Missing operator before http?)
String found where operator expected at <anonymous component> line 12, near "dtd">
<html xmlns=""
  (Might be a runaway multi-line "" string starting on line 11)
Bareword found where operator expected at <anonymous component> line 12, near "">
<html xmlns="http"
   (Missing operator before http?)
String found where operator expected at <anonymous component> line 15, near "xhtml">
<head>
<title>' );
#line 11 ""
  (Might be a runaway multi-line "" string starting on line 12)
Use of /c modifier is meaningless without /g at <anonymous component> line 23.
Use of /c modifier is meaningless without /g at <anonymous component> line 23.
Bareword found where operator expected at <anonymous component> line 24, near "" />
<link rel="shortcut"
  (Might be a runaway multi-line "" string starting on line 23)
   (Missing operator before shortcut?)
String found where operator expected at <anonymous component> line 28, near "" href="' );
#line 13 "<anonymous component>"
$m->print(  $favicon  );
#line 13 "<anonymous component>"
$m->print( '"
  (Might be a runaway multi-line '' string starting on line 24)
   (Missing operator before ' );
#line 13 "<anonymous component>"
$m->print(  $favicon  );
#line 13 "<anonymous component>"
$m->print( '?)
String found where operator expected at <anonymous component> line 29, near "' );
#line 13 "<anonymous component>"
$m->print(  $favicon  );
#line 13 "<anonymous component>"
$m->print( '" />
<script type=""
  (Might be a runaway multi-line "" string starting on line 28)
   (Missing operator before " />
<script type="?)
Bareword found where operator expected at <anonymous component> line 29, near "" />
<script type="text"
   (Missing operator before text?)
String found where operator expected at <anonymous component> line 29, near "javascript" src=""
String found where operator expected at <anonymous component> line 30, near "js">//</script>
<script type=""
  (Might be a runaway multi-line "" string starting on line 29)
Bareword found where operator expected at <anonymous component> line 30, near "">//</script>
<script type="text"
   (Missing operator before text?)
String found where operator expected at <anonymous component> line 30, near "javascript" src=""
Warning: Use of "prototype" without parentheses is ambiguous at <anonymous component> line 30.
String found where operator expected at <anonymous component> line 31, near "js">//</script>
<script type=""
  (Might be a runaway multi-line "" string starting on line 30)
Bareword found where operator expected at <anonymous component> line 31, near "">//</script>
<script type="text"
   (Missing operator before text?)
String found where operator expected at <anonymous component> line 34, near "javascript">
<!--
function timedRefresh(timeoutPeriod) {
    setTimeout(""
  (Might be a runaway multi-line "" string starting on line 31)
Bareword found where operator expected at <anonymous component> line 34, near "">
<!--
function timedRefresh(timeoutPeriod) {
    setTimeout("location"
   (Missing operator before location?)
syntax error at <anonymous component> line 10, near "1.0 Transitional"
syntax error at <anonymous component> line 27, near "},"
syntax error at <anonymous component> line 33, at EOF
Missing right curly or square bracket at <anonymous component> line 37, at end of line


Stack:
  [/usr/share/perl5/HTML/Mason/Interp.pm:636]
  [/usr/share/perl5/EBox/Html.pm:176]
  [/usr/share/perl5/EBox/CGI/Logs/Index.pm:284]
  [/usr/share/perl5/EBox/CGI/Base.pm:185]
  [/usr/share/perl5/EBox/CGI/Base.pm:348]
  [/usr/share/perl5/Error.pm:416]
  [/usr/share/perl5/EBox/CGI/Base.pm:373]
  [/usr/share/perl5/EBox/CGI/Run.pm:129]
  [/usr/share/zentyal/cgi/ebox.cgi:34]
  [/usr/share/perl5/Error.pm:416]
  [/usr/share/zentyal/cgi/ebox.cgi:122]
  [/usr/lib/perl5/ModPerl/RegistryCooker.pm:204]
  [/usr/lib/perl5/ModPerl/RegistryCooker.pm:170]
  [/usr/lib/perl5/ModPerl/Registry.pm:31]
  [-e:0]

« Last Edit: August 28, 2011, 08:32:58 pm by christian »

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: 2.2rc2: error while browsing logs
« Reply #1 on: August 28, 2011, 11:29:47 pm »
Could you paste the output of this?

dpkg -l | grep zentyal
Zentyal Server Lead Developer

christian

  • Guest
Re: 2.2rc2: error while browsing logs
« Reply #2 on: August 28, 2011, 11:46:36 pm »
Sure.
FYI, install made using USB key and almost nothing configured for the time being.

 duplicity                            0.6.13-0ubuntu1+zentyal1                 encrypted bandwidth-efficient backup
 libhtml-mason-perl                   1:1.44-1+zentyal1                        HTML::Mason Perl module
 liblog-any-perl                      0.11-1+zentyal1                          Log anywhere
 zentyal                              2.1-1                                    Zentyal - Core metapackage
 zentyal-ca                           2.1.4                                    Zentyal - Certification Authority
 zentyal-common                       2.1.8                                    Zentyal - Common Library
 zentyal-core                         2.1.27                                   Zentyal - Core
 zentyal-dhcp                         2.1.6                                    Zentyal - DHCP Service
 zentyal-dns                          2.1.5                                    Zentyal - DNS Service
 zentyal-ebackup                      2.1.7                                    Zentyal - Backup
 zentyal-firewall                     2.1.5                                    Zentyal - Firewall
 zentyal-ftp                          2.1.1                                    Zentyal - FTP
 zentyal-mail                         2.1.9                                    Zentyal - Mail Service
 zentyal-network                      2.1.11                                   Zentyal - Network Configuration
 zentyal-objects                      2.1.3                                    Zentyal - Network Objects
 zentyal-samba                        2.1.6                                    Zentyal - File Sharing Service
 zentyal-services                     2.1.7                                    Zentyal - Network Services
 zentyal-software                     2.1.11                                   Zentyal - Software Management
 zentyal-squid                        2.1.8                                    Zentyal - HTTP Proxy (Cache and Content Filt
 zentyal-users                        2.1.9                                    Zentyal - Users and Groups
 zentyal-webserver                    2.1.3                                    Zentyal - Web Server

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: 2.2rc2: error while browsing logs
« Reply #3 on: August 28, 2011, 11:52:26 pm »
Glad to hear that the USB key installation worked for you (or at least it finished), I think it's the first feedback we receive about it. Thanks!!

In the output, what happened with the first column? Were all of them in the "ii" state? I wanted to know if there was any broken package...
Zentyal Server Lead Developer

Sam Graf

  • Guest
Re: 2.2rc2: error while browsing logs
« Reply #4 on: August 29, 2011, 12:52:17 am »
Glad to hear that the USB key installation worked for you (or at least it finished), I think it's the first feedback we receive about it.
I'm a little embarrassed about asking this, but how exactly is the 2.2 USB installation surprise different from what we've been able to do in the past? I've installed from a flash drive often (at first out of necessity), so I'm a little confused ...

christian

  • Guest
Re: 2.2rc2: error while browsing logs
« Reply #5 on: August 29, 2011, 08:08:40 am »
In the output, what happened with the first column? Were all of them in the "ii" state? I wanted to know if there was any broken package...

Hoops, column copy/past  ::)  there is non  ;D

ii  duplicity                            0.6.13-0ubuntu1+zentyal1                 encrypted bandwidth-efficient backup
ii  libhtml-mason-perl                   1:1.44-1+zentyal1                        HTML::Mason Perl module
ii  liblog-any-perl                      0.11-1+zentyal1                          Log anywhere
ii  zentyal                              2.1-1                                    Zentyal - Core metapackage
ii  zentyal-ca                           2.1.4                                    Zentyal - Certification Authority
ii  zentyal-common                       2.1.8                                    Zentyal - Common Library
ii  zentyal-core                         2.1.27                                   Zentyal - Core
ii  zentyal-dhcp                         2.1.6                                    Zentyal - DHCP Service
ii  zentyal-dns                          2.1.5                                    Zentyal - DNS Service
ii  zentyal-ebackup                      2.1.7                                    Zentyal - Backup
ii  zentyal-firewall                     2.1.5                                    Zentyal - Firewall
ii  zentyal-ftp                          2.1.1                                    Zentyal - FTP
ii  zentyal-mail                         2.1.9                                    Zentyal - Mail Service
ii  zentyal-network                      2.1.11                                   Zentyal - Network Configuration
ii  zentyal-objects                      2.1.3                                    Zentyal - Network Objects
ii  zentyal-samba                        2.1.6                                    Zentyal - File Sharing Service
ii  zentyal-services                     2.1.7                                    Zentyal - Network Services
ii  zentyal-software                     2.1.11                                   Zentyal - Software Management
ii  zentyal-squid                        2.1.8                                    Zentyal - HTTP Proxy (Cache and Content Filt
ii  zentyal-users                        2.1.9                                    Zentyal - Users and Groups
ii  zentyal-webserver                    2.1.3                                    Zentyal - Web Server


This morning I also noticed there is no Zentyal component available for installation in the "Software management" section.

christian

  • Guest
Re: 2.2rc2: error while browsing logs
« Reply #6 on: August 29, 2011, 08:10:37 am »
I'm a little embarrassed about asking this, but how exactly is the 2.2 USB installation surprise different from what we've been able to do in the past? I've installed from a flash drive often (at first out of necessity), so I'm a little confused ...

So far I've never been able to install Ebox (never tried since we shifted to Zentyal) using USB key and having set up this key using Ubunt "startup disk creator" feature. Now it works  ;)

Sam Graf

  • Guest
Re: 2.2rc2: error while browsing logs
« Reply #7 on: August 29, 2011, 12:55:32 pm »
I don't think I tried eBox either. But on acquiring some old Dell server hardware I found out that the Ubuntu installer broke Adaptec SCSI support (6.04 was the last LTS release to work) and would irretrievably hang, making it impossible to install from a stock Zentyal ISO. While the same old hardware also didn't support USB boot disks, that could be remedied, and a USB flash drive was the only way I ever installed Zentyal on that hardware. :-\

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: 2.2rc2: error while browsing logs
« Reply #8 on: August 29, 2011, 01:06:18 pm »
Well, we received a lot of complains of people not being able to install eBox/Zentyal from an USB stick. We tested by ourselves and it was true, the installer gave a "CD-ROM not found" error or something like that on the first stage. Finally we discovered a "cdrom-detect/try-usb = yes" boot flag (which is the change in 2.2-rc2) and with that it seems to work.

christian, regarding to your issue, I have no idea, everything seems ok :( could you try to repeat the process on a different machine?
Zentyal Server Lead Developer

christian

  • Guest
Re: 2.2rc2: error while browsing logs
« Reply #9 on: August 29, 2011, 02:13:00 pm »
regarding to your issue, I have no idea, everything seems ok :( could you try to repeat the process on a different machine?

No I can't on different machine... because this is the only hardware dedicated for test purpose  :( but I can definitely erase everything and install again, because this is my test server  ;D
I'll do it in a couple of days and let you know.
Install from USB key is fast. What is the most painful here is that initial configuration requires to connect on server itself while I would have preferred to do it from my browser. Well, this is not a blocking point  :P

Sam Graf

  • Guest
Re: 2.2rc2: error while browsing logs
« Reply #10 on: August 29, 2011, 02:20:12 pm »
Well, we received a lot of complains of people not being able to install eBox/Zentyal from an USB stick. We tested by ourselves and it was true, the installer gave a "CD-ROM not found" error or something like that on the first stage.
Yes, now that you mention it, I remember reading some posts about that (I think). Cool that a fix is in place. ;D

OK, this topic hijack is officially over.

christian

  • Guest
Re: 2.2rc2: error while browsing logs
« Reply #11 on: August 29, 2011, 02:37:43 pm »
OK, this topic hijack is officially over.

 :) We are in the Beta section. Anything related to Beta is welcome here. Furthermore this is not really OT as I'm the one having made comment about USB install  ;D
BTW, at least with my hardware (small 1.5GHz server), USB based install is really faster  :)

Ret

  • Zen Apprentice
  • *
  • Posts: 35
  • Karma: +1/-0
    • View Profile
Re: 2.2rc2: error while browsing logs
« Reply #12 on: August 29, 2011, 03:49:01 pm »
Hi, I've installed Zentyal 2.1 though ppa in a clean Ubuntu Server 10.04.3 system.
I experience exactly the same as christian: When accessing logs I get "An internal error related to a template has occurred. This is a bug, relevant information can be found in the logs."

This is "dpkg -l | grep zentyal" output
Code: [Select]
ii  libhtml-mason-perl                     1:1.44-1+zentyal1                 HTML::Mason Perl module
ii  libjs-jquery                           1.5-2ubuntu1+zentyal1             JavaScript library for dynamic web applicati
ii  liblog-any-perl                        0.11-1+zentyal1                   Log anywhere
ii  zentyal                                2.1                               Zentyal - Core
ii  zentyal-antivirus                      2.1.3                             Zentyal - Antivirus
ii  zentyal-common                         2.1.8                             Zentyal - Common Library
ii  zentyal-core                           2.1.27                            Zentyal - Core
ii  zentyal-firewall                       2.1.6                             Zentyal - Firewall
ii  zentyal-network                        2.1.11                            Zentyal - Network Configuration
ii  zentyal-objects                        2.1.3                             Zentyal - Network Objects
ii  zentyal-services                       2.1.7                             Zentyal - Network Services
ii  zentyal-software                       2.1.11                            Zentyal - Software Management

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: 2.2rc2: error while browsing logs
« Reply #13 on: August 29, 2011, 10:21:42 pm »
Ok, I think I found the problem and it's already fixed: http://trac.zentyal.org/changeset/22977

A new package will be released soon, but in the meanwhile you can apply the patch manually on /usr/share/zentyal/templates/headerWithRefresh.mas

Thanks for reporting it!
Zentyal Server Lead Developer

christian

  • Guest
Re: 2.2rc2: error while browsing logs
« Reply #14 on: August 29, 2011, 11:20:23 pm »
I confirm your fix is the correct one, at least for what concerns error I was facing.
Thanks a lot !!