8000 Raspberry Pi compatibility · Issue #1053 · wekan/wekan · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Raspberry Pi compatibility #1053

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

Closed
Lewiscowles1986 opened this issue Jun 6, 2017 · 28 comments
Closed

Raspberry Pi compatibility #1053

Lewiscowles1986 opened this issue Jun 6, 2017 · 28 comments

Comments

@Lewiscowles1986
Copy link
Contributor

Last night I attempted to install WeKan on raspberry Pi 3 device, only to be notified half-way through the manual process that meteor doesn't work on non x86 / x64 hardware platforms.

This seemed a very strange limitation for a web-based tool.

For now the change should probably come from Meteor, so no action, from WeKan team AFAIK, but this is probably an issue as node and npm and mongo all work on the Pi.

@Lewiscowles1986
Copy link
Contributor Author
Lewiscowles1986 commented Jun 6, 2017

Would the wiki be open to an entry if I can get meteor running from non-mainline metor repo?

@xet7
Copy link
Member
xet7 commented Jun 6, 2017

@Lewiscowles1986

Yes please add new wiki page if you get Wekan working on ARM platforms.

There is related issue at #521

@davydov-vyacheslav
Copy link

From my point of view ... I also use raspberry pi and installed weaken successfully only 0.10.x version by using following instructions: https://github.com/wekan/wekan-autoinstall

@Lewiscowles1986
Copy link
Contributor Author

@davydov-vyacheslav how did you get around MeteorJS refusing to work with the raspberry pi?

@Lewiscowles1986
Copy link
Contributor Author

Also last link was pretty much useless, now attempting on clean with

https://meteor-universal.tumblr.com/

If I can get it to work I might make a docker image as really it seems a little involved to do anything else, and raspberry pi is one of the ARM devices with really good docker support.

@Lewiscowles1986
Copy link
Contributor Author
Lewiscowles1986 commented Jun 7, 2017

UPDATE

Docker is failing upon setup of meteor... The annoying thing is despite the exit-code is that manually in a shell-script I can continue outside of docker... I really don't want to fake success just to bypass.

Also the reason I'm using multiple RUN commands is to give a bit more control when running docker build

I want to have a generic meteor build from meteor universal (or any ARM compatible meteor), then put wekan on-top of that.

FROM hypriot/rpi-node:4.8
MAINTAINER cd2team

RUN apt-get update -qq && apt-get upgrade -qq && \
    apt-get install -qq build-essential capnproto git
RUN apt-get install -qq --no-install-recommends bsdtar
RUN export tar='bsdtar'

RUN npm -g install --unsafe-perm npm@latest && \
    npm -g install --unsafe-perm node-gyp && \
    npm -g install --unsafe-perm node-pre-gyp && \
    npm -g install --unsafe-perm fibers

RUN mkdir -p /opt && cd /opt && \
    git clone --depth 1 https://github.com/4commerce-technologies-AG/meteor.git$
    cd /opt/meteor -v && \
    sed -i "s/--progress-bar/-sL/g" ./meteor && \
    ./meteor --version

RUN ln -s /opt/meteor/meteor /usr/bin/meteor

I also know it's missing a clean-up for-now

@g4jc
Copy link
g4jc commented Aug 20, 2017

I recently tried to install Wekan through docker on rpi, and experienced the same bug.

[wekan@alarm ~]$ docker-compose up
Starting wekan-db ...
Starting wekan-db ... done
Starting wekan-app ...
Starting wekan-app ... done
Attaching to wekan-db, wekan-app
wekan-db | standard_init_linux.go:187: exec user process caused "exec format error"
wekan-app | standard_init_linux.go:187: exec user process caused "exec format error"
wekan-db exited with code 1
wekan-app exited with code 1

@Lewiscowles1986
Copy link
Contributor Author

I've not touched it because I'm lucky enough to have spare x86 rigs from past PC's to drop the existing docker on.

@Piggeldi2013
Copy link

Hi @g4jc ,
the issue with the docker container is that they are not built for ARM, just for x86 / x64 - thats the reason for the "exec format error".

@xet7
Copy link
Member
xet7 commented Mar 21, 2018

@Piggeldi2013

Yes there is still a lot of work before Wekan is available for ARM Docker or Snap. Some progress info is at:
https://blog.wekan.team/2018/01/wekan-progress-on-x64-and-arm/index.html

Firstly, there would need to be Meteor 1.6.0.1 crosscompiled for ARM64, that could probably make Wekan work on some 64bit Raspberry Pi distro for RasPi 3. Or alternatively Meteor framework would need to be crosscompiled for 32bit ARM that is used in Raspbian.

Also there is question that is there enough RAM to run Wekan on Raspberry Pi. 1 GB is minimum where Wekan can run, but it could start swapping. Odroid-U3 has 2 GB RAM, that would be better.

Sure there is also x86 boards like https://www.udoo.org , there x64 Wekan could probably work directly without modifications.

@Piggeldi2013
Copy link

@xet7

There has been some discussions about building Meteor on ARM (hence without MongoDB, but which should not be a problem any more, as I already compiled it on my machine)

meteor/meteor#442

Maybe I'll give it a try (on some docker container) and check it out.

The discussion is rather old, to be honest - so there might be no more luck, if things changed in the meantime.

Swapping should not be that much problem - it's kind of a POC instead of having it in production anyway. ;)

Best,
Carsten

@xet7
Copy link
Member
xet7 commented Mar 21, 2018

@Piggeldi2013

I do already use the latest Meteor 1.4 beta repo for ARM:
https://github.com/4commerce-technologies-AG/meteor/tree/release-1.4-universal-beta

