Openresty not starting with the machine

24 views
Skip to first unread message

Saint Michael

unread,
Apr 21, 2021, 6:18:02 AMApr 21
to openre...@googlegroups.com
I rebooted the box where I have my Openresty installed, and when it came back, nginx had started, but openresty did not. All applications were 404 not found.
Systemctl status nginx shows 
 nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: inactive (dead) since Wed 2021-04-21 09:50:21 UTC; 23min ago
       Docs: man:nginx(8)
    Process: 250 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 359 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 1520 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=1/FAILURE)
   Main PID: 387 (code=exited, status=0/SUCCESS)

Apr 21 09:50:21 ssnode1.minixel.com systemd[1]: nginx.service: Succeeded.

but Openresty does not have a Systemd service.
The machine is Ubuntu 0.04 and does Openresty is not listed a a service either
service --status-all
 [ - ]  console-setup.sh
 [ + ]  cron
 [ + ]  dbus
 [ - ]  hwclock.sh
 [ - ]  keyboard-setup.sh
 [ - ]  kmod
 [ + ]  mysql
 [ - ]  nginx
 [ + ]  procps
 [ - ]  rsync
 [ + ]  rsyslog
 [ - ]  screen-cleanup
 [ + ]  ssh
 [ + ]  udev

My Openresty is compiled from sources
 openresty -V
nginx version: openresty/1.19.3.1
built by gcc 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)
built with OpenSSL 1.1.1f  31 Mar 2020
TLS SNI support enabled
configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt=-O2 --add-module=../ngx_devel_kit-0.3.1 --add-module=../echo-nginx-module-0.62 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.32 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.08 --add-module=../srcache-nginx-module-0.32 --add-module=../ngx_lua-0.10.19 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-module-0.15 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.9 --with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib --with-pcre-jit --with-ipv6 --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_ssl_module

How can I make sure Openresty comes back with the box?

Saint Michael

unread,
Apr 21, 2021, 8:55:49 AMApr 21
to openre...@googlegroups.com
I found this library. It shows how to convert Json to an HTML table using LUA. 
It would solve all problems if somebody could port it to Openresty, since we can get Json from a SQL select statement, and using this library the table will be offered as HTMP within Openresty. I just don't know enough LUA and Openresty to do this:
If somebody can indicate how to do this with the tools we have already in Openresty.

Joseph Mariadassou

unread,
Apr 21, 2021, 7:19:22 PMApr 21
to openre...@googlegroups.com
try
sudo systemctl status openresty

or just
sudo systemctl status

to list all systemd services.

--
You received this message because you are subscribed to the Google Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openresty-en/CAC9cSOC6wDYD9FwzX_0cTwnCgjhXTXCGYK6Jz5%2B22XX5nJN5Wg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages