-
Notifications
You must be signed in to change notification settings - Fork 5
Readme comments plus build problems - post build 2.0.3 #2
Comments
Quick update: Decided to also try it running Raspberry PI OS 64 bits, to see if by chance the build would behave differently. Running Appimage: And build failed same way |
I've built Arduino IDE 2.0.4-nightly-20230104 for arm64, no problems. |
Thanks, I tried again today. This time, I did delete the previous forks of the projects, and then forked again, and followed steps. However now when I try to startup the script, it looks like it wants to update the runner and then bails.
Note: My Ubuntu was the same as previous build. I will retry again with clean RPI OS 64 setup and see if that makes a difference Thanks |
Runner update in progress, do not shutdown runner.
Downloading 2.300.2 runner
Waiting for current job finish running.
Generate and execute update script.
Runner will exit shortly for update, should be back online within 10
seconds. Runner update process finished.
This sounds familiar. I put
DISABLE_AUTO_UPDATE=1
in docker-github-actions-runner.sh just to avoid this.
If you modify one of the shell variables in docker-github-actions-runner.sh, remove the docker image to force a rebuild: docker rmi self-hosted-runner
I remember doing a docker system prune just to be certain the run begins from zero.
koen
|
Thanks, I tried again doing using Raspian, Started from a clean setup: Used the Raspberry PI Imager sketch and had it flash the second SSD that I am using. I let it go through all of the updates and then followed the steps (I think). Earlier I had deleted my forks of the two git projects and the recloned them and applied the changes.
I then triggered for a build, and it did not give me the same issue with the trying to update. But it still failed: I am guessing that the first failures are in:
|
verdaccio is a recent addition, I assume. |
Taking a look at your run versus mine: it appears like it is failing in the fetching packages every time:
Where mine fails in the 3/5 section:
RPI4 wise, I think mine might be running on a 4gb memory one. I don't believe I have virtual memory enabled on this one yet. May try that. EDIT:
|
OK. 8gb ram, an external usb disk. This ought to work. Can you access the github url from the raspberry? Disk not full? /tmp has space? |
Not sure what to try next?
|
Quick update to two posts ago...
So It appears like localhost is failing for port 4873? Sorry I am not sure what that all means |
On Sat, 07 Jan 2023 09:55:38 -0800 KurtE ***@***.***> wrote:
Quick update to two posts ago...
```
[3/5] Fetching packages...
uncaught exception, please report
(https://github.com/verdaccio/verdaccio/issues) this: Error: ENOENT:
no such file or directory, unlink
'/_work/arduino-ide/arduino-ide/electron/packager/npm-registry/storage/app-builder-bin/app-builder-bin-4.0.0.tgz.tmp-8661809812005279'
[31merror[39m[37m[34m---[37m unexpected error: [31mTimeout
```
So It appears like localhost is failing for port 4873? Sorry I am not
sure what that all means
google says:
verdaccio runs by default on port 4873.
koen
|
When 2.0.4 is released, I'm going to take careful note of the commands
I enter.
koen
|
Thanks, Some of the failures other people have mentioned about connecting to 4873, some mentioned they were able to fix it by adding a listen: .. to 4873 in a config file. Not sure if the verdaccio config file or their own usage of it. Thanks again |
Hi. |
Thanks, I will try again. Looks like your Arduino was up to date with Arduino It should work the same... (Famous last words) Noticed a few differences in some of commands, which I will try to emulate. I forked my libraries earlier into ~/github and looks like you did ~/src
in particular these two lines:
And you are running the ./dociker with sudo.... Again thanks will let you know how the run goes. Right not reimaging the one SSD |
Thanks again, But for whatever reason, I still appear to fail. I started off with your ide2.txt, file, but edited it to make sure I did not use in the of the koen... names except for the few places One main thing I changed was, you had: <note I added the ### stuff in the file for all lines you did not execute on the RPI I then in a terminal window, did mostly cut and paste operations, to hopefully make sure I did not screw anything up. The run is up at: It again died at:
In particular, I am not sure why you might have the file I don't for the error: ENOENT: no such file or directory, unlink '/_work/arduino-ide/arduino-ide/electron/packager/npm-registry/storage/app-builder-bin/app-builder-bin-4.0.0.tgz.tmp-8152669989067665' Not sure what else to try? Suppose I could try running it on different RPI4, not sure what difference that would make. My only other one is a 2mb version. But for the most part I was only doing this as there was not a 2.0.3 or later build. Thanks again for doing all of this! |
On Mon, 09 Jan 2023 09:18:12 -0800 KurtE ***@***.***> wrote:
Not sure what else to try?
Could it be you have: permissions to some site/page I don't?
Or different versions of git that works differently?
Or setup some additional stuff, like also registered a git authority
stuff where maybe browser will authorize the git session?
No. I'm just a user.
Suppose I could try running it on different RPI4, not sure what
difference that would make. My only other one is a 2mb version.
Not likely to make a difference.
But for the most part I was only doing this as there was not a 2.0.3
or later build.
You can pick up the "almost 2.0.4" at https://github.com/koendv-test/arduino-ide/releases
Thanks again for doing all of this!
Kurt
No problem. But if this build of arduino-ide is not reproducible there is a problem.
OK. I am using the same version of docker.
I assume you've put your github token in ACCESS_TOKEN in docker-github-actions-runner.sh
Before I begin building the ide, I clean up stale docker images.
Removing images may mess up other docker projects of yours.
(This was not needed in this run, because fresh install of os).
$ sudo bash
# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
self-hosted-runner latest 2c3832ebf750 26 hours ago 1.23GB
myoung34/github-runner-base ubuntu-bionic 71dd54d4887b 45 hours ago 919MB
# docker system prune
WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all dangling images
- all dangling build cache
Are you sure you want to continue? [y/N] y
Deleted Containers:
18792f92b0dccb776e1b1e487f949e0ea5515da51d49e9fac13cc1fb2dcb7e47
Total reclaimed space: 4.591GB
# docker rmi 2c
...
# docker rmi 71
...
"docker images" then shows no images.
I don't know. Maybe computers just do what I want?
koen
|
Quick update: I went ahead and tried it on the other RPI4 with 2GB, burned fresh 64gb SD card with Ubuntu 22.10 I noticed in that run it gave some messages:
So I added lines at end of bashrc and sourced it. As you mentioned, you did ot do the docker. rmi stuff as like you I was working from a freshly flashed OS |
Quick update: I re-tried, deleted the arduino-ide github project as well as the other one, reforked and followed the steps to patch. I did the steps you mentioned about cleaning out the docker... Still fails. As the output suggests?
|
On Sun, 15 Jan 2023 11:43:31 -0800 KurtE ***@***.***> wrote:
Quick update: I re-tried, deleted the arduino-ide github project as
well as the other one, reforked and followed the steps to patch.
I did the steps you mentioned about cleaning out the docker... Still
fails. This last run was agon on Ubuntu 22.10. Same error.
Wondering if it would make sense to raise an issue on:
https://github.com/verdaccio/verdaccio/issues ?
As the output suggests?
ok. Good idea. You open the issue?
I am thinking of the following:
Right now the recipe to build arduino-ide contains:
"fork a git, patch, commit, start a workflow."
This could be replaced with a shell script that uses gh github cli.
At least this would be a more exact definition of what to do.
Opinion?
koen
|
Note: there are more details up on the Arduino thread: https://forum.arduino.cc/t/building-arduino-ide-2-0-for-raspberry-pi-ubuntu-64-bit
Readme: appimage file dependencies on Ubuntu 22.04.
The command:
sudo apt-get install libz1g-dev fuse libfuse-dev
Failed as libz1g-dev did not exist:
Fixed (at least in my attempt) by:
sudo apt-get install zlib1g-dev fuse libfuse-dev
I was able to build a build close to the 2.0.3 version. Artificats are up there.
I then wanted to build a current sources. So instead of deleting my Arduino fork and then fork again, I
tried to simply reset my github project to be in sync with the main branch:
I then went through the steps of doing the patch... And started the build, which failed.
Latest failure run is up at:
https://github.com/KurtE/arduino-ide/actions/runs/3814991625/jobs/6489703279#step:7:668
@per1234 (ptillisch in Arduino thread) - mentioned that maybe it might be related to the changes to the Arduino build infrastructure, from the PR:
arduino/arduino-ide#1757
Note: I had some interesting failures on the first run that failed where the RPI4 running on SSD was stuck in some printing out real low level failures about disk writes failing. Will try to track more of that one down to see if related or not.
The text was updated successfully, but these errors were encountered: