ej52 / proxmox-scripts

MIT License
587 stars 308 forks source link

npm-install fails at line 250: rc-service openresty start #66

Closed myxal closed 11 months ago

myxal commented 2 years ago

Script nginx-proxy-manager

Describe the bug Setup fails at the step where openresty is launched, reporting that config test failed:

[error] Starting services /tmp/npm_install.sh: line 250: rc-service openresty start 14 configuration file /usr/local/openresty/nginx/conf/nginx.conf test failed openresty failed to start

System info:

Additional context

nginx.conf.txt

myxal commented 2 years ago

/data folder migrated from an NPM setup on docker

This was the cause, the installation succeeded when the migrated folder was renamed and the installer was free to recreate the folder structure.

So, as of the current script version, the configurations are not portable between the (upstream) docker variant and this - I think the root cause is that in this setup, nginx configuration resides under /usr/local/openresty/nginx, whereas in the upstream build, it's also moved under /data/.

dhzl84 commented 2 years ago

Did you manage to perform the install/update in the end?

myxal commented 2 years ago

Yes, but only because I performed a clean installation. My configuration in the container was not huge and didn't warrant me manually editing the files to make the "update" path to finish successfully.

I'm not sure how desirable it is for you/this project, but I think being able to import config from the docker container, which I consider "upstream" version of NPM, would be helpful.

dhzl84 commented 2 years ago

Couldn't manage to do a clean install with Alpine, always failed at openresty. Installation into Debian worked for me.