@sdetweil Ahh, thanks for the education on the &. Working now!
Note: I wrote this a couple days ago, just didn’t click ‘submit’. :)
@sdetweil Ahh, thanks for the education on the &. Working now!
Note: I wrote this a couple days ago, just didn’t click ‘submit’. :)
So the docker setup I have runs a start_server.sh script and once it his ‘npm run server’ it just shows logging info, meaning it won’t execute anything I put under it (until I kill the running task, I’d assume).
I believe the typical method to handle this is by using PM2, but I don’t have that here.
So right now I just open the console to the container, change the MM_CONFIG_FILE path to my 2nd config file and execute ‘npm run server’ and close that console window.
What’s the best/proper method for me to get them both to launch automatically?
@sdetweil thanks. That did it!
New problem post for how to auto-run both configs on startup (right now I manually start the second one).
[2024-09-19 14:43:56.866] [INFO] System information:
### SYSTEM: manufacturer: Gigabyte Technology Co., Ltd.; model: Docker Container; raspberry: undefined; virtual: false
### OS: platform: linux; distro: Debian GNU/Linux; release: 11; arch: x64; kernel: 6.1.64-Unraid
### VERSIONS: electron: undefined; used node: 18.20.2; installed node: 18.20.2; npm: 10.5.0; pm2:
### OTHER: timeZone: America/New_York; ELECTRON_ENABLE_GPU: undefined
MM2 in Docker, recently configured multiple instances which were working just fine.
However after a restart of the container, on one instance I have various “Error in the module. Check logs for more details.” (where name is Calendar or Newsfeed).
Over time (when refresh is triggered), the newsfeed comes online, and later the weather forecast will show up (it’s stuck at ‘loading…’ for a while.
This would be fine except the Calendar doesn’t clear this situation as I guess it doesn’t exactly refresh like the others do.
When I first view this instance in a browser, I see the calendar module list the upcoming events just fine, then I see MMM-MonthlyCalendar pop up (as it has), but then the calendar module area fades out and reports this error. I believe it’s on the attempt to broadcast.
Message is some flavor of: TypeError: fetch failed for both modules.
For example:
[2024-09-19 16:23:02.804] [ERROR] Calendar Error. Could not fetch calendar: https://calendar.google.com/calendar/<redacted>.ics TypeError: fetch failed
at node:internal/deps/undici/undici:12618:11
at processTicksAndRejections (node:internal/process/task_queues:95:5)
_finishFlushFlag: 2,
at runNextTicks (node:internal/process/task_queues:64:3)
at process.processImmediate (node:internal/timers:447:9) {
cause: ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (node:internal/deps/undici/undici:7760:28)
at node:internal/deps/undici/undici:7716:50
_defaultFullFlushFlag: 3, at Immediate._onImmediate (node:internal/deps/undici/undici:7748:13)
at process.processImmediate (node:internal/timers:476:21) {
code: 'UND_ERR_CONNECT_TIMEOUT'
}
}
The newsfeed one is similar.
Does this have anything to do with two instances of the server running but sharing resources? If I refresh my 2nd instance (which uses the same calendar module config), it works just fine.
Help! Not sure what changed…they were coexisting fine.