Changes to ubuntu-22.04 package from 20.04?

14 views
Skip to first unread message

Jonathan Vanasco

unread,
Dec 9, 2022, 3:23:22 PM12/9/22
to openresty-en
I'm having trouble GitHub Actions for our CI workflow of an OpenResty plugin.

This previously worked fine on `ubuntu-20.04`, the issue is in the new `ubuntu-22.04` environment, which is the new default for `ubuntu-latest`.

I am using the instructions from openresty.org to install the .deb package, and it installs fine.

I am running into runtime problems, because OpenResty/Nginx cannot read a .htpasswd file that is used in a test.  The tests run fine on ubuntu20.04 and the file can be read.  I can't seem to figure out the correct user/permissions for the 22.04 environment.

Does anyone have insight that may help?

Jonathan Vanasco

unread,
Dec 9, 2022, 5:42:49 PM12/9/22
to openresty-en
After fighting with GitHub Actions for several hours, and not being able to coordinate the permissions between the 20.04 and 22.04 platforms, I found a quick workaround.

I configured the openresty/nginx .conf to `user runner;` so root drops privileges to "runner" (and not the default `nobody`), then chowned all the files to `runner`.

OpenResty was running as the default "nobody" on 22.04 and 20.04; and I could chown files to that user on setup, but something kept reverting or not actually sticking.
Reply all
Reply to author
Forward
0 new messages