FullPageOS icon indicating copy to clipboard operation
FullPageOS copied to clipboard

Build keeps failing - seeking advise

Open ItsJustPW opened this issue 2 years ago • 12 comments

What were you doing?

I am trying to create a custom build. However, before I tried to build a custom image, I wanted to see if I could simply rebuild the default. I created a new machine, installed the required packages (I've tried on Ubuntu and Raspbian) with same result. I'm unsure if I'm doing something wrong, or if there's a bug.

I copied these steps exactly on a fresh install.

If anyone could advise, as I'm 99% sure I'm just being stupid... that would be great.

What did you expect to happen?

I expected it to output an image which I would be able to use to install onto SD card as normal.

What happened instead?

Error when building. No information about what went wrong.

Was there an error message displayed? What did it say?

BUILD FAILED!

Version of FullPageOS?

Latest, based on provided instructions.

Screenshot(s) showing the problem:

Screenshot 2022-09-09 at 14 26 29

If you are building FullPageOS - provide a build.log that is created for the build

Log file: build.log

ItsJustPW avatar Sep 09 '22 13:09 ItsJustPW

Hey, You are not stupid, there is actually something that needs to be changed :)

The error in the log that fails the build is this:

'/tmp/unpack/.' -> '/patches'
'/tmp/unpack/./fix-163-autologin-console.patch' -> '/patches/fix-163-autologin-console.patch'
+ rm -r /tmp/unpack
+ pushd /usr/bin
/usr/bin /
+ patch -p1
patching file cancel-rename
Hunk #1 FAILED at 25.
1 out of 1 hunk FAILED -- saving rejects to file cancel-rename.rej

Its a little further up from the screenshot.

The reason its happening is that its new code that was added to handle the userless login in bullseye.

A new image came out two days ago and apparently broke that.

Related: https://github.com/guysoft/CustomPiOS/issues/163

Looks like a change was committed here 8 days ago: https://github.com/RPi-Distro/userconf-pi/commit/c2892a50021fdf3a0ac4d97e08f03330ee5db333

guysoft avatar Sep 09 '22 14:09 guysoft

Thank you Guy.

Any chance you could give me an idea of a possible solution? Sorry, I'm really new to this so I'm not understanding what to do if there is a fix currently.

Paul

ItsJustPW avatar Sep 09 '22 14:09 ItsJustPW

You could disable the userless image handeling by setting in the config file export BASE_ADD_USER=no

That would disable the patching, but I am not sure if something else will not work since this image is new and I didn't see what was changed in it

guysoft avatar Sep 09 '22 15:09 guysoft

Thank you Guy,

Do you have a way which I can buy you a coffee as a thank you for your help?

Paul

On 9 Sep 2022, at 16:44, Guy Sheffer @.***> wrote:

You could disable the userless image handeling by setting in the config file https://github.com/guysoft/FullPageOS/blob/devel/src/config export BASE_ADD_USER=no

That would disable the patching, but I am not sure if something else will not work since this image is new and I didn't see what was changed in it

— Reply to this email directly, view it on GitHub https://github.com/guysoft/FullPageOS/issues/440#issuecomment-1242142055, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJT7UWOZHRDEIMRKTNGSIVDV5NLPBANCNFSM6AAAAAAQIWFQYA. You are receiving this because you authored the thread.

ItsJustPW avatar Sep 09 '22 15:09 ItsJustPW

Indeed, there is a donation button here: https://github.com/guysoft/FullPageOS#donate

I am running a build to figure out how to fix it so I hope help is on the way.

guysoft avatar Sep 09 '22 16:09 guysoft

Thank you. I wish I could afford to contribute more but energy prices are killing me at the minute.

To update you, it built fine (not sure where yet lol but it did) so I’m a major step ahead from where I was.

In case youre interested. I volunteer for RNLI and I wanted something to display a web app when we get an emergency shout. The modification I’m making is I’m going to (try) and make it log into a web page with a special account so it can display who is responding in order to better allocate crew to the particular callout/shout.

Your work does 99% of what I wanted to do… the other part (logging in etc) I think is just a but of online research and editing.

Thanks again for the incredible work you put into doing this.

Paul

On 9 Sep 2022, at 17:25, Guy Sheffer @.***> wrote:

