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,571
0

📮Comments

No Comment.
xosadmin
xosadmin
5 years ago
推荐 Debian 11启用rc.local方法
rc.local是一个令大家耳熟详的文件,它在Redhat系列操作系统中可以让用户添加自定义开机脚本并运行。但是在Debian 11操作系统中,这个功能不被默认开启。这篇文章将介绍如何开启rc.local。话不多说,开始~ 先通过以下命令 ...
  • 技术小絮
3,013 0
xosadmin
xosadmin
6 years ago
推荐 apt-get时提示different from other instances的解决方案
近日在升级Ubuntu系统时,apt-get提示”trying to overwrite shared ‘/usr/share/doc/libselinux1/changelog.Debian.gz’, ...
  • 技术小絮
1,225 0
xosadmin
xosadmin
5 years ago
推荐 Bark提示TokenExpired的解决方法
Bark是一个开源的iOS消息推送服务端和客户端。近日在配置与测试时,发现在尝试推送消息时提示Token Expired。经过多方测试,这是由于系统时间错误所造成的,因此发现以下解决方案。 1.先安装ntpdate。命令:apt insta ...
  • 技术小絮
1,042 0
xosadmin
xosadmin
5 years ago
推荐 为proxmox 6/7一键开启bbr
新版Proxmox 6/7基于debian buster/bullseye操作系统,已采用5.10以上内核,因此符合免更换内核开启bbr的条件。只需要按照以下操作进行操作即可: echo “net.core.default_qd ...
  • proxmox
  • 技术小絮
1,415 0
xosadmin
xosadmin
5 years ago
推荐 curl: (35) Peer reports incompatible or unsupported protocol version的解决方法
近日在做CentOS 7维护时,在尝试curl时,遇到了curl: (35) Peer reports incompatible or unsupported protocol version.的问题。本问题是由于相应的包版本过老导致的。 ...
  • 技术小絮
2,366 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