canonical / github-runner-operator

github-runner-operator - charm repository.
Apache License 2.0
9 stars 19 forks source link

cgroups issue #56

Open beliaev-maksim opened 1 year ago

beliaev-maksim commented 1 year ago

Bug Description

Cannot use services from snap since there is some issue with cgroups

To Reproduce

create GH runner instance and run following code

sudo snap install firefox
mkdir ~/bin
ln -s /snap/bin/firefox.geckodriver ~/bin/geckodriver
~/bin/geckodriver --version

Environment

-

Relevant log output

-

Additional context

I have workarounded the issue by


export XDG_RUNTIME_DIR="/run/user/$(id -u)"
export DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus"
echo "$(id -u)"
loginctl enable-linger $USER
sudo apt-get install dbus-user-session -yqq
systemctl --user start dbus.service

need to solidify the solution on LXD machines from the charm side

cbartz commented 1 week ago

There are no issues using openstack cloud mode with rev 290: https://github.com/canonical/cbartz-runner-testing/actions/runs/11773520890/job/32790565230

cbartz commented 1 week ago

There are still issues using runners on LXD cloud (rev 282): https://github.com/cbartz/gh-runner-test/actions/runs/11774021950/job/32791875659#step:3:10

/system.slice/lxd-agent.service is not a snap cgroup
Error: Process completed with exit code 1.
cbartz commented 1 week ago

Created Jira ticket: https://warthogs.atlassian.net/browse/ISD-2732