Indeed, there is a donation button here: https://github.com/guysoft/FullPageOS#donate https://github.com/guysoft/FullPageOS#donate — Reply to this email directly, view it on GitHub https://github.com/guysoft/FullPageOS/issues/440#issuecomment-1242191395, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJT7UWKVPHLULZUOLLIM75LV5NQI7ANCNFSM6AAAAAAQIWFQYA. You are receiving this because you authored the thread.

ItsJustPW avatar Oct 11 '22 08:10 ItsJustPW

Hi Guy,

Thank you so much for getting back to me. Is there anything I can do in the meantime do you know?

Paul

On 9 Sep 2022, at 15:17, Guy Sheffer @.***> wrote:

Hey, You are not stupid, there is actually something that needs to be changed :)

The error in the log that fails the build is this:

'/tmp/unpack/.' -> '/patches' '/tmp/unpack/./fix-163-autologin-console.patch' -> '/patches/fix-163-autologin-console.patch'

  • rm -r /tmp/unpack
  • pushd /usr/bin /usr/bin /
  • patch -p1 patching file cancel-rename Hunk #1 FAILED at 25. 1 out of 1 hunk FAILED -- saving rejects to file cancel-rename.rej Its a little further up from the screenshot.

The reason its happening is that its new code that was added to handle the userless login in bullseye.

A new image came out two days ago and apparently broke that.

Related: guysoft/CustomPiOS#163 https://github.com/guysoft/CustomPiOS/issues/163 — Reply to this email directly, view it on GitHub https://github.com/guysoft/FullPageOS/issues/440#issuecomment-1242031396, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJT7UWMHEXLKWIE4BYP67NLV5NBG7ANCNFSM6AAAAAAQIWFQYA. You are receiving this because you authored the thread.

ItsJustPW avatar Oct 11 '22 09:10 ItsJustPW

Hey, I am not following - where are you stuck and what do you need at the currently? Last message I saw you said it builds.

guysoft avatar Oct 17 '22 23:10 guysoft

I was running in the same issue and after checking the build.log I noticed an error that building for arm is not supported on am64.

I ended up doing the following:

  1. Installing Raspberry Pi OS (latest version) on a Raspberry Pi 4 (2GB)
  2. Following most steps from the tutorial
  3. I downloaded the latest raspberry os (64bit):
# in the folder: FullPageOS/src/image
wget https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-07-04/2024-07-04-raspios-bookworm-arm64-lite.img.xz
  1. Installed jq apt-get install jq (because build failed)
  2. Added BASE_ARCH config to build for arm64 in config file:
nano FullPageOS/src/config
...
export USAGE_STATISTICS_URL=https://fullpageos-tracking.gnethomelinux.com

## build 64bit
export BASE_ARCH=arm64
  1. Running sudo bash -x ./build_dist

Building on my pi took about 10 minutes and I got an operating system working as expected on my Raspberry Pi 4. It took me again about 5 minutes to find the final build file :-) It is in the workspace folder (FullPageOS/src/workspace)

I have not tried using the 32bit Raspberry Pi OS image on my Pi and building also a 32bit image

zicheee avatar Aug 29 '24 15:08 zicheee

Building on arm 32bit should work. If you can provide the output from build.log it would help to debug the issue. Happy though that you got something built

Should I close this issue since OP @ItsJustPW had a different issue. Alternatively I think I would move this to a discussion.

guysoft avatar Aug 30 '24 21:08 guysoft

Hi @guysoft I just ran into the issue, that building a 32bit image on my debian machine (VM on a Synology) was failing. After checking the tickets here, I found this issue and assumed that @ItsJustPW ran into the same issue. That's why I shared my solution which is working good so far. In the meantime I tried building "normally" on a fresh raspberry pi using the official 32bit Raspberry Pi OS and it was working without modifying the config file and chaning the BASE_ARCH.

But in both cases: When using the Raspberry Pi OS lite, jq must be installed manually as this software is not part of the image.

I cannot give you the output of my build.log, as I already deleted the VM. But the error was very clear and mentioned the architecture. That's why now I am using a pi to build the OS for my PI. My home assistent touch panel is now working like charm with the os.

zicheee avatar Sep 09 '24 13:09 zicheee

Hey @zicheee , can you provide a build.log ?

Also jq is needed to be installed because its part of CustomPiOS dependencies: https://github.com/guysoft/CustomPiOS?tab=readme-ov-file#requirements

guysoft avatar Sep 09 '24 13:09 guysoft