But problem is, Wekan is already using Meteor 1.6.0.1, and I have not found that for ARM.

@xet7
Copy link
Member
xet7 commented Mar 21, 2018

There are these kind of commits that fix some compile issues:
https://github.com/josteinaj/meteor-udoo
commits are at:
https://github.com/josteinaj/meteor-udoo/commits/udoo
for example:
josteinaj/meteor-udoo@02aa093

Also there is:
https://github.com/belisarius222/meteor-beaglebone-black
https://github.com/skrabban/mongo-nonx86

And for RasPi:
https://github.com/IGx89/meteor
IGx89/meteor@46eedd7

I hope it's mostly about taking those commits and applying to Meteor 1.6.0.1.
There could be some problems with fibers.

@xet7
Copy link
Member
xet7 commented Apr 3, 2018

WOOHOO !!!

This issue 4commerce-technologies-AG/meteor#67 (comment)

has link to Meteor 1.6.0.1 repo for ARM: https://github.com/Gatux/meteor

@xet7
Copy link
Member
xet7 commented May 30, 2018

fibers patches 4commerce-technologies-AG/meteor#42 (comment)

adding different processor to meteor source code Gatux/meteor@877df97

@SeppPenner
Copy link

What's the status of this issue? I would try to run Wekan and MongoDB on the Raspberry Pi, too.

@xet7
Copy link
Member
xet7 commented Jul 2, 2018

@SeppPenner

  • Wekan Snap is not yet available for RasPi etc
  • My RasPi3 power supply does not give enough power, so I need to get a new one
  • I will try to build Wekan using armv6-Qemu, but I have not setup it yet
  • If some contributor would like to try to build Wekan on RasPi3, most of the required information is already on this issue, and I can answer any questions
  • I will try upgrading Wekan Meteor to 1.7, it could help with Wekan requiring less resources, and supporting newer MongoDB.
  • On arm64 I did have problems compiling fibers, so I'll look into it
  • I presume older versions of Meteor and Node do work on RasPi3, some packages may exists on those 4commerce-technologies-AG repos, but I don't think it makes sense to go back to old unsupported insecure version
  • I presume performance of Wekan on RasPi3 is very slow and does not support many users. Most likely you would need to store Wekan files on external USB SSD harddrive to have any useable performance, and to protect from SD card corruption.

@SeppPenner
Copy link

Hi @xet7, thanks for all the information. I was just curious if it is possible to run on a Raspberry. I know that the performance on a Raspberry Pi is not well. However, in my case it would make sense to use it. I plan to have only 4 users. For this setup, the performance should be ok.

I had a lot of issues with the sd card on my Raspberry Pi soon. Maybe I will buy a small home server or NAS to use with the applications.

@Lewiscowles1986
Copy link
Contributor Author

Would some of this not hint at problems relying on the underlying technologies? How difficult would it be to decouple the front-end from the back-end, provide a spec so that others could provide a back-end? (which is where the problem is).

I started playing with this idea over the weekend. It looks like the frontend card moving magic is jQuery UI with some callbacks (is that tested?). Again, the backend wouldn't need to be provided, just the frontend rendered, leave it to anyone wanting to port to raspberry Pi to work out storage and route handling.

@xet7
Copy link
Member
xet7 commented Jul 3, 2018

@Lewiscowles1986

I don't have enough interested contributors for a rewrite. I already have plans for rewrite.

https://github.com/wekan/wekan.hx

https://github.com/wekan/wekan.hx/wiki/FAQ

https://github.com/wekan/wekan.hx/wiki/Roadmap

@Lewiscowles1986
Copy link
Contributor Author

Thanks, so if I were to submit a PR with a backend services definition would that be to wekan.hx or this repo? It isn't actually code, just a record of the server-side endpoints.

I've also done a little work on boards, but they are not as polished looking as your wekan.hx currently interactive (wireframes)

@xet7
Copy link
Member
xet7 commented Jul 3, 2018

@Lewiscowles1986

Yes, submit PR's to wekan.hx repo. You can add new directories etc in your PR. Also add all issues about rewrite to that wekan.hx repo. There is currently only static copy of Wekan, plan is to generate all those static files and changes with conversion script.

@digitalsanity
Copy link
digitalsanity commented Aug 7, 2018

FYI - Meteor 1.7/devel working great working on ubuntu cosmic arm64 (rockpro64) -- built fine, I updated the installer to copy /usr/bin/mongo and /usr/bin/mongod and added aarch64 (and arm64 in nodejs filename) and switched the $DIR from mktemp to a directory I created.

@rriemann
Copy link
rriemann commented May 4, 2019

@digitalsanity , have you managed to run wekan on arm64 ?

@iam-TJ
Copy link
iam-TJ commented May 12, 2019

I'm not familiar with wekan or the underlying Meteor stack but I'm currently investigating deploying on a RasPi Model 3B+ that has Raspbian 9.9 (stretch).

The archive contains packages for mongodb 2.4.14 for armhf architecture.

Is this suitable or is the issue related to versions as well?

@xet7
Copy link
Member
xet7 commented May 12, 2019

@iam-TJ

There is no Wekan packages for RasPi yet. Meteor does not officially support ARM, at above Gatux repo are some changes in newest git commit where permitting building on ARM is allowed. I don't know does it work.

@iam-TJ
Copy link
iam-TJ commented May 12, 2019

@xet7 I'll first get familiar with installing on x86 to understand the dependencies then I'll investigate building all components for armhf. I'll report back if I make progress but it'll be a few weeks I'd guess.

@xet7
Copy link
Member
xet7 commented Jun 30, 2019

@xet7 xet7 closed this as completed Jun 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants
0