我们的 FreeNAS 正在运行;我可以通过 ssh 登录。
但 Web UI 没有响应。
从如何在 freenas 上重新启动 web ui我尝试了一下
service nginx restart
,结果如下:
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Stopping nginx.
Waiting for PIDS: 2180.
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Starting nginx.
然后service django restart
得到:
cat: /var/run/django.pid: No such file or directory
usage: kill [-s signal_name] pid ...
kill -l [exit_status]
kill -signal_name pid ...
kill -signal_number pid ...
Traceback (most recent call last):
File "/usr/local/www/freenasUI/manage.py", line 59, in <module>
execute_manager(settings)
File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 219, in execute
self.validate()
File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 249, in validate
num_errors = get_validation_errors(s, app)
File "/usr/local/lib/python2.7/site-packages/django/core/management/validation.py", line 35, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/usr/local/lib/python2.7/site-packages/django/db/models/loading.py", line 146, in get_app_errors
self._populate()
File "/usr/local/lib/python2.7/site-packages/django/db/models/loading.py", line 61, in _populate
self.load_app(app_name, True)
File "/usr/local/lib/python2.7/site-packages/django/db/models/loading.py", line 78, in load_app
models = import_module('.models', app_name)
File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/usr/local/www/freenasUI/freeadmin/models.py", line 29, in <module>
from south.modelsinspector import add_introspection_rules
File "/usr/local/lib/python2.7/site-packages/South-0.7.3-py2.7.egg/south/modelsinspector.py", line 17, in <module>
from django.contrib.contenttypes import generic
File "/usr/local/lib/python2.7/site-packages/django/contrib/contenttypes/generic.py", line 13, in <module>
from django.contrib.admin.options import InlineModelAdmin, flatten_fieldsets
File "/usr/local/lib/python2.7/site-packages/django/contrib/admin/__init__.py", line 4, in <module>
from django.contrib.admin.options import ModelAdmin, HORIZONTAL, VERTICAL
File "/usr/local/lib/python2.7/site-packages/django/contrib/admin/options.py", line 8, in <module>
from django.contrib import messages
File "/usr/local/lib/python2.7/site-packages/django/contrib/messages/__init__.py", line 1, in <module>
from api import *
EOFError: EOF read where object expected
Starting django
GUI 仍然无法工作。我应该尝试reboot
吗?或者还有其他方法吗?
答案1
在这个情况下:
- 按照描述安装失败https://bugs.freenas.org/issues/18273(例如,GUI 更新显示 20%,然后停止)
- 可以
ssh
- 以下为库错误:
service django start
wget
beadm activate
(Grub 错误,将旧启动标记为 R 但从未启动到该启动。)freenas-update
- 没有物理访问,因此启动时无法使用 Grub 进行选择。
我的图书馆乱糟糟的!怎么解决?
挂载先前的启动映像:
$ mkdir /var/tmp/9.10.1-U4
$ beadm mount 9.10.1-U4 /var/tmp/9.10.1-U4/
恢复以前的库:
$ copy /var/tmp/9.10.1-U4/usr/local/lib/lib* /usr/local/lib
现在beadm activate
可以使用了。切换到以前的版本,重新启动,然后按照 Ajedi32 的说明进行操作(删除损坏的启动版本,然后再次尝试更新)。