Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caddy not running on RPi B+ #748

Closed
adnidor opened this issue Apr 13, 2016 · 18 comments
Closed

Caddy not running on RPi B+ #748

adnidor opened this issue Apr 13, 2016 · 18 comments

Comments

@adnidor
Copy link

adnidor commented Apr 13, 2016

If you are filing a bug report, please answer these questions. If your issue is not a bug report, you do not need to use this template. Either way, please consider donating if we've helped you. Thanks!

1. What version of Caddy are you running (caddy -version)?

0.8.2 (from the AUR)

2. What are you trying to do?

Start caddy

3. What is your entire Caddyfile?

nonexistent

4. How did you run Caddy (give the full command and describe the execution environment)?

caddy

On a Raspberry Pi B+, running Arch Linux ARM

5. What did you expect to see?

Some messages indicating that the program is running

6. What did you see instead (give full error messages and/or log)?

Illegal instruction

@mark-kubacki
Copy link

The error message is caused by the provided binary issuing instructions not known to your CPU.

Could you please share the outputs of these commands with us here? I assume you are running GNU/Linux:

uname -srpio

lscpu

cat /proc/cpuinfo
# please remove any but the last cpu/processor blocks

… and as you are using Arch Linux:

sed -n '/^Architecture/p' /etc/pacman.conf

@mholt
Copy link
Member

mholt commented Apr 13, 2016

Is your Raspberry Pi ARM v6? You probably downloaded it with a different ARM version. The download link looks like this:

https://caddyserver.com/download/build?os=linux&arch=arm&features=

You need to add the ARM version:

https://caddyserver.com/download/build?os=linux&arch=arm&features=&arm=6

Right now we just build for ARM v7 by default; I could probably have that clarified on the download page.

@cemk
Copy link

cemk commented Apr 13, 2016

Yep, just checked; Raspberry Pi 2 and Pi 3 run the default version, while Pi 1 (A/A+/B/B+) and Pi Zero need the ARM v6 build.

@mholt
Copy link
Member

mholt commented Apr 13, 2016

Cool. That'll do it, and I'll update the download page soon to show the ARM version.

@mholt mholt closed this as completed Apr 13, 2016
@suiluj
Copy link

suiluj commented May 17, 2016

@mholt could you please add a compiled armV8 version for raspberry pi 3 users? Thank you.

@mholt
Copy link
Member

mholt commented May 17, 2016

The website and build server will be updated for the 0.9 release which is probably when I'll get around to doing that. In the meantime you can add &arm=8 in the download link to get ARMv8.

@suiluj
Copy link

suiluj commented May 17, 2016

i tried &arm=8 before but i still get the response arm version not supported

@mark-kubacki
Copy link

Does &arm=aarch64 or &arm=arm64 work?

@suiluj
Copy link

suiluj commented May 17, 2016

no not for me. i think these versions are just not precompiled yet

@mholt
Copy link
Member

mholt commented May 17, 2016

Oh, duh, that's what I get for responding to an issue before my brain's awake.

Use arch=arm64, not arm=8

@suiluj
Copy link

suiluj commented May 17, 2016

ah thanks a lot :)

@mark-kubacki
Copy link

Erm, so why does this all of the sudden work since my comment from one hour ago?

@suiluj
Copy link

suiluj commented May 17, 2016

@wmark i had to change the arch parameter to arm64, and leave the arm empty

@mark-kubacki
Copy link

I see, I've had the right value but the wrong key. Thanks!

@gregpalaci
Copy link

I'm not following 100%, what is the exact build/download url that's working for folks for Raspberry pi?

@elcore
Copy link
Collaborator

elcore commented Apr 6, 2017

Hello @gregbenner,

this should work: https://caddyserver.com/download/build?os=linux&arch=arm&features=&arm=6

@mholt
Copy link
Member

mholt commented Apr 6, 2017

Older Raspberry Pis have ARMv6, newer ones have ARMv7, be aware of which yours is.

@gregpalaci
Copy link

Thanks @elcore works for me on a new Raspberry Pi Zero W / Raspian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants