I'm trying to get my shiny server to start but every time I get this error
shiny-server.service - ShinyServer
Loaded: loaded (/etc/systemd/system/shiny-server.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2022-09-13 10:05:11 EDT; 4s ago
Process: 181492 ExecStart=/usr/bin/env bash -c exec /opt/shiny-server/bin/shiny-server >> /var/log/shiny-server.log 2>&1 (code=exited, status=127)
Process: 181493 ExecStopPost=/usr/bin/env sleep 5 (code=exited, status=0/SUCCESS)
Main PID: 181492 (code=exited, status=127)
Sep 13 10:05:11 ds-rshiny systemd[1]: shiny-server.service: Scheduled restart job, restart counter is at 3.
Sep 13 10:05:11 ds-rshiny systemd[1]: Stopped ShinyServer.
Sep 13 10:05:11 ds-rshiny systemd[1]: shiny-server.service: Start request repeated too quickly.
Sep 13 10:05:11 ds-rshiny systemd[1]: shiny-server.service: Failed with result 'exit-code'.
Sep 13 10:05:11 ds-rshiny systemd[1]: Failed to start ShinyServer.
This is what is in the log file
Error: Cannot find module './router/router'
Require stack:
- /opt/shiny-server/lib/main.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/opt/shiny-server/lib/main.js:37:14)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/opt/shiny-server/lib/main.js' ]
}
node:internal/modules/cjs/loader:936
throw err;
^
I'm not sure if I have to change something in a .js file or what?