[GH-ISSUE #20] Internal error: undefined method `vswap=' for # #2

Closed
opened 2026-02-27 22:07:10 +03:00 by kerem · 1 comment
Owner

Originally created by @michelkaeser on GitHub (Feb 9, 2013).
Original GitHub issue: https://github.com/sibprogrammer/owp/issues/20

Upgrading to latest version 2.2 causes several errors. In general, HW syncing no longer works and editing a HW node gives following error:

Internal error: undefined method `vswap=' for #

in logfile:

Internal error: undefined method `vswap=' for #<HardwareServer:0x7f051f0a76e0>

I guess it's because of failed "upgrade". Manually running the DB migration commands errors:

rake aborted!
ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead.
/opt/ovz-web-panel/Rakefile:8
(See full trace by running task with --trace)

CentOS 6.4, Ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

Solved:

gem install rake --version 0.8.7
gem uninstall rake --version 10.0.3
Originally created by @michelkaeser on GitHub (Feb 9, 2013). Original GitHub issue: https://github.com/sibprogrammer/owp/issues/20 Upgrading to latest version 2.2 causes several errors. In general, HW syncing no longer works and editing a HW node gives following error: ``` Internal error: undefined method `vswap=' for # ``` in logfile: ``` Internal error: undefined method `vswap=' for #<HardwareServer:0x7f051f0a76e0> ``` I guess it's because of failed "upgrade". Manually running the DB migration commands errors: ``` rake aborted! ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead. /opt/ovz-web-panel/Rakefile:8 (See full trace by running task with --trace) ``` CentOS 6.4, Ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] Solved: ``` gem install rake --version 0.8.7 gem uninstall rake --version 10.0.3 ```
kerem closed this issue 2026-02-27 22:07:10 +03:00
Author
Owner

@sibprogrammer commented on GitHub (Feb 10, 2013):

I tried to fix the problem in the code make it compatible either new or old rake is used.

<!-- gh-comment-id:13346086 --> @sibprogrammer commented on GitHub (Feb 10, 2013): I tried to fix the problem in the code make it compatible either new or old rake is used.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/owp#2
No description provided.