Running Galaxy on another server
Hi I installed a copy of Galaxy on my server under public_html Folder. I also modified the universe_wsgi.ini file and changed the host setting to 0.0.0.0. Invoking sh run.sh command, Galaxy tends to start starting : serving on 0.0.0.0:8080 view at http://127.0.0.1:8080 But http://127.0.0.1:8080 gives a "*page load error*" on viewing in browser. If I change host setting to the IP address of my server, it displays a bunch of errors and does not start Galaxy. Those errors are: - *Starting server in PID 29836. Traceback (most recent call last): File "./scripts/paster.py", line 32, in ? command.run() File "/nfs/home/raghav/public_html/galaxy/eggs/py2.4-noplatform/PasteScript-1.3.6-py2.4.egg/paste/script/command.py", line 78, in run invoke(command, command_name, options, args[1:]) File "/nfs/home/raghav/public_html/galaxy/eggs/py2.4-noplatform/PasteScript-1.3.6-py2.4.egg/paste/script/command.py", line 117, in invoke exit_code = runner.run(args) File "/nfs/home/raghav/public_html/galaxy/eggs/py2.4-noplatform/PasteScript-1.3.6-py2.4.egg/paste/script/command.py", line 212, in run result = self.command() File "/nfs/home/raghav/public_html/galaxy/eggs/py2.4-noplatform/PasteScript-1.3.6-py2.4.egg/paste/script/serve.py", line 232, in command server(app) File "/nfs/home/raghav/public_html/galaxy/eggs/py2.4-noplatform/PasteDeploy-1.3.1-py2.4.egg/paste/deploy/loadwsgi.py", line 139, in server_wrapper wsgi_app, context.global_conf, File "/nfs/home/raghav/public_html/galaxy/eggs/py2.4-noplatform/PasteDeploy-1.3.1-py2.4.egg/paste/deploy/util/fixtypeerror.py", line 57, in fix_call val = callable(*args, **kw) File "/nfs/home/raghav/public_html/galaxy/eggs/py2.4-noplatform/Paste-1.5.1-py2.4.egg/paste/httpserver.py", line 1307, in server_runner serve(wsgi_app, **kwargs) File "/nfs/home/raghav/public_html/galaxy/eggs/py2.4-noplatform/Paste-1.5.1-py2.4.egg/paste/httpserver.py", line 1257, in serve threadpool_options=threadpool_options) File "/nfs/home/raghav/public_html/galaxy/eggs/py2.4-noplatform/Paste-1.5.1-py2.4.egg/paste/httpserver.py", line 1107, in __init__ RequestHandlerClass, ssl_context) File "/nfs/home/raghav/public_html/galaxy/eggs/py2.4-noplatform/Paste-1.5.1-py2.4.egg/paste/httpserver.py", line 1087, in __init__ RequestHandlerClass, ssl_context) File "/nfs/home/raghav/public_html/galaxy/eggs/py2.4-noplatform/Paste-1.5.1-py2.4.egg/paste/httpserver.py", line 328, in __init__ HTTPServer.__init__(self, server_address, RequestHandlerClass) File "/usr/lib/python2.4/SocketServer.py", line 330, in __init__ self.server_bind() File "/usr/lib/python2.4/BaseHTTPServer.py", line 99, in server_bind SocketServer.TCPServer.server_bind(self) File "/usr/lib/python2.4/SocketServer.py", line 341, in server_bind self.socket.bind(self.server_address) File "<string>", line 1, in bind socket.gaierror: (-2, 'Name or service not known') galaxy.jobs INFO 2009-11-05 21:30:08,204 sending stop signal to worker thread galaxy.jobs INFO 2009-11-05 21:30:08,204 job queue stopped galaxy.jobs.runners.local INFO 2009-11-05 21:30:08,204 sending stop signal to worker threads galaxy.jobs.runners.local INFO 2009-11-05 21:30:08,205 local job runner stopped galaxy.jobs INFO 2009-11-05 21:30:08,205 sending stop signal to worker thread galaxy.jobs INFO 2009-11-05 21:30:08,206 job stopper stopped * What changes do I have to make in order to run the Galaxy on my server? -- Raghav Bhatnagar Graduate Student (CS) Viterbi School of Engineering University of Southern California
Raghav Bhatnagar wrote:
I installed a copy of Galaxy on my server under public_html Folder. I also modified the universe_wsgi.ini file and changed the host setting to 0.0.0.0. Invoking sh run.sh command, Galaxy tends to start starting : serving on 0.0.0.0:8080 <http://0.0.0.0:8080> view at http://127.0.0.1:8080
But http://127.0.0.1:8080 gives a "*page load error*" on viewing in browser.
Hi Raghav, Are there any other errors displayed here? Are you able to load http://your-server-ip:8080 ? 0.0.0.0 should bind to all available interfaces including the loopback (127.0.0.1).
If I change host setting to the IP address of my server, it displays a bunch of errors and does not start Galaxy. Those errors are: -
File "<string>", line 1, in bind socket.gaierror: (-2, 'Name or service not known')
This appears to be a name resolution failure, are you using the IP or hostname in 'host ='? A hostname is valid but must resolve. It might help to paste your [server:main] section of universe_wsgi.ini so we can see exactly what's there. Thanks, --nate
participants (2)
-
Nate Coraor
-
Raghav Bhatnagar