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

📮Comments

No Comment.
xosadmin
xosadmin
2 years ago
推荐 如何使用Directadmin借助Let’s Encrypt签发Wildcard SSL证书
Directadmin是一个由加拿大JBMC开发的强大的虚拟主机面板。在新版本中,Directadmin支持通过Let’s Encrypt签发Wildcard证书(泛域证书)。该证书的签发方式为DNS验证。在本篇文章中,将以Cl ...
  • 技术小絮
290 0
xosadmin
xosadmin
3 years ago
推荐 Debian设置自动对时
注意: 请使用Root用户操作,且不支持OpenVZ/LXC虚拟机。 在开始之前,我们需要设置Debian的时区,请使用以下命令: dpkg-reconfigure tzdate 之后,安装ntpdate: apt install ntpd ...
  • 技术小絮
722 0
xosadmin
xosadmin
4 years ago
推荐 curl: (35) Peer reports incompatible or unsupported protocol version的解决方法
近日在做CentOS 7维护时,在尝试curl时,遇到了curl: (35) Peer reports incompatible or unsupported protocol version.的问题。本问题是由于相应的包版本过老导致的。 ...
  • 技术小絮
2,326 0
xosadmin
xosadmin
6 years ago
推荐 树莓派安装ffmpeg
近日想尝试传输自己的流式媒体。目前测试了Hyper-V虚拟机,效果并不理想。原因是Hyper-V太吃资源。后来,测试在Hyper-V虚拟机下安装Linux系统进行推流,由于是yum安装的ffmpeg,年代有点过于久远,并且编译安装比较慢。 ...
  • 技术小絮
2,892 0
xosadmin
xosadmin
5 years ago
推荐 apt-get时提示different from other instances的解决方案
近日在升级Ubuntu系统时,apt-get提示”trying to overwrite shared ‘/usr/share/doc/libselinux1/changelog.Debian.gz’, ...
  • 技术小絮
1,146 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