Remote Desktop Failed

Dear All,

I am trying to install the interactive desktop. The installation seems OK but I can not launch a session due to “too few arguments”. Would you please guide me where I did wrong?

Thank you in advance,

Dawei

We’d probably have to see your submit.yml.erb. That’s going to be a tough one to figure out, but I think that’s the only time you interact with the ruby APIs is by using that file.

From your URL, looks like you’re modifying the bc_desktop application? If that’s the case, you should copy that folder and work on the copy as a brand new application, copy it to say bc_hal_desktop.

Also, make yourself a developer, so you don’t need to work as root on the filesystem. Like I just made myself a ~/ondemand/dev/bc_hello_world application to try to test this which took me to /pun/sys/dashboard/batch_connect/dev/bc_hello_world/session_contexts/new. So I can work on the files, but as myself. Only nobody else can use or see that app that I’m working on.

Once you get something solid, then you can be root to promote it to /var/www/ood/apps/sys but as you develop it, you can just do so as yourself with no escalation.

Hi, Jonrstrom,

Thank you very much for your help. I have checked every step I did but still can not figure out why the remote desktop can not work. Following is the “subm.yml.erb”

Would you please give me some guidance?

/etc/ood/config/apps/bc_desktop/submit/submit.yml.erb


script:
native:
- “-N”
- “<%= bc_num_slots.blank? ? 1 : bc_num_slots.to_i %>”

Ok, quickly, the yml there isn’t formatted correctly, though that’s not your issue. native element is under the script. But again, this is not causing this issue.

We should be able to see the error for this in /var/log/ondemand-nginx/dmu/error.log. I don’t think it’s going to be well formatted, but I think that it’ll have the stack trace we’re looking for. Search for too few arguments. Then we’ll at least see where this error is coming from becuase it’s not obvious now. I’ve been trying to replicate all morning to no avail. We may need to see your cluster config and config/apps/bc_desktop/hal_desktop.yml (or whatever you call the form file).

Again, thank you so much for your help. Here is the error log I found

[ N 2019-10-25 16:02:41.9773 31300/T1 age/Cor/CoreMain.cpp:1310 ]: Starting Passenger core...
[ N 2019-10-25 16:02:41.9776 31300/T1 age/Cor/CoreMain.cpp:256 ]: Passenger core running in multi-application mode.
[ N 2019-10-25 16:02:42.1144 31300/T1 age/Cor/CoreMain.cpp:985 ]: Passenger core online, PID 31300
App 31364 output: Listening on 3000
App 31364 output: Connection established
App 31364 output: Opened terminal: 31418
[ N 2019-10-25 16:02:44.8784 31300/T5 age/Cor/SecurityUpdateChecker.h:519 ]: Security update check: no update found (next check in 24 hours)
App 31364 output: Closed terminal: 31418
[ N 2019-10-25 16:07:44.2365 31300/T4 age/Cor/CoreMain.cpp:1117 ]: Checking whether to disconnect long-running connections for process 31364, application /var/www/ood/apps/sys/shell (production)
App 31718 output: Rails Error: Unable to access log file. Please ensure that /var/www/ood/apps/sys/dashboard/log/production.log exists and is writable (ie, make it writable for user and group: chmod 0664 /var/www/ood/apps/sys/dashboard/log/production.log). The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
App 31718 output: [2019-10-25 16:08:38 -0500 ]  INFO "method=GET path=/pun/sys/dashboard/batch_connect/sys/bc_desktop/hal/session_contexts/new format=html controller=BatchConnect::SessionContextsController action=new status=200 duration=376.99 view=162.31"
App 31718 output: [2019-10-25 16:08:44 -0500 ] ERROR "ERROR: ArgumentError - too few arguments"
App 31718 output: [2019-10-25 16:08:44 -0500 ]  INFO "method=POST path=/pun/sys/dashboard/batch_connect/sys/bc_desktop/hal/session_contexts format=html controller=BatchConnect::SessionContextsController action=create status=200 duration=444.16 view=94.04"

also, the hal_desktop yml

# /etc/ood/config/apps/bc_desktop/hal.yml
---
title: "hal Desktop"
cluster: "hal"
submit: "submit/submit.yml.erb"

