You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Making OctoPi build on Ubuntu 64bit so we have 64bit builds #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).
There is an Ubuntu user and also the Pi user (can be fixed).
Pi user has no sudo
HA proxy does not load. I get:
/usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -S /run/haproxy-master.sock
[NOTICE] 010/111929 (4074) : haproxy version is 2.2.3-2
[NOTICE] 010/111929 (4074) : path to executable is /usr/sbin/haproxy
[ALERT] 010/111929 (4074) : parsing [/etc/haproxy/haproxy.cfg:35] : The 'reqrep' directive is not supported anymore since HAProxy 2.1. Use 'http-request replace-path', 'http-request replace-uri' or 'http-request replace-header' instead.
[ALERT] 010/111929 (4074) : parsing [/etc/haproxy/haproxy.cfg:36] : The 'reqadd' directive is not supported anymore since HAProxy 2.1. Use 'http-request add-header' instead.
[ALERT] 010/111929 (4074) : parsing [/etc/haproxy/haproxy.cfg:37] : The 'reqadd' directive is not supported anymore since HAProxy 2.1. Use 'http-request add-header' instead.
[ALERT] 010/111929 (4074) : parsing [/etc/haproxy/haproxy.cfg:43] : The 'reqrep' directive is not supported anymore since HAProxy 2.1. Use 'http-request replace-path', 'http-request replace-uri' or 'http-request replace-header' instead.
[ALERT] 010/111929 (4074) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg
[ALERT] 010/111929 (4074) : Fatal errors found in configuration.
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, apt update && apt -y dist-upgrade works fine too....
I will download this and test as well - I have been running RC1 64bit since you released it (and nightly before)
not having an aarch64 image (ubuntu or otherwise) for a pi4 host is a bad idea in my personal opinion.
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).
I have downloded the 64bit version and could start it on my raspberry Pi4 8GB.
With Putty I can access the system as user pi.
I was able to change the password but thats it.
After this I can't continue with any configuration because user pi is not allowed for root access.
Is there a Ubuntu admin user which will have this access or how should I be able to test further when I can't further configure my rasbperry to work correctly.
Any feedback would be great helping you to continue with testing.
@guysoft
I have installed the latest nightly build now from 12.01.2021 and the user pi is having now sudo rights.
Thanks for the change
I could do then the password change , the sudo apt update and upgrade like always under the user pi.
All was running with a view messages and ended after a view minutes.
sudo raspi-config does not exist anymore on the RC2 so nothing i can do there.
However after all the system updates I was not able to open the octoprint webinterface on any browser like Opera or Edge.
Not with the IP nor with http;//octopi
Hope you can still solve the issue that I can continue testing.
I added the whole installation procedure I did as a text file for your reference
@guysoft Please keep me informed when HAproxy is solved into a new nightly distribution to continue testing.
I'm not a linux specialist only a normal user trying to inform you when all is working as expected.
@guysoft
Have installed nightly 2021-02-22_octopi-20.10-preinstalled-server-arm64+raspi-1.0.0 on Pi4B 8GB
After copy of system to the SD and adding my WLAN access into the "octopi-wpa-supplicant.txt" the system started immediately and very fast into the WEB interface with the further setup screens.
After the plugin installation of "Creality-2x-temperature-reporting-fix" for my Ender 3 Pro, all is working perfect and fast.
Also camera is recognized and working normal.
I also did sudo update and upgrade +reboot without errors.
So far all works perfect and I will continue print tests with this new nightly version.
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
Mine is running also fine, no stuttering of Octoprint crashing since then - with raspiOS i had regular downtimes and had to ssh into and needed to reboot.
I'm currently testing/using the latest nightly build 2021-02-23_octopi-20.10-preinstalled-server-arm64+raspi-1.0.0.zip on my RPI4 8GB and PSU control (and GPIO Control/anything that uses RPi.GPIO) fails to be installed due to the following error:
2021-02-23 21:52:16,545 - octoprint.plugins.pluginmanager - ERROR - Reason: UnicodeEncodeError('latin-1', ' source/c_gpio.c: In function ‘setup’:\n', 31, 32, 'ordinal not in range(256)')
@ping-localhost That error seem seems to be from the plugin manager console or something like it might be unrelated.
@guysoft I think you are right, because when I install the plugin directly through SSH, on the pi account and in the home dir, using pip install "https://github.com/kantlivelong/OctoPrint-PSUControl/archive/master.zip", everything works as expected.
However, I get a massive error when I run the following (which is what OctoPrint runs, but without the no cache dir):
EDIT: I was successful in installing PSU Control after I copied RPi/ and RPi.GPIO-0.7.0.egg-info from /usr/lib/python3/dist-packages to /home/pi/oprint/lib/python3.8/site-packages/. I did have to tell OctoPrint to install PSU control again, but after that stuff started working.
Not the way to actually resolve this issue, but at least I can use PSU control again, which does make me happy 😅
I'm currently testing/using the latest nightly build 2021-02-23_octopi-20.10-preinstalled-server-arm64+raspi-1.0.0.zip on my RPI4 8GB and PSU control (and GPIO Control/anything that uses RPi.GPIO) fails to be installed due to the following error:
2021-02-23 21:52:16,545 - octoprint.plugins.pluginmanager - ERROR - Reason: UnicodeEncodeError('latin-1', ' source/c_gpio.c: In function ‘setup’:\n', 31, 32, 'ordinal not in range(256)')
As far as I can tell, this seems to be a silly error wherein the command-line output is being converted from Unicode to latin1 to strip out the colour control characters, and the string doesn't work as latin1 because the output contains non-latin1 characters. I hacked around it in my installation by just editing the offending file (/home/pi/oprint/lib/python3.8/site-packages/octoprint/util/commandline.py) to change line 57 from this:
and restarting octoprint. You could also use ignore instead of namereplace probably, but I didn't test that because it doesn't actually matter very much what the command-line output is, as long as it doesn't throw an error.
Activity
CRCinAU commentedon Jan 11, 2021
So what's broken / known problems at this point? Only the haproxy? Just about to give it a whirl...
guysoft commentedon Jan 11, 2021
I haven't tested more. Its about an hour old
CRCinAU commentedon Jan 11, 2021
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:
CRCinAU commentedon Jan 11, 2021
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,
apt update && apt -y dist-upgradeworks fine too....CRCinAU commentedon Jan 11, 2021
Extra packages that can be removed:
There may be more - but that's a quick overview...
DrDrache commentedon Jan 11, 2021
I will download this and test as well - I have been running RC1 64bit since you released it (and nightly before)
not having an aarch64 image (ubuntu or otherwise) for a pi4 host is a bad idea in my personal opinion.
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
DrDrache commentedon Jan 11, 2021
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.
XboxOldie commentedon Jan 11, 2021
I have downloded the 64bit version and could start it on my raspberry Pi4 8GB.
With Putty I can access the system as user pi.
I was able to change the password but thats it.
After this I can't continue with any configuration because user pi is not allowed for root access.
Is there a Ubuntu admin user which will have this access or how should I be able to test further when I can't further configure my rasbperry to work correctly.
Any feedback would be great helping you to continue with testing.
dan-and commentedon Jan 12, 2021
@XboxOldie see: #712 ... there is also the ubuntu/ubuntu user on the current images. that user is allowed to sudo.
guysoft commentedon Jan 12, 2021
Next nightly should have the pi user able to run sudo. I hope so at least, testing appreciated!
XboxOldie commentedon Jan 13, 2021
@guysoft
I have installed the latest nightly build now from 12.01.2021 and the user pi is having now sudo rights.
Thanks for the change
I could do then the password change , the sudo apt update and upgrade like always under the user pi.
All was running with a view messages and ended after a view minutes.
sudo raspi-config does not exist anymore on the RC2 so nothing i can do there.
However after all the system updates I was not able to open the octoprint webinterface on any browser like Opera or Edge.
Not with the IP nor with http;//octopi
Hope you can still solve the issue that I can continue testing.
I added the whole installation procedure I did as a text file for your reference
Install octopi RC2.txt
Hope that helps.
PS: So far I have the RC1 with the 64bit running and all is working well on my Pi 4B 8GB
guysoft commentedon Jan 13, 2021
@XboxOldie See the first post. HAproxy needs to be fixed because it is not working on ubuntu, I don't know why:
#711 (comment)
guysoft commentedon Jan 13, 2021
Seems like HAproxy on Raspbian/Rpios is
1.8.19and on Ubuntu2.2, which means the settings need to be upgraded.CRCinAU commentedon Jan 13, 2021
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.
XboxOldie commentedon Jan 13, 2021
@guysoft Please keep me informed when HAproxy is solved into a new nightly distribution to continue testing.
I'm not a linux specialist only a normal user trying to inform you when all is working as expected.
30 remaining items
XboxOldie commentedon Feb 22, 2021
@guysoft
Have installed nightly 2021-02-22_octopi-20.10-preinstalled-server-arm64+raspi-1.0.0 on Pi4B 8GB
After copy of system to the SD and adding my WLAN access into the "octopi-wpa-supplicant.txt" the system started immediately and very fast into the WEB interface with the further setup screens.
After the plugin installation of "Creality-2x-temperature-reporting-fix" for my Ender 3 Pro, all is working perfect and fast.
Also camera is recognized and working normal.
I also did sudo update and upgrade +reboot without errors.
So far all works perfect and I will continue print tests with this new nightly version.
XRyu commentedon Feb 22, 2021
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
Mine is running also fine, no stuttering of Octoprint crashing since then - with raspiOS i had regular downtimes and had to ssh into and needed to reboot.
Willmac16 commentedon Feb 23, 2021
I made a pr #724 with the minimum set of changes I believe is required to get (the current version of) ws281x to work. @guysoft @cp2004
guysoft commentedon Feb 23, 2021
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
raspberrypi-ui-modsand would need to be changed if we want the desktop on 64bit.ping-localhost commentedon Feb 24, 2021
I'm currently testing/using the latest nightly build
2021-02-23_octopi-20.10-preinstalled-server-arm64+raspi-1.0.0.zipon my RPI4 8GB and PSU control (and GPIO Control/anything that usesRPi.GPIO) fails to be installed due to the following error:I've some logs available as a gist here: https://gist.github.com/ping-localhost/aad12f9619b13deaf5e2d6810407a0f5
guysoft commentedon Mar 1, 2021
@ping-localhost That error seem seems to be from the plugin manager console or something like it might be unrelated.
https://gist.github.com/ping-localhost/aad12f9619b13deaf5e2d6810407a0f5#file-octoprint-log-L21
This line says its using a Unicode Character 'LEFT SINGLE QUOTATION MARK' (U+2018).
I am not sure where its coming from, but its not an OctoPi issue. Should fail anywhere.
Need to find the actual log of the install to figure out what is going on.
ping-localhost commentedon Mar 5, 2021
@guysoft I think you are right, because when I install the plugin directly through SSH, on the
piaccount and in the home dir, usingpip install "https://github.com/kantlivelong/OctoPrint-PSUControl/archive/master.zip", everything works as expected.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
RPi/andRPi.GPIO-0.7.0.egg-infofrom/usr/lib/python3/dist-packagesto/home/pi/oprint/lib/python3.8/site-packages/. I did have to tell OctoPrint to install PSU control again, but after that stuff started working.Not the way to actually resolve this issue, but at least I can use PSU control again, which does make me happy 😅
guysoft commentedon Mar 5, 2021
@foosel looks like a plugin manager bug?
foosel commentedon Mar 5, 2021
@guysoft Negative, the plugin manager isn't involved anymore at this point, that's a failing
pip installduring intake of a dependency.ping-localhost commentedon Mar 5, 2021
Here are my version, in case it helps (they are the same):
werdnum commentedon Apr 3, 2021
As far as I can tell, this seems to be a silly error wherein the command-line output is being converted from Unicode to
latin1to strip out the colour control characters, and the string doesn't work aslatin1because the output contains non-latin1characters. I hacked around it in my installation by just editing the offending file (/home/pi/oprint/lib/python3.8/site-packages/octoprint/util/commandline.py) to change line 57 from this:to this:
and restarting octoprint. You could also use
ignoreinstead ofnamereplaceprobably, but I didn't test that because it doesn't actually matter very much what the command-line output is, as long as it doesn't throw an error.guysoft commentedon Apr 7, 2021
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.
🐛 Add haproxy.cfg for 2.x versions
Add rpi.gpio-common guysoft/OctoPi#711 (comment)