Problem With JetPack

Hello everyone. I’m in a bit of a hurry to bring my TX2 board up to date with my imaging work.
What i suceed to do:
1 flash the device
2 Boot up the device
3 ssh from the Host PC to the TX via ethernet cable
what i failed:
Installing the CUDA openCV ecc library that i am supposed to install via Jetpack
What i already tried
1 flash the device and installing the device
2 install the feature without flashing
In both cases the system appears to be stuck when i try to connect via ssh using Jetpack.
Yes i already done “sudo apt-get install ssh-askpass”, but somehow Jetpack cannot connet via SSH and it’s stuck.
Sorry for my writing to not be super polished but as i mentioned i’m in a bit of a hurry and not super fluent in the language.
Thank you
Michael
P.S.
Small Update. I noticed that when i try to connect via SSH the Jetpack program (when it asks for IP address and login/pass that he actually doesn’t connect, since no SSH connection appear on either last or lastb

Hi,

It sounds you can flash the board but cannot install anything through ssh.

Could you use a HDMI monitor or UART debugger to check if ethernet really has a valid ip?

it definitely has a valid IP address, since i’m able to ssh from terminal with no problem. PLus internet is working like a charm using the HDMI monitor.

Jetpack should have installer log. Could you check the logs in _installer/logs?

in the folder there are many logs and most of them are quite big. where should i look?

ok i think i found the interesting stuff
InstallUtils: ven 25 mag 2018, 10.55.46, CEST: ./InstallUtil install com.nvidia.gie.l4t_64_tx2 3.0 /home/michael3/JetPackCat/jetpack_download/nv-tensorrt-repo-ubuntu1604-ga-cuda9.0-trt3.0.4-20180208_1-1_arm64.deb /home/michael3/JetPackCat/ /home/michael3/JetPackCat/jetpack_download/repository.json 9076
InstallUtils: ven 25 mag 2018, 10.55.46, CEST: ./InstallUtil install org.opencv.middleware.ocv_l4t_64_tx2 3.3.1 /home/michael3/JetPackCat/jetpack_download/libopencv_3.3.1_t186_arm64.deb /home/michael3/JetPackCat/ /home/michael3/JetPackCat/jetpack_download/repository.json 9076
InstallUtils: ven 25 mag 2018, 10.55.46, CEST: ./InstallUtil install com.nvidia.middleware.visionworks_target_64_tx2 1.6 /home/michael3/JetPackCat/jetpack_download/libvisionworks-repo_1.6.0.500n_arm64.deb /home/michael3/JetPackCat/ /home/michael3/JetPackCat/jetpack_download/repository.json 9076
InstallUtils: ven 25 mag 2018, 10.55.46, CEST: ./InstallUtil install com.nvidia.middleware.visionworks_target_sfm_64_tx2 0.90 /home/michael3/JetPackCat/jetpack_download/libvisionworks-sfm-repo_0.90.3_arm64.deb /home/michael3/JetPackCat/ /home/michael3/JetPackCat/jetpack_download/repository.json 9076
InstallUtils: ven 25 mag 2018, 10.55.46, CEST: ./InstallUtil install com.nvidia.middleware.visionworks_target_tracking_64_tx2 0.88 /home/michael3/JetPackCat/jetpack_download/libvisionworks-tracking-repo_0.88.1_arm64.deb /home/michael3/JetPackCat/ /home/michael3/JetPackCat/jetpack_download/repository.json 9076
InstallUtils: ven 25 mag 2018, 10.55.46, CEST: ./InstallUtil install com.nvidia.mmapi.l4t_64_tx2 28.2 /home/michael3/JetPackCat/jetpack_download/Tegra_Multimedia_API_R28.2.0_aarch64.tbz2 /home/michael3/JetPackCat/ /home/michael3/JetPackCat/jetpack_download/repository.json 9076
PageAction: ven 25 mag 2018, 10.55.46, CEST: /home/michael3/JetPackCat/_installer/PageAction finished create_shortcut
PageAction: ven 25 mag 2018, 10.55.46, CEST: /home/michael3/JetPackCat/_installer/PageAction query eclipse
PageAction: ven 25 mag 2018, 10.55.46, CEST: /home/michael3/JetPackCat/_installer/PageAction query incredibuild
PageAction: ven 25 mag 2018, 10.55.46, CEST: /home/michael3/JetPackCat/_installer/PageAction installation nextpage . /home/michael3/JetPackCat Launcher 9076
PageAction: ven 25 mag 2018, 10.55.47, CEST: /home/michael3/JetPackCat/_installer/PageAction query post_installation_info
PageAction: ven 25 mag 2018, 10.56.18, CEST: /home/michael3/JetPackCat/_installer/PageAction jetpack_device_info set_info <target_ip_address> <target_username> <target_password>
mkdir -p /home/michael3/.ssh
ssh-keygen -R *IP ADDRESS
ssh-keyscan *IP ADDRESS>>/home/michael3/.ssh/known_hosts
echo /home/michael3
ssh-add /home/michael3/.ssh/id_rsa 0<&-
scp -F /dev/null -o PubkeyAuthentication=no -o ConnectTimeout=30 -o StrictHostKeyChecking=no /home/michael3/.ssh/id_rsa.pub ubuntu@:/home/ubuntu/tmp.pub
ssh -F /dev/null -o PubkeyAuthentication=no -o ConnectTimeout=30 ubuntu@

Of course i censored the IP of my TX2 board with IP ADDRESS* for security reason since i don’t want my IP to public and my internet Security team trying to kill me (for good reason)

Do you have log with “target_setup_progess*” prefix? Could you show me what are in your folder?

this is target setup progress
starting to flash 64_tx2
finish flashing 64_tx2
starting to flash 64_tx2
starting to flash 64_tx2
finish flashing 64_tx2
starting to flash 64_tx2
finish flashing 64_tx2
starting to flash 64_tx2
starting to flash 64_tx2
finish flashing 64_tx2
target ip is 169.254.6.66
starting to flash 64_tx2
finish flashing 64_tx2
starting to flash 64_tx2
finish flashing 64_tx2
starting to flash 64_tx2
finish flashing 64_tx2
starting to flash 64_tx2
finish flashing 64_tx2
starting to flash 64_tx2
finish flashing 64_tx2
starting to flash 64_tx2
finish flashing 64_tx2

These are the logs i have

64_TX2 opencv_host.log
cuda_host_9.0.log opencv_host_python.log
devtools_docs.log opencv_host_sample.log
install_tegra_graphics_debugger.log Terminal_Installation.log
jetpack_debug.log visionworks_host.log
jetpack_docs.log visionworks_sfm_host.log
nvidia_system_profiler.log visionworks_tracking.log
opencv_host_dev.log
configure_host_64_tx2.log flash_os_tx2.log
filesystem_tx2.log target_setup_progress_64_tx2.log

The line i posted before are from JetPack_debug.log

Is that the full log you have? I mean the log in #6. Also, log “target setup progress” should mention target ip if you directly choose the correct ethernet setting in jetpack GUI.

May I ask what environment is your host?

No, it’s not full log. just partial. otherwise it was much much longer. The Host is Ubuntu 16.04.

Does the stuck issue happen to every package? I mean if you choose to install openCV only or choose tensorRT only, would you still hit error?

Could you paste the terminal log when stuck issue happens?

Yes, i tried only installing one package but it’s stuck no matter what. some problem arise when Jetpack runs this commands

jetpack_device_info set_info <target_ip_address> <target_username> <target_password>
mkdir -p /home/michael3/.ssh
ssh-keygen -R ********
ssh-keyscan **********>>/home/michael3/.ssh/known_hosts
echo /home/michael3
ssh-add /home/michael3/.ssh/id_rsa 0<&-
scp -F /dev/null -o PubkeyAuthentication=no -o ConnectTimeout=30 -o StrictHostKeyChecking=no /home/michael3/.ssh/id_rsa.pub nvidia@:/home/nvidia/tmp.pub
ssh -F /dev/null -o PubkeyAuthentication=no -o ConnectTimeout=30 nvidia@

Maybe i found the problem. when i run sudo ssh-keyscan (TX2 IP AD)>>/home/michael3/.ssh/known_hosts it says, permission denied. I think this is probably the mistake. he can’t add the IP board to the Know_host for some reason even if i am sudo

I am just wondering what the line bellow is supposed to do

ssh -F /dev/null -o PubkeyAuthentication=no -o ConnectTimeout=30

Is that something that is supposed to do the same as the code below?

ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" user@host

Probably not.
However, it appears to be that the below tag instructs not to use pubkey based authentication, but to use passwords instead:

ssh PubkeyAuthentication=no

It seems sort of contradictory when in one statement you instruct the computer not to use the public key and the same time you do specify the path of the public key. In my opinion if you prohibit use of public keys you do not need to generate them, actually

Reference:
https://inst.eecs.berkeley.edu/~cs61c/sp15/labs/00/github_ssh_key_guide/sshkeys.html

i have no idea. maybe is because the

ssh-keyscan (TX2 IP AD)>>/home/michael3/.ssh/known_hosts

line return an permission error

It appears that you are approaching adding the TX2 ip somewhat fingerprint to the known_hosts file.
Additionally, you may either erase the file or the corresponding existing line within the file first;
Then you may try the below:

sudo su
ssh-keyscan (TX2 IP AD)>>/home/michael3/.ssh/known_hosts

the above wont work, unless you have deleted the occurence of the TX2 ip address in the known_hosts, in case they exist;
You may also just check permissions for the known_hosts file, and adjust it with

chown michael3 /home/michael3/.ssh/known_hosts

Thank you!! That was the problem. I didn’t had the ownership of the folder so the problem was there.