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

xosadmin

BGPlayer / Codes learner / Love Linux
Posts
77
Comments
0

友情链接 – Friendly Links

  • Add your site here…
xosadmin
5 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,480
0

📮Comments

No Comment.
xosadmin
xosadmin
5 years ago
推荐 Debian 10安装Proxmox
众所周知,Proxmox是一款十分出色的虚拟化软件,它可以让一台或多台计算机变成一个计算集群,甚至是一个虚拟数据中心。它支持同时在一台机子上开始KVM和LXC(OpenVZ的替代品),并配有VNC及WebUI管理,可以说是十分方便。今天就 ...
  • proxmox
  • 技术小絮
2,968 0
xosadmin
xosadmin
2 years ago
推荐 Fail2ban无法启动的解决方法
在启动fail2ban时,有时会发生错误,具体错误如下: ERROR Failed during configuration: Have not found any log file for sshd jail ERROR Async co ...
  • 技术小絮
440 0
xosadmin
xosadmin
2 years ago
推荐 Alpine Linux开启bbr加速的方法
请注意:以下所有操作需要在root下进行。若在非root用户下执行,请重新以root用户登录或者使用sudo su后执行。 1.开启开机自动加载tcp_bbr模块 echo “tcp_bbr” >> /e ...
  • 技术小絮
867 0
xosadmin
xosadmin
6 years ago
推荐 Dell Chromebook 13安装Windows 10教程
据了解,Dell于近年悄然上了一款产品:Chromebook 13。其的价格非常吸引人,各项配置也不逊色,其炫酷的外观和亲民的价格,令许多人为之向往。唯一的不同,即如其的名字,预装了Chrome OS系统及特别的Bios。有许多小伙伴不熟 ...
  • chromebook
  • 技术小絮
17,243 3
xosadmin
xosadmin
4 weeks ago
推荐 HPE Microserver系列降低噪音的一种办法
部分HPE Microserver Gen10+和Gen11用户反映,安装了Debian/Proxmox或者更换了硬盘后出现风扇声音很大的问题。经过搜索和研究,发现其中一种解决方法,即在系统中安装HPE的amsd及smad组件。具体方式如下 ...
  • 技术小絮
9 0
  • HPE Microserver系列降低噪音的一种办法
  • Debian 13 Trixie安装Proxmox VE
  • Windows FTP服务器通过PASV模式无法获取目录的解决方法
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • LXC上安装Gitlab时sysctl报错的解决方法

文章聚合

  • Debian 13 Trixie安装Proxmox VE
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • Proxmox VE通过全盘方式直通硬盘
  • Proxmox为KVM VNC启用剪贴板支持
  • Proxmox报出RRDC/RRD update error的解决方法

Multilangual Translator

Copyright © 2016-2025 X-osadminの自留地. All rights reserved. 萌ICP备20258855号
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 作品发布 Works
  • 软件专题 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