canonical / action-build

A Github action for building Snapcraft projects
MIT License
42 stars 22 forks source link

Test the latest beta ubuntu #74

Closed bwrsandman closed 2 months ago

bwrsandman commented 4 months ago

I suspect that Ubuntu 24.04 has issues based on a project I've been trying to get on 24.04. The operation times out at /use/bin/sg while waiting for a password.


Installing Snapcraft plus dependencies
  Ensuring runner is in the lxd group...
  /usr/bin/sudo groupadd --force --system lxd
  /usr/bin/sudo usermod --append --groups lxd runner
  Installing LXD...
  /usr/bin/sudo snap install lxd
  2024-05-24T02:38:28Z INFO Waiting for automatic snapd restart...
  lxd (5.21/stable) 5.21.1-d46c406 from Canonical** installed
  Initialising LXD...
  /usr/bin/sudo lxd init --auto
  Installed docker related packages might interfere with LXD networking: 
  /usr/bin/sudo iptables -P FORWARD ACCEPT
  Installing Snapcraft...
  /usr/bin/sudo snap install --channel stable --classic snapcraft
  snapcraft 8.2.8 from Canonical** installed
/usr/bin/sg lxd -c snapcraft
Password: 
Error: The operation was canceled. // Timeout
arif-ali commented 3 months ago

Hi folks, we just run into this issue in one our projects where we use this, and washoping it would work. Could we not add the following after the groupadd is done, so that the password is unset?

sudo gpasswd -r lxd
jhenstridge commented 2 months ago

Thanks for the report. I've created #76 to fix the problems building on the ubuntu-24.04 image. The runner-image bug report you linked was helpful in resolving the problem.