python - OpenShift Django project deployment fails: "error: can't create or remove files in install directory" -
i updating project after long inactivity, , got broken. deployment failed , application wasn't restarted after git push.
i can still start app manually running gear start, deployment steps needed install packages install_requires fail.
here parts of gear deploy output:
activating virtenv running setup.py script.. running develop error: can't create or remove files in install directory following error occurred while trying add or remove files in installation directory: [errno 13] permission denied: '/usr/lib/python2.6/site-packages/test-easy-install-358943.write-test' installation directory specified (via --install-dir, --prefix, or distutils default setting) was: /usr/lib/python2.6/site-packages/ perhaps account not have write access directory? if installation directory system-owned directory, may need sign in administrator or "root" account. if not have administrative access machine, may wish choose different installation directory, preferably 1 listed in pythonpath environment variable. information on other options, may wish consult documentation at: http://peak.telecommunity.com/easyinstall.html please make appropriate changes system , try again. and, later:
running collectstatic... traceback (most recent call last): file "~/app-root/runtime/repo//wsgi/music/manage.py", line 2, in <module> django.core.management import execute_manager importerror: no module named django.core.management i tried enable venv , run setup.py manually:
source $openshift_gear_dir/virtenv/bin/activate export python_egg_cache=$openshift_gear_dir/virtenv/lib/python-2.6 ~/app-root/repo/setup.py develop however, resulted in same can't create or remove files in install directory error. , can't run manage.py in environment did earlier, well.
it seems me happened venv, but, then, gear start uses too, , still works...
can give me highlights problem?
p.s. i'm using python 2.6 cartridge
at least, i've got working. there mess symlinks, virtenv/lib64->../../python-2.6/virtenv/lib accessible ~/python-2.6, symlink ~/python, contains virtenv, referenced environment variables, symlink pointing ~/app-root/runtime/dependencies/python/virtenv. result, virtenv python interpreter couldn't find libraries , other stuff in virtenv/lib64 , falling /usr prefix.
i pointed lib64->lib , deploy works.
however, mess somehow created openshift toolchain, , not sure won't break again.
Comments
Post a Comment