CLOSED: Amahi Energy Saver

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: Amahi Energy Saver

Postby modem7 » Mon Apr 29, 2013 2:29 pm

Hey guys

Got a bit of a problem, my AES doesn't seem to be shutting down my server anymore.

Current Calendar settings:
https://dl.dropboxusercontent.com/u/20998810/aes.jpg

Current AES settings:
https://dl.dropboxusercontent.com/u/20998810/aes2.jpg

Log:
https://dl.dropboxusercontent.com/u/209 ... %20log.txt

Log.0:
https://dl.dropboxusercontent.com/u/209 ... 0log.0.txt

Any ideas as to what the problem could be?

Edit:
Going to try disabling some of the WOL features on the NIC.

User avatar
jayrock
Posts: 223
Joined: Thu Dec 02, 2010 12:55 am

Re: Amahi Energy Saver

Postby jayrock » Mon Apr 29, 2013 11:46 pm

From the log it looks like aes crashes regularly. Could you stop the service and run aes via command line to see if there is any console output.

EDIT: Ref first post on page 20.

#jayrock

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: Amahi Energy Saver

Postby modem7 » Tue Apr 30, 2013 2:20 am

From the log it looks like aes crashes regularly. Could you stop the service and run aes via command line to see if there is any console output.

EDIT: Ref first post on page 20.

#jayrock
Ah many thanks,

Here's the trace output:

Code: Select all

[alex@AlexServer ~]$ ruby /var/hda/web-apps/aes/html/lib/aes.rb /usr/lib/ruby/1.8/logger.rb:517:in `initialize': Permission denied - /var/log/aes.log (Errno::EACCES) from /usr/lib/ruby/1.8/logger.rb:517:in `open' from /usr/lib/ruby/1.8/logger.rb:517:in `open_logfile' from /usr/lib/ruby/1.8/logger.rb:486:in `initialize' from /usr/lib/ruby/1.8/logger.rb:262:in `new' from /usr/lib/ruby/1.8/logger.rb:262:in `initialize' from /var/hda/web-apps/aes/html/lib/aes.rb:47:in `new' from /var/hda/web-apps/aes/html/lib/aes.rb:47
Hope that helps!

edit: Noticed that there was a permission denied.

If I run as sudo, nothing seems to happen for quite a while. If I Ctrl+C, then I get:

Code: Select all

^C/var/hda/web-apps/aes/html/lib/aes.rb:517:in `sleep': Interrupt from /var/hda/web-apps/aes/html/lib/aes.rb:517
Edit #2: Turns out I was just impatient:

Code: Select all

[root@AlexServer alex]# ruby /var/hda/web-apps/aes/html/lib/aes.rb /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/component/timezone.rb:106:in `period_for_local': uninitialized constant RiCal::Component::Timezone::TZInfo (NameError) from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/component/timezone.rb:31:in `rational_utc_offset' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/property_value/date_time/timezone_support.rb:61:in `rational_tz_offset' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/property_value/date_time.rb:312:in `to_finish_time' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/component/event.rb:44:in `finish_time' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/occurrence_enumerator.rb:202:in `before_range?' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/occurrence_enumerator.rb:101:in `before_start?' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/occurrence_enumerator.rb:143:in `each' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/occurrence_enumerator.rb:173:in `to_a' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/occurrence_enumerator.rb:173:in `to_a' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/occurrence_enumerator.rb:193:in `occurrences' from /var/hda/web-apps/aes/html/lib/icalendar-parser.rb:140:in `is_active_task' from /var/hda/web-apps/aes/html/lib/icalendar-parser.rb:139:in `each' from /var/hda/web-apps/aes/html/lib/icalendar-parser.rb:139:in `is_active_task' from /var/hda/web-apps/aes/html/lib/icalendar-parser.rb:138:in `each' from /var/hda/web-apps/aes/html/lib/icalendar-parser.rb:138:in `is_active_task' from /var/hda/web-apps/aes/html/lib/aes.rb:145:in `is_active_task' from /var/hda/web-apps/aes/html/lib/aes.rb:100:in `prevent_shutdown' from /var/hda/web-apps/aes/html/lib/aes.rb:525

User avatar
jayrock
Posts: 223
Joined: Thu Dec 02, 2010 12:55 am

Re: Amahi Energy Saver

Postby jayrock » Tue Apr 30, 2013 12:25 pm

