UpSnap icon indicating copy to clipboard operation
UpSnap copied to clipboard

[BUG] something strange happens in the interface

Open domenico-dig opened this issue 7 months ago • 13 comments

The bug

When pc is OFF see power button GREEN and rdp RED and that doesn't allow me to turn it on

Image

When pc is ON and i see power button RED and rdp ** GREEN** when pc is ON,

Image

The OS that UpSnap is running on

Ubuntu 22.04

Version of UpSnap

5.0.2

Your docker-compose.yml content

services:
  upsnap:
    container_name: upsnap
    image: ghcr.io/seriousm4x/upsnap:5.0.2
    network_mode: host
    restart: unless-stopped
    volumes:
      - ./data:/app/pb_data
    environment:
       - TZ=Europe/Rome # Set container timezone for cron schedules
       - UPSNAP_INTERVAL=*/3 * * * * * # Sets the interval in which the devices are pinged
    #   - UPSNAP_SCAN_RANGE=192.168.1.0/24 # Scan range is used for device discovery on local network
       - UPSNAP_WEBSITE_TITLE=WOLSLM # Custom website title
       - UPSNAP_PING_PRIVILEGED=true
    # # dns is used for name resolution during network scan
    dns:
       - 192.168.30.12
       - 192.168.20.11
    # # you can change the listen ip:port inside the container like this:
    # entrypoint: /bin/sh -c "./upsnap serve --http 0.0.0.0:5000"
    # healthcheck:
    #   test: curl -fs "http://localhost:5000/api/health" || exit 1
    #   interval: 10s
    # # or install custom packages for shutdown
    entrypoint: /bin/sh -c "apk update && apk add --no-cache wget && rm -rf /var/cache/apk/* && wget https://www.SITE.it/media/files/logo.svg && ./upsnap serve --http 0.0.0.0:8090

Reproduction steps

1.
2.
3.
...

Additional information

No response

domenico-dig avatar May 20 '25 15:05 domenico-dig

Well, that's not supposed to happen. Can you check if you use any custom ping command? Also make sure there is not a single space in the input form. Is it happening for all devices or only this one?

seriousm4x avatar May 21 '25 20:05 seriousm4x

Only this device. I have more device without problems

domenico-dig avatar May 22 '25 07:05 domenico-dig

Can you check if you use any custom ping command? Also make sure there is not a single space in the input form.

?

seriousm4x avatar May 27 '25 21:05 seriousm4x

i have not custom ping

Image

domenico-dig avatar May 29 '25 08:05 domenico-dig

Ok, here are some steps you can try:

  • [ ] Use the latest 5.1.0 version.
  • [ ] Try pinging from inside the Docker container:
    • [ ] docker exec -it upsnap sh
    • [ ] ping YOUR_IP
    • [ ] See if that responds correctly.

If you find a reliable way for me to reproduce the issue, I'd be happy.
If not, I’ll have to close it as not reproducible.

seriousm4x avatar Jun 02 '25 20:06 seriousm4x

the problem is this: the pc is off and i cannot ping but upsnap sees it on:

domenico-dig avatar Jun 05 '25 11:06 domenico-dig

the problem is this: the pc is off and i cannot ping but upsnap sees it on:

Yes, I understood. But can you try using the ping command from inside the container? Thats the only way to test if it's actually an issue with upsnap.

seriousm4x avatar Jun 06 '25 07:06 seriousm4x

from inside docker I regularly ping the turned on PCs

Image

domenico-dig avatar Jun 06 '25 09:06 domenico-dig

Thats not what i meant. Yes, you run upsnap in docker, but I need you to manually ping your PC from inside the docker container. Please follow these steps in your terminal:

  1. docker exec -it upsnap sh
  2. ping YOUR_IP
  3. Send me the output

seriousm4x avatar Jun 06 '25 11:06 seriousm4x

see the results

Image

domenico-dig avatar Jun 06 '25 13:06 domenico-dig

Sooo... the ping status looks good to me? The big power button has the correct color according to your terminal output.

Your second pc as a green dot for RDP even though the pc doesn't respond to pings. But that might be sleep mode on your computer. It's not responding to pings but you can still connect to RDP to wake it up again. Just guessing.

I don't see an error here.

seriousm4x avatar Jun 06 '25 14:06 seriousm4x

ok, but when the pc is off the situation is this and cannot me to press button to wake

Image

domenico-dig avatar Jun 06 '25 14:06 domenico-dig

Ok, can you power off the pc and try to ping it from inside the container again?

seriousm4x avatar Jun 06 '25 15:06 seriousm4x

I've decided to close the issue since I'm not able to reproduce this in any way. Also there are not clear reproduction steps which are helpful and consistent.

seriousm4x avatar Jul 08 '25 21:07 seriousm4x