Не удается запустить в Raspbain

7 months 1 week ago #2053 by bincher
bincher created the topic: Не удается запустить в Raspbain
Добрый день.
При попытки запустить сканирование выдает ошибку:
pi@raspberrypi:/opt/sopds $ python3 manage.py sopds_scanner start --daemon
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/pi/.local/lib/python3.5/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
    utility.execute()
  File "/home/pi/.local/lib/python3.5/site-packages/django/core/management/__init__.py", line 355, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/pi/.local/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/pi/.local/lib/python3.5/site-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "/opt/sopds/opds_catalog/management/commands/sopds_scanner.py", line 37, in handle
    fh = logging.FileHandler(config.SOPDS_SCANNER_LOG)
  File "/usr/lib/python3.5/logging/__init__.py", line 1009, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.5/logging/__init__.py", line 1038, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/opt/sopds/opds_catalog/log/sopds_scanner.log'

При попытке запуска
pi@raspberrypi:/opt/sopds $ Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/pi/.local/lib/python3.5/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
    utility.execute()
  File "/home/pi/.local/lib/python3.5/site-packages/django/core/management/__init__.py", line 355, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/pi/.local/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/pi/.local/lib/python3.5/site-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "/opt/sopds/opds_catalog/management/commands/sopds_server.py", line 33, in handle
    daemonize()
  File "/opt/sopds/opds_catalog/management/commands/sopds_server.py", line 80, in daemonize
    std_out = open(config.SOPDS_SERVER_LOG, 'a+')
PermissionError: [Errno 13] Permission denied: '/opt/sopds/opds_catalog/log/sopds_server.log'

Please Войти or Create an account to join the conversation.

  • bincher
  • bincher's Avatar Topic Author
  • Offline
  • Новый участник
  • Новый участник
More
7 months 1 week ago #2054 by mitshel
mitshel replied the topic: Не удается запустить в Raspbain
Ну не может лог файл в каталог /opt/sopds/opds_catalog/log/ или файл /opt/sopds/opds_catalog/log/sopds_server.log записать. Проверьте права доступа.

Please Войти or Create an account to join the conversation.

  • mitshel
  • mitshel's Avatar
  • Offline
  • Администратор
  • Администратор
More
Time to create page: 0.105 seconds