CanastaWiki / Canasta

MediaWiki Docker image for Canasta, an all-in-one MediaWiki stack for easy deployment and management of enterprise-ready MediaWiki on production environments.
https://www.canasta.wiki
MIT License
36 stars 27 forks source link

Syntax Error, Canasta on Raspberry Pi 4B (Cortex-A72 (ARM v8)) #393

Closed ImMarkP closed 2 months ago

ImMarkP commented 2 months ago

Describe the bug

Summary: Running sudo canasta with any or no arguments results in the message/usr/local/bin/canasta: 6: Syntax error: ")" unexpected

Description: Installed several times on two different Pi 4B boards (2GB and 4GB). Docker's "hello-world" reports that Docker is working. Canasta installation following https://canasta.wiki/setup/ seems to work fine with no issues. After installation, /usr/local/bin/canasta is 6418189 bytes and is dated April 19th at 16:52.

Running any combination of sudo canasta <option> gives the error described above. Running canasta without sudo gives the error "cannot execute binary file: Exec format error"

Screenshots: If applicable, add screenshots to help explain your problem.

image

image

image

Steps to reproduce the behavior:

  1. Install Raspberry Pi OS Bookworm, 64-bit (standard)
  2. Follow instructions from https://docs.docker.com/engine/install/debian/#install-using-the-repository to install Docker.
  3. Follow "Recommended: CLI Installation" instructions from https://canasta.wiki/setup/
  4. Run sudo canasta with any (or no) options.

Expected behavior

Expected to be able to create a wiki, run sudo canasta help, etc.

System info

Please complete the following information:

jeffw16 commented 2 months ago

I think this is an issue with the Canasta CLI's build pipeline having poor support for AArch64. I (unfortunately) have a Mac with "Apple Silicon" that runs on AArch64 too, so I face a very similar issue as you.

The way to get around this issue is, for now, to build the CLI by yourself. You can do this by:

  1. Installing the Go compiler (also known as the Golang compiler)
  2. Download the Canasta CLI repo and then run this script: https://github.com/CanastaWiki/Canasta-CLI/blob/main/build.sh
ImMarkP commented 2 months ago

That's got it - thank you very much! Looking forward to trying this out!