Brandawg93 / PeaNUT

A tiny dashboard for Network UPS Tools
Apache License 2.0
303 stars 7 forks source link

[Bug]: Docker logs not capturing http errors #40

Open jbestt opened 6 months ago

jbestt commented 6 months ago

Describe the bug

Peanut is returning Internal Server Errors, but I can't perform root cause analysis due to the lack of logs.

upsc returns good telemetry for all of the configured ups's.

Debug Output

root@nut:~/peanut# docker logs peanut

> peanut@2.5.0 start
> PORT=$WEB_PORT node server.js

   ▲ Next.js 14.1.0
   - Local:        http://e40beb5a33c6:8080
   - Network:      http://172.18.0.2:8080

 ✓ Ready in 303ms

Steps to reproduce

  1. Configure nut with three UPS devices via snmp-ups
  2. Install PeaNUT via Docker
  3. Visit PeaNUT page

Device Type

Debian LXC Container

UPS Device

Various APC via snmp-ups

Last Working Version

n/a

nicrame commented 3 months ago

I can confirm situation. I tried to check for logs by connecting inside container, but /var/log/ is empty.

Brandawg93 commented 2 months ago

Do you see more logs if you clone the repo and run npm run dev?

zzz676 commented 1 month ago

Same thing, won't start. and a circle just spins at the address in the browser