CLOSED: Amahi Energy Saver
Re: Amahi Energy Saver
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.
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.
Re: Amahi Energy Saver
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
EDIT: Ref first post on page 20.
#jayrock
Re: Amahi Energy Saver
Ah many thanks,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
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
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
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
Re: Amahi Energy Saver
.... 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?
Did the issue just occur recently? Did you update your system lately?
Re: Amahi Energy Saver
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?
Any way I can reinstall the libraries, or just uninstall and start again?
Re: Amahi Energy Saver
Hmmmmm, seems I can't uninstall it from the dashboard.......anyone know how to uninstall aes manually?
Re: Amahi Energy Saver
What's the problem with uninstalling? Something doesn't seem right with your installation
To manually uninstall, stop the service first (run as root):
Then:
.. and delete everything in this folder
To clean all settings as well, run
![Surprised :o](./images/smilies/icon_e_surprised.gif)
To manually uninstall, stop the service first (run as root):
Code: Select all
service aes stop
rm /etc/init.d/aes
chkconfig --del aes
Code: Select all
cd /var/hda/web-apps/aes/
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
Re: Amahi Energy Saver
Thank you very much!What's the problem with uninstalling? Something doesn't seem right with your installation![]()
To manually uninstall, stop the service first (run as root):
Then:Code: Select all
service aes stop rm /etc/init.d/aes chkconfig --del aes
.. and delete everything in this folderCode: Select all
cd /var/hda/web-apps/aes/
To clean all settings as well, runCode: Select all
rm /usr/share/aes/* rmdir /usr/share/aes rm /usr/share/aes-lock/* rmdir /usr/share/aes-lock
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!
Re: Amahi Energy Saver
Poop. Even after this, if doesn't seem to want to play ball.What's the problem with uninstalling? Something doesn't seem right with your installation![]()
To manually uninstall, stop the service first (run as root):
Then:Code: Select all
service aes stop rm /etc/init.d/aes chkconfig --del aes
.. and delete everything in this folderCode: Select all
cd /var/hda/web-apps/aes/
To clean all settings as well, runCode: Select all
rm /usr/share/aes/* rmdir /usr/share/aes rm /usr/share/aes-lock/* rmdir /usr/share/aes-lock
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
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
Re: Amahi Energy Saver
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:
Cheers,
jayrock
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
jayrock
Who is online
Users browsing this forum: No registered users and 19 guests