lmb-freiburg / flownet2-docker

Dockerfile and runscripts for FlowNet 2.0 (estimation of optical flow)
https://lmb.informatik.uni-freiburg.de/Publications/2017/IMKDB17/
GNU General Public License v3.0
158 stars 52 forks source link

standard_init_linux.go:211: exec user process caused "exec format error" #15

Closed OgLocGreen closed 4 years ago

OgLocGreen commented 4 years ago

Not possible to do Make

I tried to install via make. I have read that this mistake is often due to the architecture. Im trying to install it on the Nvidia-Jetson-Xavier.

My environment (Nvidia-Jetson-Xavier)

Linux jetson-desktop 4.9.140-tegra (#)1 SMP PREEMPT Mon Dec 9 22:52:02 PST 2019 aarch64 aarch64 aarch64 GNU/Linux

Linux installed via NVIDIA SDK Manager DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"

Full Error Message

sudo make
docker build                    \
       -f Dockerfile            \
       -t flownet2              \
       --build-arg uid=$UID    \
       --build-arg gid=$GROUPS \
       .
Sending build context to Docker daemon  15.36kB
Step 1/18 : FROM nvidia/cuda:8.0-cudnn5-devel-ubuntu16.04
 ---> db7f23a9ae16
Step 2/18 : WORKDIR "/flownet2"
 ---> Using cache
 ---> 6d11a4bf3625
Step 3/18 : COPY FN2_Makefile.config ./
 ---> Using cache
 ---> 416096567bdc
Step 4/18 : COPY FN2_run-flownet-docker.py ./
 ---> Using cache
 ---> e6e2413e4ad8
Step 5/18 : ARG uid
 ---> Using cache
 ---> 03907a57a7c0
Step 6/18 : ARG gid
 ---> Using cache
 ---> f7148ec1f168
Step 7/18 : ENV uid=${uid}
 ---> Using cache
 ---> 245a61872056
Step 8/18 : ENV gid=${gid}
 ---> Using cache
 ---> 07fa35abb8b7
Step 9/18 : ENV USER=flownet
 ---> Using cache
 ---> 69498a94a870
Step 10/18 : ENV GROUP=flownet
 ---> Using cache
 ---> a83c4ce4d014
Step 11/18 : RUN mkdir -p /home/$USER                                               &&     echo "${USER}:x:${uid}:${gid}:${USER},,,:/flownet2:/bin/bash"                  >> /etc/passwd                                                &&     echo "${GROUP}:x:${gid}:${uid}"                                                >> /etc/group
 ---> Running in e664aa8646db
standard_init_linux.go:211: exec user process caused "exec format error"
The command '/bin/sh -c mkdir -p /home/$USER                                               &&     echo "${USER}:x:${uid}:${gid}:${USER},,,:/flownet2:/bin/bash"                  >> /etc/passwd                                                &&     echo "${GROUP}:x:${gid}:${uid}"                                                >> /etc/group' returned a non-zero code: 1
Makefile:8: recipe for target 'flownet2' failed
make: *** [flownet2] Error 1

If you have any information for me to solve this problem, I would be very grateful. Thank you in advance.

nikolausmayer commented 4 years ago

Hi,

the architecture sounds like a possible culprit. Your Jetson is an arm64 device. We have only tested the Dockerfile on x86_64 machines, and unfortunately we have no possibility to test in on other architectures.

I'm afraid I cannot help in this matter, sorry. :slightly_frowning_face:

OgLocGreen commented 4 years ago

Thanks for responding so quickly. I will try a little bit more and get back to you if I have managed it.

OgLocGreen commented 4 years ago

I close this issue as it is not a fault of yours. If I can get it running on the Jetson Xavier, I will contact you again.