ryansb / spacehub

Space. Space. Wanna go to space.
http://supb.ro/ALIENS
GNU Affero General Public License v3.0
3 stars 0 forks source link

Issues Installing on OpenShift #17

Closed seanherron closed 11 years ago

seanherron commented 11 years ago

Hey!

Running in to some issues when installing on OpenShift (per directions in README):

remote: Downloading http://mirror1.ops.rhcloud.com/mirror/python/web/packages/source/g/greenlet/greenlet-0.4.1.zip#md5=c2deda75bdda59c38cae12a77cc53adc
remote: Processing greenlet-0.4.1.zip
remote: Writing /tmp/easy_install-AdHvZ5/greenlet-0.4.1/setup.cfg
remote: Running greenlet-0.4.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-AdHvZ5/greenlet-0.4.1/egg-dist-tmp-9B90hV
remote: /tmp/easy_install-AdHvZ5/greenlet-0.4.1/temp/tmpgklMNM/simple.c:1: warning: function declaration isn't a prototype
remote: In file included from slp_platformselect.h:12,
remote:                  from greenlet.c:416:
remote: platform/switch_amd64_unix.h:40: warning: 'noclone' attribute directive ignored
remote: platform/switch_amd64_unix.h:43: warning: 'noclone' attribute directive ignored
remote: greenlet.c: In function 'g_switch':
remote: greenlet.c:543: warning: 'err' may be used uninitialized in this function
remote: Adding greenlet 0.4.1 to easy-install.pth file
remote: 
remote: Installed /var/lib/openshift/51ba03d7e0b8cd6aea000125/python/virtenv/lib/python2.7/site-packages/greenlet-0.4.1-py2.7-linux-x86_64.egg
remote: Finished processing dependencies for Spacehub==1.0
remote:  - Done processing setup.py
remote: Making script /var/lib/openshift/51ba03d7e0b8cd6aea000125/python//virtenv/bin/pip relative
remote: Making script /var/lib/openshift/51ba03d7e0b8cd6aea000125/python//virtenv/bin/pip-2.7 relative
remote: Making script /var/lib/openshift/51ba03d7e0b8cd6aea000125/python//virtenv/bin/easy_install relative
remote: Making script /var/lib/openshift/51ba03d7e0b8cd6aea000125/python//virtenv/bin/easy_install-2.7 relative
remote: Script /var/lib/openshift/51ba03d7e0b8cd6aea000125/python//virtenv/bin/activate.fish cannot be made relative (it's not a normal script that starts with #!/var/lib/openshift/51ba03d7e0b8cd6aea000125/python/virtenv/bin/python)
remote: Script /var/lib/openshift/51ba03d7e0b8cd6aea000125/python//virtenv/bin/activate.csh cannot be made relative (it's not a normal script that starts with #!/var/lib/openshift/51ba03d7e0b8cd6aea000125/python/virtenv/bin/python)
remote: /var/lib/openshift/51ba03d7e0b8cd6aea000125/app-root/runtime/repo/.openshift/action_hooks/build: line 10: /var/lib/openshift/51ba03d7e0b8cd6aea000125//python-2.7/virtenv/bin/activate: No such file or directory
remote: Symlinking static resources from corniceapp/public
remote: ln: target `/var/lib/openshift/51ba03d7e0b8cd6aea000125/app-root/runtime/repo//wsgi/static/' is not a directory: No such file or directory
remote: /var/lib/openshift/51ba03d7e0b8cd6aea000125/app-root/runtime/repo/.openshift/action_hooks/build: line 16: cd: /var/lib/openshift/51ba03d7e0b8cd6aea000125/app-root/runtime/repo//wsgi/corniceapp: No such file or directory
remote: python: can't open file 'setup.py': [Errno 2] No such file or directory
remote: An error occurred executing 'gear postreceive'
remote: 
remote: For more details about the problem, try running the command again with the '--trace' option.

Going to my URL gives a 500 error. Any ideas?

ryansb commented 11 years ago

Alright, so I have this immediate issue solved in 1751fa2 but there is now a second bug #18 (WIP).

seanherron commented 11 years ago

Awesome, thank you. I don't have any openshift experience so this is uncharted territory :)

ryansb commented 11 years ago

Understandable. I'm going to close this issue (since the problem directly causing this issue was solved in 1751fa2 ) but there are currently dependency issues with the way Openshift installs packages/manages C extensions that I'm still working out. See #18 for developments on that.

In the meantime, hang tight and thanks a for trying SpaceHub.

ryansb commented 11 years ago

Alright, #18 has been closed as well. You can try again with the current master and you ought to be fine.

One gotcha is that the app must be deployed with the name "spacehub" so it knows where its DB is, or you'll have to change the DB name in wsgi/production.ini