Question

I have 3 projects hosted in amazon bitnami ec2 and my none of project is running. When I check my logs it showing the error as follows:

The Python egg cache directory is currently set to: /opt/bitnami/.tmp Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to an accessible directory.

and my projects are in /opt/bitnami/projects (all 3 project within that directory).

How can I solve this?

Was it helpful?

Solution

You just need to give permissions to the daemon user in that folder.

sudo chown -R daemon.daemon /opt/bitnami/.tmp
sudo chmod -R 700 /opt/bitnami/.tmp

Also if you are using a version of the BitNami Trac Stack that already uses mod_wsgi (0.12.2-1 or later) you can configure the PYTHON_EGG_CACHE to point to a different location. In the trac.wsgi file you just need to add:

os.environ['PYTHON_EGG_CACHE'] = '/path/to/python_egg_cache'

Just check that the daemon user has enough permissions in that directory.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top