<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Hi Kevin,</div><div><br></div><div>It has been awhile since I worked with the code, but this looks like it may be caused by a corrupt connection file that was generated by one of your running interactive session jobs. When an Interactive Session starts running on an allocated cluster node it will attempt to create a `connection.yml` file in its staging directory. This file holds all the necessary information (e.g., host, port, and VNC password) necessary for the user to connect back to the session through the Dashboard. The Dashboard will attempt to parse this file using the Ruby YAML parsing library `psych` and generate a link that the user can use to connect to their running session.</div><div><br></div><div>You can find these connection files under the staging directory for each of the running Interactive Sessions. I don't have access to my data anymore, so working from memory you can probably find it under (give or take a few mistakes in directories):</div><div><br></div><div>~/ondemand/data/sys/dashboard/batch_connect/sys/bc_desktop/<cluster>/output/<unique_session_id>/connection.yml</div><div><br></div><div>or you can get fancy and do:</div><div><br></div><div>$ find ~/ondemand/data -name connection.yml</div><div><br></div><div>You will want to read the contents of those files and look for any odd characters that stand out. If you can track down the offending file that will help narrow down the bug and a possible fix.</div><div><br></div><div>-Jeremy Nicklas</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Hello, I've just done an initial install of OOD, and for the most<br>
part, I have it working.<br>
<br>
However, when running a interactive desktop, I'm getting an error when<br>
I click on the 'My Interactive Sessions' button on the dashboard.<br>
<br>
I'm seeing an 'Internal Server Error' with text that starts with:<br>
<br>
#<ActionView::Template::Error: (<unknown>): invalid trailing UTF-8<br>
octet at line 1 column 1><br>
<br>
/opt/rh/rh-ruby22/root/usr/<wbr>share/ruby/psych.rb:370:in `parse'<br>
/opt/rh/rh-ruby22/root/usr/<wbr>share/ruby/psych.rb:370:in `parse_stream'<br>
/opt/rh/rh-ruby22/root/usr/<wbr>share/ruby/psych.rb:318:in `parse'<br>
/opt/rh/rh-ruby22/root/usr/<wbr>share/ruby/psych.rb:284:in `safe_load'<br>
/var/www/ood/apps/sys/<wbr>dashboard/app/models/batch_<wbr>connect/session.rb:396:in<br>
`connect<br>
....  and many more lines.<br>
<br>
In my PUN error log file, I'm seeing similar-<br>
App 9021 stdout: [2018-08-01 15:31:28 -0400 ]  INFO "execve =<br>
[{\"SLURM_CONF\"=>\"/etc/<wbr>slurm/slurm.conf\"}, \"/usr/bin/squeue\",<br>
\"--all\", \"--states=all\", \"--noconvert\", \"-o\",<br>
\"%a\\u001F%A\\u001F%b\\u001F%<wbr>B\\u001F%c\\u001F%C\\u001F%d\\<wbr>u001F%D\\u001F%e\\u001F%E\\<wbr>u001F%f\\u001F%F\\u001F%g\\<wbr>u001F%G\\u001F%h\\u001F%H\\<wbr>u001F%i\\u001F%I\\u001F%j\\<wbr>u001F%J\\u001F%k\\u001F%K\\<wbr>u001F%l\\u001F%L\\u001F%m\\<wbr>u001F%M\\u001F%n\\u001F%N\\<wbr>u001F%o\\u001F%O\\u001F%q\\<wbr>u001F%P\\u001F%Q\\u001F%r\\<wbr>u001F%S\\u001F%t\\u001F%T\\<wbr>u001F%u\\u001F%U\\u001F%v\\<wbr>u001F%V\\u001F%w\\u001F%W\\<wbr>u001F%x\\u001F%X\\u001F%y\\<wbr>u001F%Y\\u001F%z\\u001F%Z\",<br>
\"-j\", \"190\"]"<br>
App 9021 stdout: [2018-08-01 15:31:28 -0400 ]  INFO "method=GET<br>
path=/pun/sys/dashboard/batch_<wbr>connect/sessions format=html<br>
controller=BatchConnect::<wbr>SessionsController action=index status=500<br>
error='ActionView::Template::<wbr>Error: (<unknown>): invalid trailing<br>
UTF-8 octet at line 1 column 1' duration=35.72 view=0.00"<br>
App 9021 stdout: [2018-08-01 15:31:28 -0400 ] FATAL<br>
"ActionView::Template::Error ((<unknown>): invalid trailing UTF-8<br>
octet at line 1 column 1):\n    1: <%= session_panel session do %>\n<br>
 2:   <%= session_view session do %>\n    3:     <%\n    4:       if<br>
session.running?\n  app/models/batch_connect/<wbr>session.rb:396:in<br>
`connect'\n  app/models/batch_connect/<wbr>session.rb:405:in `to_hash'\n<br>
app/helpers/batch_connect/<wbr>sessions_helper.rb:3:in `session_panel'\n<br>
app/views/batch_connect/<wbr>sessions/_panel.html.erb:1:in<br>
`_app_views_batch_connect_<wbr>sessions__panel_html_erb__<wbr>2226473861888657584_36164260'\<wbr>n<br>
 app/views/batch_connect/<wbr>sessions/index.html.erb:37:in<br>
`_app_views_batch_connect_<wbr>sessions_index_html_erb__<wbr>2670672794125958996_36346460'"<br>
<br>
<br>
Any ideas on what I should look at?<br>
Thanks for putting together what looks like it's going to be an<br>
extremely useful tool for our users!<br>
<br>
Thanks,<br>
Kevin<br>
<br>
--<br>
Kevin Hildebrand<br>
University of Maryland Division of IT<br>
______________________________<wbr>_________________<br>
OOD-users mailing list<br>
<a href="mailto:OOD-users@lists.osc.edu">OOD-users@lists.osc.edu</a><br>
<a href="https://lists.osu.edu/mailman/listinfo/ood-users" rel="noreferrer" target="_blank">https://lists.osu.edu/mailman/<wbr>listinfo/ood-users</a><br>
</blockquote></div><br></div></div>