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

xosadmin

BGPlayer / Codes learner / Love Linux
Posts
75
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,455
0

📮Comments

No Comment.
xosadmin
xosadmin
6 years ago
推荐 树莓派如何更换成国内源
随着树莓派的兴起,开始学习并使用树莓派的开发者们越来越多。很多人在学习时选用树莓派官方的Raspbian系统。但此系统由于为外国人开发,所以从中调用的软件源比较慢,对大陆的小伙伴非常不利。今天,讲述一下更换树莓派软件源为国内软件源的办法。 ...
  • 技术小絮
1,783 0
xosadmin
xosadmin
4 years ago
推荐 apt-get时提示different from other instances的解决方案
近日在升级Ubuntu系统时,apt-get提示”trying to overwrite shared ‘/usr/share/doc/libselinux1/changelog.Debian.gz’, ...
  • 技术小絮
1,116 0
xosadmin
xosadmin
7 years ago
推荐 OpenVZ如何给VPS启用ppp
大家好!在上一篇文章(如何在Linux(CentOS)上安装OpenVZ)中,我为大家讲述了如何在CentOS环境下安装OpenVZ虚拟框架。在此,有许多网友阅读并安装后,想给自己的VPS开启ppp功能以备不时之需。在这里,补充一篇文章为 ...
  • 技术小絮
  • 虚拟化
2,785 0
xosadmin
xosadmin
5 years ago
推荐 gem (Zlib::GzipFile::Error) not in gzip format 的解决方案
近日在使用老版本ruby安装sqlite3时,遇到了这样的一个错误,报错如下: ERROR: While executing gem … (Zlib::GzipFile::Error) not in gzip format ...
  • 技术小絮
1,171 0
xosadmin
xosadmin
6 years ago
推荐 借助树莓派将IP2780变网络打印机
近日,因为一些方面的需求,X-osadmin购入了iP2780喷墨打印机。但是iP2780的设计使其无法使用网络功能。换句话说,无法通过网络发现该台打印机,也无法通过网络发送打印指令使其开始打印,仅能使用USB连接计算机进行打印操作。但是 ...
  • 技术小絮
1,774 0
  • Windows FTP服务器通过PASV模式无法获取目录的解决方法
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • LXC上安装Gitlab时sysctl报错的解决方法
  • Proxmox VE通过全盘方式直通硬盘
  • Proxmox为KVM VNC启用剪贴板支持

文章聚合

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

Multilangual Translator

Copyright © 2016-2025 X-osadminの自留地. All rights reserved. Designed by nicetheme.
  • 博客主页 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