AppRegistryNotReady: Apps aren't loaded yet.
I'm attempting to run graphite-web 1.1.2 using Python 2.7 and Django 1.11.11.
I am attempting to start the server using a slightly modified manage.py script (I added the django.setup() following suggestions found online):
```
#!/usr/bin/env python
import os
import sys
import django
if __name__ == "__main__":
os.
django.setup()
from django.
execute_
```
I am executing this script like this:
`python manage.py migrate --noinput`
The script appears to execute fine, but when I try to access graphite-web this error is produced:
```
[Tue Mar 13 09:47:22.702806 2018] [wsgi:error] [pid 8034:tid 140283148187520] mod_wsgi (pid=8034): Target WSGI script '/var/vcap/
[Tue Mar 13 09:47:22.702837 2018] [wsgi:error] [pid 8034:tid 140283148187520] mod_wsgi (pid=8034): Exception occurred processing WSGI script '/var/vcap/
[Tue Mar 13 09:47:22.702864 2018] [wsgi:error] [pid 8034:tid 140283148187520] Traceback (most recent call last):
[Tue Mar 13 09:47:22.702884 2018] [wsgi:error] [pid 8034:tid 140283148187520] File "/var/vcap/
[Tue Mar 13 09:47:22.702961 2018] [wsgi:error] [pid 8034:tid 140283148187520] application = django.
[Tue Mar 13 09:47:22.702977 2018] [wsgi:error] [pid 8034:tid 140283148187520] File "/var/vcap/
[Tue Mar 13 09:47:22.703069 2018] [wsgi:error] [pid 8034:tid 140283148187520] self.load_
[Tue Mar 13 09:47:22.703086 2018] [wsgi:error] [pid 8034:tid 140283148187520] File "/var/vcap/
[Tue Mar 13 09:47:22.703184 2018] [wsgi:error] [pid 8034:tid 140283148187520] middleware = import_
[Tue Mar 13 09:47:22.703201 2018] [wsgi:error] [pid 8034:tid 140283148187520] File "/var/vcap/
[Tue Mar 13 09:47:22.703279 2018] [wsgi:error] [pid 8034:tid 140283148187520] module = import_
[Tue Mar 13 09:47:22.703296 2018] [wsgi:error] [pid 8034:tid 140283148187520] File "/var/vcap/
[Tue Mar 13 09:47:22.703346 2018] [wsgi:error] [pid 8034:tid 140283148187520] __import__(name)
[Tue Mar 13 09:47:22.703360 2018] [wsgi:error] [pid 8034:tid 140283148187520] File "/var/vcap/
[Tue Mar 13 09:47:22.703435 2018] [wsgi:error] [pid 8034:tid 140283148187520] from django.
[Tue Mar 13 09:47:22.703450 2018] [wsgi:error] [pid 8034:tid 140283148187520] File "/var/vcap/
[Tue Mar 13 09:47:22.703526 2018] [wsgi:error] [pid 8034:tid 140283148187520] from django.
[Tue Mar 13 09:47:22.703540 2018] [wsgi:error] [pid 8034:tid 140283148187520] File "/var/vcap/
[Tue Mar 13 09:47:22.703657 2018] [wsgi:error] [pid 8034:tid 140283148187520] from django.
[Tue Mar 13 09:47:22.703672 2018] [wsgi:error] [pid 8034:tid 140283148187520] File "/var/vcap/
[Tue Mar 13 09:47:22.703749 2018] [wsgi:error] [pid 8034:tid 140283148187520] class AbstractBaseUse
[Tue Mar 13 09:47:22.703766 2018] [wsgi:error] [pid 8034:tid 140283148187520] File "/var/vcap/
[Tue Mar 13 09:47:22.704108 2018] [wsgi:error] [pid 8034:tid 140283148187520] app_config = apps.get_
[Tue Mar 13 09:47:22.704125 2018] [wsgi:error] [pid 8034:tid 140283148187520] File "/var/vcap/
[Tue Mar 13 09:47:22.704251 2018] [wsgi:error] [pid 8034:tid 140283148187520] self.check_
[Tue Mar 13 09:47:22.704266 2018] [wsgi:error] [pid 8034:tid 140283148187520] File "/var/vcap/
[Tue Mar 13 09:47:22.704288 2018] [wsgi:error] [pid 8034:tid 140283148187520] raise AppRegistryNotR
[Tue Mar 13 09:47:22.704308 2018] [wsgi:error] [pid 8034:tid 140283148187520] AppRegistryNotR
[Tue Mar 13 09:47:22.704605 2018] [wsgi:error] [pid 8038:tid 140283148187520] app_config = apps.get_
[Tue Mar 13 09:47:22.704628 2018] [wsgi:error] [pid 8038:tid 140283148187520] File "/var/vcap/
[Tue Mar 13 09:47:22.704763 2018] [wsgi:error] [pid 8038:tid 140283148187520] self.check_
[Tue Mar 13 09:47:22.704780 2018] [wsgi:error] [pid 8038:tid 140283148187520] File "/var/vcap/
[Tue Mar 13 09:47:22.704803 2018] [wsgi:error] [pid 8038:tid 140283148187520] raise AppRegistryNotR
[Tue Mar 13 09:47:22.704824 2018] [wsgi:error] [pid 8038:tid 140283148187520] AppRegistryNotR
```
This may be more of a Django issue than a Graphite issue, but I'm lost as to what I should do about it.
I'm upgrading from Graphite 0.9.x and Django 1.3.x, and I used to be able to run graphite-web by running `python manage.py syncdb --noinput` on an unmodified manage.py.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Graphite Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Alex Njaastad
- Solved:
- Last query:
- Last reply: