PADD icon indicating copy to clipboard operation
PADD copied to clipboard

Unsure of what is causing this to happen

Open cmdshft opened this issue 6 years ago • 8 comments

Every so often this has been appearing on the display of PADD. It goes away after the refresh of the screen but still not happy that this happens. How do I fix it?

IMG_3745

cmdshft avatar Sep 28 '19 22:09 cmdshft

2019-10-28 10_01_02-pi@raspberrypiB (10 0 0 99) - byobu

I get this issue too, it seems to be caused by the output of ps not being as expected. After a refresh, it goes away and the screen is as usual.

sionide0278 avatar Oct 27 '19 23:10 sionide0278

BUMP

Any way to resolve this? Getting the feeling that the dev is disinterested in maintaining this lately.

cmdshft avatar Feb 20 '20 21:02 cmdshft

@cmdshft what do you get if you run pidof pihole-FTL in terminal? The code checks to see if that's an empty string (and if so, avoids the ps call and says ftl is not running) but I'm wondering if that's returning a nonempty string that's still not a proper process id so the subsequent ps calls fail

tgjohnst avatar Feb 22 '20 09:02 tgjohnst

This is really annoying.

AlexBarbulescu avatar Jul 20 '20 07:07 AlexBarbulescu

I'm not that good at this but seems to work for me. Instead of verifying if there's any string we verify if the process exists.

search for ftlPID=$(pidof pihole-FTL)

replace the code if-else-fi

  if [ -n "$ftlPID" -a -e /proc/$ftlPID ]; then
    ftl_status="Running"
    ftl_heatmap=${green_text}
    ftl_check_box=${check_box_good}
    ftl_cpu="$(ps -p "${ftlPID}" -o %cpu | tail -n1 | tr -d '[:space:]')"
    ftl_mem_percentage="$(ps -p "${ftlPID}" -o %mem | tail -n1 | tr -d '[:space:]')"
  else
    ftl_status="Not running"
    ftl_heatmap=${yellow_text}
    ftl_check_box=${check_box_info}
    pico_status=${pico_status_ftl_down}
    mini_status_=${mini_status_ftl_down}   
    full_status_=${full_status_ftl_down}
    mega_status=${mega_status_ftl_down}
  fi

AlexBarbulescu avatar Aug 16 '20 12:08 AlexBarbulescu

Might be related to some issues we found on the core repository code.

https://github.com/pi-hole/pi-hole/pull/3599/files#diff-045722c02800a1422bcac00099aec6dbL27

Fix was to change ps <PID> to pgrep -o "pihole-FTL"

dschaper avatar Aug 16 '20 18:08 dschaper

I'm seeing this as well. It started after a fresh install of Rasbpian Buster, Pi-Hole, and PADD a little over a week ago. My previous installation didn't have this issue.

cosmith71 avatar Aug 23 '20 10:08 cosmith71

I started over with a new flash of the latest Raspbian Buster (8/20/20), Pi-Hole, and PADD and the problem has not re-occured.

cosmith71 avatar Aug 30 '20 15:08 cosmith71

Closing the issue because there was no activity > 2 years and I don't know how to reproduce the issue. Feel free to re-open or creating a new issue if necessary.

yubiuser avatar Aug 20 '22 17:08 yubiuser