.... looks like a problem in one of the external Ruby libraries, namely RiCal. I cannot reproduce it though.

Did the issue just occur recently? Did you update your system lately?

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: Amahi Energy Saver

Postby modem7 » Tue Apr 30, 2013 2:59 pm

Wed 03 Apr 2013, 17:52, don't think I've changed anything.

Any way I can reinstall the libraries, or just uninstall and start again?

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: Amahi Energy Saver

Postby modem7 » Sun May 05, 2013 6:34 pm

Hmmmmm, seems I can't uninstall it from the dashboard.......anyone know how to uninstall aes manually?

User avatar
jayrock
Posts: 223
Joined: Thu Dec 02, 2010 12:55 am

Re: Amahi Energy Saver

Postby jayrock » Sun May 05, 2013 11:13 pm

What's the problem with uninstalling? Something doesn't seem right with your installation :o

To manually uninstall, stop the service first (run as root):

Code: Select all

service aes stop rm /etc/init.d/aes chkconfig --del aes
Then:

Code: Select all

cd /var/hda/web-apps/aes/
.. and delete everything in this folder

To clean all settings as well, run

Code: Select all

rm /usr/share/aes/* rmdir /usr/share/aes rm /usr/share/aes-lock/* rmdir /usr/share/aes-lock

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: Amahi Energy Saver

Postby modem7 » Mon May 06, 2013 6:00 am

What's the problem with uninstalling? Something doesn't seem right with your installation :o

To manually uninstall, stop the service first (run as root):

Code: Select all

service aes stop rm /etc/init.d/aes chkconfig --del aes
Then:

Code: Select all

cd /var/hda/web-apps/aes/
.. and delete everything in this folder

To clean all settings as well, run

Code: Select all

rm /usr/share/aes/* rmdir /usr/share/aes rm /usr/share/aes-lock/* rmdir /usr/share/aes-lock
Thank you very much!

Seems that the exact time I was trying to uninstall, Amahi website was going down for maintenance, so couldn't uninstall!

Just managed to reinstall, so will see what happens over the next couple of days.

Once again, thank you!

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: Amahi Energy Saver

Postby modem7 » Wed May 08, 2013 5:13 am

What's the problem with uninstalling? Something doesn't seem right with your installation :o

To manually uninstall, stop the service first (run as root):

Code: Select all

service aes stop rm /etc/init.d/aes chkconfig --del aes
Then:

Code: Select all

cd /var/hda/web-apps/aes/
.. and delete everything in this folder

To clean all settings as well, run

Code: Select all

rm /usr/share/aes/* rmdir /usr/share/aes rm /usr/share/aes-lock/* rmdir /usr/share/aes-lock
Poop. Even after this, if doesn't seem to want to play ball.

Exerpt:

Set to shut down at 1am unless a host is active.

Code: Select all

D, [2013-05-08T01:15:18.624353 #12892] DEBUG -- : h106.home.com: External ping successful 0.000493 ms D, [2013-05-08T01:18:18.634932 #12892] DEBUG -- : h106.home.com: External ping successful 0.000611 ms D, [2013-05-08T01:21:18.658067 #12892] DEBUG -- : h106.home.com: External ping successful 0.000637 ms D, [2013-05-08T01:24:18.682617 #12892] DEBUG -- : h106.home.com: External ping successful 0.000552 ms D, [2013-05-08T01:27:18.699966 #12892] DEBUG -- : h106.home.com: External ping successful 0.00059 ms D, [2013-05-08T01:30:18.726156 #12892] DEBUG -- : h106.home.com: External ping successful 0.000644 ms D, [2013-05-08T01:34:19.601118 #12892] DEBUG -- : h106.home.com, 192.168.1.106: External ping unsuccessful D, [2013-05-08T01:34:19.623380 #12892] DEBUG -- : No locked shares found I, [2013-05-08T01:34:46.353847 #1583] INFO -- : Starting Amahi Energy Saver Version 0.9.5 D, [2013-05-08T01:34:46.354064 #1583] DEBUG -- : 180, Fixnum D, [2013-05-08T01:34:46.354144 #1583] DEBUG -- : Poweroff, String D, [2013-05-08T01:34:46.354214 #1583] DEBUG -- : 0, String D, [2013-05-08T01:34:46.354280 #1583] DEBUG -- : ical, String D, [2013-05-08T01:34:46.354346 #1583] DEBUG -- : 35, String D, [2013-05-08T01:34:46.354412 #1583] DEBUG -- : 5, String D, [2013-05-08T01:34:46.354499 #1583] DEBUG -- : 0, String D, [2013-05-08T01:34:46.355449 #1583] DEBUG -- : SpindDownIdleDisks disabled D, [2013-05-08T01:37:50.161358 #1583] DEBUG -- : h106.home.com, 192.168.1.106: External ping unsuccessful D, [2013-05-08T01:37:50.178722 #1583] DEBUG -- : No locked shares found I, [2013-05-08T01:38:22.428995 #1849] INFO -- : Starting Amahi Energy Saver Version 0.9.5 D, [2013-05-08T01:38:22.429322 #1849] DEBUG -- : 180, Fixnum D, [2013-05-08T01:38:22.429471 #1849] DEBUG -- : Poweroff, String D, [2013-05-08T01:38:22.429603 #1849] DEBUG -- : 0, String D, [2013-05-08T01:38:22.429748 #1849] DEBUG -- : ical, String D, [2013-05-08T01:38:22.429874 #1849] DEBUG -- : 35, String D, [2013-05-08T01:38:22.429999 #1849] DEBUG -- : 5, String D, [2013-05-08T01:38:22.430129 #1849] DEBUG -- : 0, String D, [2013-05-08T01:38:22.431533 #1849] DEBUG -- : SpindDownIdleDisks disabled D, [2013-05-08T01:41:27.004983 #1849] DEBUG -- : h106.home.com, 192.168.1.106: External ping unsuccessful D, [2013-05-08T01:41:27.019744 #1849] DEBUG -- : No locked shares found I, [2013-05-08T01:41:58.926836 #2248] INFO -- : Starting Amahi Energy Saver Version 0.9.5 D, [2013-05-08T01:41:58.927174 #2248] DEBUG -- : 180, Fixnum
And from: ruby /var/hda/web-apps/aes/html/lib/aes.rb

Code: Select all

sudo ruby /var/hda/web-apps/aes/html/lib/aes.rb /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/component/timezone.rb:106:in `period_for_local': uninitialized constant RiCal::Component::Timezone::TZInfo (NameError) from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/component/timezone.rb:31:in `rational_utc_offset' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/property_value/date_time/timezone_support.rb:61:in `rational_tz_offset' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/property_value/date_time.rb:312:in `to_finish_time' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/component/event.rb:44:in `finish_time' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/occurrence_enumerator.rb:202:in `before_range?' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/occurrence_enumerator.rb:101:in `before_start?' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/occurrence_enumerator.rb:143:in `each' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/occurrence_enumerator.rb:173:in `to_a' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/occurrence_enumerator.rb:173:in `to_a' from /usr/lib/ruby/gems/1.8/gems/ri_cal-0.8.8/lib/ri_cal/occurrence_enumerator.rb:193:in `occurrences' from /var/hda/web-apps/aes/html/lib/icalendar-parser.rb:140:in `is_active_task' from /var/hda/web-apps/aes/html/lib/icalendar-parser.rb:139:in `each' from /var/hda/web-apps/aes/html/lib/icalendar-parser.rb:139:in `is_active_task' from /var/hda/web-apps/aes/html/lib/icalendar-parser.rb:138:in `each' from /var/hda/web-apps/aes/html/lib/icalendar-parser.rb:138:in `is_active_task' from /var/hda/web-apps/aes/html/lib/aes.rb:145:in `is_active_task' from /var/hda/web-apps/aes/html/lib/aes.rb:100:in `prevent_shutdown' from /var/hda/web-apps/aes/html/lib/aes.rb:525

User avatar
jayrock
Posts: 223
Joined: Thu Dec 02, 2010 12:55 am

Re: Amahi Energy Saver

Postby jayrock » Wed May 08, 2013 11:24 pm

The error is caused by an external library, RiCal. Perhaps you can be a spokesman and ask the developers to investigate this exception?

Very strange also that it occurs on your system only, I've never received any other report like yours. Are you using the calendar feature of AES at all? I'm wondering if your ical-file is broken, can to try to let aes rebuild it:

Code: Select all

cp /var/hda/calendar/html/aes.ics /var/hda/calendar/html/aes.ics.bak rm /var/hda/calendar/html/aes.ics services aes restart
Cheers,
jayrock

Who is online

Users browsing this forum: No registered users and 8 guests