X-osadminの自留地
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 软件专题 Softs
    • proxmox
    • openwrt
    • chromebook
    • Zerotier
    • 虚拟化
  • 友情链接 Following

xosadmin

BGPlayer / Codes learner / Love Linux
Posts
73
Comments
0

友情链接 – Friendly Links

  • Add your site here…
xosadmin
6 years ago

OpenVZ Web Panel的错误undefined method `get_advanced_limits’解决方法

如题,在安装完OpenVZ Web Panel后,发现该面板的Server Templates功能无法打开,一执行即报500错误,详细错误信息如下:

NoMethodError (undefined method `get_advanced_limits’ for nil:NilClass):
/app/controllers/admin/server_templates_controller.rb:11:in `list’
/vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `send’
(内容过长,省略一部分)
//script/server:3

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

该错误是由于gem的版本导致的错误,我们只需要升级gem版本到1.8.25即可,命令如下:

gem install -v 1.8.25 rubygems-update && ruby `gem env gemdir`/gems/rubygems-update-1.8.25/setup.rb

同时,执行完成后需要重新启动OpenVZ Web Panel或重启服务器,重启面板服务的命令如下:

sudo service owp restart

 

[2020年6月4日更新] 部分用户在修复完本问题后,连接本地服务器提示:Internal error: no such file to load – net/ssh,解决方案如下:

sudo gem install net-ssh -v 2.8.0
sudo gem install net-sftp -v 2.0.5

最后重启面板或服务器即可。

Enjoy~

 

Ref:

https://po-ru.com/2010/05/15/how-to-update-rubygems-to-a-specific-version\

https://eax.me/openvz-web-panel/

  • 技术小絮
等 人表示很赞
1,516
0

📮Comments

No Comment.
xosadmin
xosadmin
8 years ago
推荐 CentOS 6下如何安装KVM虚拟化
昨天,小编讲述了在CentOS上安装OpenVZ虚拟框架的方式。应公众号里部分读者的要求,今天再给大家讲讲如何在CentOS上安装KVM虚拟框架。所谓KVM,官网给的定义如下: KVM (for Kernel-based Virtual ...
  • 技术小絮
  • 虚拟化
2,214 1
xosadmin
xosadmin
2 years ago
推荐 Debian上重装Nginx的方法
1. 卸载现有Nginx以及配套包: apt-get remove nginx -y apt-get autoremove 2. 删除配置目录(在删除前可以备份以备恢复): cp -r /etc/nginx /home/backup-ngi ...
  • 技术小絮
502 0
xosadmin
xosadmin
2 years ago
推荐 Alpine Linux开启bbr加速的方法
请注意:以下所有操作需要在root下进行。若在非root用户下执行,请重新以root用户登录或者使用sudo su后执行。 1.开启开机自动加载tcp_bbr模块 echo “tcp_bbr” >> /e ...
  • 技术小絮
957 0
xosadmin
xosadmin
5 years ago
推荐 Proxmox VE提示No IOMMU detect的解决方法
Proxmox VE是一个非常强大的虚拟化平台。有许多用户正在通过Proxmox VE来实现软路由等功能。其中,最重要的一件事情就是pcie穿透(也是硬件直通)。但是通过最近的测试,在部分的机器上,会提示No IOMMU detected, ...
  • proxmox
  • 技术小絮
17,800 0
xosadmin
xosadmin
3 years ago
推荐 Debian 11平滑升级到Debian 12的方法
Debian 12于近日发布,其名称为Bookworm。同时,Debian 11 (Bullseye)也可以升级至Debian 12 Bookworm。本文介绍一种平滑升级的方法。 首先,确认当前版本是否为Debian 11 Bullsey ...
  • 技术小絮
426 0
  • Proxmox强制删除离线集群节点方法
  • PVE Cluster给node更换corosync IP的方法
  • HPE Microserver系列降低噪音的一种办法
  • Debian 13 Trixie安装Proxmox VE
  • Windows FTP服务器通过PASV模式无法获取目录的解决方法
  • Proxmox日志出现大量lxcfs truncated错误的解决方案

文章聚合

  • Proxmox强制删除离线集群节点方法
  • PVE Cluster给node更换corosync IP的方法
  • Debian 13 Trixie安装Proxmox VE
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • Proxmox VE通过全盘方式直通硬盘

Multilangual Translator

Copyright © 2016-2026 X-osadminの自留地. All rights reserved. 萌ICP备20258855号
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 软件专题 Softs
    • proxmox
    • openwrt
    • chromebook
    • Zerotier
    • 虚拟化
  • 友情链接 Following
Welcome
Forgot password?
Welcome
Forgot password?
Social Login
Login with WeChat QR Code
Unregistered WeChat IDs will be automatically used to create an account.
Scan and Reply with Keywords「登录」Get Verification Code
Social Login
Free registration
Social Login
Reset password
Back to Login