Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied: '/etc/nagios/adagios/hosts' #10

Open
Benchwork opened this issue Dec 6, 2019 · 1 comment
Open

Permission denied: '/etc/nagios/adagios/hosts' #10

Benchwork opened this issue Dec 6, 2019 · 1 comment

Comments

@Benchwork
Copy link

Benchwork commented Dec 6, 2019

when testing the docker file I was unable to add anything to test
the error I was given was
Oh no, something went wrong ☹
OSError: [Errno 13] Permission denied: '/etc/nagios/adagios/hosts'
If you think this is a bug. Send the following information to the developers:

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/adagios/views.py", line 43, in wrapper
result = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/adagios/objectbrowser/views.py", line 710, in copy_object
f.save()
File "/usr/lib/python2.7/site-packages/adagios/objectbrowser/forms.py", line 592, in save
tmp = self.pynag_object.copy(**self.cleaned_data)
File "/usr/lib/python2.7/site-packages/pynag-1.1.2-py2.7.egg/pynag/Model/init.py", line 1766, in copy
copies = [ObjectDefinition.copy(self, recursive=recursive, filename=filename, **args)]
File "/usr/lib/python2.7/site-packages/pynag-1.1.2-py2.7.egg/pynag/Model/init.py", line 957, in copy
new_object.save()
File "/usr/lib/python2.7/site-packages/pynag-1.1.2-py2.7.egg/pynag/Utils/decorators.py", line 22, in newFunction
return f(*args, **kw)
File "/usr/lib/python2.7/site-packages/pynag-1.1.2-py2.7.egg/pynag/Model/init.py", line 815, in save
config.item_add(self._original_attributes, self.get_filename())
File "/usr/lib/python2.7/site-packages/pynag-1.1.2-py2.7.egg/pynag/Parsers/config_parser.py", line 924, in item_add
os.makedirs(dirname)
File "/usr/lib64/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/etc/nagios/adagios/hosts'

@lekhnath
Copy link

lekhnath commented Mar 2, 2020

I am also getting the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants