Seite 1 von 1

Getting 'com.jcraft.jsch.JSchException: session is down' in configed upload driver screen

Verfasst: 05 Jul 2017, 23:32
von ttblum
When running configed on my Windows 7 workstation, I'm getting:

Code: Alles auswählen

[create_driver_links.py(1/1)]            ---------------------------------------------------------------------------------------------------------------------------------------------------
[create_driver_links.py(1/1)]            exec:  sudo -S -p "failed..."  /var/lib/opsi/depot/win7-x64/create_driver_links.py  2>&1
[create_driver_links.py(1/1)]            com.jcraft.jsch.JSchException: session is down
[create_driver_links.py(1/1)]            ---------------------------------------------------------------------------------------------------------------------------------------------------
[create_driver_links.py(1/1)]            exec:  sudo -S -p "failed..."  /var/lib/opsi/depot/win7-x64/create_driver_links.py  2>&1
[create_driver_links.py(1/1)]            com.jcraft.jsch.JSchException: session is down
[show_drivers.py(1/1)]                   ---------------------------------------------------------------------------------------------------------------------------------------------------
[show_drivers.py(1/1)]                   exec:  /var/lib/opsi/depot/win7-x64/show_drivers.py elitedesk-g3.mbsnetinc.com 2>&1
[show_drivers.py(1/1)]                   com.jcraft.jsch.JSchException: session is down
[show_drivers.py(1/1)]                   ---------------------------------------------------------------------------------------------------------------------------------------------------
[show_drivers.py(1/1)]                   exec:  /var/lib/opsi/depot/win7-x64/show_drivers.py elitedesk-g3.mbsnetinc.com 2>&1
[show_drivers.py(1/1)]                   com.jcraft.jsch.JSchException: session is down
When I click on 'Show drivers as now held for selected client and windows product'.

I'm launching configed by running 'java -jar configed.jar'.

I get the same thing when I click on 'Rebuild table for drivers'.

What could this be?

Also, the quick start guide says to run 'opsi-setup --set-rights ./drivers' after a driver upload, is this necessary? We'd probably prefer to use the GUI if possible.

Re: Getting 'com.jcraft.jsch.JSchException: session is down' in configed upload driver screen

Verfasst: 06 Jul 2017, 07:36
von wolfbardo
ttblum hat geschrieben: Also, the quick start guide says to run 'opsi-setup --set-rights ./drivers' after a driver upload, is this necessary? We'd probably prefer to use the GUI if possible.
If you upload the driver via opsi-configed it isnt necessary to run 'opsi-setup --set-rights ./drivers'

If you upload the driver via opsi-configed method 'byAudit' it isnt necessary to run 'create_driver_links.py'

regards,
Bardo Wolf

Re: Getting 'com.jcraft.jsch.JSchException: session is down' in configed upload driver screen

Verfasst: 06 Jul 2017, 16:01
von ttblum
OK, thanks.

Is there a way to see the output of 'show_drivers.py' in opsi-configed? It's nice to see which drivers are being assigned to what hardware.

Re: Getting 'com.jcraft.jsch.JSchException: session is down' in configed upload driver screen

Verfasst: 06 Jul 2017, 20:23
von r.roeder
yes, there is a button in the driver frame which produces it. But if you have really got a problem with your SSH connection which I do not understand yet it will not work.
Greetings
Rupert

Re: Getting 'com.jcraft.jsch.JSchException: session is down' in configed upload driver screen

Verfasst: 11 Jul 2017, 20:57
von ttblum
I figured it out, parts of my config had the server's FQDN but with the wrong domain name, so the DNS wasn't resolving.

I edited the config and corrected the FQDN of the server, now I'm able to see the output of show_drivers.py OK in configed.