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

Snap: Newest releases for ARM architectures - Raspberry Pi #5178

Closed
redcap3000 opened this issue Dec 12, 2016 · 25 comments
Closed

Snap: Newest releases for ARM architectures - Raspberry Pi #5178

redcap3000 opened this issue Dec 12, 2016 · 25 comments
Assignees
Labels
Milestone

Comments

@redcap3000
Copy link

iOS mobile application unable to connect to raspberry pi ubuntu.

Cites:

The server http://myserver.com is running an out of date version. Please ask your server admin to update a new version of Rocket.Chat

@geekgonecrazy
Copy link
Member

@redcap3000 what version do you see when you goto Administration->Info ?

@redcap3000
Copy link
Author

0.39.0

@engelgabriel
Copy link
Member

@redcap3000 can you try the version 0.47.0?

@redcap3000
Copy link
Author

Is it possible? Its the ubuntu snap needs to be updated with the latest versions, and i'm not familiar enough ubuntu snappy to do that.

@geekgonecrazy
Copy link
Member

@redcap3000 we actually need to release a new version of the raspberry pi version. Currently its not automated like we have it for other platforms. We were waiting on a few things to line up before we could automate it. I'll check on the status and see if we can do this.

@redcap3000
Copy link
Author

Thanks much... snappy is neat, but there documentation behind creating /editing them is sparse and almost non-existant for IoT devices. Hopefully Ubuntu see's the value in its creations and starts documenting it then we can all be happy, but I appreciate your help.

@geekgonecrazy
Copy link
Member

@redcap3000 we love IoT devices like the raspberry pi. We're continuing to work on getting these builds.

I'm going to rename this issue so we can track getting automated builds for the raspberry pi and other arm devices. Hopefully it'll also make it easy for us to get you updated when we get it there.

@geekgonecrazy geekgonecrazy changed the title Ubuntu Snappy Snap package needs update - breaks mobile login. Snap: Newest releases for ARM architectures - Raspberry Pi Jan 4, 2017
@geekgonecrazy geekgonecrazy added Feature: Request Requested Feature and removed type: bug labels Jan 4, 2017
@geekgonecrazy geekgonecrazy added this to the Mid-term milestone Apr 12, 2017
@The-Big-V
Copy link

The-Big-V commented Apr 19, 2017

Is there anything further on this? I notice a new amd64 snap was released today (version 0.55.0, 19 April), but armhf still won't update past 0.39

@geekgonecrazy
Copy link
Member

@The-Big-V I'm working on this still. Automating is still a bit off. But working on getting an updated snap manually published for you guys. I'm currently away from my arm server until next week. I'll send an update here as soon as I'm able to do either

@bstone108
Copy link

anything I can do to help with these builds? I'm setting up a rpi to use as an active public chat server for me and a bunch of friends. Don't mind testing a bit. built on ubuntu core.

@geekgonecrazy
Copy link
Member

if you want to give it a try you can download and use the classic snap on ubuntu core using:
sudo snap install classic --edge --devmode

Then type: sudo classic and it'll drop you into a chroot where you can try building. The code for the multi-arch snap is currently at: https://github.com/rocketchat/rocketchat-server-snap

Once I get it all working i'll be merging the changes there here into this repo so builds will be done automatically. I'm available in the #ubuntu-snap channel on our demo server if you wanna talk a bit more.

@bstone108
Copy link

attempting this now. Will see if I can resolve any compile issues and let you know.

@geekgonecrazy
Copy link
Member

Last night I managed to get an updated snap for raspberry pi. Right now its in the edge channel. Use at your own risk. :) Make sure to back up files. sudo snap refresh rocketchat-server --edge

@bstone108
Copy link

well until I get a backup power system setup for the pi, won't be using it production anyway, it doesn't recover at all from power failures. pi boots, rocketchat doesn't work and requires reinstall everytime power is lost. to be expected honestly since the pi does badly with power outages. Going to try and build a snap with all needed python scripts to support the backup system I'm using for safe shutdowns if power is lost. basically meaning until done, at own risk is perfectly fine.

@geekgonecrazy
Copy link
Member

Sounds like an awesome snap. As a snap enthusiast would be very curious to see what you end up with 👍

@bstone108
Copy link

it's nothing fancy. it's this. https://www.amazon.com/gp/product/B06XKLN3L9/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1
it just finished on kickstarter. It has some python scripts to talk to the hat and read battery levels and safely shut down the pi when battery is low. going to see if I can package them as a snap and get everything working. don't know if I can but will be fun to try. this way it's snap install the package and pop on the battery hat. I like that it uses a very common battery size so it's easy to get replacements.

@bstone108
Copy link

fyi, I think I bought the last one, it now shows out of stock :(

@geekgonecrazy
Copy link
Member

Awesome! Sounds like you might need gpio and shutdown interfaces. I hangout in #raspberrypi and #ubuntu-snap have done a bit of snapping and would be glad to lend a hand if you need it.

@bstone108
Copy link

will look you up if I run into trouble.

@bstone108
Copy link

bstone108 commented Apr 29, 2017

well, I got this far... time to find out why.

Preparing to build caddy
Building caddy
go install ./github.com/mholt/caddy/...
# github.com/lucas-clemente/quic-go/h2quic
github.com/lucas-clemente/quic-go/h2quic/client.go:247: res.Uncompressed undefined (type *http.Response has no field or method Uncompressed)
Command '['/bin/sh', '/tmp/tmpnta_0642', 'go', 'install', './github.com/mholt/caddy/...']' returned non-zero exit status 2
-bash: Command: command not found

@geekgonecrazy
Copy link
Member

geekgonecrazy commented Apr 29, 2017

@bstone108 will be pushing some changes shortly. But basically requires a newer version of go. My solution was to just download the compiled copy instead. That way I didn't have to worry about the version of go

A working snap should be present for you on the edge channel if you wanna go that route :)

@bstone108
Copy link

ubuntu repository doesn't have newer version? is their a location you can get source from and compile directly on pi during build time?

@geekgonecrazy
Copy link
Member

@bstone108 check out: #6842 but no caddy is not in the ubuntu repos yet.

@bstone108
Copy link

pulled, testing compile in a clean environment. lets see what breaks. :)

@engelgabriel engelgabriel modified the milestones: 0.56.0, Mid-term May 4, 2017
@geekgonecrazy
Copy link
Member

0.55.1 is now on the stable channel for armhf and will automatically get new versions as we cut them.

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

No branches or pull requests

6 participants