Closed stef204 closed 1 year ago
I suggest trying the following prior the build
echo entrusted:100000:65536 | sudo tee -a /etc/subuid
echo entrusted:100000:65536 | sudo tee -a /etc/subgid
The problem is likely that when users are added to the system, some UIDs are not registered to /etc/subuid
and /etc/subgid
. On some Linux distributions, I believe that the above is done sometimes automatically when adding new users to the systems (some versions of Ubuntu at least and few other distributions, if I recall correctly).
I only ever build the Live CD on Ubuntu 22.04. I've tested builds under other distributions, but that was a while ago and there were probably few local configuration differences. It's possible that I followed the recommended solution myself a while ago and forgot to add it in build scripts.
Thanks for the quick turnaround on this issue. You're correct, I found this and have applied the fix. Rebuilding now, let's see.
Do I need to actually create user AND group entrusted
on my box? (in addition to applying the fix above, I mean.)
Still showing this error when building from entrusted/ci_cd
.
Getting image source signatures
Copying blob 7139ad4c9de2 done
Error: writing blob: adding layer with blob "sha256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx37a9c6bcf9702c6ae68b8c": processing tar file(potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/gshadow): Check /etc/subuid and /etc/subgid if configured locally and run "podman system migrate": lchown /etc/gshadow: invalid argument): exit status 1
+ retVal=125
+ '[' 125 -ne 0 ']'
+ echo 'Failure to build Windows binaries'
Failure to build Windows binaries
+ exit 1
+ retVal=1
+ '[' 1 -ne 0 ']'
+ echo 'Windows build failure'
Windows build failure
+ exit 1
Must be related to podman
and its configuration on my box?
I occasionally had to run "podman system migrate" but that was when testing on Alpine. I suggest running manually podman system migrate
and then restarting the build.
Also, which Linux distribution are you using?
I've built yesterday-today the Live CD and main binaries (Linux, Windows, Mac OS) from GitHub actions successfully -> Ubuntu Linux virtual machines with logic similar to the local build.
Build results from the develop branch (Live CD and other binaries)
Please let me know if running podman system migrate helps.
I answered your more specific question in the other issue https://github.com/rimerosolutions/entrusted/discussions/67
Please let me know if running podman system migrate helps.
I've already run podman system migrate
a few times, no changes.
Let's focus on #67 at the moment since that fails as well and it is more basic. We can come back to this issue here #65 once #67 is resolved perhaps.
Also, which Linux distribution are you using?
Archlinux x86_64
Closing this issue in favor of #79
From
entrusted/ci_cd/live_cd
, running thebuild.sh
script gives this error:Building from
entrusted/ci_cd
gives:This is on branch
main
. Linux x86_64Any ideas how to debug?