Skip to content

Instantly share code, notes, and snippets.

@drkokandy
Created October 18, 2015 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drkokandy/7739cd6317f751a0f791 to your computer and use it in GitHub Desktop.
Save drkokandy/7739cd6317f751a0f791 to your computer and use it in GitHub Desktop.
Yunohost CLI fails because can't write to log
admin@raspberrypi:~$ yunohost -h
Traceback (most recent call last):
File "/usr/bin/yunohost", line 142, in <module>
_init_moulinette()
File "/usr/bin/yunohost", line 124, in _init_moulinette
init(logging_config=logging, _from_source=IN_DEVEL)
File "/usr/lib/python2.7/dist-packages/moulinette/__init__.py", line 59, in init
configure_logging(logging_config)
File "/usr/lib/python2.7/dist-packages/moulinette/utils/log.py", line 42, in configure_logging
dictConfig(logging_config)
File "/usr/lib/python2.7/logging/config.py", line 777, in dictConfig
dictConfigClass(config).configure()
File "/usr/lib/python2.7/logging/config.py", line 575, in configure
'%r: %s' % (name, e))
ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/var/log/yunohost/yunohost-cli.log'
admin@raspberrypi:~$ sudo ls -l /var/log/yunohost/
total 26
-rw-r--r-- 1 root root 16980 Oct 18 07:10 yunohost-api.log
-rw-r--r-- 1 root root 6558 Oct 18 07:10 yunohost-cli.log
admin@raspberrypi:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment