Closed AlexanderPico closed 7 years ago
Undid temporary domain settings in /etc/hosts and enabled-sites, now that apps-test.cytoscape.org is mapped to the IP.
Also went to google oauth site to verify this new domain: https://console.developers.google.com/apis/credentials/domainverification?project=api-project-453052878726&authuser=2 Required adding a TXT record via the DNS provider (see Benno). Also edited existing credentials to include this new site: Credentials>Web client 2>Authorized redirect URIs. Note: This step is only required because we are using a new domain name. It wouldn't be needed if we were reusing an existing subdomain, like "apps" or "apps-dev" (or "apps-test" in the future). Also note: adding a new redirect to the existing credentials alone might have been enough; not sure if domain verification was necessary.
Added cronjobs via jeff's crontab -e
. Commented out backup job until this instance is designated as the live instance. IOW, only one instance should write backups and ship to pointer for storage.
Updated permissions: Set owner and group to www-data
for all .pyc
file and media
dir.
Everything is working except:
Both issues may have to do with python2.7 being invoked... or not.
Fix to admin page (via tip from Samad): Added path to admin template from myvirtualenv Python2.6 to settings.py
around line 101:
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
filejoin(SITE_DIR, 'templates'),
filejoin(SITE_DIR, 'lib/python2.6/site-packages/django/contrib/admin/templates'),
)
To direct system to use python2.6 when running Django, I added the following line to /etc/apache2/mods-enabled/wsgi.conf
WSGIPythonPath /var/www/CyAppStore/lib/python2.6/site-packages
And then restarted apache.
Fixed pending apps page by unpacking fresh copy of media dir, setting group to www-data
and deleting everything already in the media/pending_releases
dir. Apparently, some old file there was messing it up.
DONE!
backup.sh script is working. But note that the scp of the media files to pointer.ucsf.edu is very, very slow. Might pick a UCSD backup server instead...
Reset file permissions to match information in repo files by performing a git checkout
on all files showing up in git status
with only permission mode changes.
I didn't know this information was contained in the repo. Cool!
Following instructions here: http://wiki.cytoscape.org/AppStore on new VM at UCSD.
Notes
jeff
account_Note: Looks like I've got both 2.6 and 2.7 installed... Could be a problem later. Looks like 2.7 is the active one..._
_Error: Python.h not found!_
_configure: WARNING: Xapian library is version 1.2.16 but the bindings are version 1.2.13 - we strongly recommend using matching versions._
_Tried all of these in vain attempt to generate /usr/lib/libGeoIP.so.1 installed (needed later). In the end, I found it at /usr/lib/x86_64-linux-gnu/libGeoIP.so.1 and I'm not sure which command above generated it._
pip install
Code
git clone http://github.com/cytoscape/appstore .
conf
dir files. Randjango-admin startproject cyappstore
to generate a temporary settings.py with a newSECRET_KEY
to add to apikeys.py. Copied all other values from previous instance of CyAppStore. _Make sure dbs.py info matches the actual mysql info_mkdir /var/www/CyAppStore/logs
. _NOTE: the 2.6 vs. 2.7 issue is also expressed here_maven-app-repo-settings.xml
with same info as in previous sitegeolite
dir_Waiting on creating cronjobs for later..._
mysqldump
_Will update with latest backup just prior to going live_
Test
python external_scripts/test_dependencies.py
***FAILS: python version (ok); django version (ok); JAVA_HOME (fix and try again)python manage.py test_geoip
_We have a problem! importlib call changed in newer version of django which is paired with newer version of python. Press ahead or get old stable versions? Let's try old..._And reinstall all the pip's above now in the python2.6 env and repeat the xapian wget and build in this virtualenv as well...
Now both dependency test run OK!
_UNDO these after domain is properly set_
add2virtualenv /var/www/CyAppStore