Closed ndarville closed 11 years ago
Just tried deploying the earlier to dotCloud starting from the latest commit. For some reason, this commit keeps deploying successfully on dotCloud; all the later versions (tried beforehand) fail.
02dcdf855b366a4121d4bb7fbfd282632f65a0e9
And yet, it obviously failed on Travis.
=>
4b118c8. (https://travis-ci.org/ndarville/pony-forum/builds/4800622.)=>
74b8c55. The build failed. (https://travis-ci.org/ndarville/pony-forum/builds/4817420.)In other words, the problem arose earlier than reported, but Travis and dotCloud didn’t detect it the first time.
The builds from my fonts
branch are also failing now, even though they are from a branch of master
that exists much, much earlier than the original failing builds.
The build also managed to deploy to dotCloud just fine.
fonts
branch, which is much older than the failing builds, also fails on Travis nowConsistent irregularity.
Moving the env var declaration from an export script to env
did not fix it.
The problem does not appear on dotCloud in the fonts
branch. It does on Travis, though.
The above commit fixed the problems on dotCloud. Now they only seem to remain with Travis which can’t import the settings through its environment for some reason.
Two more fixes: 10d3554b85b3ebe116f4d94a85084d0412cdaa0a and 45825fef70ac88d3f0f60f92b5093d110e7c6c84.
The latest Travis error after the recent fixes:
$ python _postinstall/mkadmin.py
Traceback (most recent call last):
File "_postinstall/mkadmin.py", line 11, in <module>
from django.contrib.auth.models import User
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/django/contrib/auth/models.py", line 5, in <module>
from django.db import models
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/django/db/__init__.py", line 11, in <module>
if DEFAULT_DB_ALIAS not in settings.DATABASES:
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
self._setup()
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
self._wrapped = Settings(settings_module)
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/django/conf/__init__.py", line 95, in __init__
raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'ponyforum.settings' (Is it on sys.path?): No module named ponyforum.settings
The command "python _postinstall/mkadmin.py" exited with 1.
$ python _postinstall/definesite.py
Traceback (most recent call last):
File "_postinstall/definesite.py", line 23, in <module>
from django.contrib.sites.models import Site
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/django/contrib/sites/models.py", line 1, in <module>
from django.db import models
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/django/db/__init__.py", line 11, in <module>
if DEFAULT_DB_ALIAS not in settings.DATABASES:
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
self._setup()
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
self._wrapped = Settings(settings_module)
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/django/conf/__init__.py", line 95, in __init__
raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'ponyforum.settings' (Is it on sys.path?): No module named ponyforum.settings
The command "python _postinstall/definesite.py" exited with 1.
$ python _postinstall/mkplaceholders.py
Traceback (most recent call last):
File "_postinstall/mkplaceholders.py", line 17, in <module>
from django.contrib.auth.models import User
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/django/contrib/auth/models.py", line 5, in <module>
from django.db import models
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/django/db/__init__.py", line 11, in <module>
if DEFAULT_DB_ALIAS not in settings.DATABASES:
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
self._setup()
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
self._wrapped = Settings(settings_module)
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/django/conf/__init__.py", line 95, in __init__
raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'ponyforum.settings' (Is it on sys.path?): No module named ponyforum.settings
Links:
.travis.yml
PYTHONPATH
still points to the current directory in .travis.yml
sys.path
in wsgi.py
PYTHONPATH
in wsgi.py
Happens with both Travis and dotCloud. The really weird thing is how arbitrary the build that starts breaking is on Travis: https://travis-ci.org/ndarville/pony-forum/builds. The only difference between the successful commit and the failed build are some alterations to a Markdown file(?!). The mind boggles.
Travis
dotCloud