guysoft / OctoPi

Scripts to build OctoPi, a Raspberry PI distro for controlling 3D printers over the web
GNU General Public License v3.0
2.47k stars 366 forks source link

[Armbian] cannot execute binary file: Exec format error #431

Closed Lino77 closed 6 years ago

Lino77 commented 6 years ago

Failed to build Armbian OctoPi see build.log build.log can you help me please

guysoft commented 6 years ago

Your log cuts int he middle, please provide a complete log. Last lines are :

+ cp -v -r --preserve=mode,timestamps /filesystem/root/. /
'/filesystem/root/./etc/network/interfaces' -> '/./etc/network/interfaces'
'/filesystem/root/./etc/resolv.conf' -> '/./etc/resolv.conf'
/bin/cp: not writing through dangling symlink '/./etc/resolv.conf'
'/filesystem/root/./etc/wpa_supplicant/wpa_supplicant.conf' -> '/./etc/wpa_supplicant/wpa_supplicant.conf'

Your log cuts mid-copy command

Lino77 commented 6 years ago

this was the log from OctoPi/src/build.log here is a nwe build.log and the console output console.txt

build.log

guysoft commented 6 years ago

The error is

/common.sh: line 106: /bin/cp: cannot execute binary file: Exec format error

Build using the vagrant build method described in the readme, there is something strange with your environment.

Lino77 commented 6 years ago

I use the vagrant method

guysoft commented 6 years ago

Then try - vagrant destroy ; vagrant up I had that once in vagrant and that fixed it. Not sure why.

Lino77 commented 6 years ago
Lino77 commented 6 years ago

now stop here

guysoft commented 6 years ago

Can you paste stderr terminal output? It looks the log is not showing something.

Lino77 commented 6 years ago

console.txt build.log build.log and terminal output

Lino77 commented 6 years ago

wait a moment now the exec error comes again

Lino77 commented 6 years ago

build.log console.txt so please

guysoft commented 6 years ago

Error is now

/bin/cp: not writing through dangling symlink '/./etc/resolv.conf'

So there is a symlink issue. What image are you using? Did you modify Armbian_5.30_Orangepiplus_Ubuntu_xenial_default_3.4.113.img.zip?

Lino77 commented 6 years ago

No original from here https://dl.armbian.com/orangepiplus/

Lino77 commented 6 years ago

Armbian_5.30_Orangepiplus_Debian_jessie_default_3.4.113.img the same error

guysoft commented 6 years ago

Can you cd to the CusomPIOS repo and run git staus? Also make sure you have the latest with

git pull origin CustomPiOS

Because there is no resolv.conf in /src/variants/armbian/filesystem/root/etc. And your terminal clear shows there is one in your system.

Lino77 commented 6 years ago

there is on in Octopi/src/variants/armbian/filesystem/root/etc

guysoft commented 6 years ago

Please git pull the latest version of OctoPi, that was removed months ago in commit https://github.com/guysoft/OctoPi/commit/fc89313d39c8cc8fe5b3a55f110a2da713d7d481: https://github.com/guysoft/OctoPi/tree/devel/src

Lino77 commented 6 years ago

okay sorry i switch now from master to devel branch an now it works sorry