Awesome, we don’t throw the exception there. Can you modify this file /var/www/ood/apps/sys/dashboard/app/models/batch_connect/session.rb to throw the stacktrace? Can you add this line here on lines 151, 175 and 197 just after logging the error line you see there.

Unfortunately this seems to be a Ruby specific error and it’s unclear to us where, in what function it’s being thrown.

151       Rails.logger.error("ERROR: #{e.class} - #{e.message}")
            #    Add this line
             Rails.logger.error("BACKTRACE: #{e.backtrace}")
152       false

Hi, Thank you for your advice, I have added the bask trace line into the 3 spots and here is the result

App 30701 output: [2019-10-29 11:46:21 -0500 ]  INFO "method=GET path=/pun/sys/dashboard/ format=html controller=DashboardController action=index status=200 duration=180.26 view=103.30"

[ N 2019-10-29 11:46:23.6399 30166/T7 age/Cor/CoreMain.cpp:641 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
[ N 2019-10-29 11:46:23.6401 30166/T1 age/Cor/CoreMain.cpp:1216 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
[ N 2019-10-29 11:46:23.6401 30166/T1 age/Cor/CoreMain.cpp:1117 ]: Checking whether to disconnect long-running connections for process 30701, application /var/www/ood/apps/sys/dashboard (production)
[ N 2019-10-29 11:46:23.6404 30166/Tb Ser/Server.h:902 ]: [ServerThr.3] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6404 30166/Td Ser/Server.h:902 ]: [ServerThr.4] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6404 30166/T9 Ser/Server.h:902 ]: [ServerThr.2] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6404 30166/T7 Ser/Server.h:902 ]: [ServerThr.1] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6404 30166/Tb Ser/Server.h:558 ]: [ServerThr.3] Shutdown finished
[ N 2019-10-29 11:46:23.6404 30166/Tl Ser/Server.h:902 ]: [ServerThr.8] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6404 30166/Tj Ser/Server.h:902 ]: [ServerThr.7] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6405 30166/Td Ser/Server.h:558 ]: [ServerThr.4] Shutdown finished
[ N 2019-10-29 11:46:23.6404 30166/Ts Ser/Server.h:902 ]: [ServerThr.11] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6404 30166/Tf Ser/Server.h:902 ]: [ServerThr.5] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6404 30166/Th Ser/Server.h:902 ]: [ServerThr.6] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6404 30166/Tp Ser/Server.h:902 ]: [ServerThr.10] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6404 30166/Tt Ser/Server.h:902 ]: [ServerThr.12] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6405 30166/Tx Ser/Server.h:902 ]: [ServerThr.14] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6405 30166/T9 Ser/Server.h:558 ]: [ServerThr.2] Shutdown finished
[ N 2019-10-29 11:46:23.6405 30166/Tl Ser/Server.h:558 ]: [ServerThr.8] Shutdown finished
[ N 2019-10-29 11:46:23.6405 30166/T7 Ser/Server.h:558 ]: [ServerThr.1] Shutdown finished
[ N 2019-10-29 11:46:23.6405 30166/Tz Ser/Server.h:902 ]: [ServerThr.15] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6405 30166/T15 Ser/Server.h:902 ]: [ServerThr.18] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6405 30166/Tj Ser/Server.h:558 ]: [ServerThr.7] Shutdown finished
[ N 2019-10-29 11:46:23.6405 30166/T19 Ser/Server.h:902 ]: [ServerThr.20] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6405 30166/Ts Ser/Server.h:558 ]: [ServerThr.11] Shutdown finished
[ N 2019-10-29 11:46:23.6405 30166/Tf Ser/Server.h:558 ]: [ServerThr.5] Shutdown finished
[ N 2019-10-29 11:46:23.6405 30166/Th Ser/Server.h:558 ]: [ServerThr.6] Shutdown finished
[ N 2019-10-29 11:46:23.6406 30166/Tv Ser/Server.h:902 ]: [ServerThr.13] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6405 30166/Tp Ser/Server.h:558 ]: [ServerThr.10] Shutdown finished
[ N 2019-10-29 11:46:23.6405 30166/T1d Ser/Server.h:902 ]: [ServerThr.22] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6405 30166/T11 Ser/Server.h:902 ]: [ServerThr.16] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6405 30166/Tt Ser/Server.h:558 ]: [ServerThr.12] Shutdown finished
[ N 2019-10-29 11:46:23.6405 30166/Tx Ser/Server.h:558 ]: [ServerThr.14] Shutdown finished
[ N 2019-10-29 11:46:23.6405 30166/T1f Ser/Server.h:902 ]: [ServerThr.23] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6406 30166/Tz Ser/Server.h:558 ]: [ServerThr.15] Shutdown finished
[ N 2019-10-29 11:46:23.6406 30166/T15 Ser/Server.h:558 ]: [ServerThr.18] Shutdown finished
[ N 2019-10-29 11:46:23.6406 30166/T19 Ser/Server.h:558 ]: [ServerThr.20] Shutdown finished
[ N 2019-10-29 11:46:23.6406 30166/Tn Ser/Server.h:902 ]: [ServerThr.9] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6406 30166/T1b Ser/Server.h:902 ]: [ServerThr.21] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6406 30166/Tv Ser/Server.h:558 ]: [ServerThr.13] Shutdown finished
[ N 2019-10-29 11:46:23.6406 30166/T1d Ser/Server.h:558 ]: [ServerThr.22] Shutdown finished
[ N 2019-10-29 11:46:23.6406 30166/T11 Ser/Server.h:558 ]: [ServerThr.16] Shutdown finished
[ N 2019-10-29 11:46:23.6406 30166/T1f Ser/Server.h:558 ]: [ServerThr.23] Shutdown finished
[ N 2019-10-29 11:46:23.6407 30166/T1b Ser/Server.h:558 ]: [ServerThr.21] Shutdown finished
[ N 2019-10-29 11:46:23.6407 30166/Tn Ser/Server.h:558 ]: [ServerThr.9] Shutdown finished
[ N 2019-10-29 11:46:23.6407 30166/T17 Ser/Server.h:902 ]: [ServerThr.19] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6407 30166/T1h Ser/Server.h:902 ]: [ServerThr.24] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6407 30166/T17 Ser/Server.h:558 ]: [ServerThr.19] Shutdown finished
[ N 2019-10-29 11:46:23.6407 30166/T1h Ser/Server.h:558 ]: [ServerThr.24] Shutdown finished
[ N 2019-10-29 11:46:23.6407 30166/T13 Ser/Server.h:902 ]: [ServerThr.17] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6407 30166/T13 Ser/Server.h:558 ]: [ServerThr.17] Shutdown finished
[ N 2019-10-29 11:46:23.6408 30166/T1j Ser/Server.h:902 ]: [ApiServer] Freed 0 spare client objects
[ N 2019-10-29 11:46:23.6408 30166/T1j Ser/Server.h:558 ]: [ApiServer] Shutdown finished
[ N 2019-10-29 11:46:23.6409 30166/T1 age/Cor/CoreMain.cpp:1117 ]: Checking whether to disconnect long-running connections for process 30701, application /var/www/ood/apps/sys/dashboard (production)
[ N 2019-10-29 11:46:24.0357 30828/T1 age/Wat/WatchdogMain.cpp:1366 ]: Starting Passenger watchdog...
[ N 2019-10-29 11:46:24.0944 30831/T1 age/Cor/CoreMain.cpp:1310 ]: Starting Passenger core...
[ N 2019-10-29 11:46:24.0948 30831/T1 age/Cor/CoreMain.cpp:256 ]: Passenger core running in multi-application mode.
[ N 2019-10-29 11:46:24.1146 30166/T1 age/Cor/CoreMain.cpp:1295 ]: Passenger core shutdown finished
[ N 2019-10-29 11:46:24.2281 30831/T1 age/Cor/CoreMain.cpp:985 ]: Passenger core online, PID 30831
App 30902 output: Rails Error: Unable to access log file. Please ensure that /var/www/ood/apps/sys/dashboard/log/production.log exists and is writable (ie, make it writable for user and group: chmod 0664 /var/www/ood/apps/sys/dashboard/log/production.log). The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
App 30902 output: [2019-10-29 11:46:26 -0500 ]  INFO "method=GET path=/pun/sys/dashboard/ format=html controller=DashboardController action=index status=200 duration=154.42 view=96.66"
[ N 2019-10-29 11:46:27.0180 30831/T5 age/Cor/SecurityUpdateChecker.h:519 ]: Security update check: no update found (next check in 24 hours)

[ N 2019-10-29 11:46:29.6956 30831/T7 age/Cor/CoreMain.cpp:641 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
[ N 2019-10-29 11:46:29.6957 30831/T1 age/Cor/CoreMain.cpp:1216 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
[ N 2019-10-29 11:46:29.6958 30831/T1 age/Cor/CoreMain.cpp:1117 ]: Checking whether to disconnect long-running connections for process 30902, application /var/www/ood/apps/sys/dashboard (production)
[ N 2019-10-29 11:46:29.6961 30831/Tb Ser/Server.h:902 ]: [ServerThr.3] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6961 30831/T9 Ser/Server.h:902 ]: [ServerThr.2] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6961 30831/T7 Ser/Server.h:902 ]: [ServerThr.1] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6961 30831/Th Ser/Server.h:902 ]: [ServerThr.6] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6961 30831/Tb Ser/Server.h:558 ]: [ServerThr.3] Shutdown finished
[ N 2019-10-29 11:46:29.6961 30831/Tl Ser/Server.h:902 ]: [ServerThr.8] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6961 30831/T9 Ser/Server.h:558 ]: [ServerThr.2] Shutdown finished
[ N 2019-10-29 11:46:29.6961 30831/Td Ser/Server.h:902 ]: [ServerThr.4] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6961 30831/Tn Ser/Server.h:902 ]: [ServerThr.9] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6961 30831/Tl Ser/Server.h:558 ]: [ServerThr.8] Shutdown finished
[ N 2019-10-29 11:46:29.6961 30831/Th Ser/Server.h:558 ]: [ServerThr.6] Shutdown finished
[ N 2019-10-29 11:46:29.6961 30831/Tt Ser/Server.h:902 ]: [ServerThr.12] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6961 30831/T7 Ser/Server.h:558 ]: [ServerThr.1] Shutdown finished
[ N 2019-10-29 11:46:29.6962 30831/Tx Ser/Server.h:902 ]: [ServerThr.14] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6962 30831/Td Ser/Server.h:558 ]: [ServerThr.4] Shutdown finished
[ N 2019-10-29 11:46:29.6962 30831/T19 Ser/Server.h:902 ]: [ServerThr.20] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6962 30831/Tn Ser/Server.h:558 ]: [ServerThr.9] Shutdown finished
[ N 2019-10-29 11:46:29.6962 30831/Tt Ser/Server.h:558 ]: [ServerThr.12] Shutdown finished
[ N 2019-10-29 11:46:29.6962 30831/Tx Ser/Server.h:558 ]: [ServerThr.14] Shutdown finished
[ N 2019-10-29 11:46:29.6962 30831/T1b Ser/Server.h:902 ]: [ServerThr.21] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6962 30831/T19 Ser/Server.h:558 ]: [ServerThr.20] Shutdown finished
[ N 2019-10-29 11:46:29.6962 30831/Tf Ser/Server.h:902 ]: [ServerThr.5] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6962 30831/T11 Ser/Server.h:902 ]: [ServerThr.16] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6962 30831/T1b Ser/Server.h:558 ]: [ServerThr.21] Shutdown finished
[ N 2019-10-29 11:46:29.6962 30831/Tf Ser/Server.h:558 ]: [ServerThr.5] Shutdown finished
[ N 2019-10-29 11:46:29.6962 30831/T1f Ser/Server.h:902 ]: [ServerThr.23] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6962 30831/T11 Ser/Server.h:558 ]: [ServerThr.16] Shutdown finished
[ N 2019-10-29 11:46:29.6962 30831/T1f Ser/Server.h:558 ]: [ServerThr.23] Shutdown finished
[ N 2019-10-29 11:46:29.6962 30831/T13 Ser/Server.h:902 ]: [ServerThr.17] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6962 30831/Tz Ser/Server.h:902 ]: [ServerThr.15] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6962 30831/T1d Ser/Server.h:902 ]: [ServerThr.22] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6963 30831/T13 Ser/Server.h:558 ]: [ServerThr.17] Shutdown finished
[ N 2019-10-29 11:46:29.6963 30831/Tz Ser/Server.h:558 ]: [ServerThr.15] Shutdown finished
[ N 2019-10-29 11:46:29.6963 30831/T1d Ser/Server.h:558 ]: [ServerThr.22] Shutdown finished
[ N 2019-10-29 11:46:29.6963 30831/Tp Ser/Server.h:902 ]: [ServerThr.10] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6963 30831/Tr Ser/Server.h:902 ]: [ServerThr.11] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6963 30831/Tv Ser/Server.h:902 ]: [ServerThr.13] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6963 30831/Tr Ser/Server.h:558 ]: [ServerThr.11] Shutdown finished
[ N 2019-10-29 11:46:29.6963 30831/T17 Ser/Server.h:902 ]: [ServerThr.19] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6963 30831/Tp Ser/Server.h:558 ]: [ServerThr.10] Shutdown finished
[ N 2019-10-29 11:46:29.6963 30831/Tj Ser/Server.h:902 ]: [ServerThr.7] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6963 30831/T17 Ser/Server.h:558 ]: [ServerThr.19] Shutdown finished
[ N 2019-10-29 11:46:29.6963 30831/Tv Ser/Server.h:558 ]: [ServerThr.13] Shutdown finished
[ N 2019-10-29 11:46:29.6963 30831/Tj Ser/Server.h:558 ]: [ServerThr.7] Shutdown finished
[ N 2019-10-29 11:46:29.6963 30831/T15 Ser/Server.h:902 ]: [ServerThr.18] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6963 30831/T15 Ser/Server.h:558 ]: [ServerThr.18] Shutdown finished
[ N 2019-10-29 11:46:29.6963 30831/T1h Ser/Server.h:902 ]: [ServerThr.24] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6963 30831/T1h Ser/Server.h:558 ]: [ServerThr.24] Shutdown finished
[ N 2019-10-29 11:46:29.6963 30831/T1j Ser/Server.h:902 ]: [ApiServer] Freed 0 spare client objects
[ N 2019-10-29 11:46:29.6964 30831/T1j Ser/Server.h:558 ]: [ApiServer] Shutdown finished
[ N 2019-10-29 11:46:29.6964 30831/T1 age/Cor/CoreMain.cpp:1117 ]: Checking whether to disconnect long-running connections for process 30902, application /var/www/ood/apps/sys/dashboard (production)
[ N 2019-10-29 11:46:30.0915 31041/T1 age/Wat/WatchdogMain.cpp:1366 ]: Starting Passenger watchdog...
[ N 2019-10-29 11:46:30.1681 30831/T1 age/Cor/CoreMain.cpp:1295 ]: Passenger core shutdown finished
[ N 2019-10-29 11:46:30.3015 31044/T1 age/Cor/CoreMain.cpp:985 ]: Passenger core online, PID 31044
App 31115 output: Rails Error: Unable to access log file. Please ensure that /var/www/ood/apps/sys/dashboard/log/production.log exists and is writable (ie, make it writable for user and group: chmod 0664 /var/www/ood/apps/sys/dashboard/log/production.log). The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
App 31115 output: [2019-10-29 11:46:32 -0500 ]  INFO "method=GET path=/pun/sys/dashboard/ format=html controller=DashboardController action=index status=200 duration=156.83 view=100.69"
[ N 2019-10-29 11:46:33.0707 31044/T5 age/Cor/SecurityUpdateChecker.h:519 ]: Security update check: no update found (next check in 24 hours)
App 31115 output: [2019-10-29 11:46:34 -0500 ]  INFO "method=GET path=/pun/sys/dashboard/batch_connect/sys/bc_desktop/hal/session_contexts/new format=html controller=BatchConnect::SessionContextsController action=new status=200 duration=239.96 view=117.78"
App 31115 output: [2019-10-29 11:46:37 -0500 ] ERROR "ERROR: ArgumentError - too few arguments"
App 31115 output: [2019-10-29 11:46:37 -0500 ] ERROR "BACKTRACE: [\"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/ood_core-0.9.3/lib/ood_core/batch_connect/template.rb:179:in `%'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/ood_core-0.9.3/lib/ood_core/batch_connect/template.rb:179:in `script_wrapper'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/ood_core-0.9.3/lib/ood_core/batch_connect/template.rb:66:in `to_s'\", \"/var/www/ood/apps/sys/dashboard/app/models/batch_connect/session.rb:235:in `script_content'\", \"/var/www/ood/apps/sys/dashboard/app/models/batch_connect/session.rb:186:in `submit'\", \"/var/www/ood/apps/sys/dashboard/app/models/batch_connect/session.rb:148:in `save'\", \"/var/www/ood/apps/sys/dashboard/app/controllers/batch_connect/session_contexts_controller.rb:34:in `block in create'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_controller/metal/mime_responds.rb:212:in `respond_to'\", \"/var/www/ood/apps/sys/dashboard/app/controllers/batch_connect/session_contexts_controller.rb:33:in `create'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_controller/metal/implicit_render.rb:4:in `send_action'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/abstract_controller/base.rb:198:in `process_action'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_controller/metal/rendering.rb:10:in `process_action'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/abstract_controller/callbacks.rb:20:in `block in process_action'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/callbacks.rb:117:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/callbacks.rb:505:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/callbacks.rb:92:in `__run_callbacks__'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/callbacks.rb:81:in `run_callbacks'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/abstract_controller/callbacks.rb:19:in `process_action'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_controller/metal/rescue.rb:29:in `process_action'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/notifications.rb:164:in `block in instrument'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/notifications.rb:164:in `instrument'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_controller/metal/instrumentation.rb:30:in `process_action'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/abstract_controller/base.rb:137:in `process'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action_view/rendering.rb:30:in `process'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_controller/metal.rb:196:in `dispatch'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_controller/metal.rb:237:in `block in action'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/routing/route_set.rb:74:in `dispatch'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/routing/route_set.rb:43:in `serve'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/journey/router.rb:43:in `block in serve'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/journey/router.rb:30:in `each'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/journey/router.rb:30:in `serve'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/routing/route_set.rb:817:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/etag.rb:24:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/conditionalget.rb:38:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/head.rb:13:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/middleware/params_parser.rb:27:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/middleware/flash.rb:260:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/session/abstract/id.rb:225:in `context'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/session/abstract/id.rb:220:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/middleware/cookies.rb:560:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/callbacks.rb:88:in `__run_callbacks__'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/callbacks.rb:81:in `run_callbacks'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/middleware/callbacks.rb:27:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/lograge-0.10.0/lib/lograge/rails_ext/rack/logger.rb:15:in `call_app'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/railties-4.2.11/lib/rails/rack/logger.rb:20:in `block in call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/tagged_logging.rb:68:in `block in tagged'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/tagged_logging.rb:26:in `tagged'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/tagged_logging.r
App 31115 output: b:68:in `tagged'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/railties-4.2.11/lib/rails/rack/logger.rb:20:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/request_store-1.4.1/lib/request_store/middleware.rb:19:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/middleware/request_id.rb:21:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/methodoverride.rb:22:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/runtime.rb:18:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/lock.rb:17:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/middleware/static.rb:120:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/sendfile.rb:113:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/railties-4.2.11/lib/rails/engine.rb:518:in `call'\", \"/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/railties-4.2.11/lib/rails/application.rb:165:in `call'\", \"/opt/ood/ondemand/root/usr/share/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'\", \"/opt/ood/ondemand/root/usr/share/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:157:in `accept_and_process_next_request'\", \"/opt/ood/ondemand/root/usr/share/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'\", \"/opt/ood/ondemand/root/usr/share/ruby/vendor_ruby/phusion_passenger/request_handler.rb:415:in `block (3 levels) in start_threads'\", \"/opt/ood/ondemand/root/usr/share/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'\"]"
App 31115 output: [2019-10-29 11:46:37 -0500 ]  INFO "method=POST path=/pun/sys/dashboard/batch_connect/sys/bc_desktop/hal/session_contexts format=html controller=BatchConnect::SessionContextsController action=create status=200 duration=562.30 view=99.56"

OK? I see where you’re failing but still don’t understand why. You’re right here throwing ‘too few arguements’. I’m unable to replicate.

Do you have a script_wrapper in your cluster configuration? If so, what is it? I think that may be the only source of issues here. Also did you happen to override base_script (less likely but I have to ask).

@superdavidxp I’m sure it’s something to do with the script_wrapper portion of your hal cluster configuration, I just don’t know what. Can you provide it or where you able to resolve it?

Hi Johrstorm,

Thank you very much for your help. We are not not using any script wrapper within our system, which is wired. I will continue debugging it.

By the way, I have upload a logo icon to the system, but only “Files” app related tab can see it, would you please give me some advice on that?

Best,

Dawei

I meant this script wrapper the configuration you have for /etc/ood/config/clusters.d/hal.yml. Here’s what that section looks like for one of our clusters. If you don’t have this entry can you (a) let me see what that file looks like and (b) add a script_wrapper: "%s" to both basic and vnc sections to try and test this out.

As always with yml, indentation is important here.

v2:
# ... other entries removed ...
  batch_connect:
      basic:
        script_wrapper: "module restore\n%s"
      vnc:
        script_wrapper: "module restore\nmodule load ondemand-vnc\n%s"

To the file icon, I think it’s a caching thing on either side. I had to open in a private window for it to work on my system. Since the files app is node.js maybe it’s better about re-reading the public folder than the ruby apps? In any case, it’s working but maybe you just need to bounce httpd or clear your cache to force it.

@superdavidxp here you able to make any progress?

Hi johrstrom,

I have working on it, but still not a have clue. I will attend sc19 next week. Is there anyone I can ask help for there?

Thank you very much for your help.

Best,

Dawei

Yea we’ll be at SC’19. Feel free to drop by our booth or come to our BoF or if you want setup a time to meet, that’s cool too.

I’m still trying to replicate to see what could be the problem.

Do you have any custom initializers (anythging in /etc/ood/config/apps/dashboard/initializers)? What is the submit portion of this bc desktop (I mean the contents of submit/submit.yml or whatever it’s called)?

Hi Johrstorm,

Thank you again for your help. We did not use any custom initializers. I used submit.yml.erb

batch_connect:
template: vnc

One more question, I tried to start from something easy app, which submit job script. However I got the following error message

Resetting modules to system default
Script starting...
Generating connection YAML file...
/var/spool/slurm/d/job23050/slurm_script: line 87: /home/dmu/ondemand/data/sys/dashboard/batch_connect/dev/bc_interactive/output/38eace10-678d-48a9-920b-1a75f2725f4e/script.sh: Permission denied
Cleaning up...

It seems that the “…5f4e/script.sh” script is not executable, m,ay I ask how should I fix this problem?

Best,

Dawei

I assume you have a ~/dev/bc_interactive/template/script.sh.erb file? You need to make that executable (like through chmod +x).

OK, you seem to have setup everything out of the box without a lot of modification. Did you install OOD through the RPM or did you do a lot of manual work? If you did a lot of manual work, maybe there’s something there?

What does your cluster config look like (/etc/ood/config/clusters.d/hal.yml if that’s what the name of the cluster is).

Hi,

the hal.yml as following

# /etc/ood/config/clusters.d/hal.yml

v2:
metadata:
title: “hal”
login:
host: “hal-login.hal.ncsa.illinois.edu”
job:
adapter: “slurm”
bin: “/usr/bin”
conf: “/etc/slurm/slurm.conf”
acls:

  • adapter: “group”
    groups:
    • “grp_202”
      type: “whitelist”
      batch_connect:
      basic:
      script_wrapper: “module restore\n%s”
      set_host: “host=$(hostname -A | awk '{print 1}')" vnc: script_wrapper: "module restore\nmodule load ondemand-vnc\n%s" set_host: "host=(hostname -A | awk ‘{print $1}’)”

I tried to chmod and it works, tanks.

Dawei

@superdavidxp sorry we never got around to solving the original issue here.

I’m sure it has something to do with the script_wrapper element. Were you ever able to solve it?

Hey sorry for the delay in circling back. Are you still having issues with this?