-
While Installing the new Proxy App, I'm getting the below error
Error : Nginx Error - Error reloading nginx: reload exited with code 1 signal null
Logs:
Sep 30 21:43:11 box:shell reload spawn: /usr/bin/sudo -S /home/yellowtent/box/src/scripts/restartservice.sh nginx Sep 30 21:43:11 box:shell reload (stdout): nginx: [emerg] invalid URL prefix in /etc/nginx/applications/0dfcd907-afca-4e38-8353-6a8d921357d2.conf:137 Sep 30 21:43:11 box:shell reload code: 1, signal: null Sep 30 21:43:11 box:apptask run: app error for state pending_install: BoxError: Error reloading nginx: reload exited with code 1 signal null at reload (/home/yellowtent/box/src/reverseproxy.js:183:22) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async writeAppNginxConfig (/home/yellowtent/box/src/reverseproxy.js:532:5) at async writeAppConfigs (/home/yellowtent/box/src/reverseproxy.js:545:9) at async Object.configureApp (/home/yellowtent/box/src/reverseproxy.js:576:5) at async install (/home/yellowtent/box/src/apptask.js:424:5) { reason: 'Nginx Error', details: {}
-
After the server reboot, Nginx was not able to restart, So, I deleted the file
0dfcd907-afca-4e38-8353-6a8d921357d2.conf:137
and restarted the Nginx, now working as usual, Are there any docs for the Proxy App?
-
@arshsahzad probably a typo in the .conf file.
If you can reproduce it, post the contents.
-
I was getting the same NGINX Error also. The documentation was posted: https://docs.cloudron.io/apps/#app-proxy. But I see that I didn't specify a port, so that may have caused the issue.
-
I entered something like https://176.94.133.186:8080 as upstream URI, got a cert, DNS and the proxy works. However, the proxyapp is stuck in "Starting" state even after a app restart or server reboot. Last lines from the proxyapp log:
Oct 01 05:03:18 box:shell reload spawn: /usr/bin/sudo -S /home/yellowtent/box/src/scripts/restartservice.sh nginx Oct 01 05:03:20 box:tasks update 10719: {"percent":100,"message":"Done"} Oct 01 05:03:20 box:taskworker Task took 1.964 seconds Oct 01 05:03:20 box:tasks setCompleted - 10719: {"result":null,"error":null} Oct 01 05:03:20 box:tasks update 10719: {"percent":100,"result":null,"error":null}
-
-
@girish updated to 7.3.1 and proxyapp is still stuck in starting. Log output is the same. I reinstalled the app after the update just to be sure. Not a huge problem though because the proxy is working but you cant click the dashboard icon ^^
-
@subven Ah! the healthcheck code indeed won't work if the upstream is using self-signed certs.
I will get the healthcheck fixed in 7.3.2. Note that nginx is configured correctly to handle self-signed certs which is why the proxy itself works.
-
-