Modify

Ticket #2907 (closed enhancement: worksforme)

Opened 2 years ago

Last modified 7 months ago

Template error if no RAID was configured

Reported by: commi1993@… Owned by: jamor@…
Milestone: nice to have someday Component: base
Severity: normal Keywords:
Cc:

Description

I've set up Zentyal 2.1-1 beta and installed a few things.

After click System -> RAID I get:

=========

A internal error related to a template has occured. This is a bug. relevant infos can be found on the log.

=========

I've never configured a RAID.

Do you need a log, or is this fixable without it? ;)

Attachments

testRAIDEvent.pl Download (856 bytes) - added by jamor@… 2 years ago.

Change History

comment:1 Changed 2 years ago by jamor@…

  • Owner changed from jacalvo@… to jamor@…
  • Status changed from new to assigned

comment:2 Changed 2 years ago by jamor@…

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [21440]) fixed some RAID report issues, untabified CGI file close #2907

comment:3 follow-up: ↓ 4 Changed 2 years ago by jamor@…

Thansk a lot for your report commi1993, now it is fixed in the repository and the next release will include the fix

comment:4 in reply to: ↑ 3 Changed 2 years ago by edump@…

  • Type changed from defect to enhancement

Replying to jamor@…:

Thansk a lot for your report commi1993, now it is fixed in the repository and the next release will include the fix

if patch version 2.1-1 x64 beta from site crash evets sectios ((

raid sections work, event crash...

log:

2011/06/09 00:17:09 INFO> EventDaemon.pm:307 EBox::EventDaemon::_loadModules - EBox::Event::Watcher::Log loaded from registeredEvents
2011/06/09 00:17:09 INFO> EventDaemon.pm:307 EBox::EventDaemon::_loadModules - EBox::Event::Watcher::State loaded from registeredEvents
2011/06/09 00:17:09 INFO> EventDaemon.pm:307 EBox::EventDaemon::_loadModules - EBox::Event::Watcher::RAID loaded from registeredEvents
2011/06/09 00:17:09 INFO> EventDaemon.pm:307 EBox::EventDaemon::_loadModules - EBox::Event::Dispatcher::Log loaded from registeredDispatchers
2011/06/09 00:17:09 INFO> EventDaemon.pm:307 EBox::EventDaemon::_loadModules - EBox::Event::Watcher::Runit loaded from registeredEvents
2011/06/09 00:17:09 INFO> EventDaemon.pm:307 EBox::EventDaemon::_loadModules - EBox::Event::Dispatcher::ControlCenter loaded from registeredDispatchers
2011/06/09 00:17:14 INFO> Log.pm:118 EBox::Event::Dispatcher::Log::send - $VAR1 = bless( {
                 'source' => 'state',
                 'compMessage' => undef,
                 'level' => 'info',
                 'dispatchers' => [
                                    'any'
                                  ],
                 'timestamp' => 1307564229,
                 'message' => 'Zentyal is up and running'
               }, 'EBox::Event' );
2011/06/09 00:19:15 ERROR> Base.pm:337 EBox::CGI::Base::__ANON__ - Can't use string ("EBox::Report::RAID") as a HASH ref while "strict refs" in use at /usr/share/perl5/EBox/Report/RAID.pm line 48.

Stack:
  [/usr/share/perl5/EBox/Report/RAID.pm:48]
  [/usr/share/perl5/EBox/Event/Watcher/RAID.pm:156]
  [/usr/share/perl5/EBox/Events/Model/ConfigureEventDataTable.pm:513]
  [/usr/share/perl5/EBox/Events/Model/ConfigureEventDataTable.pm:143]
  [/usr/share/perl5/EBox/Model/DataTable.pm:1546]
  [/usr/share/zentyal/templates/ajax/tableBody.mas:59]
  [/usr/share/zentyal/templates/ajax/modelViewer.mas:152]
  [/usr/share/zentyal/templates/ajax/modelViewer.mas:69]
  [/usr/share/zentyal/templates/ajax/tableBody.mas:19]
  [/usr/share/zentyal/templates/ajax/tabMenu.mas:61]
  [<anonymous component>:42]

comment:5 follow-ups: ↓ 7 ↓ 8 Changed 2 years ago by jamor@…

I could not reproduce this. Try to upgrade to the last version of zentyal-core. Then run as superuser the attached file 'testRAIDEvent.pl' to see whether the problem is solved or not.

Changed 2 years ago by jamor@…

comment:6 Changed 2 years ago by jamor@…

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:7 in reply to: ↑ 5 Changed 2 years ago by edump@…

Replying to jamor@…:

I could not reproduce this. Try to upgrade to the last version of zentyal-core. Then run as superuser the attached file 'testRAIDEvent.pl' to see whether the problem is solved or not.

Ok, today check this solution.

Yesterday, i revert change in two files RAID.pm in folders Report. (raid.nas +fix 21440).

After reboot server error repairs... Raid page - work (not assured that contains current actual information, events - work again)

comment:8 in reply to: ↑ 5 Changed 2 years ago by edump@…

Replying to jamor@…:

I could not reproduce this. Try to upgrade to the last version of zentyal-core. Then run as superuser the attached file 'testRAIDEvent.pl' to see whether the problem is solved or not.

run test - log: Can't use string ("EBox::Report::RAID") as a HASH ref while "strict refs" in use at /usr/share/perl5/EBox/Report/RAID.pm line 48.

comment:9 Changed 2 years ago by jacalvo@…

  • Milestone set to 2.2

comment:10 Changed 22 months ago by jacalvo@…

  • Status changed from reopened to closed
  • Resolution set to worksforme

We can't reproduce this, please upgrade to the last version of the packages available, and reopen if it still happens and you can provide detailed info on how to do it. Thanks.

comment:11 Changed 18 months ago by shart@…

  • Status changed from closed to reopened
  • Resolution worksforme deleted

I have this problem on a fresh 2.2 install. No RAID configured at installation, now I go to the RAID tab and get the same error.

comment:12 Changed 18 months ago by shart@…

From zentyal.log I get the following when I click on the RAID link in the menu:

2011/11/28 11:02:47 ERROR> Base.pm:337 EBox::CGI::Base::ANON - Error during compilation of <anonymous component>: Bareword found where operator expected at (eval 2135) line 257, near "Array"

(Might be a runaway multi-line string starting on line 236)

(Missing operator before Array?)

String found where operator expected at (eval 2135) line 259, near "'), ); #line 79 <anonymous component> $m->print( '"

(Might be a runaway multi-line string starting on line 257)

(Missing operator before ');

#line 79 <anonymous component> $m->print( '?) String found where operator expected at (eval 2135) line 262, near "'); #line 79 <anonymous component> $m->print( ' ' ); #line 183 <anonymous component> $m->comp( '"

(Might be a runaway multi-line string starting on line 260)

(Missing operator before

' ); #line 183 <anonymous component> $m->comp( '?) Bad name after mas' at (eval 2135) line 262.

Stack:

usr/share/perl5/HTML/Mason/Interp.pm:636 usr/share/perl5/EBox/CGI/Base.pm:135 usr/share/perl5/EBox/CGI/Base.pm:173 usr/share/perl5/EBox/CGI/Base.pm:327 usr/share/perl5/Error.pm:416 usr/share/perl5/EBox/CGI/Base.pm:352 usr/share/perl5/EBox/CGI/Run.pm:128 usr/share/zentyal/cgi/ebox.cgi:34 usr/share/perl5/Error.pm:416 usr/share/zentyal/cgi/ebox.cgi:113 usr/lib/perl5/ModPerl/RegistryCooker.pm:204 usr/lib/perl5/ModPerl/RegistryCooker.pm:170 usr/lib/perl5/ModPerl/Registry.pm:31 [-e:0]

comment:13 Changed 18 months ago by shart@…

In error.log:

Use of uninitialized value $currentSeparator in string ne at /usr/share/perl5/EBox/Menu/Root.pm line 51. Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Menu/Separator.pm line 44. Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Menu/Separator.pm line 44. Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Menu/Separator.pm line 44. Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Menu/Separator.pm line 44. Use of uninitialized value in subroutine entry at /usr/share/perl5/EBox/Gettext.pm line 99. Use of uninitialized value in subroutine entry at /usr/share/perl5/EBox/Gettext.pm line 100. Use of uninitialized value in subroutine entry at /usr/share/perl5/EBox/Gettext.pm line 99. Use of uninitialized value in subroutine entry at /usr/share/perl5/EBox/Gettext.pm line 100.

comment:14 Changed 18 months ago by jacalvo@…

  • Milestone changed from 2.2 to 2.2.X

comment:15 Changed 18 months ago by jamor@…

Hello,

I have zentyal-core = 2.2.3, no RAID and it is working correctly. If you have a lower version of zentyal-core, please update it and try again.

If you have already 2.2.3 and the problem persists please paste the output of the following two commands:

$ ls -l /proc/mdstat
$ cat /proc/mdstat

Regards, Javier

comment:16 Changed 18 months ago by shart@…

  • Status changed from reopened to closed
  • Resolution set to worksforme

I think I was using 2.1-1, there were a few things that weren't working correctly so I re-installed with 2.2. and created the RAID during installation. All is OK now. Thanks

BTW you can't reply to your emails to update the tracker :(

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.