Openresty not Installed - Error on line `153` with exit code `2` while executing `pkg_update`
Script nginx-proxy-manager
Describe the bug Failure to install Openresty
System info:
- Proxmox Version: 8.2.2
- Alpine Version: 3.20
Output
✔ Operating System Updated
✔ Dependencies Installed
✔ Rust v1.74.0 Installed
✔ Python v3.12 and Pip v24.3.1 Installed
✘ Openresty not Installed
[ERROR] on line 153 with exit code 2 while executing command pkg_update
npm:~# apk update
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
fetch http://openresty.org/package/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
WARNING: updating and opening http://openresty.org/package/alpine/v3.20/main: No such file or directory
v3.20.3-268-g9d0bdcad275 [https://dl-cdn.alpinelinux.org/alpine/v3.20/main]
v3.20.3-267-g491e9630a39 [https://dl-cdn.alpinelinux.org/alpine/v3.20/community]
2 unavailable, 0 stale; 24165 distinct packages available
npm:~# sed -i '/openresty/d' /etc/apk/repositories
npm:~# echo "https://openresty.org/package/alpine/v3.18/main" >> /etc/apk/repositories
npm:~# apk update
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
fetch https://openresty.org/package/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
v3.20.3-268-g9d0bdcad275 [https://dl-cdn.alpinelinux.org/alpine/v3.20/main]
v3.20.3-267-g491e9630a39 [https://dl-cdn.alpinelinux.org/alpine/v3.20/community]
OK: 24261 distinct packages available
Following this guide seems to have fixed the issue https://medium.com/@rar1871/proxmox-nginx-proxy-manager-83f663e20702
Add the same issue. This is due to the fact that openresty doesn't have support for latest alpine (3.20 at time of writing). Forced to 3.18 worked.
bash -c "$(wget --no-cache -qO- https://raw.githubusercontent.com/ej52/proxmox/main/create.sh)" -s --app nginx-proxy-manager --cleanup --os-version 3.18
According to https://pkgs.alpinelinux.org/packages?name=openresty&branch=v3.19&repo=&arch=&origin=&flagged=&maintainer=, starting from version 3.19, it is no longer necessary to add an extra repository.
This guide does not work on alpine 3.21 (latest at time of writing).
I made a fork and touched up few things to make it work on 3.21:
sh -c "$(wget --no-cache -qO- https://raw.githubusercontent.com/b-r-y/proxmox-scripts/main/install.sh)" -s --app nginx-proxy-manager
only works on alpine 3.21 (may be 3.19-3.20) and only when directly called in an already created LXC (at least i did not test the LXC creation).
_ __ _ ____ __ ___
/ | / /___ _(_)___ _ __ / __ \_________ __ ____ __ / |/ /___ _____ ____ _____ ____ _____
/ |/ / __ / / __ \| |/_/ / /_/ / ___/ __ \| |/_/ / / / / /|_/ / __ / __ \/ __ / __ / _ \/ ___/
/ /| / /_/ / / / / /> < / ____/ / / /_/ /> </ /_/ / / / / / /_/ / / / / /_/ / /_/ / __/ /
/_/ |_/\__, /_/_/ /_/_/|_| /_/ /_/ \____/_/|_|\__, / /_/ /_/\__,_/_/ /_/\__,_/\__, /\___/_/
/____/ /____/ /____/
✔ Using LXC template: alpine-3.21-default_20241217_amd64.tar.xz
✔ LXC container 103 created successfully
✔ Operating System Updated
✔ Dependencies Installed
✔ Rust v1.74.0 Installed
✔ Python v3.12 and Pip v25.0.1 Installed
✘ Openresty not Installed
[ERROR] on line 153 with exit code 2 while executing command pkg_update
root@proxmox:~#
On alpine 3.21 still not working ;(
the Version from b-y-r is running here on Apline Linux 3.22, thx
i think its better to update the Script to the community-repository of apline-linux like the answer from gruenerstein
For the Script you have to activate the community-repository of apline-linux under /etc/apk/repositorys then is working fine:
` _ __ _ ____ __ ___ / | / /___ ()___ _ __ / __ _________ __ ____ __ / |/ /___ _____ ____ _____ ____ _____ / |/ / __ / / __ | |// / // / / __ | |// / / / / /|/ / __ / __ / __ / __ / _ / / / /| / // / / / / /> < / / / / // /> </ // / / / / / // / / / / // / // / __/ / // |/_, /// ///|| // // _//||_, / // //_,// //_,/_, /___// // // /____/
✔ Operating System Updated ✔ Dependencies Installed ✔ Rust v1.74.0 Installed ✔ Python v3.12 and Pip v25.2 Installed ✔ Openresty v1.27.1.2 Installed ✔ Node.js v16.20.2 Installed ✔ Yarn v1.22.19 Installed ✔ Nginx Proxy Manager v2.12.6 Downloaded ✔ Enviroment Setup ✔ Frontend Built ✔ Backend Initialized ✔ Services Started ✔ Installation complete
Nginx Proxy Manager should be reachable at `