• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upgrade to jessie+pilight+kernel failed
#11
Thanks for your reply - this motivated me, to run a complete apt-get remove and install pilight 8.0.4 from scratch (no upgrade!):

You are right, the
Code:
sudo apt-get remove pilight
does not work properly (same for pilight-dbg) (I already faced this issue, but did not want to add this to my initial post).
What you can do before running the "apt-get remove", is to add "exit 0" just before the last "fi" in /var/lib/dpkg/info/pilight.postrm or pilight-dbg.postrm
Code:
#!/bin/bash

if [[ $1 == "purge" ]]; then

       test -d /etc/pilight && rm -r /etc/pilight 1>/dev/null 2>/dev/null || true;

       find /usr/local/lib -name '*pilight*' -exec rm -r {} \; 1>/dev/null 2>/dev/null;

       test -d /usr/local/pilight && rm -r /usr/local/pilight || true 1>/dev/null 2>/dev/null;

fi

if [[ $1 == "remove" ]]; then

       test -f /etc/init.d/pilight && rm /etc/init.d/pilight;
       test -f /etc/init.d/pilight.sh && rm /etc/init.d/pilight.sh;
       test -f /etc/systemd/system/pilight.service && rm /etc/systemd/system/pilight.service;
       test -f /etc/init/pilight.conf && rm /etc/init/pilight.conf;
       exit 0 #<-----
fi

Clean remove and install:
  • edit pilight.postrm
  • sudo apt-get remove pilight pilight-webgui
  • sudo apt-get autoremove
  • sudo apt-get install pilight
the only change I had to do to my config.json was to replace
Code:
"webserver-root": "/usr/local/share/pilight/",
with
Code:
"webserver-root": "/usr/local/share/pilight/webgui",
in the "settings"-section.

After this procedure everything works fine (even with pilight v8.04)!!!

So I guess, I also had some issues with not clean removal ...
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight-debug format Rschnauzer 2 186 12-17-2020, 07:09 PM
Last Post: Rschnauzer
  pilight-flash not working danny 14 2,366 12-12-2020, 10:00 AM
Last Post: tox
  pilight does not start, Deamon is not found. Dekkertje 6 281 12-08-2020, 06:55 PM
Last Post: Dekkertje
  Failed pilight-send that say they succeeded hepcat72 2 191 12-05-2020, 05:30 PM
Last Post: hepcat72
  ERROR: failed to read config. stack: 2 Stefan 7 1,141 11-28-2020, 01:43 PM
Last Post: hannibal-247
  apt.pilight.org/dists/stable/main/binary 301 Moved Permanently Rschnauzer 6 437 11-23-2020, 01:49 PM
Last Post: Rschnauzer
  bridging pilight and mosquitto hansrijn2 5 673 10-26-2020, 06:31 PM
Last Post: hansrijn2
  problem publish to pilight MQTT server Emiks5 4 882 08-31-2020, 07:45 PM
Last Post: Emiks5
  pilight for Raspbian Buster (raspberry pi 4) ? starob 32 11,912 08-10-2020, 09:12 AM
Last Post: simanuel
  After upgrade to 8.1.5 "433gpio pulse buffer full" bodo 4 629 07-28-2020, 08:46 PM
Last Post: felfert

Forum Jump:


Browsing: 1 Guest(s)