Why is tethyscluster attempting to access /usr/share/httpd/.tethyscluster? (RHEL 7)

62 views
Skip to first unread message

alansnow21

unread,
Sep 22, 2015, 10:36:34 AM9/22/15
to Tethys Platform

Hello All,


After going through the instructions I started up my server and tested it out. However, I got this error:


(tethys)[root@tethys var]# tail /var/log/httpd/tethys_default.error.log 

apps.populate(settings.INSTALLED_APPS)

File "/usr/lib/tethys/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate

app_config = AppConfig.create(entry)

File "/usr/lib/tethys/lib/python2.7/site-packages/django/apps/config.py", line 87, in create

module = import_module(entry)

File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module

__import__(name)

File "/usr/lib/tethys/src/tethys_compute/__init__.py", line 67, in <module>

os.mkdir(TETHYSCLUSTER_CFG_DIR)

OSError: [Errno 13] Permission denied: '/usr/share/httpd/.tethyscluster'


Isn't it supposed to be in /var/www/.tethyscluster ?


Have you seen this before? I gave permissions to apache for the folder, but I don't think that is the best solution.


Thanks!

Nathan Swain

unread,
Sep 22, 2015, 12:07:08 PM9/22/15
to alansnow21, Tethys Platform
Looks to me like the home directory for Apache on RedHat is /usr/share/httpd/ rather than /var/www on Ubuntu. Apache should not have permission to it's home directory, but you will have to change the ownership of .tethyscluster to Apache.

--
You received this message because you are subscribed to the Google Groups "Tethys Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tethysplatfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tethysplatform/08b8c9f1-8f0f-4047-b9de-3a32a5c17dd7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Nathan Swain

alansnow21

unread,
Sep 22, 2015, 1:00:15 PM9/22/15
to Tethys Platform, alans...@gmail.com
I had to:
$ mkdir /usr/share/httpd/.tethyscluster/
$ touch /usr/share/httpd/.tethyscluster/aws_config
$ touch /usr/share/httpd/.tethyscluster/azure_config
$ touch /usr/share/httpd/.tethyscluster/config
$ touch /usr/share/httpd/.tethyscluster/tethys_config

Here is the result after permissions added:

$ ls -lah /usr/share/httpd/.tethyscluster/

drwsrwsrwx. 2 apache apache 75 Sep 22 12:25 .

-rw-rw-r--. 1 apache apache  0 Sep 22 12:23 aws_config

-rw-rw-r--. 1 apache apache  0 Sep 22 12:25 azure_config

-rw-rw-r--. 1 apache apache  0 Sep 22 12:18 config

-rw-rw-r--. 1 apache apache  0 Sep 22 12:22 tethys_config


Then it stopped yelling at me in the error log for that.


Thanks!

Reply all
Reply to author
Forward
0 new messages