Skip to content

OpenResty Installation Failure: pkg_add Error on Line 154 #186

@elp3dr0

Description

@elp3dr0

Script
nginx-proxy-manager

Describe the bug
While trying to run the install.sh script to update NPM from 2.10.4, the installation process fails with the following error:

[ERROR] on line 154 with exit code 100 while executing command pkg_add

System info:

  • Proxmox Version: 8.2.7
  • Ubuntu 24.04

Additional context
I had just upgraded my distro from ubuntu 22.04 to 24.04. NPM was still up after that upgrade. So then I ran the script to update NPM, which is when I encountered the error.

I've conducted some preliminary investigations using dpkg --configure -a and journalctl to gather more information. Here are the relevant outputs:

dpkg --configure -a output:

...
dpkg: error processing package openresty (--configure):
 installed openresty package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Errors were encountered while processing:
 openresty

journalctl -xeu openresty.service output:
...
Oct 21 15:44:29 proxy nginx[2063]: nginx: [emerg] open() "/usr/local/openresty/nginx/conf/nginx.conf" failed (2: No such file or directory)
Oct 21 15:44:29 proxy nginx[2063]: nginx: configuration file /usr/local/openresty/nginx/conf/nginx.conf test failed
...
It seems that the OpenResty service is failing to start due to a missing configuration file.

ls of /usr/local/openresty/nginx/conf shows a symbolic link:
lrwxrwxrwx 1 root root 21 Jan 6 2024 nginx.conf -> /etc/nginx/nginx.conf

But there is no such directory /etc/nginx, so no conf file either.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions