Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenResty Installation Failure: pkg_add Error on Line 154 #186

Open
elp3dr0 opened this issue Oct 21, 2024 · 1 comment
Open

OpenResty Installation Failure: pkg_add Error on Line 154 #186

elp3dr0 opened this issue Oct 21, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@elp3dr0
Copy link

elp3dr0 commented Oct 21, 2024

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.

@elp3dr0 elp3dr0 added the bug Something isn't working label Oct 21, 2024
@elp3dr0
Copy link
Author

elp3dr0 commented Oct 21, 2024

This error does not occur when running the script to update NPM on ubuntu 22.04 (using the same configuration but before applying the distro upgrade)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants