I’ve cloned the latest 26.0 release and trying, but failing, to use put() from a Jupyter notebook on my local server. And apologies, as I think I’ve gone through this previously - if so, my notes fail me.
I see there are multiple notebook options - is one preferred? (I tried the *notebook.xml one)
I’ve attached my config/galaxy.yml and job_conf.yml, fwiw
here’s my attempted use (after creating a “foo.txt”) and error:
Exception Traceback (most recent call last)
<ipython-input-5-63aa956a47a9> in <module>
----> 1 put("foo.txt")
/opt/conda/lib/python3.8/site-packages/galaxy_ie_helpers/__init__.py in put(filenames, file_type, history_id)
111
112 history_id = history_id or os.environ['HISTORY_ID']
--> 113 gi = get_galaxy_connection(history_id=history_id)
114 for filename in filenames:
115 log.debug('Uploading gx=%s history=%s localpath=%s ft=%s', gi, history_id, filename, file_type)
/opt/conda/lib/python3.8/site-packages/galaxy_ie_helpers/__init__.py in get_galaxy_connection(history_id, obj)
98 ### Fail ###
99 msg = "Could not connect to a galaxy instance. Please contact your SysAdmin for help with this error"
--> 100 raise Exception(msg)
The most current supported version of the notebook is interactivetool_jupyter_notebook_1.0.3.xml.
Please give this a try with the updated version combination and let us know what happens!
Also – integration testing is happening right now for v.26.0! If you found something that works in the master and fails in the pending release branch, this is important and can be reported right now directly to the /galaxy repository under Issues. If you specify the comparison details at the top of the issue the release team will help to triage, or you can post the link back here and I’ll toggle the flag.
Thanks for pointing out 26.0 is in dev. When I download 25.1.1 and attempt to build (sh run.sh), I end up with a rabbit hole error that I had encountered last summer with 25.0 and never resolved. Do you have any more specific tips than the generic yarn url?
[12:42:53] Finished 'default' after 1.21 min
$ GXY_BUILD_SOURCEMAPS=1 NODE_ENV=production webpack
Browserslist: browsers data (caniuse-lite) is 11 months old. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Killed
error Command failed with exit code 137.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 137.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: Galaxy client build failed. See ./client/README.md for more information, including how to get help.
(galaxy-venv) (base) heiland@yoga:~/dev/galaxy-25.1.1$
Choose a different make client option, or directly set a shell variable for the NODE* memory limit available. The topic above explains where this option was polished a bit more – also here directly.
The steps for option 2 with direct memory set would be something like
create the home directly /my-server/galaxy and cd into it
export NODE_OPTIONS="--max_old_space_size=4096" to set the limit to 4 GB (or what you have available)
sh run.sh
The process can still overflow – setting the swap is probably needed for the full install if the memory is less than ~ 10 GB (I can confirm this minimum for this exact release, and update back here!)
All if this could be added to Get Galaxy | Galaxy Hub since it comes up every so often! TODO item for me!
Please give this a try and let us know what happens! We can troubleshoot more. Knowing more about the environment would help.
The tool_conf.xml seems ok. I’m comparing to the configuration at UseGalaxy.org here:
So, this is probably related to the server port.
Default would be this for the server, assuming the tool launched from the same server has the host you just created.
localhost:8080:80
And the remaining parts are configured in galaxy.yml starting here:
This tutorial includes instructions for abstracting this more but the explainations about what each variable means and choices behind them are valid no matter how you do this!