github failed to build

ERROR: failed to solve: process "/bin/sh -c /tmp/scripts/run_module.sh 'script' '{"type":"script","snippets":["curl -L https://urbit.org/install/linux-x86_64/latest | sudo tar xzk --transform='s/.*/urbit/g' -C /usr/bin && sudo chmod +x /usr/bin/urbit"],"scripts":["initramfs.sh","remove-wp.sh"]}' && ostree container commit" did not complete successfully: exit code: 1 [13:53:14 ERROR] => Failed to build image Error: Process completed with exit code 1. github fails to build even tho it build successfully locally
8 Replies
xyny
xyny5mo ago
that error doesn't tell us much, the actual error is likely a couple lines above this i suggest that you give the link to your failing github action just like the post guidelines say
thaleous
thaleousOP5mo ago
xyny
xyny5mo ago
try removing the sudo
thaleous
thaleousOP5mo ago
i thought it wouldnt matter
xyny
xyny5mo ago
curl says the error is in writing to the output destination, but the curl output goes to tar which writes it to a destination and since tar is run with sudo and there's these weird sudo errors in the build i think it's gotta be that 0sudo: pam_open_session: Permission denied #34 39.19 sudo: policy plugin failed session initialization
thaleous
thaleousOP5mo ago
alright ill remove
xyny
xyny5mo ago
you generally don't need sudo in container builds, because it's already run as the root user
thaleous
thaleousOP5mo ago
ye exactly so i thougght it wouldnt matter eitherr way yk but i guess ill exclude them from now on thanks will see if it works
Want results from more Discord servers?
Add your server