• 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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pilight v8.0 - Current work in progress
#11
What happens to the pilight 8 ? Smile
 
Reply
#12
https://forum.pilight.org/Forum-pilight-...16-rewrite

http://github.com/pilight/pilight/tree/rewrite
 
Reply
#13
The post-remove script of the installer seems broken in the latest v8.0.2:
Code:
Removing pilight-webgui (8.0) ...
Removing pilight (8.0.2) ...
dpkg: error processing package pilight (--remove):
subprocess installed post-removal script returned error exit status 1
Processing triggers for systemd (215-17+deb8u7) ...
Errors were encountered while processing:
pilight
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Reply
#14
(11-16-2017, 01:58 PM)gregnau Wrote: The post-remove script of the installer seems broken in the latest v8.0.2:
Code:
Removing pilight-webgui (8.0) ...
Removing pilight (8.0.2) ...
dpkg: error processing package pilight (--remove):
subprocess installed post-removal script returned error exit status 1
Processing triggers for systemd (215-17+deb8u7) ...
Errors were encountered while processing:
pilight
E: Sub-process /usr/bin/dpkg returned an error code (1)

I'm currently encountering the same issue. I have/had installed 8.0.4.
Initially everything was installed and OK, than I wanted to remove pilight which already had this issue and now I'm unable to either remove or re-install.
 
Reply
#15
I will look into it. Any idea what could have gone wrong if you look at the scripts yourself?
https://github.com/pilight/pilight/blob/...ght/postrm
 
Reply
#16
(12-13-2017, 07:20 AM)curlymo Wrote: I will look into it. Any idea what could have gone wrong if you look at the scripts yourself?
https://github.com/pilight/pilight/blob/...ght/postrm

I ended up adding exit 0 at the end of postrm script. At least it must be part of remove case , but I was to lazy to check where issue occurred.
However, I can repeat the same and see where it runs into problems the next days.
Will get back on this.

BR
Florian
 
Reply
#17
Code:
root@led-04-wifi:/tmp# test -f test && rm test;
root@led-04-wifi:/tmp# echo $?
1
root@led-04-wifi:/tmp# touch test
root@led-04-wifi:/tmp# test -f test && rm test;
root@led-04-wifi:/tmp# echo $?
0
root@led-04-wifi:/tmp#
I simple tried the above and if files supposed to remove in postrm script does not exists, we will echo return code 1.

Further checking I can see that file "/etc/init.d/pilight.sh" does not exists.
So I think it's 2 problems, first that one of the files does not exists, but also the postrm should able to handle this and not exit with 1.

I hope this helps you identifying the problem.

BR
Florian
 
Reply
#18
You are right. I should've added the true:
Code:
# test -f test && rm test || true
# echo $?
0
Do you want to make a PR or should i change it?
 
Reply
#19
Confused  actually I don't know how to create PRs? Should I make under github project?
I would prefer if you could do the PR.

Thanks!

BR
Florian
 
Reply
#20
Already pushed the fix.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
Tongue pilight 8.1.5-1-gc0a175e0 Chrashes fleisch 4 143 08-17-2019, 01:04 PM
Last Post: curlymo
  pilight for Raspbian Buster (raspberry pi 4) ? starob 29 1,577 07-15-2019, 08:45 PM
Last Post: curlymo
  pilight-receive Filteroption not working Alex 2 357 07-14-2019, 08:35 AM
Last Post: Alex
  pilight usb nano format conversion ettman8 2 249 07-14-2019, 08:32 AM
Last Post: curlymo
  pilight 8.1.4 crashes after some hours Ulrich.Arnold 47 2,039 06-29-2019, 08:58 PM
Last Post: curlymo
  Raspberry PI, gpio-ir-tx and pilight not starting lordslash 5 554 06-11-2019, 05:19 PM
Last Post: curlymo
  pilight fails starting on boot Alex 5 481 06-09-2019, 06:02 PM
Last Post: curlymo
  Google Assistant coupled to pilight hansrijn2 4 928 05-29-2019, 06:54 PM
Last Post: curlymo
  pilight-send does not stop (terminate) va13 3 474 05-15-2019, 06:06 PM
Last Post: curlymo
  oom_reaper: reaped process pilight-daemon va13 4 538 05-15-2019, 08:03 AM
Last Post: va13

Forum Jump:


Browsing: 1 Guest(s)