[BUG] something strange happens in the interface
The bug
When pc is OFF see power button GREEN and rdp RED and that doesn't allow me to turn it on
When pc is ON and i see power button RED and rdp ** GREEN** when pc is ON,
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
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?
Only this device. I have more device without problems
Can you check if you use any custom ping command? Also make sure there is not a single space in the input form.
?
i have not custom ping
Ok, here are some steps you can try:
- [ ] Use the latest
5.1.0version. - [ ] 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.
the problem is this: the pc is off and i cannot ping but upsnap sees it on:
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.
from inside docker I regularly ping the turned on PCs
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:
docker exec -it upsnap shping YOUR_IP- Send me the output
see the results
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.
ok, but when the pc is off the situation is this and cannot me to press button to wake
Ok, can you power off the pc and try to ping it from inside the container again?
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.