Наш FreeNAS работает; Я могу войти через ssh.
Но веб-интерфейс не отвечает.
Из Как перезапустить веб-интерфейс на freenas Я попытался 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
? Или есть другой способ?
В этой ситуации:
ssh
в service django start
wget
beadm activate
(Ошибки Grub, помечали старую загрузку как R, но никогда не загружались в нее.)freenas-update
Мои библиотеки испортились! Исправление?
смонтировать предыдущий загрузочный образ:
$ 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 (удалите сломанную загрузочную версию, повторите попытку обновления).