mdzidic / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
Other
0 stars 0 forks source link

CPU/RAM/HDD load is empty for VPS #202

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
None of the details of the VPS are shown (CPU load, disk load, memory load, 
KMEMSIZE, LOCKEDPAGES, etc - see attachments). I've tried reinstalling OWP, 
creating a new VPS, removing and recreating a VPS, etc. It happens all the time.

Version of the product:
1.6 r762

Server OS:
CentOS release 5.5 (Final)

Browser:
Google Chrome 7.0.517.44, Firefox 3.6.12

Additional information:
I noticed this after the one of the last updates (i'm not sure which one, i 
just noticed after updating to the latest trunk version)

Original issue reported on code.google.com by vlad.nedelcu on 7 Nov 2010 at 10:52

Attachments:

GoogleCodeExporter commented 9 years ago
Stats information doesn't appear immediately, but after one minute of the work. 
If it still doesn't appear, probably there are problems with watchdog.

Can you provide the output of the command:
tail -30 utils/watchdog/watchdog.log 

Original comment by sibprogrammer on 8 Nov 2010 at 4:07

GoogleCodeExporter commented 9 years ago

Original comment by sibprogrammer on 8 Nov 2010 at 4:28

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r763.

Watchdog dies after one hour due to attempt to compress DB inside transaction.

Original comment by sibprogrammer on 8 Nov 2010 at 4:51

GoogleCodeExporter commented 9 years ago
Can you reproduce the problem using latest build? See 
http://owp.softunity.com.ru/

Original comment by sibprogrammer on 8 Nov 2010 at 4:54

GoogleCodeExporter commented 9 years ago
how is that daemon suppose to start?  manually? is OWP should start it? cause 
it's not. there is no watchdog.log...

Original comment by vlad.nedelcu on 8 Nov 2010 at 8:14

GoogleCodeExporter commented 9 years ago
ok, just did an update to the latest trunk version. The CPU load/RAM/HDD Load 
are working, but the details page gives an error 500

this is from the production.log

P
Processing Admin::VirtualServersController#stat_details (for 188.x.x.x at 
2010-11-08 10:12:21) [GET]
  Parameters: {"id"=>"1"}

NoMethodError (undefined method `min' for nil:NilClass):
    /app/controllers/admin/virtual_servers_controller.rb:143:in `stat_details'
    /app/controllers/admin/virtual_servers_controller.rb:140:in `map'
    /app/controllers/admin/virtual_servers_controller.rb:140:in `stat_details'
    /vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `send'
    /vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `perform_action_without_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
    /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
    /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /vendor/rails/actionpack/lib/action_controller/rescue.rb:136:in `perform_action_without_caching'
    /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
    /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
    /vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
    /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
    /vendor/rails/actionpack/lib/action_controller/base.rb:524:in `send'
    /vendor/rails/actionpack/lib/action_controller/base.rb:524:in `process_without_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process_without_session_management_support'
    /vendor/rails/actionpack/lib/action_controller/session_management.rb:134:in `process'
    /vendor/rails/actionpack/lib/action_controller/base.rb:392:in `process'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:183:in `handle_request'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:123:in `dispatch'
    /usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
     /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in `dispatch'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:39:in `dispatch'
    /vendor/rails/railties/lib/webrick_server.rb:103:in `handle_dispatch'
    /vendor/rails/railties/lib/webrick_server.rb:74:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:37:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
    /vendor/rails/railties/lib/webrick_server.rb:60:in `dispatch'
    /vendor/rails/railties/lib/commands/servers/webrick.rb:66
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    /vendor/rails/railties/lib/commands/server.rb:49
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    //script/server:3

Internal error: undefined method `min' for nil:NilClass
Rendering /opt/ovz-web-panel/public/500.html (500 Internal Server Error)

Original comment by vlad.nedelcu on 8 Nov 2010 at 8:17

GoogleCodeExporter commented 9 years ago
i just noticed this (i don't know if it's related) 

Memory usage: 0%, 396.5 MB of 34359738368 TB / 34359738368 TB free

it's true, i have unlimited memory for my VPS, but where is 34359738368 TB 
coming from?

Original comment by vlad.nedelcu on 8 Nov 2010 at 8:31

GoogleCodeExporter commented 9 years ago
Please provide the output of:
sqlite3 db/production.sqlite3 "select * from bean_counters where 
name='privvmpages' order by id desc limit 1;"

Original comment by sibprogrammer on 8 Nov 2010 at 10:06

GoogleCodeExporter commented 9 years ago
4680|privvmpages|2|67949|72001|262144|262144|0|1||f

Original comment by vlad.nedelcu on 8 Nov 2010 at 10:08

GoogleCodeExporter commented 9 years ago

Original comment by sibprogrammer on 8 Nov 2010 at 2:35

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r764.

Manual dates preparation to support old SQLite versions.

Original comment by sibprogrammer on 8 Nov 2010 at 4:05

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r765.

Original comment by sibprogrammer on 8 Nov 2010 at 4:57

GoogleCodeExporter commented 9 years ago
the stat details page is still giving error 500 after getting the last svn 
version

Original comment by vlad.nedelcu on 8 Nov 2010 at 5:05

GoogleCodeExporter commented 9 years ago
Issue 205 has been merged into this issue.

Original comment by sibprogrammer on 8 Nov 2010 at 5:16

GoogleCodeExporter commented 9 years ago
The memory load now its "-". Should't it be something like "512M out of 
unlimited" or maybe, even better "512M out of 4Gb" (this should be the memory 
of the physical machine which is actually the physical limit for an unlimited 
memory VPS)?

Original comment by vlad.nedelcu on 8 Nov 2010 at 5:28

GoogleCodeExporter commented 9 years ago
Panel should be restarted and wrong counters should be removed. I recommend to 
run the installation command again to do these things:
wget -O - http://ovz-web-panel.googlecode.com/svn/installer/ai.sh | sh

Original comment by sibprogrammer on 8 Nov 2010 at 5:35

GoogleCodeExporter commented 9 years ago
Restarted the panel without any luck.
But after a fresh svn checkout everything works flawlessly. :thumbs-up:

Thanks for you work :)

Original comment by vlad.nedelcu on 8 Nov 2010 at 5:53