-
Notifications
You must be signed in to change notification settings - Fork 369
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
Making OctoPi build on Ubuntu 64bit so we have 64bit builds #711
Comments
So what's broken / known problems at this point? Only the haproxy? Just about to give it a whirl... |
I haven't tested more. Its about an hour old |
Heh - noted - I won't overwrite my working RC setup then ;) EDIT: Good sign - even though its on a very slow USB stick for testing:
|
Ok, good news is that it seems to work well enough that I'm going to back up my RC1 config and load it into this on my faster USB stick.... It boots fine, resizes ok, starts octoprint ok, haproxy starts with my modified config as per the quoted post, connects to the printer ok.... EDIT: Also, |
Extra packages that can be removed:
There may be more - but that's a quick overview... |
I will download this and test as well - I have been running RC1 64bit since you released it (and nightly before) the speed of the system and the interface IS significantly better (faster?); I do understand the comments about support/etc that was indicated in the previous thread. I only want to say, in 2021; sticking to 32bit only is short-sighted (PI Foundation, for instance). testing here I go! :P |
based on my limited testing, I am unable to get my webcam working with mpegstreamer. I will spend more time on it... just adding to the discussion. |
I have downloded the 64bit version and could start it on my raspberry Pi4 8GB. |
@XboxOldie see: #712 ... there is also the ubuntu/ubuntu user on the current images. that user is allowed to sudo. |
Next nightly should have the pi user able to run sudo. I hope so at least, testing appreciated! |
@guysoft I could do then the password change , the sudo apt update and upgrade like always under the user pi. However after all the system updates I was not able to open the octoprint webinterface on any browser like Opera or Edge. Hope you can still solve the issue that I can continue testing. Hope that helps. PS: So far I have the RC1 with the 64bit running and all is working well on my Pi 4B 8GB |
@XboxOldie See the first post. HAproxy needs to be fixed because it is not working on ubuntu, I don't know why: |
Seems like HAproxy on Raspbian/Rpios is |
If you swap out the original two backend blocks and replace them with the two blocks I posted on the original ticket we discussed this, it works fine. |
@guysoft Please keep me informed when HAproxy is solved into a new nightly distribution to continue testing. |
Ok, just to recap its comment #692 (comment):
I am swamped and hope to test that soon. If anyone wants to test it here it would help me. I can also just push it to the nightly for now. |
I can verify that those codeblock changes allowed full access to the UI. I was unable to get my webcam working at all - so I cannot verify the webcam codeblock is 100%. |
@DrDrache or @CRCinAU , Every day I set up a new system with the latest nightly build, but until now no nightly build was able to start the octoprint UI on the browser. |
@XboxOldie If you need something stable without issues, don't use the nightly. I wouldn't expect every build to 'just work', especially considering it has just switched to Ubuntu rather than Raspberry Pi OS. There is a reason they are called 'nightly'. Good feedback is 'It won't start OctoPrint and I got errors XYZ', or 'ABC will not load, it says D' - that will help them solve the issue quicker. |
@XboxOldie Yes I can make the changes, however I am swamped this week. So unless someone else PRs (which they are certainly welcome). You will have to wait. |
I've just installed the latest nightly build and got to do that to make octoprint start:
I will test a few things in the coming days. I'm a webcam user with Octolapse plugin. I'll tell you if everything works fine. |
May I suggest to add this to /etc/sysctl.conf Swapping should be used as a very last resort. |
Ok - I'm starting not to be sold on the Ubuntu idea.... Mainly because as a desktop OS, there's a LOT that needs to be stripped out to get it anywhere near the Rasbian base.... Lots.... So, what other options are there? What is the official problem with the 64bit official distro? Are they just slow in updating? I mean, I see they have these 'lite' images for it: https://downloads.raspberrypi.org/raspios_lite_arm64/images/ Last updated 2020-08-24... As an example of the difference: |
The current blocker to get Ubuntu ready is that I am swamped and have no time to fix and test the HAproxy settings to version 2. |
I think there's a difference between "not to be used" and "are not considered stable". Given the massive amount of work to get Ubuntu anywhere close to the current (even beta) pios distro, and the lack of time available, getting the fine tuning required in Ubuntu -> OctoPi seems like an even further away stretch goal. EDIT: I'd think it would be much better long term to keep the 64 bit builds as nightlies and ONLY provide official support for the 32 bit version until the pios is considered stable. Keep it as a beta, and fix things as they come up... |
@CRCinAU 64 bit builds are planned for next release, not the current RC. They are nightly builds, aka they are not tested, I don't know what happens when you run them. The nightly builds tend to become more stable as we near a new release. I am now planning to release 0.18.0 RC2 Monday, so I am not touching the Ubuntu builds just yet. |
Changes I made to get the Ubuntu 64 bit version working:
I will work to figure out how to get a pr together for this. |
Did exactly the same, can confirm interface works, so does camera - going to try further. i would love to help with the PR, but i even dont know where in the repo i would need to edit / change these files. Maybe i find out :) |
Thank you guys for figuring out how to make the PR (I got stuck trying to build the OS and worked on other projects for the past couple of weeks). |
Was wondering if anyone found the time to test this in the end? |
I'll try it out now. |
UI and Webcam (mjpg) are up. |
I did - but ended up going back to the Raspbian based images for 64 bit - they were just faster.... So I installed the last 64 bit raspbian image and then just updated it to the latest of everything... |
I did too, worked fine so far - I don’t know, after some fails with the x64
RC the Ubuntu build feels so much more stable. But totally subjective. But
did not have any downtime ever since! :) UI very responsive and Prints
absolutely flawless.
Steven Haigh <notifications@github.com> schrieb am So. 21. Feb. 2021 um
22:42:
… I did - but ended up going back to the Raspbian based images for 64 bit -
they were just faster....
So I installed the last 64 bit raspbian image and then just updated it to
the latest of everything...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#711 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABAHG77WVKI73YVJ2CKDX3TAF44LANCNFSM4V5OBEMA>
.
|
The only issues I am having with the current ubuntu 64 bit build are trying to get WS281x LED setup since ubuntu doesn't have the gpio permissions baked in. |
@Willmac16 interesting, if you could let me know when you do get it sorted I might be able to adjust some things to make it easier, or at least document it. And if you have more questions you know where I am... I've not tried my plugin on Ubuntu yet, next release does make it more platform-agnostic hopefully. |
Maybe you can try this: https://askubuntu.com/a/1313156
If this works for you, we might add it to the Ubuntu-Variant :D
Am Mo., 22. Feb. 2021 um 09:27 Uhr schrieb Charlie Powell <
notifications@github.com>:
… @Willmac16 <https://github.com/Willmac16> interesting, if you could let
me know when you do get it sorted I might be able to adjust some things to
make it easier, or at least document it. And if you have more questions you
know where I am...
I've not tried my plugin on Ubuntu yet, next release does make it more
platform-agnostic hopefully.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#711 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABAHG6AMHE2AMDVI5UDOILTAIIPJANCNFSM4V5OBEMA>
.
|
Pushed to nightly, we can test |
@guysoft |
i can't tell how great it feels to read that - i can rarely contribute. This feels great to be a part of a nice community getting projects like this forward :D Thank you for testing and the feedback @XboxOldie :D |
Tested here too. Boots, works well and the raspberry pi camera I have also works. The desktop script does not work because there is no package |
I'm currently testing/using the latest nightly build
I've some logs available as a gist here: https://gist.github.com/ping-localhost/aad12f9619b13deaf5e2d6810407a0f5 |
@ping-localhost That error seem seems to be from the plugin manager console or something like it might be unrelated. Need to find the actual log of the install to figure out what is going on. |
@guysoft I think you are right, because when I install the plugin directly through SSH, on the However, I get a massive error when I run the following (which is what OctoPrint runs, but without the no cache dir):
Error it outputs: https://gist.github.com/ping-localhost/aad12f9619b13deaf5e2d6810407a0f5#file-terminal-log EDIT: I was successful in installing PSU Control after I copied Not the way to actually resolve this issue, but at least I can use PSU control again, which does make me happy 😅 |
@foosel looks like a plugin manager bug? |
@guysoft Negative, the plugin manager isn't involved anymore at this point, that's a failing |
Here are my version, in case it helps (they are the same):
|
As far as I can tell, this seems to be a silly error wherein the command-line output is being converted from Unicode to return _ANSI_REGEX.sub(b"", line.encode("latin1")).decode("latin1") to this: return _ANSI_REGEX.sub(b"", line.encode("latin1", "namereplace")).decode("latin1", "namereplace") and restarting octoprint. You could also use |
This is part of the nightly build and is planned to be released when we release. So new bugs should go in a separate issue. Closing. |
Build will check which one is installed and only enable the correct one. See also guysoft#711
Ok, so following what was going on in #692 . We are thinking about using Ubuntu to make 64bit builds. And also testing to see how using a distro with predictable release cycles works with OctoPi (we might actually like this long-term).
Current status:
http://unofficialpi.org/Distros/OctoPi/nightly-arm64/2021-01-11_octopi-20.10-preinstalled-server-arm64+raspi-0.18.0.zip
md5:
b0296e50919cc16d1d84bfb0e15e0b2c
It seems to load but
Possible fix by @CRCinAU at: #692 (comment)
The text was updated successfully, but these errors were encountered: