Hi - I am running into problems trying to update and am seeking the assistance that you offered.
To summarize:
Galaxy version currently 17_09.
Ubuntu 14.04.6
PostgreSQL 9.3.
Python 2.7.6
pip 1.5.4
TLS 1.2
OpenSSL 1.0.1f 6 Jan 2014
As per the instruction - to update I run:
git fetch origin && git checkout release_18.01 && git pull --ff-only origin release_18.01
Output is:
remote: Enumerating objects: 831, done.
remote: Counting objects: 100% (557/557), done.
remote: Total 831 (delta 556), reused 557 (delta 556), pack-reused 274
Receiving objects: 100% (831/831), 450.23 KiB | 0 bytes/s, done.
Resolving deltas: 100% (637/637), completed with 357 local objects.
From GitHub - galaxyproject/galaxy: Data intensive science for everyone.
- [new branch] dependabot/pip/lib/galaxy/dependencies/python-ldap-3.4.0 → origin/dependabot/pip/lib/galaxy/dependencies/python-ldap-3.4.0
38a69b1…daa4092 dev → origin/dev
512526a…5793a1c master → origin/master
512526a…5793a1c release_21.09 → origin/release_21.09
- branch release_18.01 → FETCH_HEAD
Already up-to-date.
Next I run:
./scripts/common_startup.sh
Output is:
Activating virtualenv at .venv
Requirement already satisfied: pip>=8.1 in ./.venv/lib/python2.7/site-packages
/slipstream/galaxy/production/galaxy-dist/.venv/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see Advanced Usage - urllib3 2.0.0.dev0 documentation.
SNIMissingWarning
/slipstream/galaxy/production/galaxy-dist/.venv/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see Advanced Usage - urllib3 2.0.0.dev0 documentation.
InsecurePlatformWarning
Certificate did not match expected hostname: pypi.org. Certificate: {‘notAfter’: ‘Nov 23 18:41:10 2022 GMT’, ‘subjectAltName’: ((‘DNS’, ‘www.python.org’), (‘DNS’, ‘.python.org’), (‘DNS’, ‘docs.python.org’), (‘DNS’, ‘downloads.python.org’), (‘DNS’, ‘pypi.python.org’)), ‘subject’: (((‘commonName’, u’www.python.org’),),)}
Requirement already satisfied: numpy==1.9.2 in ./.venv/lib/python2.7/site-packages (from -r requirements.txt (line 4))
Requirement already satisfied: bx-python==0.7.3 in ./.venv/lib/python2.7/site-packages (from -r requirements.txt (line 5))
Collecting MarkupSafe==1.0 (from -r requirements.txt (line 6))
/slipstream/galaxy/production/galaxy-dist/.venv/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see Advanced Usage - urllib3 2.0.0.dev0 documentation.
SNIMissingWarning
/slipstream/galaxy/production/galaxy-dist/.venv/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see Advanced Usage - urllib3 2.0.0.dev0 documentation.
InsecurePlatformWarning
Could not fetch URL https://wheels.galaxyproject.org/simple/markupsafe/: There was a problem confirming the ssl certificate: [Errno 1] _ssl.c:510: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol - skipping
/slipstream/galaxy/production/galaxy-dist/.venv/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see Advanced Usage - urllib3 2.0.0.dev0 documentation.
InsecurePlatformWarning
Certificate did not match expected hostname: pypi.org. Certificate: {‘notAfter’: ‘Nov 23 18:41:10 2022 GMT’, ‘subjectAltName’: ((‘DNS’, ‘www.python.org’), (‘DNS’, '.python.org’), (‘DNS’, ‘docs.python.org’), (‘DNS’, ‘downloads.python.org’), (‘DNS’, ‘pypi.python.org’)), ‘subject’: (((‘commonName’, u’www.python.org’),),)}
Could not fetch URL https://pypi.python.org/simple/markupsafe/: There was a problem confirming the ssl certificate: hostname ‘pypi.org’ doesn’t match either of ‘www.python.org’, ‘.python.org’, ‘docs.python.org’, ‘downloads.python.org’, ‘pypi.python.org’ - skipping
Could not find a version that satisfies the requirement MarkupSafe==1.0 (from -r requirements.txt (line 6)) (from versions: )
No matching distribution found for MarkupSafe==1.0 (from -r requirements.txt (line 6))
/slipstream/galaxy/production/galaxy-dist/.venv/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see Advanced Usage - urllib3 2.0.0.dev0 documentation.
InsecurePlatformWarning
Certificate did not match expected hostname: pypi.org. Certificate: {‘notAfter’: ‘Nov 23 18:41:10 2022 GMT’, ‘subjectAltName’: ((‘DNS’, ‘www.python.org’), (‘DNS’, '.python.org’), (‘DNS’, ‘docs.python.org’), (‘DNS’, ‘downloads.python.org’), (‘DNS’, ‘pypi.python.org’)), ‘subject’: (((‘commonName’, u’www.python.org’),),)}
There seems to be security certificate problems that seem to prevent fetching some python components???
The next steps are:
reboot
(I believe galaxy should start at this point - but it errors)
sh manage_db.sh upgrade -c /slipstream/galaxy/production/config/galaxy.ini
(This works fine and adds database columns)
sh ./scripts/migrate_tools/0011_tools.sh install_dependencies
(This errors - No module named ipaddress)
The galaxy startup log also gives a similar type of error: ImportError: No module named packaging.version
Any help on troubleshooting this would be greatly appreciated. At the moment I cannot update or add any tools. Galaxy has been very helpful for our lab work. Would rather not have to go back to command line data analysis.